2 lines
2.6 KiB
JavaScript
2 lines
2.6 KiB
JavaScript
import{c9 as d,c3 as s,cc as m,ax as i,ce as r,an as p,bY as T}from"./bootstrap-CRjSNGHY.js";import{m as V,ab as C,b2 as u,bJ as a,j as t,ad as c,ac as h,u as e,ce as k,I as f,bb as B}from"../jse/index-index-CMeVxoEG.js";import U from"./index-BqNZEIdl.js";import"./vuedraggable.umd-C80eNCNV.js";import"./index-CflXhIdF.js";/* empty css *//* empty css *//* empty css */import"./index-Bh-Hd8Ie.js";const Y=V({name:"DividerProperty",__name:"property",props:{modelValue:{}},emits:["update:modelValue"],setup(b,{emit:v}){const y=b,x=v,_=[{icon:"vaadin:line-h",text:"实线",type:"solid"},{icon:"tabler:line-dashed",text:"虚线",type:"dashed"},{icon:"tabler:line-dotted",text:"点线",type:"dotted"},{icon:"entypo:progress-empty",text:"无",type:"none"}],o=k(y,"modelValue",x);return(z,n)=>(u(),C(e(T),{model:e(o)},{default:a(()=>[t(e(d),{label:"高度",name:"height"},{default:a(()=>[t(e(s),{value:e(o).height,"onUpdate:value":n[0]||(n[0]=l=>e(o).height=l),min:1,max:100},null,8,["value"])]),_:1}),t(e(d),{label:"选择样式",name:"borderType"},{default:a(()=>[t(e(m),{value:e(o).borderType,"onUpdate:value":n[1]||(n[1]=l=>e(o).borderType=l)},{default:a(()=>[(u(),c(f,null,B(_,(l,g)=>t(e(i),{placement:"top",key:g,title:l.text},{default:a(()=>[t(e(r),{value:l.type},{default:a(()=>[t(e(p),{icon:l.icon,class:"inset-0 size-6 items-center"},null,8,["icon"])]),_:2},1032,["value"])]),_:2},1032,["title"])),64))]),_:1},8,["value"])]),_:1}),e(o).borderType!=="none"?(u(),c(f,{key:0},[t(e(d),{label:"线宽",name:"lineWidth"},{default:a(()=>[t(e(s),{value:e(o).lineWidth,"onUpdate:value":n[2]||(n[2]=l=>e(o).lineWidth=l),min:1,max:30},null,8,["value"])]),_:1}),t(e(d),{label:"左右边距",name:"paddingType"},{default:a(()=>[t(e(m),{value:e(o).paddingType,"onUpdate:value":n[3]||(n[3]=l=>e(o).paddingType=l)},{default:a(()=>[t(e(i),{title:"无边距",placement:"top"},{default:a(()=>[t(e(r),{value:"none"},{default:a(()=>[t(e(p),{icon:"tabler:box-padding",class:"inset-0 size-6 items-center"})]),_:1})]),_:1}),t(e(i),{title:"左右留边",placement:"top"},{default:a(()=>[t(e(r),{value:"horizontal"},{default:a(()=>[t(e(p),{icon:"vaadin:padding",class:"inset-0 size-6 items-center"})]),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),t(e(d),{label:"颜色"},{default:a(()=>[t(e(U),{modelValue:e(o).lineColor,"onUpdate:modelValue":n[4]||(n[4]=l=>e(o).lineColor=l)},null,8,["modelValue"])]),_:1})],64)):h("",!0)]),_:1},8,["model"]))}});export{Y as default};
|