erp-plus 1.0.11 → 1.0.12
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 +243 -404
- package/dist/types/erp-plus.umd.js +1 -1
- package/dist/types/packages/DatePicker/DatePicker.vue.d.ts +6 -6
- package/dist/types/packages/Select/Select.vue.d.ts +6 -6
- package/package.json +1 -1
- package/dist/types/packages/Form/Form.vue.d.ts +0 -173
- package/dist/types/packages/Form/index.d.ts +0 -4
- package/dist/types/packages/FormItem/FormItem.vue.d.ts +0 -144
- package/dist/types/packages/FormItem/index.d.ts +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,_){typeof exports=="object"&&typeof module<"u"?module.exports=_(require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["vue","element-plus"],_):(e=typeof globalThis<"u"?globalThis:e||self,e.ErpPlus=_(e.Vue,e.ElementPlus))})(this,function(e,_){"use strict";const b=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 s=e.useSlots(),l=t,n=p,f=c=>{n("click",c)};return(c,y)=>{const g=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(g,e.mergeProps(l,{class:["yw-button-"+t.type,"yw-button"],onClick:f}),e.createSlots({_:2},[e.renderList(e.unref(s),(i,o)=>({name:o,fn:e.withCtx(u=>[e.renderSlot(c.$slots,o,e.normalizeProps(e.guardReactiveProps(u||{})))])}))]),1040,["class"])}}});b.install=t=>{t.component("YwButton",b)};const $=["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,s=e.computed(()=>p.className?(console.log(p.className),`svg-icon ${p.className}`):"svg-icon"),l=e.computed(()=>`#icon-${p.iconClass}`);return(n,f)=>(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(s.value),"aria-hidden":"true"},[e.createElementVNode("use",{"xlink:href":l.value,fill:t.color},null,8,$)],2))}}),C=((t,p)=>{const s=t.__vccOpts||t;for(const[l,n]of p)s[l]=n;return s})(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,default:()=>e.h(B,{iconClass:"16_16_calendar",color:"#838599"})},clearIcon:{type:String,default:()=>e.h(B,{iconClass:"12_12_fill_delete",color:"#b2b4c6"})},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 s=t,l=e.computed(()=>s.type==="daterange"||s.type==="datetimerange"?`yw-daterange-picker ${s.popperClass}`:`yw-date-picker ${s.popperClass}`),n=p,f=e.computed({get(){return s.modelValue},set(d){n("update:modelValue",d)}}),c=d=>{n("change",d)},y=d=>{n("clear",d)},g=d=>{n("blur",d)},i=d=>{n("focus",d)},o=d=>{n("calendar-change",d)},u=d=>{n("visible-change",d)},S=d=>{n("panel-change",d)};return(d,h)=>{const r=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(r,e.mergeProps(s,{modelValue:f.value,"onUpdate:modelValue":h[0]||(h[0]=a=>f.value=a),popperClass:l.value,onChange:c,onClear:y,onBlur:g,onFocus:i,onCalendarChange:o,onVisibleChange:u,onPanelChange:S}),{"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-3083e764"]]);C.install=t=>{t.component("YwDatePicker",C)};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 s=t,l=p,n=f=>{l("error",f)};return(f,c)=>{const y=e.resolveComponent("el-avatar");return e.openBlock(),e.createBlock(y,e.mergeProps(s,{onError:n}),e.createSlots({_:2},[e.renderList(f.$slots,(g,i)=>({name:i,fn:e.withCtx(o=>[e.renderSlot(f.$slots,i,e.normalizeProps(e.guardReactiveProps(o||{})))])}))]),1040)}}});w.install=t=>{t.component("YwAvatar",w)};const k=e.defineComponent({__name:"Form",props:{modelValue:{type:Object,default:{}},rules:{type:Object,default:{}},inline:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"},labelWidth:{type:String,default:""},labelSuffix:{type:String,default:""},hideRequiredAsterisk:{type:Boolean,default:!1},requireAsteriskPosition:{type:String,default:"left"},showMessage:{type:Boolean,default:!0},inlineMessage:{type:Boolean,default:!1},statusIcon:{type:Boolean,default:!1},validateOnRuleChange:{type:Boolean,default:!0},size:{type:String,default:""},disabled:{type:Boolean,default:!1},scrollToError:{type:Boolean,default:!1}},emits:["validate","validateField","resetFields","scrollToField","clearValidate","fields","getField"],setup(t,{emit:p}){const s=t,l=p,n=(o,u,S)=>{l("validate",o,u,S)},f=(o,u)=>{l("validateField",o,u)},c=o=>{l("resetFields",o)},y=o=>{l("scrollToField",o)},g=o=>{l("clearValidate",o)},i=o=>{l("getField",o)};return(o,u)=>{const S=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(S,e.mergeProps(s,{onValidate:n,onValidateField:f,onResetFields:c,onScrollToField:y,onClearValidate:g,onGetField:i}),e.createSlots({_:2},[e.renderList(o.$slots,(d,h)=>({name:h,fn:e.withCtx(r=>[e.renderSlot(o.$slots,h,e.normalizeProps(e.guardReactiveProps(r||{})))])}))]),1040)}}});k.install=t=>{t.component("YwForm",k)};const V=e.defineComponent({__name:"FormItem",props:{prop:{type:String,default:""},label:{type:String,default:""},labelPosition:{type:String,default:""},labelWidth:{type:[String,Number],default:""},required:{type:Boolean,default:!1},rules:{type:[Object,Array],default:void 0},error:{type:String,default:""},showMessage:{type:Boolean,default:!0},inlineMessage:{type:Boolean,default:!1},size:{type:String,default:""},for:{type:String,default:""},validateStatus:{type:String,default:""}},emits:["validate","resetFields","clearValidate"],setup(t,{expose:p,emit:s}){const l=t,n=s,f=e.computed(()=>{const{...i}=l;return Object.fromEntries(Object.entries(i).filter(([o,u])=>u!==void 0&&u!==""))}),c=(i,o,u)=>{n("validate",i,o,u)},y=i=>{n("resetFields",i)},g=i=>{n("clearValidate",i)};return p({size:e.computed(()=>document.querySelector(".el-form-item")?.className.includes("size-")||""),validateMessage:e.computed(()=>document.querySelector(".el-form-item__error")?.textContent||""),validateState:e.computed(()=>{const i=document.querySelector(".el-form-item");return i?.classList.contains("is-error")?"error":i?.classList.contains("is-success")?"success":i?.classList.contains("is-validating")?"validating":""})}),(i,o)=>{const u=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(u,e.mergeProps(f.value,{onValidate:c,onResetFields:y,onClearValidate:g}),e.createSlots({_:2},[e.renderList(i.$slots,(S,d)=>({name:d,fn:e.withCtx(h=>[e.renderSlot(i.$slots,d,e.normalizeProps(e.guardReactiveProps(h||{})))])}))]),1040)}}});V.install=t=>{t.component("YwFormItem",V)};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 s=t,l=p,n=e.computed({get(){return s.modelValue},set(a){l("update:modelValue",a)}}),f=a=>{l("input",a)},c=a=>{l("change",a)},y=a=>{l("blur",a)},g=a=>{l("focus",a)},i=()=>{l("clear")},o=a=>{l("keydown",a)},u=a=>{l("mouseleave",a)},S=a=>{l("mouseenter",a)},d=a=>{l("compositionstart",a)},h=a=>{l("compositionupdate",a)},r=a=>{l("compositionend",a)};return(a,m)=>{const P=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(P,e.mergeProps(s,{modelValue:e.unref(n),"onUpdate:modelValue":m[0]||(m[0]=O=>e.isRef(n)?n.value=O:null),class:"yw-input",onInput:f,onChange:c,onBlur:y,onFocus:g,onClear:i,onKeydown:o,onMouseleave:u,onMouseenter:S,onCompositionstart:d,onCompositionupdate:h,onCompositionend:r}),e.createSlots({_:2},[e.renderList(a.$slots,(O,N)=>({name:N,fn:e.withCtx(I=>[e.renderSlot(a.$slots,N,e.normalizeProps(e.guardReactiveProps(I||{})))])}))]),1040,["modelValue"])}}});x.install=t=>{t.component("YwInput",x)};const F=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,default:()=>e.h("svg",{class:"svg-icon","aria-hidden":"true"},[e.h("use",{"xlink:href":"#icon-12_12_fill_delete",fill:"#b2b4c6"})])},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:String,default:()=>e.h("svg",{class:"svg-icon","aria-hidden":"true"},[e.h("use",{"xlink:href":"#icon-12_12_arrow_bottom",fill:"#1a1a1a"})])},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 s=t,l=e.computed(()=>s.props),n=e.useSlots(),f=e.computed(()=>n.default?.().length===0?[]:n.default?.().flatMap(r=>{const a=String(r.type);if(a.includes("yw-option")||a.includes("ywOption")){const m=r.children;return{type:_.ElOption,props:r.props||{},children:m&&m[0].children,key:r.key}}return r})),c=p,y=e.computed({get(){return s.modelValue},set(r){c("update:modelValue",r)}}),g=r=>{c("change",r)},i=r=>{c("visible-change",r)},o=r=>{c("remove-tag",r)},u=()=>{c("clear")},S=r=>{c("focus",r)},d=r=>{c("blur",r)},h=r=>{c("popup-scroll",r)};return(r,a)=>(e.openBlock(),e.createBlock(e.unref(_.ElSelect),e.mergeProps(s,{modelValue:y.value,"onUpdate:modelValue":a[0]||(a[0]=m=>y.value=m),class:"yw-select","popper-class":"yw-select-popper",onChange:g,onVisibleChange:i,onRemoveTag:o,onClear:u,onBlur:d,onFocus:S,onPopupScroll:h}),{default:e.withCtx(()=>[r.$slots.default?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(f.value,(m,P)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.type),e.mergeProps({ref_for:!0},m.props,{key:m.key||P}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.children),1)]),_:2},1040))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.options,m=>(e.openBlock(),e.createBlock(e.unref(_.ElOption),{key:m[l.value.value],label:m[l.value.label],value:m[l.value.value],disabled:m[l.value.disabled]},null,8,["label","value","disabled"]))),128))]),_:1},16,["modelValue"]))}});F.install=t=>{t.component("YwSelect",F)};const z=[b,C,w,k,V,x,F];return{install(t){z.forEach(p=>{t.use(p)})}}});
|
|
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)})}}});
|
|
@@ -77,13 +77,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
77
77
|
default: boolean;
|
|
78
78
|
};
|
|
79
79
|
prefixIcon: {
|
|
80
|
-
type: StringConstructor;
|
|
80
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
81
81
|
default: () => VNode<RendererNode, RendererElement, {
|
|
82
82
|
[key: string]: any;
|
|
83
83
|
}>;
|
|
84
84
|
};
|
|
85
85
|
clearIcon: {
|
|
86
|
-
type: StringConstructor;
|
|
86
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
87
87
|
default: () => VNode<RendererNode, RendererElement, {
|
|
88
88
|
[key: string]: any;
|
|
89
89
|
}>;
|
|
@@ -212,13 +212,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
212
212
|
default: boolean;
|
|
213
213
|
};
|
|
214
214
|
prefixIcon: {
|
|
215
|
-
type: StringConstructor;
|
|
215
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
216
216
|
default: () => VNode<RendererNode, RendererElement, {
|
|
217
217
|
[key: string]: any;
|
|
218
218
|
}>;
|
|
219
219
|
};
|
|
220
220
|
clearIcon: {
|
|
221
|
-
type: StringConstructor;
|
|
221
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
222
222
|
default: () => VNode<RendererNode, RendererElement, {
|
|
223
223
|
[key: string]: any;
|
|
224
224
|
}>;
|
|
@@ -291,8 +291,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
291
291
|
id: string;
|
|
292
292
|
name: string;
|
|
293
293
|
unlinkPanels: boolean;
|
|
294
|
-
prefixIcon: string
|
|
295
|
-
clearIcon: string
|
|
294
|
+
prefixIcon: string | Record<string, any>;
|
|
295
|
+
clearIcon: string | Record<string, any>;
|
|
296
296
|
validateEvent: boolean;
|
|
297
297
|
disabledDate: Function;
|
|
298
298
|
shortcuts: unknown[];
|
|
@@ -137,7 +137,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
137
137
|
default: boolean;
|
|
138
138
|
};
|
|
139
139
|
clearIcon: {
|
|
140
|
-
type: StringConstructor;
|
|
140
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
141
141
|
default: () => VNode<RendererNode, RendererElement, {
|
|
142
142
|
[key: string]: any;
|
|
143
143
|
}>;
|
|
@@ -147,7 +147,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
147
147
|
default: boolean;
|
|
148
148
|
};
|
|
149
149
|
suffixIcon: {
|
|
150
|
-
type: StringConstructor;
|
|
150
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
151
151
|
default: () => VNode<RendererNode, RendererElement, {
|
|
152
152
|
[key: string]: any;
|
|
153
153
|
}>;
|
|
@@ -326,7 +326,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
326
326
|
default: boolean;
|
|
327
327
|
};
|
|
328
328
|
clearIcon: {
|
|
329
|
-
type: StringConstructor;
|
|
329
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
330
330
|
default: () => VNode<RendererNode, RendererElement, {
|
|
331
331
|
[key: string]: any;
|
|
332
332
|
}>;
|
|
@@ -336,7 +336,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
336
336
|
default: boolean;
|
|
337
337
|
};
|
|
338
338
|
suffixIcon: {
|
|
339
|
-
type: StringConstructor;
|
|
339
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
340
340
|
default: () => VNode<RendererNode, RendererElement, {
|
|
341
341
|
[key: string]: any;
|
|
342
342
|
}>;
|
|
@@ -393,13 +393,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
393
393
|
popperClass: string;
|
|
394
394
|
id: string;
|
|
395
395
|
name: string;
|
|
396
|
-
clearIcon: string
|
|
396
|
+
clearIcon: string | Record<string, any>;
|
|
397
397
|
validateEvent: boolean;
|
|
398
398
|
teleported: boolean;
|
|
399
399
|
placement: placementType;
|
|
400
400
|
ariaLabel: string;
|
|
401
401
|
automaticDropdown: boolean;
|
|
402
|
-
suffixIcon: string
|
|
402
|
+
suffixIcon: string | Record<string, any>;
|
|
403
403
|
autocomplete: string;
|
|
404
404
|
multiple: boolean;
|
|
405
405
|
options: Record<string, any>[];
|
package/package.json
CHANGED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
type labelPositionType = 'right' | 'left' | 'top';
|
|
3
|
-
type requireAsteriskPositionType = 'right' | 'left';
|
|
4
|
-
type sizeType = '' | 'large' | 'default' | 'small';
|
|
5
|
-
declare function __VLS_template(): {
|
|
6
|
-
attrs: Partial<{}>;
|
|
7
|
-
slots: any;
|
|
8
|
-
refs: {};
|
|
9
|
-
rootEl: any;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
13
|
-
modelValue: {
|
|
14
|
-
type: ObjectConstructor;
|
|
15
|
-
default: {};
|
|
16
|
-
};
|
|
17
|
-
rules: {
|
|
18
|
-
type: ObjectConstructor;
|
|
19
|
-
default: {};
|
|
20
|
-
};
|
|
21
|
-
inline: {
|
|
22
|
-
type: BooleanConstructor;
|
|
23
|
-
default: boolean;
|
|
24
|
-
};
|
|
25
|
-
labelPosition: {
|
|
26
|
-
type: PropType<labelPositionType>;
|
|
27
|
-
default: string;
|
|
28
|
-
};
|
|
29
|
-
labelWidth: {
|
|
30
|
-
type: StringConstructor;
|
|
31
|
-
default: string;
|
|
32
|
-
};
|
|
33
|
-
labelSuffix: {
|
|
34
|
-
type: StringConstructor;
|
|
35
|
-
default: string;
|
|
36
|
-
};
|
|
37
|
-
hideRequiredAsterisk: {
|
|
38
|
-
type: BooleanConstructor;
|
|
39
|
-
default: boolean;
|
|
40
|
-
};
|
|
41
|
-
requireAsteriskPosition: {
|
|
42
|
-
type: PropType<requireAsteriskPositionType>;
|
|
43
|
-
default: string;
|
|
44
|
-
};
|
|
45
|
-
showMessage: {
|
|
46
|
-
type: BooleanConstructor;
|
|
47
|
-
default: boolean;
|
|
48
|
-
};
|
|
49
|
-
inlineMessage: {
|
|
50
|
-
type: BooleanConstructor;
|
|
51
|
-
default: boolean;
|
|
52
|
-
};
|
|
53
|
-
statusIcon: {
|
|
54
|
-
type: BooleanConstructor;
|
|
55
|
-
default: boolean;
|
|
56
|
-
};
|
|
57
|
-
validateOnRuleChange: {
|
|
58
|
-
type: BooleanConstructor;
|
|
59
|
-
default: boolean;
|
|
60
|
-
};
|
|
61
|
-
size: {
|
|
62
|
-
type: PropType<sizeType>;
|
|
63
|
-
default: string;
|
|
64
|
-
};
|
|
65
|
-
disabled: {
|
|
66
|
-
type: BooleanConstructor;
|
|
67
|
-
default: boolean;
|
|
68
|
-
};
|
|
69
|
-
scrollToError: {
|
|
70
|
-
type: BooleanConstructor;
|
|
71
|
-
default: boolean;
|
|
72
|
-
};
|
|
73
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
74
|
-
validate: (...args: any[]) => void;
|
|
75
|
-
validateField: (...args: any[]) => void;
|
|
76
|
-
resetFields: (...args: any[]) => void;
|
|
77
|
-
scrollToField: (...args: any[]) => void;
|
|
78
|
-
clearValidate: (...args: any[]) => void;
|
|
79
|
-
fields: (...args: any[]) => void;
|
|
80
|
-
getField: (...args: any[]) => void;
|
|
81
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
82
|
-
modelValue: {
|
|
83
|
-
type: ObjectConstructor;
|
|
84
|
-
default: {};
|
|
85
|
-
};
|
|
86
|
-
rules: {
|
|
87
|
-
type: ObjectConstructor;
|
|
88
|
-
default: {};
|
|
89
|
-
};
|
|
90
|
-
inline: {
|
|
91
|
-
type: BooleanConstructor;
|
|
92
|
-
default: boolean;
|
|
93
|
-
};
|
|
94
|
-
labelPosition: {
|
|
95
|
-
type: PropType<labelPositionType>;
|
|
96
|
-
default: string;
|
|
97
|
-
};
|
|
98
|
-
labelWidth: {
|
|
99
|
-
type: StringConstructor;
|
|
100
|
-
default: string;
|
|
101
|
-
};
|
|
102
|
-
labelSuffix: {
|
|
103
|
-
type: StringConstructor;
|
|
104
|
-
default: string;
|
|
105
|
-
};
|
|
106
|
-
hideRequiredAsterisk: {
|
|
107
|
-
type: BooleanConstructor;
|
|
108
|
-
default: boolean;
|
|
109
|
-
};
|
|
110
|
-
requireAsteriskPosition: {
|
|
111
|
-
type: PropType<requireAsteriskPositionType>;
|
|
112
|
-
default: string;
|
|
113
|
-
};
|
|
114
|
-
showMessage: {
|
|
115
|
-
type: BooleanConstructor;
|
|
116
|
-
default: boolean;
|
|
117
|
-
};
|
|
118
|
-
inlineMessage: {
|
|
119
|
-
type: BooleanConstructor;
|
|
120
|
-
default: boolean;
|
|
121
|
-
};
|
|
122
|
-
statusIcon: {
|
|
123
|
-
type: BooleanConstructor;
|
|
124
|
-
default: boolean;
|
|
125
|
-
};
|
|
126
|
-
validateOnRuleChange: {
|
|
127
|
-
type: BooleanConstructor;
|
|
128
|
-
default: boolean;
|
|
129
|
-
};
|
|
130
|
-
size: {
|
|
131
|
-
type: PropType<sizeType>;
|
|
132
|
-
default: string;
|
|
133
|
-
};
|
|
134
|
-
disabled: {
|
|
135
|
-
type: BooleanConstructor;
|
|
136
|
-
default: boolean;
|
|
137
|
-
};
|
|
138
|
-
scrollToError: {
|
|
139
|
-
type: BooleanConstructor;
|
|
140
|
-
default: boolean;
|
|
141
|
-
};
|
|
142
|
-
}>> & Readonly<{
|
|
143
|
-
onValidate?: ((...args: any[]) => any) | undefined;
|
|
144
|
-
onValidateField?: ((...args: any[]) => any) | undefined;
|
|
145
|
-
onResetFields?: ((...args: any[]) => any) | undefined;
|
|
146
|
-
onScrollToField?: ((...args: any[]) => any) | undefined;
|
|
147
|
-
onClearValidate?: ((...args: any[]) => any) | undefined;
|
|
148
|
-
onFields?: ((...args: any[]) => any) | undefined;
|
|
149
|
-
onGetField?: ((...args: any[]) => any) | undefined;
|
|
150
|
-
}>, {
|
|
151
|
-
size: sizeType;
|
|
152
|
-
disabled: boolean;
|
|
153
|
-
modelValue: Record<string, any>;
|
|
154
|
-
rules: Record<string, any>;
|
|
155
|
-
inline: boolean;
|
|
156
|
-
labelPosition: labelPositionType;
|
|
157
|
-
labelWidth: string;
|
|
158
|
-
labelSuffix: string;
|
|
159
|
-
hideRequiredAsterisk: boolean;
|
|
160
|
-
requireAsteriskPosition: requireAsteriskPositionType;
|
|
161
|
-
showMessage: boolean;
|
|
162
|
-
inlineMessage: boolean;
|
|
163
|
-
statusIcon: boolean;
|
|
164
|
-
validateOnRuleChange: boolean;
|
|
165
|
-
scrollToError: boolean;
|
|
166
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
167
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
168
|
-
export default _default;
|
|
169
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
170
|
-
new (): {
|
|
171
|
-
$slots: S;
|
|
172
|
-
};
|
|
173
|
-
};
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { FormItemRule } from 'element-plus';
|
|
2
|
-
import { Arrayable } from 'element-plus/es/utils';
|
|
3
|
-
import { PropType, DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
-
type LabelPositionType = 'right' | 'left' | 'top';
|
|
5
|
-
type ValidateStatus = '' | 'error' | 'validating' | 'success';
|
|
6
|
-
type SizeType = '' | 'large' | 'default' | 'small';
|
|
7
|
-
declare function __VLS_template(): {
|
|
8
|
-
attrs: Partial<{}>;
|
|
9
|
-
slots: any;
|
|
10
|
-
refs: {};
|
|
11
|
-
rootEl: any;
|
|
12
|
-
};
|
|
13
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
-
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
15
|
-
prop: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
label: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
labelPosition: {
|
|
24
|
-
type: PropType<LabelPositionType>;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
|
-
labelWidth: {
|
|
28
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
29
|
-
default: string;
|
|
30
|
-
};
|
|
31
|
-
required: {
|
|
32
|
-
type: BooleanConstructor;
|
|
33
|
-
default: boolean;
|
|
34
|
-
};
|
|
35
|
-
rules: {
|
|
36
|
-
type: PropType<Arrayable<FormItemRule>>;
|
|
37
|
-
default: undefined;
|
|
38
|
-
};
|
|
39
|
-
error: {
|
|
40
|
-
type: StringConstructor;
|
|
41
|
-
default: string;
|
|
42
|
-
};
|
|
43
|
-
showMessage: {
|
|
44
|
-
type: BooleanConstructor;
|
|
45
|
-
default: boolean;
|
|
46
|
-
};
|
|
47
|
-
inlineMessage: {
|
|
48
|
-
type: BooleanConstructor;
|
|
49
|
-
default: boolean;
|
|
50
|
-
};
|
|
51
|
-
size: {
|
|
52
|
-
type: PropType<SizeType>;
|
|
53
|
-
default: string;
|
|
54
|
-
};
|
|
55
|
-
for: {
|
|
56
|
-
type: StringConstructor;
|
|
57
|
-
default: string;
|
|
58
|
-
};
|
|
59
|
-
validateStatus: {
|
|
60
|
-
type: PropType<ValidateStatus>;
|
|
61
|
-
default: string;
|
|
62
|
-
};
|
|
63
|
-
}>, {
|
|
64
|
-
size: ComputedRef<true | "">;
|
|
65
|
-
validateMessage: ComputedRef<string>;
|
|
66
|
-
validateState: ComputedRef<"success" | "" | "error" | "validating">;
|
|
67
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
68
|
-
validate: (...args: any[]) => void;
|
|
69
|
-
resetFields: (...args: any[]) => void;
|
|
70
|
-
clearValidate: (...args: any[]) => void;
|
|
71
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
72
|
-
prop: {
|
|
73
|
-
type: StringConstructor;
|
|
74
|
-
default: string;
|
|
75
|
-
};
|
|
76
|
-
label: {
|
|
77
|
-
type: StringConstructor;
|
|
78
|
-
default: string;
|
|
79
|
-
};
|
|
80
|
-
labelPosition: {
|
|
81
|
-
type: PropType<LabelPositionType>;
|
|
82
|
-
default: string;
|
|
83
|
-
};
|
|
84
|
-
labelWidth: {
|
|
85
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
86
|
-
default: string;
|
|
87
|
-
};
|
|
88
|
-
required: {
|
|
89
|
-
type: BooleanConstructor;
|
|
90
|
-
default: boolean;
|
|
91
|
-
};
|
|
92
|
-
rules: {
|
|
93
|
-
type: PropType<Arrayable<FormItemRule>>;
|
|
94
|
-
default: undefined;
|
|
95
|
-
};
|
|
96
|
-
error: {
|
|
97
|
-
type: StringConstructor;
|
|
98
|
-
default: string;
|
|
99
|
-
};
|
|
100
|
-
showMessage: {
|
|
101
|
-
type: BooleanConstructor;
|
|
102
|
-
default: boolean;
|
|
103
|
-
};
|
|
104
|
-
inlineMessage: {
|
|
105
|
-
type: BooleanConstructor;
|
|
106
|
-
default: boolean;
|
|
107
|
-
};
|
|
108
|
-
size: {
|
|
109
|
-
type: PropType<SizeType>;
|
|
110
|
-
default: string;
|
|
111
|
-
};
|
|
112
|
-
for: {
|
|
113
|
-
type: StringConstructor;
|
|
114
|
-
default: string;
|
|
115
|
-
};
|
|
116
|
-
validateStatus: {
|
|
117
|
-
type: PropType<ValidateStatus>;
|
|
118
|
-
default: string;
|
|
119
|
-
};
|
|
120
|
-
}>> & Readonly<{
|
|
121
|
-
onValidate?: ((...args: any[]) => any) | undefined;
|
|
122
|
-
onResetFields?: ((...args: any[]) => any) | undefined;
|
|
123
|
-
onClearValidate?: ((...args: any[]) => any) | undefined;
|
|
124
|
-
}>, {
|
|
125
|
-
error: string;
|
|
126
|
-
size: SizeType;
|
|
127
|
-
label: string;
|
|
128
|
-
required: boolean;
|
|
129
|
-
rules: Arrayable<FormItemRule>;
|
|
130
|
-
labelPosition: LabelPositionType;
|
|
131
|
-
labelWidth: string | number;
|
|
132
|
-
showMessage: boolean;
|
|
133
|
-
inlineMessage: boolean;
|
|
134
|
-
prop: string;
|
|
135
|
-
for: string;
|
|
136
|
-
validateStatus: ValidateStatus;
|
|
137
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
138
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
139
|
-
export default _default;
|
|
140
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
141
|
-
new (): {
|
|
142
|
-
$slots: S;
|
|
143
|
-
};
|
|
144
|
-
};
|