erp-plus 1.0.5 → 1.0.7
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/README.md +42 -3
- package/dist/types/App.vue.d.ts +1 -1
- package/dist/types/erp-plus.css +1 -1
- package/dist/types/erp-plus.es.js +1023 -60
- package/dist/types/erp-plus.umd.js +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/packages/Avatar/Avatar.vue.d.ts +87 -0
- package/dist/types/packages/Avatar/index.d.ts +4 -0
- package/dist/types/packages/Button/Button.vue.d.ts +151 -16
- package/dist/types/packages/Button/index.d.ts +0 -2
- package/dist/types/packages/DatePicker/DatePicker.vue.d.ts +307 -0
- package/dist/types/packages/DatePicker/index.d.ts +4 -0
- package/dist/types/packages/Form/Form.vue.d.ts +173 -0
- package/dist/types/packages/Form/index.d.ts +4 -0
- package/dist/types/packages/FormItem/FormItem.vue.d.ts +144 -0
- package/dist/types/packages/FormItem/index.d.ts +4 -0
- package/dist/types/packages/Input/Input.vue.d.ts +339 -0
- package/dist/types/packages/Input/index.d.ts +4 -0
- package/dist/types/packages/Select/Select.vue.d.ts +430 -0
- package/dist/types/packages/Select/index.d.ts +4 -0
- package/dist/types/packages/SvgIcon/index.vue.d.ts +32 -0
- package/package.json +12 -10
- package/dist/types/packages/Button/types.d.ts +0 -24
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(t,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("vue")):typeof define=="function"&&define.amd?define(["vue"],o):(t=typeof globalThis<"u"?globalThis:t||self,t.ErpPlus=o(t.Vue))})(this,function(t){"use strict";const o=t.defineComponent({name:"YwButton",props:{type:{type:String,default:"default",validator:e=>["default","primary","success","warning","danger"].includes(e)},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){return{handleClick:s=>{!e.disabled&&!e.loading&&n("click",s)}}}}),i=(e,n)=>{const l=e.__vccOpts||e;for(const[s,a]of n)l[s]=a;return l},r=["disabled"],c={key:0,class:"erp-button__loading"},p={class:"erp-button__content"};function u(e,n,l,s,a,k){return t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["erp-button",`erp-button--${e.type}`,{"erp-button--disabled":e.disabled,"erp-button--loading":e.loading,"erp-button--block":e.block}]),disabled:e.disabled||e.loading,onClick:n[0]||(n[0]=(...b)=>e.handleClick&&e.handleClick(...b))},[e.loading?(t.openBlock(),t.createElementBlock("span",c,n[1]||(n[1]=[t.createElementVNode("svg",{class:"erp-button__loading-icon",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 1024c-282.77 0-512-229.23-512-512s229.23-512 512-512 512 229.23 512 512-229.23 512-512 512zm0-938.67c-235.64 0-426.67 191.03-426.67 426.67s191.03 426.67 426.67 426.67 426.67-191.03 426.67-426.67-191.03-426.67-426.67-426.67z",fill:"#FFF"}),t.createElementVNode("path",{d:"M512 1024c-282.77 0-512-229.23-512-512 0-282.77 229.23-512 512-512",fill:"currentColor"})],-1)]))):t.createCommentVNode("",!0),t.createElementVNode("span",p,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],10,r)}const d=i(o,[["render",u],["__scopeId","data-v-cb037014"]]);d.install=e=>{e.component("YwButton",d)};const f=[d];return{install(e){f.forEach(n=>{e.use(n)})}}});
|
|
1
|
+
(function(e,B){typeof exports=="object"&&typeof module<"u"?module.exports=B(require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["vue","element-plus"],B):(e=typeof globalThis<"u"?globalThis:e||self,e.ErpPlus=B(e.Vue,e.ElementPlus))})(this,function(e,B){"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:d}){const s=e.useSlots(),l=t,n=d,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"],_=e.defineComponent({__name:"index",props:{iconClass:{type:String,required:!0},className:{type:String,default:""},color:{type:String,default:""}},setup(t){const d=t,s=e.computed(()=>d.className?(console.log(d.className),`svg-icon ${d.className}`):"svg-icon"),l=e.computed(()=>`#icon-${d.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,d)=>{const s=t.__vccOpts||t;for(const[l,n]of d)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(_,{iconClass:"16_16_calendar",color:"#838599"})},clearIcon:{type:String,default:()=>e.h(_,{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:d}){const s=t,l=e.computed(()=>s.type==="daterange"||s.type==="datetimerange"?`yw-daterange-picker ${s.popperClass}`:`yw-date-picker ${s.popperClass}`),n=d,f=e.computed({get(){return s.modelValue},set(p){n("update:modelValue",p)}}),c=p=>{n("change",p)},y=p=>{n("clear",p)},g=p=>{n("blur",p)},i=p=>{n("focus",p)},o=p=>{n("calendar-change",p)},u=p=>{n("visible-change",p)},S=p=>{n("panel-change",p)};return(p,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(_,{iconClass:"16_16_arrow_left",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),"next-month":e.withCtx(()=>[e.createVNode(_,{iconClass:"16_16_arrow_right",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),"prev-year":e.withCtx(()=>[e.createVNode(_,{iconClass:"16_16_arrow_2left",color:"#1a1a1a",style:{width:"16px",height:"16px"}})]),"next-year":e.withCtx(()=>[e.createVNode(_,{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("YwInput",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:d}){const s=t,l=d,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:d}){const s=t,l=d,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,(p,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:d,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 d({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,p)=>({name:p,fn:e.withCtx(h=>[e.renderSlot(i.$slots,p,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,default:()=>e.h(_,{iconClass:"12_12_fill_delete",color:"#b2b4c6"})},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:d}){const s=t,l=d,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)},p=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]=N=>e.isRef(n)?n.value=N:null),class:"yw-input",onInput:f,onChange:c,onBlur:y,onFocus:g,onClear:i,onKeydown:o,onMouseleave:u,onMouseenter:S,onCompositionstart:p,onCompositionupdate:h,onCompositionend:r}),e.createSlots({_:2},[e.renderList(a.$slots,(N,O)=>({name:O,fn:e.withCtx(T=>[e.renderSlot(a.$slots,O,e.normalizeProps(e.guardReactiveProps(T||{})))])}))]),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(_,{iconClass:"12_12_fill_delete",color:"#b2b4c6"})},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:String,default:()=>e.h(_,{iconClass:"12_12_arrow_bottom",color:"#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:d}){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:B.ElOption,props:r.props||{},children:m&&m[0].children,key:r.key}}return r})),c=d,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)},p=r=>{c("blur",r)},h=r=>{c("popup-scroll",r)};return(r,a)=>(e.openBlock(),e.createBlock(e.unref(B.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:p,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(B.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 I=[b,C,w,k,V,x,F];return{install(t){I.forEach(d=>{t.use(d)})}}});
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type shapeType = 'circle' | 'square';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: any;
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
11
|
+
size: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
shape: {
|
|
16
|
+
type: PropType<shapeType>;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
icon: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
src: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
alt: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
srcSet: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
fit: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
40
|
+
error: (...args: any[]) => void;
|
|
41
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
42
|
+
size: {
|
|
43
|
+
type: NumberConstructor;
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
shape: {
|
|
47
|
+
type: PropType<shapeType>;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
icon: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
src: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
alt: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
srcSet: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
fit: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
}>> & Readonly<{
|
|
71
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
72
|
+
}>, {
|
|
73
|
+
size: number;
|
|
74
|
+
icon: string;
|
|
75
|
+
shape: shapeType;
|
|
76
|
+
src: string;
|
|
77
|
+
alt: string;
|
|
78
|
+
srcSet: string;
|
|
79
|
+
fit: string;
|
|
80
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
81
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
82
|
+
export default _default;
|
|
83
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
84
|
+
new (): {
|
|
85
|
+
$slots: S;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
@@ -1,11 +1,39 @@
|
|
|
1
|
-
import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
|
|
1
|
+
import { Component, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type ButtonType = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text';
|
|
3
|
+
type ButtonSize = 'large' | 'default' | 'small';
|
|
4
|
+
type NativeType = 'button' | 'submit' | 'reset';
|
|
5
|
+
declare function __VLS_template(): any;
|
|
6
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
7
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
3
8
|
type: {
|
|
4
|
-
type: PropType<
|
|
9
|
+
type: PropType<ButtonType>;
|
|
5
10
|
default: string;
|
|
6
|
-
validator: (val: string) => boolean;
|
|
7
11
|
};
|
|
8
|
-
|
|
12
|
+
size: {
|
|
13
|
+
type: PropType<ButtonSize>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
plain: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
text: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
bg: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
round: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
link: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
circle: {
|
|
9
37
|
type: BooleanConstructor;
|
|
10
38
|
default: boolean;
|
|
11
39
|
};
|
|
@@ -13,19 +41,74 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
13
41
|
type: BooleanConstructor;
|
|
14
42
|
default: boolean;
|
|
15
43
|
};
|
|
16
|
-
|
|
44
|
+
disabled: {
|
|
17
45
|
type: BooleanConstructor;
|
|
18
46
|
default: boolean;
|
|
19
47
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
48
|
+
autofocus: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
autoInsertSpace: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
dark: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
loadingIcon: {
|
|
61
|
+
type: PropType<string | Component>;
|
|
62
|
+
default: undefined;
|
|
63
|
+
};
|
|
64
|
+
icon: {
|
|
65
|
+
type: PropType<string | Component>;
|
|
66
|
+
default: undefined;
|
|
67
|
+
};
|
|
68
|
+
color: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: undefined;
|
|
71
|
+
};
|
|
72
|
+
nativeType: {
|
|
73
|
+
type: PropType<NativeType>;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
tag: {
|
|
77
|
+
type: PropType<string | Component>;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
81
|
+
click: (...args: any[]) => void;
|
|
82
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
23
83
|
type: {
|
|
24
|
-
type: PropType<
|
|
84
|
+
type: PropType<ButtonType>;
|
|
25
85
|
default: string;
|
|
26
|
-
validator: (val: string) => boolean;
|
|
27
86
|
};
|
|
28
|
-
|
|
87
|
+
size: {
|
|
88
|
+
type: PropType<ButtonSize>;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
plain: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
text: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
bg: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
round: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
link: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
circle: {
|
|
29
112
|
type: BooleanConstructor;
|
|
30
113
|
default: boolean;
|
|
31
114
|
};
|
|
@@ -33,16 +116,68 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
33
116
|
type: BooleanConstructor;
|
|
34
117
|
default: boolean;
|
|
35
118
|
};
|
|
36
|
-
|
|
119
|
+
disabled: {
|
|
37
120
|
type: BooleanConstructor;
|
|
38
121
|
default: boolean;
|
|
39
122
|
};
|
|
123
|
+
autofocus: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
autoInsertSpace: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
dark: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
default: boolean;
|
|
134
|
+
};
|
|
135
|
+
loadingIcon: {
|
|
136
|
+
type: PropType<string | Component>;
|
|
137
|
+
default: undefined;
|
|
138
|
+
};
|
|
139
|
+
icon: {
|
|
140
|
+
type: PropType<string | Component>;
|
|
141
|
+
default: undefined;
|
|
142
|
+
};
|
|
143
|
+
color: {
|
|
144
|
+
type: StringConstructor;
|
|
145
|
+
default: undefined;
|
|
146
|
+
};
|
|
147
|
+
nativeType: {
|
|
148
|
+
type: PropType<NativeType>;
|
|
149
|
+
default: string;
|
|
150
|
+
};
|
|
151
|
+
tag: {
|
|
152
|
+
type: PropType<string | Component>;
|
|
153
|
+
default: string;
|
|
154
|
+
};
|
|
40
155
|
}>> & Readonly<{
|
|
41
156
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
42
157
|
}>, {
|
|
43
|
-
|
|
44
|
-
|
|
158
|
+
text: boolean;
|
|
159
|
+
size: ButtonSize;
|
|
160
|
+
type: ButtonType;
|
|
161
|
+
plain: boolean;
|
|
162
|
+
bg: boolean;
|
|
163
|
+
round: boolean;
|
|
164
|
+
link: boolean;
|
|
165
|
+
circle: boolean;
|
|
45
166
|
loading: boolean;
|
|
46
|
-
|
|
167
|
+
disabled: boolean;
|
|
168
|
+
autofocus: boolean;
|
|
169
|
+
autoInsertSpace: boolean;
|
|
170
|
+
dark: boolean;
|
|
171
|
+
loadingIcon: string | Component;
|
|
172
|
+
icon: string | Component;
|
|
173
|
+
color: string;
|
|
174
|
+
nativeType: NativeType;
|
|
175
|
+
tag: string | Component;
|
|
47
176
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
177
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
48
178
|
export default _default;
|
|
179
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
180
|
+
new (): {
|
|
181
|
+
$slots: S;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import { PropType, DefineComponent, ExtractPropTypes, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type sizeType = 'large' | 'default' | 'small' | undefined;
|
|
3
|
+
type typeType = "year" | "years" | "month" | "months" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "yearrange";
|
|
4
|
+
type placementType = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
5
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: PropType<string | number | Date | [Date, Date]>;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
readonly: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
disabled: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
size: {
|
|
19
|
+
type: PropType<sizeType>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
editable: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
clearable: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
placeholder: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
startPlaceholder: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
endPlaceholder: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
type: {
|
|
43
|
+
type: PropType<typeType>;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
format: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
popperClass: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
popperOptions: {
|
|
55
|
+
type: ObjectConstructor;
|
|
56
|
+
default: () => {};
|
|
57
|
+
};
|
|
58
|
+
rangeSeparator: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
defaultTime: PropType<Date | [Date, Date]>;
|
|
63
|
+
defaultValue: {
|
|
64
|
+
type: PropType<Date | [Date, Date]>;
|
|
65
|
+
default: () => string;
|
|
66
|
+
};
|
|
67
|
+
id: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
name: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
unlinkPanels: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
prefixIcon: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
default: () => VNode<RendererNode, RendererElement, {
|
|
82
|
+
[key: string]: any;
|
|
83
|
+
}>;
|
|
84
|
+
};
|
|
85
|
+
clearIcon: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: () => VNode<RendererNode, RendererElement, {
|
|
88
|
+
[key: string]: any;
|
|
89
|
+
}>;
|
|
90
|
+
};
|
|
91
|
+
validateEvent: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
disabledDate: {
|
|
96
|
+
type: FunctionConstructor;
|
|
97
|
+
default: () => boolean;
|
|
98
|
+
};
|
|
99
|
+
shortcuts: {
|
|
100
|
+
type: ArrayConstructor;
|
|
101
|
+
default: () => never[];
|
|
102
|
+
};
|
|
103
|
+
cellClassName: {
|
|
104
|
+
type: FunctionConstructor;
|
|
105
|
+
default: () => string;
|
|
106
|
+
};
|
|
107
|
+
teleported: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
emptyValues: {
|
|
112
|
+
type: ArrayConstructor;
|
|
113
|
+
default: () => never[];
|
|
114
|
+
};
|
|
115
|
+
valueOnClear: {
|
|
116
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor | FunctionConstructor)[];
|
|
117
|
+
default: () => string;
|
|
118
|
+
};
|
|
119
|
+
placement: {
|
|
120
|
+
type: PropType<placementType>;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
showFooter: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
showWeekNumber: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
132
|
+
blur: (...args: any[]) => void;
|
|
133
|
+
change: (...args: any[]) => void;
|
|
134
|
+
focus: (...args: any[]) => void;
|
|
135
|
+
clear: (...args: any[]) => void;
|
|
136
|
+
"update:modelValue": (...args: any[]) => void;
|
|
137
|
+
"calendar-change": (...args: any[]) => void;
|
|
138
|
+
"visible-change": (...args: any[]) => void;
|
|
139
|
+
"panel-change": (...args: any[]) => void;
|
|
140
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
141
|
+
modelValue: {
|
|
142
|
+
type: PropType<string | number | Date | [Date, Date]>;
|
|
143
|
+
default: string;
|
|
144
|
+
};
|
|
145
|
+
readonly: {
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
default: boolean;
|
|
148
|
+
};
|
|
149
|
+
disabled: {
|
|
150
|
+
type: BooleanConstructor;
|
|
151
|
+
default: boolean;
|
|
152
|
+
};
|
|
153
|
+
size: {
|
|
154
|
+
type: PropType<sizeType>;
|
|
155
|
+
default: string;
|
|
156
|
+
};
|
|
157
|
+
editable: {
|
|
158
|
+
type: BooleanConstructor;
|
|
159
|
+
default: boolean;
|
|
160
|
+
};
|
|
161
|
+
clearable: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
default: boolean;
|
|
164
|
+
};
|
|
165
|
+
placeholder: {
|
|
166
|
+
type: StringConstructor;
|
|
167
|
+
default: string;
|
|
168
|
+
};
|
|
169
|
+
startPlaceholder: {
|
|
170
|
+
type: StringConstructor;
|
|
171
|
+
default: string;
|
|
172
|
+
};
|
|
173
|
+
endPlaceholder: {
|
|
174
|
+
type: StringConstructor;
|
|
175
|
+
default: string;
|
|
176
|
+
};
|
|
177
|
+
type: {
|
|
178
|
+
type: PropType<typeType>;
|
|
179
|
+
default: string;
|
|
180
|
+
};
|
|
181
|
+
format: {
|
|
182
|
+
type: StringConstructor;
|
|
183
|
+
default: string;
|
|
184
|
+
};
|
|
185
|
+
popperClass: {
|
|
186
|
+
type: StringConstructor;
|
|
187
|
+
default: string;
|
|
188
|
+
};
|
|
189
|
+
popperOptions: {
|
|
190
|
+
type: ObjectConstructor;
|
|
191
|
+
default: () => {};
|
|
192
|
+
};
|
|
193
|
+
rangeSeparator: {
|
|
194
|
+
type: StringConstructor;
|
|
195
|
+
default: string;
|
|
196
|
+
};
|
|
197
|
+
defaultTime: PropType<Date | [Date, Date]>;
|
|
198
|
+
defaultValue: {
|
|
199
|
+
type: PropType<Date | [Date, Date]>;
|
|
200
|
+
default: () => string;
|
|
201
|
+
};
|
|
202
|
+
id: {
|
|
203
|
+
type: StringConstructor;
|
|
204
|
+
default: string;
|
|
205
|
+
};
|
|
206
|
+
name: {
|
|
207
|
+
type: StringConstructor;
|
|
208
|
+
default: string;
|
|
209
|
+
};
|
|
210
|
+
unlinkPanels: {
|
|
211
|
+
type: BooleanConstructor;
|
|
212
|
+
default: boolean;
|
|
213
|
+
};
|
|
214
|
+
prefixIcon: {
|
|
215
|
+
type: StringConstructor;
|
|
216
|
+
default: () => VNode<RendererNode, RendererElement, {
|
|
217
|
+
[key: string]: any;
|
|
218
|
+
}>;
|
|
219
|
+
};
|
|
220
|
+
clearIcon: {
|
|
221
|
+
type: StringConstructor;
|
|
222
|
+
default: () => VNode<RendererNode, RendererElement, {
|
|
223
|
+
[key: string]: any;
|
|
224
|
+
}>;
|
|
225
|
+
};
|
|
226
|
+
validateEvent: {
|
|
227
|
+
type: BooleanConstructor;
|
|
228
|
+
default: boolean;
|
|
229
|
+
};
|
|
230
|
+
disabledDate: {
|
|
231
|
+
type: FunctionConstructor;
|
|
232
|
+
default: () => boolean;
|
|
233
|
+
};
|
|
234
|
+
shortcuts: {
|
|
235
|
+
type: ArrayConstructor;
|
|
236
|
+
default: () => never[];
|
|
237
|
+
};
|
|
238
|
+
cellClassName: {
|
|
239
|
+
type: FunctionConstructor;
|
|
240
|
+
default: () => string;
|
|
241
|
+
};
|
|
242
|
+
teleported: {
|
|
243
|
+
type: BooleanConstructor;
|
|
244
|
+
default: boolean;
|
|
245
|
+
};
|
|
246
|
+
emptyValues: {
|
|
247
|
+
type: ArrayConstructor;
|
|
248
|
+
default: () => never[];
|
|
249
|
+
};
|
|
250
|
+
valueOnClear: {
|
|
251
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor | FunctionConstructor)[];
|
|
252
|
+
default: () => string;
|
|
253
|
+
};
|
|
254
|
+
placement: {
|
|
255
|
+
type: PropType<placementType>;
|
|
256
|
+
default: string;
|
|
257
|
+
};
|
|
258
|
+
showFooter: {
|
|
259
|
+
type: BooleanConstructor;
|
|
260
|
+
default: boolean;
|
|
261
|
+
};
|
|
262
|
+
showWeekNumber: {
|
|
263
|
+
type: BooleanConstructor;
|
|
264
|
+
default: boolean;
|
|
265
|
+
};
|
|
266
|
+
}>> & Readonly<{
|
|
267
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
268
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
269
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
270
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
271
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
272
|
+
"onCalendar-change"?: ((...args: any[]) => any) | undefined;
|
|
273
|
+
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
274
|
+
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
275
|
+
}>, {
|
|
276
|
+
size: sizeType;
|
|
277
|
+
type: typeType;
|
|
278
|
+
disabled: boolean;
|
|
279
|
+
readonly: boolean;
|
|
280
|
+
modelValue: string | number | Date | [Date, Date];
|
|
281
|
+
editable: boolean;
|
|
282
|
+
clearable: boolean;
|
|
283
|
+
placeholder: string;
|
|
284
|
+
startPlaceholder: string;
|
|
285
|
+
endPlaceholder: string;
|
|
286
|
+
format: string;
|
|
287
|
+
popperClass: string;
|
|
288
|
+
popperOptions: Record<string, any>;
|
|
289
|
+
rangeSeparator: string;
|
|
290
|
+
defaultValue: Date | [Date, Date];
|
|
291
|
+
id: string;
|
|
292
|
+
name: string;
|
|
293
|
+
unlinkPanels: boolean;
|
|
294
|
+
prefixIcon: string;
|
|
295
|
+
clearIcon: string;
|
|
296
|
+
validateEvent: boolean;
|
|
297
|
+
disabledDate: Function;
|
|
298
|
+
shortcuts: unknown[];
|
|
299
|
+
cellClassName: Function;
|
|
300
|
+
teleported: boolean;
|
|
301
|
+
emptyValues: unknown[];
|
|
302
|
+
valueOnClear: string | number | boolean | Function;
|
|
303
|
+
placement: placementType;
|
|
304
|
+
showFooter: boolean;
|
|
305
|
+
showWeekNumber: boolean;
|
|
306
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
307
|
+
export default _default;
|