mwl-components 0.1.2 → 0.1.4
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/index.cjs.js +1 -0
- package/dist/index.es.js +999 -0
- package/dist/index.umd.js +1 -0
- package/dist/mwl-components.css +1 -1
- package/package.json +12 -2
- package/dist/ContentWarp/index.vue.d.ts +0 -21
- package/dist/Dialog/index.vue.d.ts +0 -63
- package/dist/EasyForm/index.vue.d.ts +0 -60
- package/dist/EasyTable/index.vue.d.ts +0 -124
- package/dist/MenuTree/components/index.vue.d.ts +0 -44
- package/dist/MenuTree/components/menuIcon.vue.d.ts +0 -14
- package/dist/MenuTree/components/subMenu.vue.d.ts +0 -18
- package/dist/Pagination/index.vue.d.ts +0 -54
- package/dist/index.d.ts +0 -13
- package/dist/index.js +0 -777
- package/dist/types/index.d.ts +0 -99
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(h,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],e):(h=typeof globalThis<"u"?globalThis:h||self,e(h.mwlComponents={},h.Vue,h.ElementPlus))})(this,function(h,e,z){"use strict";const _=e.defineComponent({name:"EasyButton",inheritAttrs:!1,__name:"index",setup(t){const{onClick:o,...n}=e.useAttrs(),r=e.ref(!1),i=async()=>{console.log("Button clicked"),r.value=!0;try{await o?.()}catch(c){console.error("Error in button onClick handler:",c)}finally{r.value=!1}};return(c,d)=>{const a=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(a,e.mergeProps(n,{loading:r.value,onClick:i}),{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},16,["loading"])}}}),O={class:"card-header"},W={key:0,class:"card-header__message"},j=e.defineComponent({name:"ContentWarp",__name:"index",props:{title:String,message:String},setup(t){const o=e.useSlots(),n=e.ref("content-wrap");return(r,i)=>{const c=e.resolveComponent("ElCard");return e.openBlock(),e.createBlock(c,{class:e.normalizeClass([n.value]),shadow:"never"},e.createSlots({default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},void 0,!0)]),_:2},[t.title?{name:"header",fn:e.withCtx(()=>[e.createElementVNode("div",O,[e.createElementVNode("span",null,e.toDisplayString(t.title),1),t.message?(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(t.message),1)):e.createCommentVNode("",!0)])]),key:"0"}:void 0,o.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"footer",{},void 0,!0)]),key:"1"}:void 0]),1032,["class"])}}}),w=(t,o)=>{const n=t.__vccOpts||t;for(const[r,i]of o)n[r]=i;return n},E=w(j,[["__scopeId","data-v-fdaaba5e"]]),A={class:"dialog-header"},M=e.defineComponent({name:"Dialog",__name:"index",props:{title:{type:String,default:""},fullscreen:{type:Boolean,default:!1},scroll:{type:Boolean,default:!1},width:{type:String,default:"61.8%"},maxHeight:{type:[String,Number],default:""}},setup(t){const o=e.useSlots(),n=t,r=e.ref(n.fullscreen),i=()=>{r.value=!e.unref(r)},c=e.ref(n.maxHeight);e.watch(()=>r.value,async a=>{if(await e.nextTick(),a){const l=document.documentElement.offsetHeight;c.value=`${l-55-40-(o.footer?63:0)}px`}else c.value=n.maxHeight},{immediate:!0});const d=e.computed(()=>{if(n.maxHeight)return{height:e.unref(c)}});return(a,l)=>{const p=e.resolveComponent("FullScreen"),m=e.resolveComponent("el-icon"),f=e.resolveComponent("ElScrollbar"),g=e.resolveComponent("ElDialog");return e.openBlock(),e.createBlock(g,e.mergeProps({"close-on-click-modal":!1,"destroy-on-close":"",draggable:"","lock-scroll":"",class:"custom-dialog","append-to-body":""},a.$attrs,{fullscreen:r.value,width:t.width}),e.createSlots({default:e.withCtx(()=>[t.scroll?(e.openBlock(),e.createBlock(f,{key:0,style:e.normalizeStyle(d.value)},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},8,["style"])):e.renderSlot(a.$slots,"default",{key:1})]),_:2},[t.title?{name:"header",fn:e.withCtx(()=>[e.createElementVNode("div",A,[e.renderSlot(a.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),e.createElementVNode("div",{onClick:i},[e.createVNode(m,{class:"fullScreen"},{default:e.withCtx(()=>[e.createVNode(p)]),_:1})])])]),key:"0"}:void 0,o.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"footer")]),key:"1"}:void 0]),1040,["fullscreen","width"])}}}),R={key:1},$=t=>{let o=t.label;if(t.label&&typeof t.label=="function"&&(o=t.label()),t.type.indexOf("select")>-1||t.type.indexOf("cascader")>-1||t.type.indexOf("date")>-1)return`请选择${o}`;if(t.type.indexOf("text")>-1||t.type.indexOf("number")>-1)return`请输入${o}`},D={valueFormat:"YYYY-MM-DD HH:mm:ss",format:"YYYY-MM-DD HH:mm:ss"},q=t=>{const{options:o}=t;return{default:()=>o?.map(n=>e.h(e.resolveComponent("el-option"),{label:n.label,value:n.value,key:n.value}))}},B={clearable:!0},N=[{type:"slider",component:"el-slider"},{type:"text",component:"el-input",attrs:{...B}},{type:"textarea",component:"el-input",attrs:{...B}},{type:"number",component:"el-input-number",attrs:{controlsPosition:"right"}},{type:"switch",component:"el-switch"},{type:"checkbox",component:"el-checkbox-group",slots:t=>{const{options:o}=t;return{default:()=>o?.map(n=>e.h(e.resolveComponent("el-checkbox"),{value:n.value},{default:()=>n.label}))}}},{type:"radio",component:"el-radio-group",slots:t=>{const{options:o}=t;return{default:()=>o?.map(n=>e.h(e.resolveComponent("el-radio"),{value:n.value},{default:()=>n.label}))}}},{type:"select",component:"el-select",slots:q},{type:"select-v2",component:"el-select-v2"},{type:"tree-select",component:"el-tree-select",attrs:{...B,checkStrictly:!0,renderAfterExpand:!0}},{type:"date,dates",component:"el-date-picker",attrs:{showConfirm:!1,valueFormat:"YYYY-MM-DD",format:"YYYY-MM-DD"}},{type:"datetime,week",component:"el-date-picker",attrs:{showConfirm:!1,...D}},{type:"month,months",component:"el-date-picker",attrs:{showConfirm:!1,valueFormat:"YYYY-MM",format:"YYYY-MM"}},{type:"year,years",component:"el-date-picker",attrs:{showConfirm:!1,valueFormat:"YYYY",format:"YYYY"}},{type:"datetimerange,daterange,monthrange,yearrange",component:"el-date-picker",attrs:{showConfirm:!1,rangeSeparator:"至",startPlaceholder:"开始日期",endPlaceholder:"结束日期",...D}},{type:"cascader",component:"el-cascader",attrs:{clearable:!0}},{type:"upload",component:"el-upload"},{type:"custom",component:"el-form-item"}],H=w(e.defineComponent({name:"EasyForm",__name:"index",props:e.mergeModels({inline:{type:Boolean,default:!0},formItems:{type:Array,default:()=>[]},labelWidth:{type:[String,Number],default:"120px"},itemWidth:{type:[String],default:"200px"}},{modelValue:{default:{},type:Object},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),n=e.getCurrentInstance(),r=a=>{i(a,"formRef")},i=(a,l)=>{if(!a){delete n?.exposeProxy?.[l],delete n?.exposed?.[l];return}n.exposeProxy={...n?.exposed,[l]:a},n.exposed={...n?.exposed,[l]:a}},c=e.useSlots(),d=(a,l,p)=>{const{value:m,component:f,...g}=l,u=N.find(k=>!!a&&k.type.indexOf(a)>-1),b=u?.component==="el-select"&&l.props,y=l.options&&!b?u?.slots?.(l):{};if(!u&&!l.component)return new Error(`未找到type为${a}的组件且当前也未传递component`);const s=e.resolveDynamicComponent(u?.component||f);if(s)return e.h(s,{...u?.attrs,...g,placeholder:g.placeholder||$(l)},{...y,...p})};return(a,l)=>{const p=e.resolveComponent("el-form-item"),m=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(m,e.mergeProps({model:o.value,"label-width":t.labelWidth,inline:t.inline,"scroll-to-error":!0},{...a.$attrs},{ref:r,class:"easy-form"}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formItems,({id:f,type:g,rule:u,width:b,slots:y,...s},k)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[g!="custom"&&!s.hidden?(e.openBlock(),e.createBlock(p,{prop:s.prop,key:k,"label-width":s.labelWidth,rules:u,required:s.required},{label:e.withCtx(()=>[s.label&&typeof s.label=="function"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.label),{key:0})):(e.openBlock(),e.createElementBlock("span",R,e.toDisplayString(s.label),1))]),default:e.withCtx(()=>[c[s.prop]?e.renderSlot(a.$slots,s.prop,{key:0,item:s},void 0,!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d(g,{...s,type:g},y)),{key:1,modelValue:o.value[s.prop],"onUpdate:modelValue":C=>o.value[s.prop]=C,modelModifiers:{trim:!0},style:e.normalizeStyle({width:b||t.itemWidth})},null,8,["modelValue","onUpdate:modelValue","style"]))]),_:2},1032,["prop","label-width","rules","required"])):e.createCommentVNode("",!0),g=="custom"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[y?.[s.prop]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y[s.prop]),{key:0})):e.renderSlot(a.$slots,s.prop,{key:1,item:{width:b,rule:u,...s}},void 0,!0)],64)):e.createCommentVNode("",!0)],64))),256)),c.append?(e.openBlock(),e.createBlock(p,{key:0},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"append",{},void 0,!0)]),_:3})):e.createCommentVNode("",!0)]),_:3},16,["model","label-width","inline"])}}}),[["__scopeId","data-v-ebcd5674"]]),Y=w(e.defineComponent({name:"EasyTable",__name:"index",props:{data:{type:Array,required:!0,default:()=>[]},tableColumns:{type:Array,default:()=>[]},buttons:{type:Array,default:()=>[]},buttonWidth:{type:[Number,String],default:120},align:{type:String,default:"center"},height:{type:Number||String,default:void 0},maxHeight:{type:String||Number,default:void 0},footerHeight:{type:Number,default:65}},setup(t){const o=e.inject(z.configProviderContextKey),n=t,r=e.computed(()=>n.buttonWidth.toString().indexOf("px")>-1?n.buttonWidth.toString().slice(0,-2):n.buttonWidth),i=e.ref(),c=e.ref("auto");let d=e.getCurrentInstance();const a=()=>{let u="auto";if(d?.parent?.attrs?.class?.indexOf("content-wrap")>-1){let s=n.footerHeight;o?.value?.size==="small"?s=s-8:o?.value?.size==="large"&&(s=s+8);try{const k=d?.refs.tableRef,{top:C}=k?.getBoundingClientRect();u=document.documentElement.clientHeight-C-s-20}catch{}return u}return u},l=e.ref(),p=()=>{l.value&&clearTimeout(l.value),l.value=setTimeout(()=>{c.value=a(),l.value=null},100)};e.onMounted(()=>{c.value=a(),window.addEventListener("resize",p)}),e.onUnmounted(()=>{window.removeEventListener("resize",p)});const m=e.resolveComponent("el-table-column"),f=e.useSlots(),g=u=>{const{slots:b={},children:y=[],...s}=u;if(y&&y.length>0){const k=y.map(C=>g(C));return e.h(m,{align:n.align,...s},{...b,default:()=>k})}return e.h(m,{align:n.align,...s},{default:k=>f[u.prop]&&f[u.prop](k),...b})};return(u,b)=>{const y=e.resolveComponent("el-button"),s=e.resolveComponent("el-table-column"),k=e.resolveComponent("el-table");return e.openBlock(),e.createElementBlock("div",{ref_key:"tableRef",ref:i},[e.createVNode(k,e.mergeProps({style:{width:"100%"}},u.$attrs,{data:t.data,height:t.height,maxHeight:t.maxHeight?t.maxHeight:c.value}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tableColumns,(C,S)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g(C)),{key:S}))),128)),t.buttons&&t.buttons.length?(e.openBlock(),e.createBlock(s,{key:0,align:"center",fixed:"right",label:"操作",width:r.value},{default:e.withCtx(C=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.buttons,(S,ee)=>e.withDirectives((e.openBlock(),e.createBlock(y,e.mergeProps({ref_for:!0},{...S},{key:ee,type:S.type.includes("del")?"danger":"primary",onClick:()=>{S.click?.(C.row)},disabled:S.disabled?.(C.row)||!1,link:S.link?.(C.row)||!0}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.label),1)]),_:2},1040,["type","onClick","disabled","link"])),[[e.vShow,S.show?.(C.row)||!0]])),128))]),_:1},8,["width"])):e.createCommentVNode("",!0)]),_:1},16,["data","height","maxHeight"])],512)}}}),[["__scopeId","data-v-1c87357b"]]),U={name:"",components:{},props:{icon:{type:String,default:""}}};function X(t,o,n,r,i,c){return n.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{key:0,class:"menu_icon"})):e.createCommentVNode("",!0)}const L=w(U,[["render",X],["__scopeId","data-v-261ce99a"]]),K=e.defineComponent({name:"subMenu",__name:"subMenu",props:{routeData:{type:Object,default:()=>({})}},emits:["handleMenuItemClick"],setup(t,{emit:o}){const n=o;function r(i){n("handleMenuItemClick",i)}return(i,c)=>{const d=e.resolveComponent("subMenu",!0),a=e.resolveComponent("el-sub-menu"),l=e.resolveComponent("el-menu-item");return t.routeData.children&&t.routeData.children.length>0?(e.openBlock(),e.createBlock(a,{key:0,index:t.routeData.path},{title:e.withCtx(()=>[e.createVNode(L,{icon:t.routeData.meta.icon},null,8,["icon"]),e.createElementVNode("span",null,e.toDisplayString(t.routeData.meta.title),1)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.routeData.children,(p,m)=>(e.openBlock(),e.createBlock(d,{onHandleMenuItemClick:r,routeData:p,key:m},null,8,["routeData"]))),128))]),_:1},8,["index"])):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:c[0]||(c[0]=p=>r(t.routeData))},[e.createVNode(l,{index:t.routeData.path},{title:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(t.routeData.meta.title),1)]),default:e.withCtx(()=>[e.createVNode(L,{icon:t.routeData.meta.icon},null,8,["icon"])]),_:1},8,["index"])]))}}}),V=e.defineComponent({name:"MenuTree",__name:"index",props:{menuList:{type:Array,default:()=>[]}},emits:["handleMenuItemClick"],setup(t,{emit:o}){const n=o,r=i=>{n("handleMenuItemClick",i)};return(i,c)=>{const d=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(d,e.normalizeProps(e.guardReactiveProps(i.$attrs)),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menuList,a=>(e.openBlock(),e.createBlock(K,{routeData:a,onHandleMenuItemClick:r},null,8,["routeData"]))),256))]),_:1},16)}}}),G=e.defineComponent({name:"Pagination",__name:"index",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pagerCount:{type:Number,default:document.body.clientWidth<992?5:7},onPagination:{type:Function}},emits:["update:page","update:limit","pagination"],setup(t,{emit:o}){const n=t,r=o,i=e.computed({get(){return n.page},set(l){r("update:page",l)}}),c=e.computed({get(){return n.limit},set(l){r("update:limit",l)}}),d=l=>{i.value*l>n.total&&(i.value=1),r("pagination",{page:i.value,limit:l})},a=l=>{r("pagination",{page:l,limit:c.value})};return(l,p)=>{const m=e.resolveComponent("el-pagination");return e.withDirectives((e.openBlock(),e.createBlock(m,{"current-page":i.value,"onUpdate:currentPage":p[0]||(p[0]=f=>i.value=f),"page-size":c.value,"onUpdate:pageSize":p[1]||(p[1]=f=>c.value=f),background:!0,"page-sizes":[10,20,30,50,100],"pager-count":t.pagerCount,total:t.total,class:"pagination",layout:"total, sizes, prev, pager, next, jumper",onSizeChange:d,onCurrentChange:a},null,8,["current-page","page-size","pager-count","total"])),[[e.vShow,t.total>0]])}}}),P=w(G,[["__scopeId","data-v-1e34e383"]]),J=["onClick","onMouseover"],I=w(e.defineComponent({name:"EasyContextMenu",__name:"index",props:{menuList:{type:Array,default:()=>[]},maxHeight:{type:[String,Number],default:200},backgroundColor:{type:String,default:"#fff"},hoverItemStyle:{type:Object,default:()=>({backgroundColor:"#ddd"})},animationCurve:{type:String,default:"linear"}},setup(t){const o=t,n=e.ref(-1),r=e.ref(!1),i=e.ref({x:0,y:0}),c=m=>{r.value=!1,m.preventDefault(),m.stopPropagation(),setTimeout(()=>{r.value=!0;const{clientX:f,clientY:g}=m;i.value={x:f,y:g},d.value?.scrollTo(0,0)},0)},d=e.ref(null),a=e.ref(null);e.onMounted(()=>{const m=a.value?.parentElement;m?.addEventListener("contextmenu",c),document.addEventListener("click",()=>{r.value=!1}),m?.addEventListener("blur",()=>{console.log("blur"),r.value=!1})});const l=e.computed(()=>o.maxHeight=="auto"?"auto":o.maxHeight.toString().indexOf("px")>-1?o.maxHeight:`${o.maxHeight}px`),p=e.computed(()=>({backgroundColor:o.backgroundColor,left:`${i.value.x}px`,top:`${i.value.y}px`,maxHeight:r.value?l.value:"0px",transition:r.value?`max-height .2s ${o.animationCurve}`:"none"}));return(m,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"contextMenu",ref:a},[e.createElementVNode("div",e.mergeProps({class:"easy-context-menu"},m.$attrs,{style:{...e.unref(p)},ref_key:"menuListRef",ref:d}),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menuList,(g,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,onContextmenu:f[0]||(f[0]=e.withModifiers(()=>{},["stop"])),onClick:g.onClick,onMouseover:b=>n.value=u,onMouseout:f[1]||(f[1]=b=>n.value=-1),style:e.normalizeStyle(e.unref(n)===u?o.hoverItemStyle:"")},e.toDisplayString(g.label),45,J))),128))],16)],512))}}),[["__scopeId","data-v-f9f5bc05"]]);class x{vnode=null;#e={bindEvent:!0};defaultStyle={position:"fixed","z-index":1e3,"border-radius":"4px",color:"#666","font-size":"14px","min-width":"100px","box-shadow":"1px 1px 11px 0px #a6b5ba","background-color":"#fff",padding:"4px",overflow:"hidden"};hoverStyle={"background-color":"#8f9f80ff"};menu=null;static#t=null;static getInstance(){return x.#t||(x.#t=new x),x.#t}constructor(){x.#t||(x.#t=this)}create(o){const n=x.getInstance();return n.vnode!==o.target&&n.destroy(),n.vnode=o.target||null,n.#e={...n.#e,...o},n.#o(),n}#o(){this.defaultStyle={...this.defaultStyle,...this.#e.style},this.hoverStyle={...this.hoverStyle,...this.#e.hoverStyle},this.vnode&&this.vnode?.addEventListener(this.#e.event||"contextmenu",this.showMenu),document.addEventListener("click",this.hideMenu),document.addEventListener("keydown",this.hideMenu)}destroy(){this.vnode?.removeEventListener(this.#e.event||"contextmenu",this.showMenu),document.removeEventListener("click",this.hideMenu),document.removeEventListener("keydown",this.hideMenu),this.resetContextMenu()}resetContextMenu(){this.#e.appendToBody?this.menu&&document.body.removeChild(this.menu):this.vnode?.contains(this.menu)&&this.menu&&this.vnode?.removeChild(this.menu),this.menu=null}#n(){this.menu&&(this.menu.style.transition="none",this.menu.style.maxHeight="0",this.menu.style.display="none")}setMenuList(o){this.#e.menuList=o}showMenu(o){x.#t.#l(o)}hideMenu(){x.#t.#n()}#l(o){if(o.preventDefault(),o.stopPropagation(),this.#e.menuList.length===0)return;if(this.vnode||(this.vnode=o.target),console.log(this,"this"),this.#n(),!this.menu){const d=document.createElement("div");d.className=this.#e.classNames||"",this.menu=d,this.#e.menuList.forEach(a=>{const l=document.createElement("div");if(!a.label&&a.divider){l.style="padding: 0; margin: 5px 0; border-top: 1px solid #e6e6e6;",d.appendChild(l);return}const p=";padding: 5px 10px; cursor: pointer;";if(l.style=p,l.innerText=a.label,a.disabled){l.style.cssText+="color: #ccc; cursor: not-allowed;",d.appendChild(l);return}d.appendChild(l),l.addEventListener("click",m=>{o.stopPropagation(),a.onClick&&a.onClick(m),this.#n()}),l.addEventListener("mouseover",()=>{l.style.cssText=Object.entries(this.hoverStyle).map(([m,f])=>`${m}:${f}`).join(";")+p}),l.addEventListener("mouseout",()=>{l.style=p})}),this.#e.appendToBody?document.body.appendChild(d):this.vnode?.appendChild(d)}const{clientX:n,clientY:r}=o,i={display:"block",...this.defaultStyle,left:`${n}px`,top:`${r}px`};let c=Object.entries(i).map(([d,a])=>`${d}:${a}`).join(";");this.menu.style.cssText=c,this.menu.style.transition="none",this.menu.style.maxHeight="0",setTimeout(()=>{this.menu&&(this.menu.style.maxHeight=`${this.#e.style?.["max-height"]||"200px"}`,this.menu.style.transition=`${this.#e.style?.transition||"max-height 0.1s ease-in-out"}`)},0),this.menu.scrollTo(0,0)}}const Q=x.getInstance(),Z=[_,E,M,H,Y,V,P,I],T=[],F=(t,o)=>{Z.forEach(n=>{T.push(n.name),t.component(n.name,n)}),console.log("mwl-components",T)},v={install:F};h.ContentWarp=E,h.ContextMenu=Q,h.Dialog=M,h.EasyButton=_,h.EasyContextMenu=I,h.EasyForm=H,h.EasyTable=Y,h.MenuTree=V,h.Pagination=P,h.componentsMap=N,h.default=v,h.getPlaceholder=$,h.install=F,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/mwl-components.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.el-card[data-v-fdaaba5e]{background-color:transparent;margin-bottom:10px}[data-v-fdaaba5e] .el-card__body:has(>.el-form){padding:18px 20px 0}[data-v-fdaaba5e] .el-card__body{padding:20px;height:100%}[data-v-fdaaba5e] .el-card__footer{padding:0 20px}.custom-dialog{padding:0;box-shadow:0 0 5px 0 var(--el-text-color-secondary)}.custom-dialog .el-dialog__header{padding:0}.dialog-header{--el-dialog-padding-primary: 20px;border-bottom:1px solid var(--el-border-color);padding:var(--el-dialog-padding-primary);padding-bottom:10px;padding-right:44px;display:flex;align-items:center;justify-content:space-between;color:var(--el-text-color-primary)}.dialog-header .fullScreen{cursor:pointer;z-index:99}.dialog-header .fullScreen:hover{color:var(--el-color-primary)}.el-dialog__headerbtn{--el-message-close-size: 20px;top:7px;margin-right:10px;width:20px}.el-dialog__body{padding:20px 30px}.el-dialog__footer{padding:10px 20px 20px;border-top:1px solid var(--el-border-color)}.is-hover:hover{color:var(--el-color-primary)}[data-v-ebcd5674] .el-form-item__label{font-size:var(--el-font-size-base)}.easy-form .el-form-item[data-v-ebcd5674]{margin-right:10px}[data-v-ebcd5674] .el-date-editor{flex-grow:initial}[data-v-1c87357b] .el-table,[data-v-1c87357b] th.el-table__cell,[data-v-1c87357b] tr{background-color:transparent!important}.menu_icon[data-v-261ce99a]{width:22px;height:22px;margin-right:5px;fill:currentColor;display:inline-block;font-size:16px}.pagination[data-v-1e34e383]{margin-top:15px;margin-bottom:15px;float:right}@media screen and (max-width: 1370px){.pagination[data-v-1e34e383]{margin-top:8px;margin-bottom:8px}}
|
|
1
|
+
.el-card[data-v-fdaaba5e]{background-color:transparent;margin-bottom:10px}[data-v-fdaaba5e] .el-card__body:has(>.el-form){padding:18px 20px 0}[data-v-fdaaba5e] .el-card__body{padding:20px;height:100%}[data-v-fdaaba5e] .el-card__footer{padding:0 20px}.custom-dialog{padding:0;box-shadow:0 0 5px 0 var(--el-text-color-secondary)}.custom-dialog .el-dialog__header{padding:0}.dialog-header{--el-dialog-padding-primary: 20px;border-bottom:1px solid var(--el-border-color);padding:var(--el-dialog-padding-primary);padding-bottom:10px;padding-right:44px;display:flex;align-items:center;justify-content:space-between;color:var(--el-text-color-primary)}.dialog-header .fullScreen{cursor:pointer;z-index:99}.dialog-header .fullScreen:hover{color:var(--el-color-primary)}.el-dialog__headerbtn{--el-message-close-size: 20px;top:7px;margin-right:10px;width:20px}.el-dialog__body{padding:20px 30px}.el-dialog__footer{padding:10px 20px 20px;border-top:1px solid var(--el-border-color)}.is-hover:hover{color:var(--el-color-primary)}[data-v-ebcd5674] .el-form-item__label{font-size:var(--el-font-size-base)}.easy-form .el-form-item[data-v-ebcd5674]{margin-right:10px}[data-v-ebcd5674] .el-date-editor{flex-grow:initial}[data-v-1c87357b] .el-table,[data-v-1c87357b] th.el-table__cell,[data-v-1c87357b] tr{background-color:transparent!important}.menu_icon[data-v-261ce99a]{width:22px;height:22px;margin-right:5px;fill:currentColor;display:inline-block;font-size:16px}.pagination[data-v-1e34e383]{margin-top:15px;margin-bottom:15px;float:right}@media screen and (max-width: 1370px){.pagination[data-v-1e34e383]{margin-top:8px;margin-bottom:8px}}.easy-context-menu[data-v-f9f5bc05]{position:fixed;min-width:100px;z-index:1000;border-radius:4px;overflow:auto;color:#666;font-size:14px;box-shadow:1px 1px 11px #a6b5ba}.easy-context-menu div[data-v-f9f5bc05]{cursor:pointer;margin:5px;padding:4px 15px;border-radius:3px}
|
package/package.json
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mwl-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
|
-
"module": "dist/index.js",
|
|
6
|
+
"module": "./dist/index.es.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"main": "./dist/index.cjs.js",
|
|
9
|
+
"unpkg": "./dist/index.umd.js",
|
|
10
|
+
"jsdelivr": "./dist/index.umd.js",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.es.js",
|
|
14
|
+
"require": "./dist/index.cjs.js"
|
|
15
|
+
},
|
|
16
|
+
"./dist/index.umd.js": "./dist/index.umd.js"
|
|
17
|
+
},
|
|
8
18
|
"sideEffects": false,
|
|
9
19
|
"scripts": {
|
|
10
20
|
"dev": "vite",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
4
|
-
refs: {};
|
|
5
|
-
rootEl: any;
|
|
6
|
-
};
|
|
7
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
8
|
-
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
9
|
-
title: StringConstructor;
|
|
10
|
-
message: StringConstructor;
|
|
11
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
12
|
-
title: StringConstructor;
|
|
13
|
-
message: StringConstructor;
|
|
14
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
-
export default _default;
|
|
17
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
-
new (): {
|
|
19
|
-
$slots: S;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
4
|
-
refs: {};
|
|
5
|
-
rootEl: any;
|
|
6
|
-
};
|
|
7
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
8
|
-
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
9
|
-
title: {
|
|
10
|
-
type: StringConstructor;
|
|
11
|
-
default: string;
|
|
12
|
-
};
|
|
13
|
-
fullscreen: {
|
|
14
|
-
type: BooleanConstructor;
|
|
15
|
-
default: boolean;
|
|
16
|
-
};
|
|
17
|
-
scroll: {
|
|
18
|
-
type: BooleanConstructor;
|
|
19
|
-
default: boolean;
|
|
20
|
-
};
|
|
21
|
-
width: {
|
|
22
|
-
type: StringConstructor;
|
|
23
|
-
default: string;
|
|
24
|
-
};
|
|
25
|
-
maxHeight: {
|
|
26
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
27
|
-
default: string;
|
|
28
|
-
};
|
|
29
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
30
|
-
title: {
|
|
31
|
-
type: StringConstructor;
|
|
32
|
-
default: string;
|
|
33
|
-
};
|
|
34
|
-
fullscreen: {
|
|
35
|
-
type: BooleanConstructor;
|
|
36
|
-
default: boolean;
|
|
37
|
-
};
|
|
38
|
-
scroll: {
|
|
39
|
-
type: BooleanConstructor;
|
|
40
|
-
default: boolean;
|
|
41
|
-
};
|
|
42
|
-
width: {
|
|
43
|
-
type: StringConstructor;
|
|
44
|
-
default: string;
|
|
45
|
-
};
|
|
46
|
-
maxHeight: {
|
|
47
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
48
|
-
default: string;
|
|
49
|
-
};
|
|
50
|
-
}>> & Readonly<{}>, {
|
|
51
|
-
title: string;
|
|
52
|
-
fullscreen: boolean;
|
|
53
|
-
scroll: boolean;
|
|
54
|
-
width: string;
|
|
55
|
-
maxHeight: string | number;
|
|
56
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
57
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
58
|
-
export default _default;
|
|
59
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
60
|
-
new (): {
|
|
61
|
-
$slots: S;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { FormItem, ComponentMapType } from '../types';
|
|
3
|
-
export declare const getPlaceholder: (item: FormItem) => string | undefined;
|
|
4
|
-
export declare const componentsMap: ComponentMapType[];
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
6
|
-
inline: {
|
|
7
|
-
type: BooleanConstructor;
|
|
8
|
-
default: boolean;
|
|
9
|
-
};
|
|
10
|
-
formItems: {
|
|
11
|
-
type: PropType<FormItem[]>;
|
|
12
|
-
default: () => never[];
|
|
13
|
-
};
|
|
14
|
-
labelWidth: {
|
|
15
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
|
-
itemWidth: {
|
|
19
|
-
type: StringConstructor[];
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
|
-
modelValue: {
|
|
23
|
-
type: PropType<Record<string, any>>;
|
|
24
|
-
};
|
|
25
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
-
"update:modelValue": (value: Record<string, any>) => any;
|
|
27
|
-
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
28
|
-
inline: {
|
|
29
|
-
type: BooleanConstructor;
|
|
30
|
-
default: boolean;
|
|
31
|
-
};
|
|
32
|
-
formItems: {
|
|
33
|
-
type: PropType<FormItem[]>;
|
|
34
|
-
default: () => never[];
|
|
35
|
-
};
|
|
36
|
-
labelWidth: {
|
|
37
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
itemWidth: {
|
|
41
|
-
type: StringConstructor[];
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
|
-
modelValue: {
|
|
45
|
-
type: PropType<Record<string, any>>;
|
|
46
|
-
};
|
|
47
|
-
}>> & Readonly<{
|
|
48
|
-
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
49
|
-
}>, {
|
|
50
|
-
labelWidth: string | number;
|
|
51
|
-
inline: boolean;
|
|
52
|
-
formItems: FormItem[];
|
|
53
|
-
itemWidth: string;
|
|
54
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, Readonly<Record<string, any>> & Record<string, any>>;
|
|
55
|
-
export default _default;
|
|
56
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
57
|
-
new (): {
|
|
58
|
-
$slots: S;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { TableColumn, buttonType } from '../types';
|
|
3
|
-
declare function __VLS_template(): {
|
|
4
|
-
attrs: Partial<{}>;
|
|
5
|
-
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
6
|
-
refs: {
|
|
7
|
-
tableRef: HTMLDivElement;
|
|
8
|
-
};
|
|
9
|
-
rootEl: HTMLDivElement;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
13
|
-
data: {
|
|
14
|
-
type: {
|
|
15
|
-
(arrayLength: number): Record<string, any>[];
|
|
16
|
-
(...items: Record<string, any>[]): Record<string, any>[];
|
|
17
|
-
new (arrayLength: number): Record<string, any>[];
|
|
18
|
-
new (...items: Record<string, any>[]): Record<string, any>[];
|
|
19
|
-
isArray(arg: any): arg is any[];
|
|
20
|
-
readonly prototype: any[];
|
|
21
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
22
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
23
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
24
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
25
|
-
of<T>(...items: T[]): T[];
|
|
26
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
27
|
-
};
|
|
28
|
-
required: true;
|
|
29
|
-
default: () => never[];
|
|
30
|
-
};
|
|
31
|
-
tableColumns: {
|
|
32
|
-
type: PropType<TableColumn[]>;
|
|
33
|
-
default: () => never[];
|
|
34
|
-
};
|
|
35
|
-
buttons: {
|
|
36
|
-
type: PropType<buttonType[]>;
|
|
37
|
-
default: () => never[];
|
|
38
|
-
};
|
|
39
|
-
buttonWidth: {
|
|
40
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
41
|
-
default: number;
|
|
42
|
-
};
|
|
43
|
-
align: {
|
|
44
|
-
type: StringConstructor;
|
|
45
|
-
default: string;
|
|
46
|
-
};
|
|
47
|
-
height: {
|
|
48
|
-
type: NumberConstructor;
|
|
49
|
-
default: undefined;
|
|
50
|
-
};
|
|
51
|
-
maxHeight: {
|
|
52
|
-
type: StringConstructor;
|
|
53
|
-
default: undefined;
|
|
54
|
-
};
|
|
55
|
-
footerHeight: {
|
|
56
|
-
type: NumberConstructor;
|
|
57
|
-
default: number;
|
|
58
|
-
};
|
|
59
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
60
|
-
data: {
|
|
61
|
-
type: {
|
|
62
|
-
(arrayLength: number): Record<string, any>[];
|
|
63
|
-
(...items: Record<string, any>[]): Record<string, any>[];
|
|
64
|
-
new (arrayLength: number): Record<string, any>[];
|
|
65
|
-
new (...items: Record<string, any>[]): Record<string, any>[];
|
|
66
|
-
isArray(arg: any): arg is any[];
|
|
67
|
-
readonly prototype: any[];
|
|
68
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
69
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
70
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
71
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
72
|
-
of<T>(...items: T[]): T[];
|
|
73
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
74
|
-
};
|
|
75
|
-
required: true;
|
|
76
|
-
default: () => never[];
|
|
77
|
-
};
|
|
78
|
-
tableColumns: {
|
|
79
|
-
type: PropType<TableColumn[]>;
|
|
80
|
-
default: () => never[];
|
|
81
|
-
};
|
|
82
|
-
buttons: {
|
|
83
|
-
type: PropType<buttonType[]>;
|
|
84
|
-
default: () => never[];
|
|
85
|
-
};
|
|
86
|
-
buttonWidth: {
|
|
87
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
88
|
-
default: number;
|
|
89
|
-
};
|
|
90
|
-
align: {
|
|
91
|
-
type: StringConstructor;
|
|
92
|
-
default: string;
|
|
93
|
-
};
|
|
94
|
-
height: {
|
|
95
|
-
type: NumberConstructor;
|
|
96
|
-
default: undefined;
|
|
97
|
-
};
|
|
98
|
-
maxHeight: {
|
|
99
|
-
type: StringConstructor;
|
|
100
|
-
default: undefined;
|
|
101
|
-
};
|
|
102
|
-
footerHeight: {
|
|
103
|
-
type: NumberConstructor;
|
|
104
|
-
default: number;
|
|
105
|
-
};
|
|
106
|
-
}>> & Readonly<{}>, {
|
|
107
|
-
data: Record<string, any>[];
|
|
108
|
-
maxHeight: string;
|
|
109
|
-
height: number;
|
|
110
|
-
align: string;
|
|
111
|
-
tableColumns: TableColumn[];
|
|
112
|
-
buttons: buttonType[];
|
|
113
|
-
buttonWidth: string | number;
|
|
114
|
-
footerHeight: number;
|
|
115
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
116
|
-
tableRef: HTMLDivElement;
|
|
117
|
-
}, HTMLDivElement>;
|
|
118
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
119
|
-
export default _default;
|
|
120
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
121
|
-
new (): {
|
|
122
|
-
$slots: S;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
-
menuList: {
|
|
3
|
-
type: {
|
|
4
|
-
(arrayLength: number): any[];
|
|
5
|
-
(...items: any[]): any[];
|
|
6
|
-
new (arrayLength: number): any[];
|
|
7
|
-
new (...items: any[]): any[];
|
|
8
|
-
isArray(arg: any): arg is any[];
|
|
9
|
-
readonly prototype: any[];
|
|
10
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
11
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
12
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
13
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
14
|
-
of<T>(...items: T[]): T[];
|
|
15
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
16
|
-
};
|
|
17
|
-
default: () => never[];
|
|
18
|
-
};
|
|
19
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
-
handleMenuItemClick: (...args: any[]) => void;
|
|
21
|
-
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
22
|
-
menuList: {
|
|
23
|
-
type: {
|
|
24
|
-
(arrayLength: number): any[];
|
|
25
|
-
(...items: any[]): any[];
|
|
26
|
-
new (arrayLength: number): any[];
|
|
27
|
-
new (...items: any[]): any[];
|
|
28
|
-
isArray(arg: any): arg is any[];
|
|
29
|
-
readonly prototype: any[];
|
|
30
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
31
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
32
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
33
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
34
|
-
of<T>(...items: T[]): T[];
|
|
35
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
36
|
-
};
|
|
37
|
-
default: () => never[];
|
|
38
|
-
};
|
|
39
|
-
}>> & Readonly<{
|
|
40
|
-
onHandleMenuItemClick?: ((...args: any[]) => any) | undefined;
|
|
41
|
-
}>, {
|
|
42
|
-
menuList: any[];
|
|
43
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
44
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
-
icon: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
7
|
-
icon: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
}>> & Readonly<{}>, {
|
|
12
|
-
icon: string;
|
|
13
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
-
routeData: {
|
|
3
|
-
type: ObjectConstructor;
|
|
4
|
-
default: () => {};
|
|
5
|
-
};
|
|
6
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
-
handleMenuItemClick: (...args: any[]) => void;
|
|
8
|
-
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
9
|
-
routeData: {
|
|
10
|
-
type: ObjectConstructor;
|
|
11
|
-
default: () => {};
|
|
12
|
-
};
|
|
13
|
-
}>> & Readonly<{
|
|
14
|
-
onHandleMenuItemClick?: ((...args: any[]) => any) | undefined;
|
|
15
|
-
}>, {
|
|
16
|
-
routeData: Record<string, any>;
|
|
17
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
|
-
export default _default;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
-
total: {
|
|
3
|
-
required: true;
|
|
4
|
-
type: NumberConstructor;
|
|
5
|
-
};
|
|
6
|
-
page: {
|
|
7
|
-
type: NumberConstructor;
|
|
8
|
-
default: number;
|
|
9
|
-
};
|
|
10
|
-
limit: {
|
|
11
|
-
type: NumberConstructor;
|
|
12
|
-
default: number;
|
|
13
|
-
};
|
|
14
|
-
pagerCount: {
|
|
15
|
-
type: NumberConstructor;
|
|
16
|
-
default: number;
|
|
17
|
-
};
|
|
18
|
-
onPagination: {
|
|
19
|
-
type: FunctionConstructor;
|
|
20
|
-
};
|
|
21
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
-
"update:page": (...args: any[]) => void;
|
|
23
|
-
"update:limit": (...args: any[]) => void;
|
|
24
|
-
pagination: (...args: any[]) => void;
|
|
25
|
-
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
26
|
-
total: {
|
|
27
|
-
required: true;
|
|
28
|
-
type: NumberConstructor;
|
|
29
|
-
};
|
|
30
|
-
page: {
|
|
31
|
-
type: NumberConstructor;
|
|
32
|
-
default: number;
|
|
33
|
-
};
|
|
34
|
-
limit: {
|
|
35
|
-
type: NumberConstructor;
|
|
36
|
-
default: number;
|
|
37
|
-
};
|
|
38
|
-
pagerCount: {
|
|
39
|
-
type: NumberConstructor;
|
|
40
|
-
default: number;
|
|
41
|
-
};
|
|
42
|
-
onPagination: {
|
|
43
|
-
type: FunctionConstructor;
|
|
44
|
-
};
|
|
45
|
-
}>> & Readonly<{
|
|
46
|
-
"onUpdate:page"?: ((...args: any[]) => any) | undefined;
|
|
47
|
-
"onUpdate:limit"?: ((...args: any[]) => any) | undefined;
|
|
48
|
-
onPagination?: ((...args: any[]) => any) | undefined;
|
|
49
|
-
}>, {
|
|
50
|
-
page: number;
|
|
51
|
-
limit: number;
|
|
52
|
-
pagerCount: number;
|
|
53
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
54
|
-
export default _default;
|
package/dist/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as ContentWarp } from './ContentWarp/index.vue';
|
|
2
|
-
import { default as Dialog } from './Dialog/index.vue';
|
|
3
|
-
import { default as EasyForm, componentsMap, getPlaceholder } from './EasyForm/index.vue';
|
|
4
|
-
import { default as EasyTable } from './EasyTable/index.vue';
|
|
5
|
-
import { default as MenuTree } from './MenuTree/components/index.vue';
|
|
6
|
-
import { default as Pagination } from './Pagination/index.vue';
|
|
7
|
-
export { ContentWarp, Dialog, EasyForm, EasyTable, MenuTree, Pagination, componentsMap, getPlaceholder };
|
|
8
|
-
export declare const install: (app: any, options: any) => void;
|
|
9
|
-
declare const _default: {
|
|
10
|
-
install: (app: any, options: any) => void;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
13
|
-
export type { Options, FormItem, Rule, Placement, TableColumn, buttonType, ComponentMapType, } from './types';
|