erp-plus 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/erp-plus.css +1 -1
- package/dist/types/erp-plus.es.js +827 -201
- package/dist/types/erp-plus.umd.js +1 -1
- package/dist/types/packages/CheckboxGroup/CheckboxGroup.vue.d.ts +18 -0
- package/dist/types/packages/CheckboxGroup/index.d.ts +4 -0
- package/dist/types/packages/DatePicker/DatePicker.vue.d.ts +9 -0
- package/dist/types/packages/Dialog/Dialog.vue.d.ts +300 -0
- package/dist/types/packages/Dialog/index.d.ts +4 -0
- package/dist/types/packages/RadioGroup/RadioGroup.vue.d.ts +18 -0
- package/dist/types/packages/RadioGroup/index.d.ts +4 -0
- package/dist/types/packages/SvgIcon/index.d.ts +4 -0
- package/dist/types/packages/Table/Table.vue.d.ts +3071 -0
- package/dist/types/packages/Table/index.d.ts +4 -0
- package/dist/types/packages/Tree/Tree.vue.d.ts +2190 -0
- package/dist/types/packages/Tree/index.d.ts +4 -0
- package/package.json +1 -1
- package/dist/types/App.vue.d.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,g){typeof exports=="object"&&typeof module<"u"?module.exports=g(require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["vue","element-plus"],g):(e=typeof globalThis<"u"?globalThis:e||self,e.ErpPlus=g(e.Vue,e.ElementPlus))})(this,function(e,g){"use strict";const C=e.defineComponent({__name:"Button",props:{type:{type:String,default:"default"},size:{type:String,default:"default"},plain:{type:Boolean,default:!1},text:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},round:{type:Boolean,default:!1},link:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},autoInsertSpace:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},loadingIcon:{type:[String,Object],default:void 0},icon:{type:[String,Object],default:void 0},color:{type:String,default:void 0},nativeType:{type:String,default:"button"},tag:{type:[String,Object],default:"button"}},emits:["click"],setup(t,{emit:p}){const n=e.useSlots(),l=t,r=p,c=i=>{r("click",i)};return(i,f)=>{const m=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(m,e.mergeProps(l,{class:["yw-button-"+t.type,"yw-button"],onClick:c}),e.createSlots({_:2},[e.renderList(e.unref(n),(y,u)=>({name:u,fn:e.withCtx(h=>[e.renderSlot(i.$slots,u,e.normalizeProps(e.guardReactiveProps(h||{})))])}))]),1040,["class"])}}});C.install=t=>{t.component("YwButton",C)};const O=["xlink:href","fill"],B=e.defineComponent({__name:"index",props:{iconClass:{type:String,required:!0},className:{type:String,default:""},color:{type:String,default:""}},setup(t){const p=t,n=e.computed(()=>p.className?(console.log(p.className),`svg-icon ${p.className}`):"svg-icon"),l=e.computed(()=>`#icon-${p.iconClass}`);return(r,c)=>(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(n.value),"aria-hidden":"true"},[e.createElementVNode("use",{"xlink:href":l.value,fill:t.color},null,8,O)],2))}}),_=((t,p)=>{const n=t.__vccOpts||t;for(const[l,r]of p)n[l]=r;return n})(e.defineComponent({__name:"DatePicker",props:{modelValue:{type:[String,Number,Object],default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:""},editable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},placeholder:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},type:{type:String,default:"date"},format:{type:String,default:"yyyy-MM-dd"},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},rangeSeparator:{type:String,default:" - "},defaultTime:[Date,[Date,Date]],defaultValue:{type:[Date,[Date,Date]],default:()=>""},id:{type:String,default:""},name:{type:String,default:""},unlinkPanels:{type:Boolean,default:!1},prefixIcon:{type:[String,Object],default:()=>e.h("svg",{viewBox:"0 0 1024 1024",width:"16",height:"16",fill:"currentColor",class:"svg-icon","aria-hidden":"true",style:{color:"#838599"}},[e.h("path",{d:"M640 53.312a32 32 0 0 1 32 32V256a32 32 0 0 1-64 0v-53.312H448a32 32 0 0 1 0-64h160v-53.312a32 32 0 0 1 32-32zM96 426.688a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32v384c0 64.768-52.48 117.312-117.312 117.312H213.312A117.312 117.312 0 0 1 96 810.688v-384z m64 32v352c0 29.44 23.872 53.312 53.312 53.312h597.376c29.44 0 53.312-23.872 53.312-53.312v-352h-704z"}),e.h("path",{d:"M213.312 202.688A53.312 53.312 0 0 0 160 256v170.688a32 32 0 0 1-64 0V256c0-64.768 52.48-117.312 117.312-117.312h85.376a32 32 0 0 1 0 64H213.312z"}),e.h("path",{d:"M298.688 53.312a32 32 0 0 1 32 32V256a32 32 0 1 1-64 0V85.312a32 32 0 0 1 32-32zM757.312 170.688a32 32 0 0 1 32-32h21.376c64.768 0 117.312 52.48 117.312 117.312v170.688a32 32 0 0 1-64 0V256a53.312 53.312 0 0 0-53.312-53.312h-21.376a32 32 0 0 1-32-32z"})])},clearIcon:{type:[String,Object],default:()=>e.h("svg",{viewBox:"0 0 1024 1024",width:"12",height:"12",fill:"currentColor",class:"your-prefix-clear-icon",style:{color:"#b2b4c6"}},[e.h("path",{d:"M0 512a512 512 0 1 0 1024 0A512 512 0 0 0 0 512z m631.210667-179.541333a42.666667 42.666667 0 0 1 60.330666 60.416L572.330667 512l119.210666 119.125333a42.666667 42.666667 0 0 1-60.330666 60.416L512 572.330667 392.874667 691.541333a42.666667 42.666667 0 0 1-60.330667-60.416L451.669333 512 332.544 392.874667a42.666667 42.666667 0 1 1 60.330667-60.416L512 451.669333l119.210667-119.210666z"})])},validateEvent:{type:Boolean,default:!0},disabledDate:{type:Function,default:()=>!1},shortcuts:{type:Array,default:()=>[]},cellClassName:{type:Function,default:()=>""},teleported:{type:Boolean,default:!0},emptyValues:{type:Array,default:()=>[]},valueOnClear:{type:[String,Number,Boolean,Function],default:()=>""},placement:{type:String,default:"bottom"},showFooter:{type:Boolean,default:!0},showWeekNumber:{type:Boolean,default:!1}},emits:["update:modelValue","change","clear","blur","focus","calendar-change","visible-change","panel-change"],setup(t,{emit:p}){const n=t,l=e.computed(()=>n.type==="daterange"||n.type==="datetimerange"?`yw-daterange-picker ${n.popperClass}`:`yw-date-picker ${n.popperClass}`),r=p,c=e.computed({get(){return n.modelValue},set(s){r("update:modelValue",s)}}),i=s=>{r("change",s)},f=s=>{r("clear",s)},m=s=>{r("blur",s)},y=s=>{r("focus",s)},u=s=>{r("calendar-change",s)},h=s=>{r("visible-change",s)},b=s=>{r("panel-change",s)};return(s,S)=>{const o=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(o,e.mergeProps(n,{modelValue:c.value,"onUpdate:modelValue":S[0]||(S[0]=a=>c.value=a),popperClass:l.value,onChange:i,onClear:f,onBlur:m,onFocus:y,onCalendarChange:u,onVisibleChange:h,onPanelChange:b}),{"prev-month":e.withCtx(()=>[e.createVNode(B,{iconClass:"16_16_arrow_left",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),"next-month":e.withCtx(()=>[e.createVNode(B,{iconClass:"16_16_arrow_right",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),"prev-year":e.withCtx(()=>[e.createVNode(B,{iconClass:"16_16_arrow_2left",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),"next-year":e.withCtx(()=>[e.createVNode(B,{iconClass:"16_16_arrow_2right",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),_:1},16,["modelValue","popperClass"])}}}),[["__scopeId","data-v-84e7bdaa"]]);_.install=t=>{t.component("YwDatePicker",_)};const w=e.defineComponent({__name:"Avatar",props:{size:{type:Number,default:40},shape:{type:String,default:"circle"},icon:{type:String,default:""},src:{type:String,default:""},alt:{type:String,default:""},srcSet:{type:String,default:""},fit:{type:String,default:"cover"}},emits:["error"],setup(t,{emit:p}){const n=t,l=p,r=c=>{l("error",c)};return(c,i)=>{const f=e.resolveComponent("el-avatar");return e.openBlock(),e.createBlock(f,e.mergeProps(n,{onError:r}),e.createSlots({_:2},[e.renderList(c.$slots,(m,y)=>({name:y,fn:e.withCtx(u=>[e.renderSlot(c.$slots,y,e.normalizeProps(e.guardReactiveProps(u||{})))])}))]),1040)}}});w.install=t=>{t.component("YwAvatar",w)};const x=e.defineComponent({__name:"Input",props:{modelValue:{type:[String,Number],default:""},type:{type:String,default:"text"},showWordLimit:{type:Boolean,default:!1},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:()=>e.h("svg",{viewBox:"0 0 1024 1024",width:"12",height:"12",fill:"currentColor",class:"your-prefix-clear-icon",style:{color:"#b2b4c6"}},[e.h("path",{d:"M0 512a512 512 0 1 0 1024 0A512 512 0 0 0 0 512z m631.210667-179.541333a42.666667 42.666667 0 0 1 60.330666 60.416L572.330667 512l119.210666 119.125333a42.666667 42.666667 0 0 1-60.330666 60.416L512 572.330667 392.874667 691.541333a42.666667 42.666667 0 0 1-60.330667-60.416L451.669333 512 332.544 392.874667a42.666667 42.666667 0 1 1 60.330667-60.416L512 451.669333l119.210667-119.210666z"})])},formatter:{type:Function,default:t=>t},parser:{type:Function,default:t=>t},maxlength:{type:Number,default:null},minlength:{type:Number,default:null},showPassword:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:""},prefixIcon:{type:[String,Object],default:""},suffixIcon:{type:[String,Object],default:""},rows:{type:Number,default:2},autosize:{type:[Boolean,Object],default:!1},name:{type:String,default:""},readonly:{type:Boolean,default:!1},max:{type:[String,Number],default:""},min:{type:[String,Number],default:""},step:{type:[String,Number],default:""},resize:{type:String,default:""},autofocus:{type:Boolean,default:!1},form:{type:String,default:""},ariaLabel:{type:String,default:""},tabindex:{type:String,default:""},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Object,default:()=>({})},label:{type:String,default:""},inputMode:{type:String,default:""}},emits:["update:modelValue","change","blur","focus","input","clear","keydown","mouseleave","mouseenter","compositionstart","compositionupdate","compositionend"],setup(t,{emit:p}){const n=t,l=p,r=e.computed({get(){return n.modelValue},set(a){l("update:modelValue",a)}}),c=a=>{l("input",a)},i=a=>{l("change",a)},f=a=>{l("blur",a)},m=a=>{l("focus",a)},y=()=>{l("clear")},u=a=>{l("keydown",a)},h=a=>{l("mouseleave",a)},b=a=>{l("mouseenter",a)},s=a=>{l("compositionstart",a)},S=a=>{l("compositionupdate",a)},o=a=>{l("compositionend",a)};return(a,d)=>{const V=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(V,e.mergeProps(n,{modelValue:e.unref(r),"onUpdate:modelValue":d[0]||(d[0]=z=>e.isRef(r)?r.value=z:null),class:"yw-input",onInput:c,onChange:i,onBlur:f,onFocus:m,onClear:y,onKeydown:u,onMouseleave:h,onMouseenter:b,onCompositionstart:s,onCompositionupdate:S,onCompositionend:o}),e.createSlots({_:2},[e.renderList(a.$slots,(z,N)=>({name:N,fn:e.withCtx(L=>[e.renderSlot(a.$slots,N,e.normalizeProps(e.guardReactiveProps(L||{})))])}))]),1040,["modelValue"])}}});x.install=t=>{t.component("YwInput",x)};const k=e.defineComponent({__name:"Select",props:{modelValue:{type:[String,Number],default:""},multiple:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({label:"label",value:"value"})},disabled:{type:Boolean,default:!1},valueKey:{type:String,default:"value"},size:{type:String,default:""},clearable:{type:Boolean,default:!0},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},multipleLimit:{type:Number,default:0},id:{type:String,default:""},name:{type:String,default:""},effect:{type:String,default:"light"},autocomplete:{type:String,default:"off"},placeholder:{type:String,default:""},filterable:{type:Boolean,default:!0},allowCreate:{type:Boolean,default:!1},filterMethod:{type:Function,default:()=>{}},remote:{type:Boolean,default:!1},remoteMethod:{type:Function,default:()=>{}},remoteShowSuffix:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingText:{type:String,default:""},noMatchText:{type:String,default:""},noDataText:{type:String,default:""},popperClass:{type:String,default:""},reserveKeyword:{type:Boolean,default:!1},defaultFirstOption:{type:Boolean,default:!1},teleported:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},automaticDropdown:{type:Boolean,default:!1},clearIcon:{type:[String,Object],default:()=>e.h("svg",{viewBox:"0 0 1024 1024",width:"12",height:"12",fill:"currentColor",class:"your-prefix-clear-icon",style:{color:"#b2b4c6"}},[e.h("path",{d:"M0 512a512 512 0 1 0 1024 0A512 512 0 0 0 0 512z m631.210667-179.541333a42.666667 42.666667 0 0 1 60.330666 60.416L572.330667 512l119.210666 119.125333a42.666667 42.666667 0 0 1-60.330666 60.416L512 572.330667 392.874667 691.541333a42.666667 42.666667 0 0 1-60.330667-60.416L451.669333 512 332.544 392.874667a42.666667 42.666667 0 1 1 60.330667-60.416L512 451.669333l119.210667-119.210666z"})])},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:[String,Object],default:()=>e.h("svg",{viewBox:"0 0 1024 1024",width:"12",height:"12",fill:"currentColor",class:"svg-icon","aria-hidden":"true",style:{color:"#1a1a1a"}},[e.h("path",{d:"M396.458667 396.458667a42.666667 42.666667 0 0 1 60.416 0L682.666667 622.336l225.792-225.877333a42.666667 42.666667 0 0 1 60.416 60.416l-256 256a42.666667 42.666667 0 0 1-60.416 0l-256-256a42.666667 42.666667 0 0 1 0-60.416z"})])},tagType:{type:String,default:"info"},tagEffect:{type:String,default:"light"},validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},showArrow:{type:Boolean,default:!0},placement:{type:String,default:"bottom-start"},maxCollapseTags:{type:Number,default:1},ariaLabel:{type:String,default:""}},emits:["update:modelValue","change","visible-change","remove-tag","clear","focus","blur","popup-scroll"],setup(t,{emit:p}){const n=t,l=e.computed(()=>n.props),r=e.useSlots(),c=e.computed(()=>r.default?.().length===0?[]:r.default?.().flatMap(o=>{const a=String(o.type);if(a.includes("yw-option")||a.includes("ywOption")){const d=o.children;return{type:g.ElOption,props:o.props||{},children:d&&d[0].children,key:o.key}}return o})),i=p,f=e.computed({get(){return n.modelValue},set(o){i("update:modelValue",o)}}),m=o=>{i("change",o)},y=o=>{i("visible-change",o)},u=o=>{i("remove-tag",o)},h=()=>{i("clear")},b=o=>{i("focus",o)},s=o=>{i("blur",o)},S=o=>{i("popup-scroll",o)};return(o,a)=>(e.openBlock(),e.createBlock(e.unref(g.ElSelect),e.mergeProps(n,{modelValue:f.value,"onUpdate:modelValue":a[0]||(a[0]=d=>f.value=d),class:"yw-select","popper-class":"yw-select-popper",onChange:m,onVisibleChange:y,onRemoveTag:u,onClear:h,onBlur:s,onFocus:b,onPopupScroll:S}),{default:e.withCtx(()=>[o.$slots.default?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value,(d,V)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.type),e.mergeProps({ref_for:!0},d.props,{key:d.key||V}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.children),1)]),_:2},1040))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.options,d=>(e.openBlock(),e.createBlock(e.unref(g.ElOption),{key:d[l.value.value],label:d[l.value.label],value:d[l.value.value],disabled:d[l.value.disabled]},null,8,["label","value","disabled"]))),128))]),_:1},16,["modelValue"]))}});k.install=t=>{t.component("YwSelect",k)};const P=[C,_,w,x,k];return{install(t){P.forEach(p=>{t.use(p)})}}});
|
|
1
|
+
(function(e,E){typeof exports=="object"&&typeof module<"u"?module.exports=E(require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["vue","element-plus"],E):(e=typeof globalThis<"u"?globalThis:e||self,e.ErpPlus=E(e.Vue,e.ElementPlus))})(this,function(e,E){"use strict";const O=e.defineComponent({__name:"Button",props:{type:{type:String,default:"default"},size:{type:String,default:"default"},plain:{type:Boolean,default:!1},text:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},round:{type:Boolean,default:!1},link:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},autoInsertSpace:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},loadingIcon:{type:[String,Object],default:void 0},icon:{type:[String,Object],default:void 0},color:{type:String,default:void 0},nativeType:{type:String,default:"button"},tag:{type:[String,Object],default:"button"}},emits:["click"],setup(t,{emit:m}){const r=e.useSlots(),o=t,l=m,u=n=>{l("click",n)};return(n,b)=>{const d=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(d,e.mergeProps(o,{class:["yw-button-"+t.type,"yw-button"],onClick:u}),e.createSlots({_:2},[e.renderList(e.unref(r),(c,k)=>({name:k,fn:e.withCtx(S=>[e.renderSlot(n.$slots,k,e.normalizeProps(e.guardReactiveProps(S||{})))])}))]),1040,["class"])}}});O.install=t=>{t.component("YwButton",O)};const q=["xlink:href","fill"],V=e.defineComponent({__name:"index",props:{iconClass:{type:String,required:!0},className:{type:String,default:""},color:{type:String,default:""}},setup(t){const m=t,r=e.computed(()=>m.className?(console.log(m.className),`svg-icon ${m.className}`):"svg-icon"),o=e.computed(()=>`#icon-${m.iconClass}`);return(l,u)=>(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(r.value),"aria-hidden":"true"},[e.createElementVNode("use",{"xlink:href":o.value,fill:t.color},null,8,q)],2))}}),A=e.defineComponent({__name:"DatePicker",props:{modelValue:{type:[String,Number,Object],default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:""},editable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},placeholder:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},type:{type:String,default:"date"},format:{type:String,default:"yyyy-MM-dd"},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},rangeSeparator:{type:String,default:" - "},defaultTime:[Date,[Date,Date]],defaultValue:{type:[Date,[Date,Date]],default:()=>""},id:{type:String,default:""},name:{type:String,default:""},unlinkPanels:{type:Boolean,default:!1},prefixIcon:{type:[String,Object],default:()=>e.h("svg",{viewBox:"0 0 1024 1024",width:"16",height:"16",fill:"currentColor",class:"svg-icon","aria-hidden":"true",style:{color:"#838599"}},[e.h("path",{d:"M640 53.312a32 32 0 0 1 32 32V256a32 32 0 0 1-64 0v-53.312H448a32 32 0 0 1 0-64h160v-53.312a32 32 0 0 1 32-32zM96 426.688a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32v384c0 64.768-52.48 117.312-117.312 117.312H213.312A117.312 117.312 0 0 1 96 810.688v-384z m64 32v352c0 29.44 23.872 53.312 53.312 53.312h597.376c29.44 0 53.312-23.872 53.312-53.312v-352h-704z"}),e.h("path",{d:"M213.312 202.688A53.312 53.312 0 0 0 160 256v170.688a32 32 0 0 1-64 0V256c0-64.768 52.48-117.312 117.312-117.312h85.376a32 32 0 0 1 0 64H213.312z"}),e.h("path",{d:"M298.688 53.312a32 32 0 0 1 32 32V256a32 32 0 1 1-64 0V85.312a32 32 0 0 1 32-32zM757.312 170.688a32 32 0 0 1 32-32h21.376c64.768 0 117.312 52.48 117.312 117.312v170.688a32 32 0 0 1-64 0V256a53.312 53.312 0 0 0-53.312-53.312h-21.376a32 32 0 0 1-32-32z"})])},clearIcon:{type:[String,Object],default:()=>e.h("svg",{viewBox:"0 0 1024 1024",width:"12",height:"12",fill:"currentColor",class:"your-prefix-clear-icon",style:{color:"#b2b4c6"}},[e.h("path",{d:"M0 512a512 512 0 1 0 1024 0A512 512 0 0 0 0 512z m631.210667-179.541333a42.666667 42.666667 0 0 1 60.330666 60.416L572.330667 512l119.210666 119.125333a42.666667 42.666667 0 0 1-60.330666 60.416L512 572.330667 392.874667 691.541333a42.666667 42.666667 0 0 1-60.330667-60.416L451.669333 512 332.544 392.874667a42.666667 42.666667 0 1 1 60.330667-60.416L512 451.669333l119.210667-119.210666z"})])},validateEvent:{type:Boolean,default:!0},disabledDate:{type:Function,default:()=>!1},valueFormat:{type:String,default:"yyyy-MM-dd"},shortcuts:{type:Array,default:()=>[]},cellClassName:{type:Function,default:()=>""},teleported:{type:Boolean,default:!0},emptyValues:{type:Array,default:()=>[]},valueOnClear:{type:[String,Number,Boolean,Function],default:()=>""},placement:{type:String,default:"bottom"},showFooter:{type:Boolean,default:!0},showWeekNumber:{type:Boolean,default:!1}},emits:["update:modelValue","change","clear","blur","focus","calendar-change","visible-change","panel-change"],setup(t,{emit:m}){const r=t,o=e.computed(()=>r.type==="daterange"||r.type==="datetimerange"?`yw-daterange-picker ${r.popperClass}`:`yw-date-picker ${r.popperClass}`),l=m,u=e.computed({get(){return r.modelValue},set(y){l("update:modelValue",y)}}),n=y=>{l("change",y)},b=y=>{l("clear",y)},d=y=>{l("blur",y)},c=y=>{l("focus",y)},k=y=>{l("calendar-change",y)},S=y=>{l("visible-change",y)},x=y=>{l("panel-change",y)};return(y,w)=>{const f=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(f,e.mergeProps(r,{modelValue:u.value,"onUpdate:modelValue":w[0]||(w[0]=i=>u.value=i),popperClass:o.value,onChange:n,onClear:b,onBlur:d,onFocus:c,onCalendarChange:k,onVisibleChange:S,onPanelChange:x}),{"prev-month":e.withCtx(()=>[e.createVNode(V,{iconClass:"16_16_arrow_left",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),"next-month":e.withCtx(()=>[e.createVNode(V,{iconClass:"16_16_arrow_right",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),"prev-year":e.withCtx(()=>[e.createVNode(V,{iconClass:"16_16_arrow_2left",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),"next-year":e.withCtx(()=>[e.createVNode(V,{iconClass:"16_16_arrow_2right",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),_:1},16,["modelValue","popperClass"])}}});A.install=t=>{t.component("YwDatePicker",A)};const M=e.defineComponent({__name:"Avatar",props:{size:{type:Number,default:40},shape:{type:String,default:"circle"},icon:{type:String,default:""},src:{type:String,default:""},alt:{type:String,default:""},srcSet:{type:String,default:""},fit:{type:String,default:"cover"}},emits:["error"],setup(t,{emit:m}){const r=t,o=m,l=u=>{o("error",u)};return(u,n)=>{const b=e.resolveComponent("el-avatar");return e.openBlock(),e.createBlock(b,e.mergeProps(r,{onError:l}),e.createSlots({_:2},[e.renderList(u.$slots,(d,c)=>({name:c,fn:e.withCtx(k=>[e.renderSlot(u.$slots,c,e.normalizeProps(e.guardReactiveProps(k||{})))])}))]),1040)}}});M.install=t=>{t.component("YwAvatar",M)};const L=e.defineComponent({__name:"Input",props:{modelValue:{type:[String,Number],default:""},type:{type:String,default:"text"},showWordLimit:{type:Boolean,default:!1},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:()=>e.h("svg",{viewBox:"0 0 1024 1024",width:"12",height:"12",fill:"currentColor",class:"your-prefix-clear-icon",style:{color:"#b2b4c6"}},[e.h("path",{d:"M0 512a512 512 0 1 0 1024 0A512 512 0 0 0 0 512z m631.210667-179.541333a42.666667 42.666667 0 0 1 60.330666 60.416L572.330667 512l119.210666 119.125333a42.666667 42.666667 0 0 1-60.330666 60.416L512 572.330667 392.874667 691.541333a42.666667 42.666667 0 0 1-60.330667-60.416L451.669333 512 332.544 392.874667a42.666667 42.666667 0 1 1 60.330667-60.416L512 451.669333l119.210667-119.210666z"})])},formatter:{type:Function,default:t=>t},parser:{type:Function,default:t=>t},maxlength:{type:Number,default:null},minlength:{type:Number,default:null},showPassword:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:""},prefixIcon:{type:[String,Object],default:""},suffixIcon:{type:[String,Object],default:""},rows:{type:Number,default:2},autosize:{type:[Boolean,Object],default:!1},name:{type:String,default:""},readonly:{type:Boolean,default:!1},max:{type:[String,Number],default:""},min:{type:[String,Number],default:""},step:{type:[String,Number],default:""},resize:{type:String,default:""},autofocus:{type:Boolean,default:!1},form:{type:String,default:""},ariaLabel:{type:String,default:""},tabindex:{type:String,default:""},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Object,default:()=>({})},label:{type:String,default:""},inputMode:{type:String,default:""}},emits:["update:modelValue","change","blur","focus","input","clear","keydown","mouseleave","mouseenter","compositionstart","compositionupdate","compositionend"],setup(t,{emit:m}){const r=t,o=m,l=e.computed({get(){return r.modelValue},set(i){o("update:modelValue",i)}}),u=i=>{o("input",i)},n=i=>{o("change",i)},b=i=>{o("blur",i)},d=i=>{o("focus",i)},c=()=>{o("clear")},k=i=>{o("keydown",i)},S=i=>{o("mouseleave",i)},x=i=>{o("mouseenter",i)},y=i=>{o("compositionstart",i)},w=i=>{o("compositionupdate",i)},f=i=>{o("compositionend",i)};return(i,B)=>{const D=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(D,e.mergeProps(r,{modelValue:e.unref(l),"onUpdate:modelValue":B[0]||(B[0]=F=>e.isRef(l)?l.value=F:null),class:"yw-input",onInput:u,onChange:n,onBlur:b,onFocus:d,onClear:c,onKeydown:k,onMouseleave:S,onMouseenter:x,onCompositionstart:y,onCompositionupdate:w,onCompositionend:f}),e.createSlots({_:2},[e.renderList(i.$slots,(F,p)=>({name:p,fn:e.withCtx(C=>[e.renderSlot(i.$slots,p,e.normalizeProps(e.guardReactiveProps(C||{})))])}))]),1040,["modelValue"])}}});L.install=t=>{t.component("YwInput",L)};const T=e.defineComponent({__name:"Select",props:{modelValue:{type:[String,Number],default:""},multiple:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({label:"label",value:"value"})},disabled:{type:Boolean,default:!1},valueKey:{type:String,default:"value"},size:{type:String,default:""},clearable:{type:Boolean,default:!0},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},multipleLimit:{type:Number,default:0},id:{type:String,default:""},name:{type:String,default:""},effect:{type:String,default:"light"},autocomplete:{type:String,default:"off"},placeholder:{type:String,default:""},filterable:{type:Boolean,default:!0},allowCreate:{type:Boolean,default:!1},filterMethod:{type:Function,default:()=>{}},remote:{type:Boolean,default:!1},remoteMethod:{type:Function,default:()=>{}},remoteShowSuffix:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingText:{type:String,default:""},noMatchText:{type:String,default:""},noDataText:{type:String,default:""},popperClass:{type:String,default:""},reserveKeyword:{type:Boolean,default:!1},defaultFirstOption:{type:Boolean,default:!1},teleported:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},automaticDropdown:{type:Boolean,default:!1},clearIcon:{type:[String,Object],default:()=>e.h("svg",{viewBox:"0 0 1024 1024",width:"12",height:"12",fill:"currentColor",class:"your-prefix-clear-icon",style:{color:"#b2b4c6"}},[e.h("path",{d:"M0 512a512 512 0 1 0 1024 0A512 512 0 0 0 0 512z m631.210667-179.541333a42.666667 42.666667 0 0 1 60.330666 60.416L572.330667 512l119.210666 119.125333a42.666667 42.666667 0 0 1-60.330666 60.416L512 572.330667 392.874667 691.541333a42.666667 42.666667 0 0 1-60.330667-60.416L451.669333 512 332.544 392.874667a42.666667 42.666667 0 1 1 60.330667-60.416L512 451.669333l119.210667-119.210666z"})])},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:[String,Object],default:()=>e.h("svg",{viewBox:"0 0 1024 1024",width:"12",height:"12",fill:"currentColor",class:"svg-icon","aria-hidden":"true",style:{color:"#1a1a1a"}},[e.h("path",{d:"M396.458667 396.458667a42.666667 42.666667 0 0 1 60.416 0L682.666667 622.336l225.792-225.877333a42.666667 42.666667 0 0 1 60.416 60.416l-256 256a42.666667 42.666667 0 0 1-60.416 0l-256-256a42.666667 42.666667 0 0 1 0-60.416z"})])},tagType:{type:String,default:"info"},tagEffect:{type:String,default:"light"},validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},showArrow:{type:Boolean,default:!0},placement:{type:String,default:"bottom-start"},maxCollapseTags:{type:Number,default:1},ariaLabel:{type:String,default:""}},emits:["update:modelValue","change","visible-change","remove-tag","clear","focus","blur","popup-scroll"],setup(t,{emit:m}){const r=t,o=e.computed(()=>r.props),l=e.useSlots(),u=e.computed(()=>l.default?.().length===0?[]:l.default?.().flatMap(f=>{const i=String(f.type);if(i.includes("yw-option")||i.includes("ywOption")){const B=f.children;return{type:E.ElOption,props:f.props||{},children:B&&B[0].children,key:f.key}}return f})),n=m,b=e.computed({get(){return r.modelValue},set(f){n("update:modelValue",f)}}),d=f=>{n("change",f)},c=f=>{n("visible-change",f)},k=f=>{n("remove-tag",f)},S=()=>{n("clear")},x=f=>{n("focus",f)},y=f=>{n("blur",f)},w=f=>{n("popup-scroll",f)};return(f,i)=>(e.openBlock(),e.createBlock(e.unref(E.ElSelect),e.mergeProps(r,{modelValue:b.value,"onUpdate:modelValue":i[0]||(i[0]=B=>b.value=B),class:"yw-select","popper-class":"yw-select-popper",onChange:d,onVisibleChange:c,onRemoveTag:k,onClear:S,onBlur:y,onFocus:x,onPopupScroll:w}),{default:e.withCtx(()=>[f.$slots.default?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,(B,D)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(B.type),e.mergeProps({ref_for:!0},B.props,{key:B.key||D}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.children),1)]),_:2},1040))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.options,B=>(e.openBlock(),e.createBlock(e.unref(E.ElOption),{key:B[o.value.value],label:B[o.value.label],value:B[o.value.value],disabled:B[o.value.disabled]},null,8,["label","value","disabled"]))),128))]),_:1},16,["modelValue"]))}});T.install=t=>{t.component("YwSelect",T)},V.install=t=>{t.component("YwSvgIcon",V)};const G={class:"custom-checkbox-group"},U=["onClick"],W={class:"custom-checkbox"},J={class:"checkbox-label"},R=e.defineComponent({__name:"CheckboxGroup",props:{modelValue:{type:[Array,String,Number,Boolean]},disabled:{type:Boolean},options:{}},emits:["update:modelValue","change"],setup(t,{emit:m}){const r=t,o=m,l=n=>Array.isArray(r.modelValue)?r.modelValue.includes(n):r.modelValue===n,u=(n,b)=>{if(b||r.disabled)return;let d;Array.isArray(r.modelValue)?l(n)?d=r.modelValue.filter(c=>c!==n):d=[...r.modelValue,n]:l(n)?d="":d=n,o("update:modelValue",d),o("change",d)};return(n,b)=>{const d=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",G,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.options,(c,k)=>(e.openBlock(),e.createElementBlock("div",{key:k,class:e.normalizeClass(["custom-checkbox-wrapper",{"is-checked":l(c.value),"is-disabled":c.disabled||n.disabled}]),onClick:S=>u(c.value,c.disabled)},[e.createElementVNode("span",W,[l(c.value)?(e.openBlock(),e.createBlock(d,{key:0,style:{width:"16px",height:"16px"},"icon-class":c.disabled||n.disabled?"checked_disabled_fill":"checked_fill"},null,8,["icon-class"])):(e.openBlock(),e.createBlock(d,{key:1,style:{width:"16px",height:"16px"},"icon-class":c.disabled||n.disabled?"unchecked_disabled":"unchecked"},null,8,["icon-class"])),e.createElementVNode("span",J,e.toDisplayString(c.label),1)])],10,U))),128))])}}});R.install=t=>{t.component("YwCheckboxGroup",R)};const Q={class:"custom-checkbox-group"},X=["onClick"],Z={class:"custom-checkbox"},v={class:"checkbox-label"},j=e.defineComponent({__name:"RadioGroup",props:{modelValue:{type:[Array,String,Number,Boolean]},disabled:{type:Boolean},options:{}},emits:["update:modelValue","change"],setup(t,{emit:m}){const r=t,o=m,l=n=>Array.isArray(r.modelValue)?r.modelValue.includes(n):r.modelValue===n,u=(n,b)=>{if(b||r.disabled)return;let d;Array.isArray(r.modelValue)?l(n)?d=r.modelValue.filter(c=>c!==n):d=[...r.modelValue,n]:l(n)?d="":d=n,o("update:modelValue",d),o("change",d)};return(n,b)=>{const d=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",Q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.options,(c,k)=>(e.openBlock(),e.createElementBlock("div",{key:k,class:e.normalizeClass(["custom-checkbox-wrapper",{"is-checked":l(c.value),"is-disabled":c.disabled||n.disabled}]),onClick:S=>u(c.value,c.disabled)},[e.createElementVNode("span",Z,[l(c.value)?(e.openBlock(),e.createBlock(d,{key:0,style:{width:"16px",height:"16px"},"icon-class":c.disabled||n.disabled?"checked_disabled_fill":"checked_fill"},null,8,["icon-class"])):(e.openBlock(),e.createBlock(d,{key:1,style:{width:"16px",height:"16px"},"icon-class":c.disabled||n.disabled?"unchecked_disabled":"unchecked"},null,8,["icon-class"])),e.createElementVNode("span",v,e.toDisplayString(c.label),1)])],10,X))),128))])}}});j.install=t=>{t.component("YwRadioGroup",j)};const ee={key:1,class:"dialog-footer"},Y=e.defineComponent({__name:"Dialog",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:[String,Number],default:"50%"},fullscreen:{type:Boolean,default:!1},top:{type:String,default:"15vh"},modal:{type:Boolean,default:!1},modalPenetrable:{type:Boolean,default:!1},modalClass:{type:String,default:""},headerClass:{type:String,default:""},bodyClass:{type:String,default:""},footerClass:{type:String,default:""},appendToBody:{type:Boolean,default:!1},appendTo:{type:String,default:"body"},lockScroll:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},closeOnClickModal:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},beforeClose:{type:Function,default:t=>t},draggable:{type:Boolean,default:!1},overflow:{type:Boolean,default:!1},center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},destroyOnClose:{type:Boolean,default:!1},closeIcon:{type:Function,default:()=>e.h(V,{iconClass:"16_16_close",color:"#1a1a1a"})},zIndex:{type:Number,default:2e3},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确定"}},emits:["open","opened","close","closed","open-auto-focus","close-auto-focus","submit"],setup(t,{emit:m}){const r=m,o=()=>{r("open")},l=()=>{r("opened")},u=()=>{r("close")},n=()=>{r("closed")},b=()=>{r("open-auto-focus")},d=()=>{r("close-auto-focus")},c=()=>{r("submit")};return(k,S)=>{const x=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(x,e.mergeProps({class:"yw-dialog"},k.$props,{onOpen:o,onOpened:l,onClose:u,onClosed:n,onOpenAutoFocus:b,onCloseAutoFocus:d}),e.createSlots({footer:e.withCtx(()=>[k.$slots.footer?e.renderSlot(k.$slots,"footer",{key:0}):(e.openBlock(),e.createElementBlock("div",ee,[e.createVNode(O,{onClick:u},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.cancelText),1)]),_:1}),e.createVNode(O,{type:"primary",onClick:c},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.confirmText),1)]),_:1})]))]),_:2},[e.renderList(k.$slots,(y,w)=>({name:w,fn:e.withCtx(f=>[e.renderSlot(k.$slots,w,e.normalizeProps(e.guardReactiveProps(f||{})))])}))]),1040)}}});Y.install=t=>{t.component("YwDialog",Y)};const H=e.defineComponent({__name:"Tree",props:{data:{type:Array,default:()=>[]},emptyText:{type:String,default:""},nodeKey:{type:String,default:"id"},props:{type:Object,default:()=>({label:"label",children:"children"})},renderAfterExpand:{type:Boolean,default:!0},load:{type:Function},renderContent:{type:Function},highlightCurrent:{type:Boolean,default:!0},defaultExpandAll:{type:Boolean,default:!1},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultExpandedKeys:{type:Array,default:()=>[]},showCheckbox:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},defaultCheckedKeys:{type:Array,default:()=>[]},currentNodeKey:{type:[String,Number],default:""},filterNodeMethod:{type:Function},accordion:{type:Boolean,default:!1},indent:{type:Number,default:16},icon:{type:Object,default:()=>e.h(V,{iconClass:"12_12_fill_arrow_right"})},lazy:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:{type:Function},allowDrop:{type:Function}},emits:["node-click","node-contextmenu","check-change","check","current-change","node-expand","node-collapse","node-drag-start","node-drag-enter","node-drag-leave","node-drag-over","node-drag-end","node-drop"],setup(t,{expose:m,emit:r}){const o=t,l=r,u=e.ref(),n=(p,C,_)=>{l("node-click",p,C,_)},b=(p,C,_)=>{l("node-contextmenu",p,C,_)},d=(p,C,_)=>{l("check-change",p,C,_)},c=(p,C)=>{l("check",p,C)},k=p=>{l("current-change",p)},S=p=>{l("node-expand",p)},x=p=>{l("node-collapse",p)},y=(p,C)=>{l("node-drag-start",p,C)},w=(p,C,_)=>{l("node-drag-enter",p,C,_)},f=(p,C,_)=>{l("node-drag-leave",p,C,_)},i=(p,C,_)=>{l("node-drag-over",p,C,_)},B=(p,C,_)=>{l("node-drag-end",p,C,_)},D=(p,C,_,P)=>{l("node-drop",p,C,_,P)};return m({clearSelection:()=>{const p=u.value;p&&p.setCurrentKey(null)}}),(p,C)=>{const _=e.resolveComponent("el-tree");return e.openBlock(),e.createBlock(_,e.mergeProps({ref_key:"treeRef",ref:u,class:"custom-tree"},o,{onNodeClick:n,onNodeContextmenu:b,onCheckChange:d,onCheck:c,onCurrentChange:k,onNodeExpand:S,onNodeCollapse:x,onNodeDragStart:y,onNodeDragEnter:w,onNodeDragLeave:f,onNodeDragOver:i,onNodeDragEnd:B,onNodeDrop:D}),{default:e.withCtx(({node:P,data:K})=>[e.renderSlot(p.$slots,"default",{node:P,data:K})]),_:3},16)}}});H.install=t=>{t.component("YwTree",H)};const I=((t,m)=>{const r=t.__vccOpts||t;for(const[o,l]of m)r[o]=l;return r})(e.defineComponent({__name:"Table",props:{data:{default:()=>[]},columns:{},height:{default:"auto"},maxHeight:{default:"auto"},stripe:{type:Boolean,default:!1},border:{type:Boolean,default:!1},size:{},showHeader:{type:Boolean,default:!0},highlightCurrentRow:{type:Boolean},rowClassName:{},rowStyle:{},cellClassName:{},cellStyle:{},headerRowClassName:{},headerRowStyle:{},headerCellClassName:{},headerCellStyle:{}},emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-click","cell-dblclick","cell-contextmenu","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(t,{expose:m,emit:r}){const o=r,l=t,u=e.ref({}),n=e.ref(),b=(a,s)=>u.value[a]?.[s],d=(a,s,h)=>{u.value[a]||(u.value[a]={}),h?u.value[a][s]=h:(delete u.value[a][s],Object.keys(u.value[a]).length===0&&delete u.value[a])},c=(a,s)=>{const h=l.columns?.find(N=>N.prop===s),g=l.data?.[a];if(!h||!h.required||!s||!g)return d(a,s,null),!0;const $=g[s];return $==null||$===""?(d(a,s,`${h.label||h.prop} 为必填项`),!1):(d(a,s,null),!0)};m({validate:async()=>{if(!l.columns||!l.data)return!0;let a=!0;return l.data.forEach((s,h)=>{l.columns.forEach(g=>{g.required&&g.prop&&g.slotName&&(c(h,g.prop)||(a=!1))})}),a},clearValidate:()=>{u.value={}},validateCell:c,tableRef:n});const x=(a,s)=>{o("select",a,s)},y=a=>{o("select-all",a)},w=a=>{o("selection-change",a)},f=(a,s,h,g)=>{o("cell-mouse-enter",a,s,h,g)},i=(a,s,h,g)=>{o("cell-mouse-leave",a,s,h,g)},B=(a,s,h,g)=>{o("cell-click",a,s,h,g)},D=(a,s,h,g)=>{o("cell-dblclick",a,s,h,g)},F=(a,s,h,g)=>{o("cell-contextmenu",a,s,h,g)},p=(a,s,h,g)=>{o("row-click",a,s,h,g)},C=(a,s,h,g)=>{o("row-dblclick",a,s,h,g)},_=(a,s,h,g)=>{o("row-contextmenu",a,s,h,g)},P=(a,s)=>{o("header-click",a,s)},K=(a,s)=>{o("header-contextmenu",a,s)},le=a=>{o("sort-change",a)},oe=a=>{o("filter-change",a)},ae=(a,s)=>{o("current-change",a,s)},ne=(a,s,h)=>{o("header-dragend",a,s,h)},re=(a,s)=>{o("expand-change",a,s)},se=a=>{o("scroll",a)};return(a,s)=>{const h=e.resolveComponent("el-tooltip"),g=e.resolveComponent("el-table-column"),$=e.resolveComponent("el-table");return e.openBlock(),e.createBlock($,e.mergeProps({ref_key:"tableRef",ref:n},l,{data:l.data,onSelect:x,onSelectAll:y,onSelectionChange:w,onCellMouseEnter:f,onCellMouseLeave:i,onCellClick:B,onCellDblclick:D,onCellContextmenu:F,onRowClick:p,onRowContextmenu:_,onRowDblclick:C,onHeaderClick:P,onHeaderContextmenu:K,onSortChange:le,onFilterChange:oe,onCurrentChange:ae,onHeaderDragend:ne,onExpandChange:re,onScroll:se}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.columns,(N,ce)=>(e.openBlock(),e.createBlock(g,e.mergeProps({key:ce},{ref_for:!0},N),e.createSlots({_:2},[N.slotName?{name:"default",fn:e.withCtx(z=>[e.createVNode(h,{visible:!!b(z.$index,N.prop),"show-arrow":!1,content:b(z.$index,N.prop),placement:"bottom-start",manual:"",effect:"light","popper-class":"yw-table-error-tip"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["yw-table-cell-content",{"is-error":b(z.$index,N.prop)}])},[e.renderSlot(a.$slots,N.slotName,e.mergeProps({ref_for:!0},z||{}),void 0,!0)],2)]),_:2},1032,["visible","content"])]),key:"0"}:void 0]),1040))),128))]),_:3},16,["data"])}}}),[["__scopeId","data-v-509678e0"]]);I.install=t=>{t.component("YwTable",I)};const te=[O,A,M,L,T,V,R,j,Y,H,I];return{install(t){te.forEach(m=>{t.use(m)})}}});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: Array<string | number | boolean> | string | number | boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
options: Array<{
|
|
6
|
+
label: string;
|
|
7
|
+
value: string | number | boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
12
|
+
change: (value: string | number | boolean | (string | number | boolean)[]) => any;
|
|
13
|
+
"update:modelValue": (value: string | number | boolean | (string | number | boolean)[]) => any;
|
|
14
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onChange?: ((value: string | number | boolean | (string | number | boolean)[]) => any) | undefined;
|
|
16
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean | (string | number | boolean)[]) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
|
+
export default _default;
|
|
@@ -96,6 +96,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
96
96
|
type: FunctionConstructor;
|
|
97
97
|
default: () => boolean;
|
|
98
98
|
};
|
|
99
|
+
valueFormat: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
99
103
|
shortcuts: {
|
|
100
104
|
type: ArrayConstructor;
|
|
101
105
|
default: () => never[];
|
|
@@ -231,6 +235,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
231
235
|
type: FunctionConstructor;
|
|
232
236
|
default: () => boolean;
|
|
233
237
|
};
|
|
238
|
+
valueFormat: {
|
|
239
|
+
type: StringConstructor;
|
|
240
|
+
default: string;
|
|
241
|
+
};
|
|
234
242
|
shortcuts: {
|
|
235
243
|
type: ArrayConstructor;
|
|
236
244
|
default: () => never[];
|
|
@@ -295,6 +303,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
295
303
|
clearIcon: string | Record<string, any>;
|
|
296
304
|
validateEvent: boolean;
|
|
297
305
|
disabledDate: Function;
|
|
306
|
+
valueFormat: string;
|
|
298
307
|
shortcuts: unknown[];
|
|
299
308
|
cellClassName: Function;
|
|
300
309
|
teleported: boolean;
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import { PropType, VNode, DefineComponent, ExtractPropTypes, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: any;
|
|
5
|
+
refs: {};
|
|
6
|
+
rootEl: any;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
title: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
width: {
|
|
19
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
fullscreen: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
top: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
modal: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
modalPenetrable: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
modalClass: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
headerClass: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
bodyClass: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
footerClass: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
appendToBody: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
appendTo: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
lockScroll: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
openDelay: {
|
|
67
|
+
type: NumberConstructor;
|
|
68
|
+
default: number;
|
|
69
|
+
};
|
|
70
|
+
closeDelay: {
|
|
71
|
+
type: NumberConstructor;
|
|
72
|
+
default: number;
|
|
73
|
+
};
|
|
74
|
+
closeOnClickModal: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
closeOnPressEscape: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
showClose: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
beforeClose: {
|
|
87
|
+
type: PropType<(done: any) => void>;
|
|
88
|
+
default: (done: any) => any;
|
|
89
|
+
};
|
|
90
|
+
draggable: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
overflow: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
center: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
alignCenter: {
|
|
103
|
+
type: BooleanConstructor;
|
|
104
|
+
default: boolean;
|
|
105
|
+
};
|
|
106
|
+
destroyOnClose: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default: boolean;
|
|
109
|
+
};
|
|
110
|
+
closeIcon: {
|
|
111
|
+
type: PropType<() => VNode>;
|
|
112
|
+
default: () => VNode< RendererNode, RendererElement, {
|
|
113
|
+
[key: string]: any;
|
|
114
|
+
}>;
|
|
115
|
+
};
|
|
116
|
+
zIndex: {
|
|
117
|
+
type: NumberConstructor;
|
|
118
|
+
default: number;
|
|
119
|
+
};
|
|
120
|
+
cancelText: {
|
|
121
|
+
type: StringConstructor;
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
confirmText: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
128
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
129
|
+
submit: (...args: any[]) => void;
|
|
130
|
+
close: (...args: any[]) => void;
|
|
131
|
+
open: (...args: any[]) => void;
|
|
132
|
+
opened: (...args: any[]) => void;
|
|
133
|
+
closed: (...args: any[]) => void;
|
|
134
|
+
"open-auto-focus": (...args: any[]) => void;
|
|
135
|
+
"close-auto-focus": (...args: any[]) => void;
|
|
136
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
137
|
+
modelValue: {
|
|
138
|
+
type: BooleanConstructor;
|
|
139
|
+
default: boolean;
|
|
140
|
+
};
|
|
141
|
+
title: {
|
|
142
|
+
type: StringConstructor;
|
|
143
|
+
default: string;
|
|
144
|
+
};
|
|
145
|
+
width: {
|
|
146
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
147
|
+
default: string;
|
|
148
|
+
};
|
|
149
|
+
fullscreen: {
|
|
150
|
+
type: BooleanConstructor;
|
|
151
|
+
default: boolean;
|
|
152
|
+
};
|
|
153
|
+
top: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
default: string;
|
|
156
|
+
};
|
|
157
|
+
modal: {
|
|
158
|
+
type: BooleanConstructor;
|
|
159
|
+
default: boolean;
|
|
160
|
+
};
|
|
161
|
+
modalPenetrable: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
default: boolean;
|
|
164
|
+
};
|
|
165
|
+
modalClass: {
|
|
166
|
+
type: StringConstructor;
|
|
167
|
+
default: string;
|
|
168
|
+
};
|
|
169
|
+
headerClass: {
|
|
170
|
+
type: StringConstructor;
|
|
171
|
+
default: string;
|
|
172
|
+
};
|
|
173
|
+
bodyClass: {
|
|
174
|
+
type: StringConstructor;
|
|
175
|
+
default: string;
|
|
176
|
+
};
|
|
177
|
+
footerClass: {
|
|
178
|
+
type: StringConstructor;
|
|
179
|
+
default: string;
|
|
180
|
+
};
|
|
181
|
+
appendToBody: {
|
|
182
|
+
type: BooleanConstructor;
|
|
183
|
+
default: boolean;
|
|
184
|
+
};
|
|
185
|
+
appendTo: {
|
|
186
|
+
type: StringConstructor;
|
|
187
|
+
default: string;
|
|
188
|
+
};
|
|
189
|
+
lockScroll: {
|
|
190
|
+
type: BooleanConstructor;
|
|
191
|
+
default: boolean;
|
|
192
|
+
};
|
|
193
|
+
openDelay: {
|
|
194
|
+
type: NumberConstructor;
|
|
195
|
+
default: number;
|
|
196
|
+
};
|
|
197
|
+
closeDelay: {
|
|
198
|
+
type: NumberConstructor;
|
|
199
|
+
default: number;
|
|
200
|
+
};
|
|
201
|
+
closeOnClickModal: {
|
|
202
|
+
type: BooleanConstructor;
|
|
203
|
+
default: boolean;
|
|
204
|
+
};
|
|
205
|
+
closeOnPressEscape: {
|
|
206
|
+
type: BooleanConstructor;
|
|
207
|
+
default: boolean;
|
|
208
|
+
};
|
|
209
|
+
showClose: {
|
|
210
|
+
type: BooleanConstructor;
|
|
211
|
+
default: boolean;
|
|
212
|
+
};
|
|
213
|
+
beforeClose: {
|
|
214
|
+
type: PropType<(done: any) => void>;
|
|
215
|
+
default: (done: any) => any;
|
|
216
|
+
};
|
|
217
|
+
draggable: {
|
|
218
|
+
type: BooleanConstructor;
|
|
219
|
+
default: boolean;
|
|
220
|
+
};
|
|
221
|
+
overflow: {
|
|
222
|
+
type: BooleanConstructor;
|
|
223
|
+
default: boolean;
|
|
224
|
+
};
|
|
225
|
+
center: {
|
|
226
|
+
type: BooleanConstructor;
|
|
227
|
+
default: boolean;
|
|
228
|
+
};
|
|
229
|
+
alignCenter: {
|
|
230
|
+
type: BooleanConstructor;
|
|
231
|
+
default: boolean;
|
|
232
|
+
};
|
|
233
|
+
destroyOnClose: {
|
|
234
|
+
type: BooleanConstructor;
|
|
235
|
+
default: boolean;
|
|
236
|
+
};
|
|
237
|
+
closeIcon: {
|
|
238
|
+
type: PropType<() => VNode>;
|
|
239
|
+
default: () => VNode< RendererNode, RendererElement, {
|
|
240
|
+
[key: string]: any;
|
|
241
|
+
}>;
|
|
242
|
+
};
|
|
243
|
+
zIndex: {
|
|
244
|
+
type: NumberConstructor;
|
|
245
|
+
default: number;
|
|
246
|
+
};
|
|
247
|
+
cancelText: {
|
|
248
|
+
type: StringConstructor;
|
|
249
|
+
default: string;
|
|
250
|
+
};
|
|
251
|
+
confirmText: {
|
|
252
|
+
type: StringConstructor;
|
|
253
|
+
default: string;
|
|
254
|
+
};
|
|
255
|
+
}>> & Readonly<{
|
|
256
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
257
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
258
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
259
|
+
onOpened?: ((...args: any[]) => any) | undefined;
|
|
260
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
|
261
|
+
"onOpen-auto-focus"?: ((...args: any[]) => any) | undefined;
|
|
262
|
+
"onClose-auto-focus"?: ((...args: any[]) => any) | undefined;
|
|
263
|
+
}>, {
|
|
264
|
+
title: string;
|
|
265
|
+
top: string;
|
|
266
|
+
modelValue: boolean;
|
|
267
|
+
width: string | number;
|
|
268
|
+
appendTo: string;
|
|
269
|
+
fullscreen: boolean;
|
|
270
|
+
modal: boolean;
|
|
271
|
+
modalPenetrable: boolean;
|
|
272
|
+
modalClass: string;
|
|
273
|
+
headerClass: string;
|
|
274
|
+
bodyClass: string;
|
|
275
|
+
footerClass: string;
|
|
276
|
+
appendToBody: boolean;
|
|
277
|
+
lockScroll: boolean;
|
|
278
|
+
openDelay: number;
|
|
279
|
+
closeDelay: number;
|
|
280
|
+
closeOnClickModal: boolean;
|
|
281
|
+
closeOnPressEscape: boolean;
|
|
282
|
+
showClose: boolean;
|
|
283
|
+
beforeClose: (done: any) => void;
|
|
284
|
+
draggable: boolean;
|
|
285
|
+
overflow: boolean;
|
|
286
|
+
center: boolean;
|
|
287
|
+
alignCenter: boolean;
|
|
288
|
+
destroyOnClose: boolean;
|
|
289
|
+
closeIcon: () => VNode;
|
|
290
|
+
zIndex: number;
|
|
291
|
+
cancelText: string;
|
|
292
|
+
confirmText: string;
|
|
293
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
294
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
295
|
+
export default _default;
|
|
296
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
297
|
+
new (): {
|
|
298
|
+
$slots: S;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: Array<string | number | boolean> | string | number | boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
options: Array<{
|
|
6
|
+
label: string;
|
|
7
|
+
value: string | number | boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
12
|
+
change: (value: string | number | boolean | (string | number | boolean)[]) => any;
|
|
13
|
+
"update:modelValue": (value: string | number | boolean | (string | number | boolean)[]) => any;
|
|
14
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onChange?: ((value: string | number | boolean | (string | number | boolean)[]) => any) | undefined;
|
|
16
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean | (string | number | boolean)[]) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
|
+
export default _default;
|