(function(i,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(i=typeof globalThis<"u"?globalThis:i||self,t(i.index={},i.Vue))})(this,function(i,t){"use strict";const v={direction:{type:String,default:"horizontal"},color:{type:String,default:""},borderStyle:{type:String,default:"solid"},contentPosition:{type:String,default:"center"},contentColor:{type:String,default:""},contentBackgroundColor:{type:String,default:""}},p="",s="g";function l(e,o,n){let c=e;return o&&(c+=`__${o}`),n&&(c+=`--${n}`),c}function b(e,o=!1){const n=o?`.${s}-${e}`:`${s}-${e}`;return{b:()=>l(n),e:r=>r?l(n,r):"",m:r=>r?l(n,"",r):"",em:(r,y)=>r&&y?l(n,r,y):""}}const m="G",d=t.defineComponent({name:`${m}Divider`,props:v,setup(e,{slots:o}){const n=b("divider"),c=t.computed(()=>({...e.direction!=="horizontal"?{"border-left-style":e.borderStyle}:{"border-top-style":e.borderStyle},"border-color":e.color})),u=t.computed(()=>e.direction==="horizontal"?n.b():n.m("vertical")),a=t.computed(()=>({color:e.contentColor,"background-color":e.contentBackgroundColor})),f=t.computed(()=>`${n.e("text")} is-${e.contentPosition}`);return()=>t.createVNode("div",{class:u.value,style:c.value},[t.createVNode("div",{class:f.value,style:a.value},[o.default&&o.default()])])}});d.install=function(e,o){e.component(o||d.name,d)};const S={title:"Divider 分割线",category:"布局",status:"100%",install(e){e.component(d.name,d)}};i.Divider=d,i.default=S,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
