wtsk-comps 1.3.15 → 1.3.16
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.css +1 -1
- package/dist/wtsk-comps.cjs.js +1 -1
- package/dist/wtsk-comps.es.js +39 -39
- package/package.json +1 -1
- /package/dist/{header-logo.png → wtsk-images/header-logo.png} +0 -0
- /package/dist/{header-user.png → wtsk-images/header-user.png} +0 -0
- /package/dist/{layout-bg.png → wtsk-images/layout-bg.png} +0 -0
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.wtsk-form .el-input,.wtsk-form .el-select,.wtsk-form .el-date-editor,.wtsk-form .el-input-number{width:100%}.wtsk-form .el-form-item__label-wrap,.wtsk-form .el-form-item__label{font-weight:700}.wtsk-form .el-input__wrapper,.wtsk-form .el-select__wrapper,.wtsk-form .el-textarea__inner{background:#ffffff80;border:1px solid rgba(64,158,255,.3);box-shadow:none!important}.wtsk-form .el-input-group__append{box-shadow:none;border:1px solid rgba(64,158,255,.3);border-left:0}.wtsk-form .el-input-group__append .el-button{border:0}.wtsk-form .el-input-group__append .el-button .el-icon{color:#409eff}.wtsk-form.wtsk-form-search{display:flex;gap:20px}.wtsk-form.wtsk-form-search .el-input,.wtsk-form.wtsk-form-search .el-select,.wtsk-form.wtsk-form-search .el-date-editor,.wtsk-form.wtsk-form-search .el-input-number{width:200px}.wtsk-form.wtsk-form-search .el-input.el-date-editor--datetimerange,.wtsk-form.wtsk-form-search .el-select.el-date-editor--datetimerange,.wtsk-form.wtsk-form-search .el-date-editor.el-date-editor--datetimerange,.wtsk-form.wtsk-form-search .el-input-number.el-date-editor--datetimerange{width:initial}.wtsk-form.wtsk-form-search .el-form-item{margin:0}.el-table.wtsk-table{background:transparent}.el-table.wtsk-table .el-table__inner-wrapper:before{background-color:transparent!important}.el-table.wtsk-table tr{background:transparent!important}.el-table.wtsk-table tr.el-table__row--striped td{background:#ffffff70!important;border-top:1px solid #fff!important;border-bottom:1px solid #fff!important}.el-table.wtsk-table tr.current-row td{background:#409eff0f!important}.el-table.wtsk-table th{padding:0;height:50px;background-color:#409eff26!important;border:0!important;font-size:14px;color:#333}.el-table.wtsk-table th:nth-of-type(1){border-radius:4px 0 0 4px}.el-table.wtsk-table th:nth-last-of-type(1){border-radius:0 4px 4px 0}.el-table.wtsk-table td{padding:0;height:50px;background:transparent!important;border:0!important}.el-table.wtsk-table td .el-button.is-link{position:relative;padding:4px 5px;margin-left:0;color:#409eff;outline:0}.el-table.wtsk-table td .el-button.is-link:hover{text-decoration:underline}.el-table.wtsk-table.wtsk-table-small th,.el-table.wtsk-table.wtsk-table-small td{height:40px!important}.el-pagination.wtsk-pagination{justify-content:flex-end;margin-top:10px}.el-pagination.wtsk-pagination .btn-prev,.el-pagination.wtsk-pagination .btn-next,.el-pagination.wtsk-pagination .el-select__wrapper,.el-pagination.wtsk-pagination .el-pager li{background:#ffffff80!important;border:1px solid rgba(64,158,255,.5)!important;box-shadow:none!important}.el-pagination.wtsk-pagination .btn-prev.is-active,.el-pagination.wtsk-pagination .btn-next.is-active,.el-pagination.wtsk-pagination .el-select__wrapper.is-active,.el-pagination.wtsk-pagination .el-pager li.is-active{background-color:#409eff!important}.el-tree.wtsk-tree,.el-tree.wtsk-tree .el-tree-node .el-tree-node__content{background:transparent}.el-tree.wtsk-tree .el-tree-node.is-current>.el-tree-node__content{background:#409eff26!important;border-radius:4px}*{box-sizing:border-box;outline:none!important}*::selection{background-color:transparent;color:#409eff}html,body,#app{position:relative;margin:0;padding:0;width:100%;height:100%;overflow:hidden}a{color:initial;text-decoration:none}a:hover{color:#409eff}::-webkit-scrollbar{width:6px;height:8px;border:0!important}::-webkit-scrollbar-corner{background:transparent;border-radius:0}::-webkit-scrollbar-thumb{background-color:#409eff1a;border-radius:8px}.el-scrollbar__thumb{background-color:#409eff4d}.wtsk-layout{position:relative;width:100%;height:100%;background:url(./layout-bg.png) no-repeat left top;background-size:100% 100%;overflow:hidden;display:grid;grid-template-rows:60px 1fr;min-width:0;min-height:0}.wtsk-layout .wtsk-layout-header{position:relative;background-color:#fff6;border-bottom:1px solid #fff;display:flex;align-items:center;justify-content:space-between;padding:0 20px;-webkit-user-select:none;user-select:none}.wtsk-layout .wtsk-layout-header .wtsk-layout-header-left{display:flex;align-items:center;gap:10px}.wtsk-layout .wtsk-layout-header .wtsk-layout-header-left img{height:40px}.wtsk-layout .wtsk-layout-header .wtsk-layout-header-left .layout-left-title{font-size:26px;font-weight:700;letter-spacing:.1em;color:#409eff}.wtsk-layout .wtsk-layout-header .wtsk-layout-header-right{display:flex;align-items:center}.wtsk-layout .wtsk-layout-header .wtsk-layout-header-right .wtsk-layout-header-right-item{margin:0 5px;cursor:pointer;display:flex;align-items:center;justify-content:center}.wtsk-layout .wtsk-layout-header .wtsk-layout-header-right .wtsk-layout-header-right-item:nth-last-of-type(1){flex-direction:column;font-size:14px;font-weight:700;color:#409eff}.wtsk-layout .wtsk-layout-header .wtsk-layout-header-right .wtsk-layout-header-right-item img{width:32px;height:32px}.wtsk-layout .wtsk-layout-bottom{padding:14px;overflow:hidden;display:grid;grid-template-columns:220px 1fr;gap:14px;min-width:0;min-height:0}.wtsk-layout .wtsk-layout-bottom .wtsk-layout-menu{padding:10px;background-color:#fff6;border:1px solid #fff;border-radius:8px;overflow:hidden}.wtsk-layout .wtsk-layout-bottom .wtsk-page{position:relative;width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column;gap:14px}.wtsk-layout .wtsk-layout-bottom .wtsk-page .wtsk-page-box{position:relative;padding:14px;background-color:#ffffff80;border:1px solid #fff;border-radius:8px;overflow:hidden}.wtsk-layout .wtsk-layout-bottom .wtsk-page .wtsk-page-box:nth-last-of-type(1){flex:1}.wtsk-layout .wtsk-layout-bottom .wtsk-page .wtsk-page-box.wtsk-page-box-search{display:flex;align-items:center;justify-content:space-between}.wtsk-tree-box[data-v-d3610725]{position:relative;width:100%;height:100%;display:flex;flex-direction:column}.wtsk-tree-box .wtsk-tree-box-title[data-v-d3610725]{line-height:40px;border-bottom:1px solid #eee;text-align:center;font-size:17px;color:#333}.wtsk-tree-box .wtsk-tree-box-filter[data-v-d3610725]{padding:5px;display:flex;align-items:center;justify-content:center;gap:10px}.wtsk-tree-box .wtsk-tree-box-tree[data-v-d3610725]{flex:1;overflow-x:hidden;overflow-y:auto}.wtsk-tree-box .wtsk-tree-box-tree .wtsk-tree-box-tree-custom[data-v-d3610725]{width:calc(100% - 24px);display:flex;align-items:center;justify-content:space-between}.wtsk-tree-box .wtsk-tree-box-tree .wtsk-tree-box-tree-custom>div[data-v-d3610725]:nth-of-type(1){width:calc(100% - 60px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wtsk-tree-box .wtsk-tree-box-tree .wtsk-tree-box-tree-custom>div[data-v-d3610725]:nth-of-type(2){width:60px}.wtsk-tree-box .wtsk-tree-box-tree .wtsk-tree-box-tree-custom>div:nth-of-type(2) button[data-v-d3610725]{margin:0}
|
|
1
|
+
.wtsk-form .el-input,.wtsk-form .el-select,.wtsk-form .el-date-editor,.wtsk-form .el-input-number{width:100%}.wtsk-form .el-form-item__label-wrap,.wtsk-form .el-form-item__label{font-weight:700}.wtsk-form .el-input__wrapper,.wtsk-form .el-select__wrapper,.wtsk-form .el-textarea__inner{background:#ffffff80;border:1px solid rgba(64,158,255,.3);box-shadow:none!important}.wtsk-form .el-input-group__append{box-shadow:none;border:1px solid rgba(64,158,255,.3);border-left:0}.wtsk-form .el-input-group__append .el-button{border:0}.wtsk-form .el-input-group__append .el-button .el-icon{color:#409eff}.wtsk-form.wtsk-form-search{display:flex;gap:20px}.wtsk-form.wtsk-form-search .el-input,.wtsk-form.wtsk-form-search .el-select,.wtsk-form.wtsk-form-search .el-date-editor,.wtsk-form.wtsk-form-search .el-input-number{width:200px}.wtsk-form.wtsk-form-search .el-input.el-date-editor--datetimerange,.wtsk-form.wtsk-form-search .el-select.el-date-editor--datetimerange,.wtsk-form.wtsk-form-search .el-date-editor.el-date-editor--datetimerange,.wtsk-form.wtsk-form-search .el-input-number.el-date-editor--datetimerange{width:initial}.wtsk-form.wtsk-form-search .el-form-item{margin:0}.el-table.wtsk-table{background:transparent}.el-table.wtsk-table .el-table__inner-wrapper:before{background-color:transparent!important}.el-table.wtsk-table tr{background:transparent!important}.el-table.wtsk-table tr.el-table__row--striped td{background:#ffffff70!important;border-top:1px solid #fff!important;border-bottom:1px solid #fff!important}.el-table.wtsk-table tr.current-row td{background:#409eff0f!important}.el-table.wtsk-table th{padding:0;height:50px;background-color:#409eff26!important;border:0!important;font-size:14px;color:#333}.el-table.wtsk-table th:nth-of-type(1){border-radius:4px 0 0 4px}.el-table.wtsk-table th:nth-last-of-type(1){border-radius:0 4px 4px 0}.el-table.wtsk-table td{padding:0;height:50px;background:transparent!important;border:0!important}.el-table.wtsk-table td .el-button.is-link{position:relative;padding:4px 5px;margin-left:0;color:#409eff;outline:0}.el-table.wtsk-table td .el-button.is-link:hover{text-decoration:underline}.el-table.wtsk-table.wtsk-table-small th,.el-table.wtsk-table.wtsk-table-small td{height:40px!important}.el-pagination.wtsk-pagination{justify-content:flex-end;margin-top:10px}.el-pagination.wtsk-pagination .btn-prev,.el-pagination.wtsk-pagination .btn-next,.el-pagination.wtsk-pagination .el-select__wrapper,.el-pagination.wtsk-pagination .el-pager li{background:#ffffff80!important;border:1px solid rgba(64,158,255,.5)!important;box-shadow:none!important}.el-pagination.wtsk-pagination .btn-prev.is-active,.el-pagination.wtsk-pagination .btn-next.is-active,.el-pagination.wtsk-pagination .el-select__wrapper.is-active,.el-pagination.wtsk-pagination .el-pager li.is-active{background-color:#409eff!important}.el-tree.wtsk-tree,.el-tree.wtsk-tree .el-tree-node .el-tree-node__content{background:transparent}.el-tree.wtsk-tree .el-tree-node.is-current>.el-tree-node__content{background:#409eff26!important;border-radius:4px}*{box-sizing:border-box;outline:none!important}*::selection{background-color:transparent;color:#409eff}html,body,#app{position:relative;margin:0;padding:0;width:100%;height:100%;overflow:hidden}a{color:initial;text-decoration:none}a:hover{color:#409eff}::-webkit-scrollbar{width:6px;height:8px;border:0!important}::-webkit-scrollbar-corner{background:transparent;border-radius:0}::-webkit-scrollbar-thumb{background-color:#409eff1a;border-radius:8px}.el-scrollbar__thumb{background-color:#409eff4d}.wtsk-layout{position:relative;width:100%;height:100%;background:url(./wtsk-images/layout-bg.png) no-repeat left top;background-size:100% 100%;overflow:hidden;display:grid;grid-template-rows:60px 1fr;min-width:0;min-height:0}.wtsk-layout .wtsk-layout-header{position:relative;background-color:#fff6;border-bottom:1px solid #fff;display:flex;align-items:center;justify-content:space-between;padding:0 20px;-webkit-user-select:none;user-select:none}.wtsk-layout .wtsk-layout-header .wtsk-layout-header-left{display:flex;align-items:center;gap:10px}.wtsk-layout .wtsk-layout-header .wtsk-layout-header-left img{height:40px}.wtsk-layout .wtsk-layout-header .wtsk-layout-header-left .layout-left-title{font-size:26px;font-weight:700;letter-spacing:.1em;color:#409eff}.wtsk-layout .wtsk-layout-header .wtsk-layout-header-right{display:flex;align-items:center}.wtsk-layout .wtsk-layout-header .wtsk-layout-header-right .wtsk-layout-header-right-item{margin:0 5px;cursor:pointer;display:flex;align-items:center;justify-content:center}.wtsk-layout .wtsk-layout-header .wtsk-layout-header-right .wtsk-layout-header-right-item:nth-last-of-type(1){flex-direction:column;font-size:14px;font-weight:700;color:#409eff}.wtsk-layout .wtsk-layout-header .wtsk-layout-header-right .wtsk-layout-header-right-item img{width:32px;height:32px}.wtsk-layout .wtsk-layout-bottom{padding:14px;overflow:hidden;display:grid;grid-template-columns:220px 1fr;gap:14px;min-width:0;min-height:0}.wtsk-layout .wtsk-layout-bottom .wtsk-layout-menu{padding:10px;background-color:#fff6;border:1px solid #fff;border-radius:8px;overflow:hidden}.wtsk-layout .wtsk-layout-bottom .wtsk-page{position:relative;width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column;gap:14px}.wtsk-layout .wtsk-layout-bottom .wtsk-page .wtsk-page-box{position:relative;padding:14px;background-color:#ffffff80;border:1px solid #fff;border-radius:8px;overflow:hidden}.wtsk-layout .wtsk-layout-bottom .wtsk-page .wtsk-page-box:nth-last-of-type(1){flex:1}.wtsk-layout .wtsk-layout-bottom .wtsk-page .wtsk-page-box.wtsk-page-box-search{display:flex;align-items:center;justify-content:space-between}.wtsk-tree-box[data-v-d3610725]{position:relative;width:100%;height:100%;display:flex;flex-direction:column}.wtsk-tree-box .wtsk-tree-box-title[data-v-d3610725]{line-height:40px;border-bottom:1px solid #eee;text-align:center;font-size:17px;color:#333}.wtsk-tree-box .wtsk-tree-box-filter[data-v-d3610725]{padding:5px;display:flex;align-items:center;justify-content:center;gap:10px}.wtsk-tree-box .wtsk-tree-box-tree[data-v-d3610725]{flex:1;overflow-x:hidden;overflow-y:auto}.wtsk-tree-box .wtsk-tree-box-tree .wtsk-tree-box-tree-custom[data-v-d3610725]{width:calc(100% - 24px);display:flex;align-items:center;justify-content:space-between}.wtsk-tree-box .wtsk-tree-box-tree .wtsk-tree-box-tree-custom>div[data-v-d3610725]:nth-of-type(1){width:calc(100% - 60px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wtsk-tree-box .wtsk-tree-box-tree .wtsk-tree-box-tree-custom>div[data-v-d3610725]:nth-of-type(2){width:60px}.wtsk-tree-box .wtsk-tree-box-tree .wtsk-tree-box-tree-custom>div:nth-of-type(2) button[data-v-d3610725]{margin:0}
|
package/dist/wtsk-comps.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),V=require("element-plus"),N=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/header-logo.png").href:new URL("header-logo.png",document.currentScript&&document.currentScript.tagName.toUpperCase()==="SCRIPT"&&document.currentScript.src||document.baseURI).href),x=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/header-user.png").href:new URL("header-user.png",document.currentScript&&document.currentScript.tagName.toUpperCase()==="SCRIPT"&&document.currentScript.src||document.baseURI).href),E={class:"wtsk-layout-header"},S={class:"wtsk-layout-header-right"},P={class:"wtsk-layout-header-right-item"},T={__name:"Header",setup(o){let m=e.ref(null),d=e.ref(""),k=e.ref("");e.onMounted(()=>{s(),m.value=setInterval(s,1e3)}),e.onUnmounted(()=>{clearInterval(m.value),m.value=null});function s(){d.value=V.dayjs().format("YYYY-MM-DD"),k.value=V.dayjs().format("HH:mm:ss")}return(p,f)=>(e.openBlock(),e.createElementBlock("div",E,[f[1]||(f[1]=e.createElementVNode("div",{class:"wtsk-layout-header-left"},[e.createElementVNode("img",{src:N,alt:""}),e.createElementVNode("div",{class:"layout-left-title"},"后台管理通用组件文档")],-1)),e.createElementVNode("div",S,[f[0]||(f[0]=e.createElementVNode("div",{class:"wtsk-layout-header-right-item"},[e.createElementVNode("img",{alt:"",src:x})],-1)),e.createElementVNode("div",P,[e.createElementVNode("div",null,e.toDisplayString(e.unref(k)),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(d)),1)])])]))}},F={class:"wtsk-layout"},$={class:"wtsk-layout-bottom"},U={__name:"Layout",setup(o){return(m,d)=>(e.openBlock(),e.createElementBlock("div",F,[e.createVNode(T),e.createElementVNode("div",$,[d[0]||(d[0]=e.createElementVNode("div",null,null,-1)),e.renderSlot(m.$slots,"default")])]))}},z=Object.assign({name:"WtskBtn",inheritAttrs:!1},{__name:"WtskBtn",setup(o){const m=e.useAttrs(),d=e.ref(!1);function k(p,f){const a={};for(const v in p)v!==f&&(a[v]=p[v]);return a}async function s(){d.value=!0;try{await m.onClick?.()}finally{d.value=!1}}return(p,f)=>{const a=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(a,e.mergeProps(k(p.$attrs,"onClick"),{loading:d.value,onClick:s}),{default:e.withCtx(()=>[e.renderSlot(p.$slots,"default")]),_:3},16,["loading"])}}});var H=e.defineComponent({name:"Delete",__name:"delete",setup(o){return(m,d)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),M=H,R=e.defineComponent({name:"Edit",__name:"edit",setup(o){return(m,d)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),e.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),B=R,O=e.defineComponent({name:"Plus",__name:"plus",setup(o){return(m,d)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),b=O;const D=(o,m)=>{const d=o.__vccOpts||o;for(const[k,s]of m)d[k]=s;return d},I={class:"wtsk-tree-box"},L={key:0,class:"wtsk-tree-box-title"},W={key:1,class:"wtsk-tree-box-filter wtsk-form"},A={style:{display:"flex","align-items":"center"},class:"wtsk-form"},j={class:"wtsk-tree-box-tree-custom"},q={style:{display:"flex","align-items":"center"},class:"wtsk-form"},Y={style:{display:"flex","align-items":"center"},class:"wtsk-form"},G=Object.assign({name:"WtskTree",inheritAttrs:!1},{__name:"WtskTree",props:{treeTitle:{type:String,default:""},treeHasFilter:{type:Boolean,default:!1},treeFilterType:{type:String,default:"default"},treeHasOperate:{type:Boolean,default:!1},treeCustomizeOperate:{type:Boolean,default:!1},treeAddParentText:{type:String,default:"新增一级"}},emits:["treeOperate"],setup(o,{expose:m,emit:d}){const k=e.useAttrs(),s=o,p=e.ref();let f=e.ref(""),a=e.ref("");const v=d;e.watch(f,r=>{p.value?.filter(r)});function u(r,l,i){if(!r)return!0;const n=l.label?l.label:k.props?.label;if(s.treeFilterType==="default")return l[n].includes(r);{let h=[];y(i,h,r,n);let C=!1;return h.forEach(w=>{C=C||w}),C}}function y(r,l,i,n){let h=r.data&&r.data[n]&&r.data[n].includes(i);h&&l.push(h),!h&&r.level!==1&&r.parent&&y(r.parent,l,i,n)}function g(r,l,i){s.treeCustomizeOperate||r==="delete"?v("treeOperate",r,l,i):a.value.trim()!==""?(document.documentElement.click(),v("treeOperate",r,l,i,a.value)):V.ElMessage.error("名称不能为空!")}return m({wtskTreeRef:p}),(r,l)=>{const i=e.resolveComponent("el-input"),n=e.resolveComponent("el-button"),h=e.resolveComponent("el-popover"),C=e.resolveComponent("el-popconfirm"),w=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",I,[o.treeTitle!==""?(e.openBlock(),e.createElementBlock("div",L,e.toDisplayString(o.treeTitle),1)):e.createCommentVNode("",!0),o.treeHasFilter||o.treeHasOperate?(e.openBlock(),e.createElementBlock("div",W,[o.treeHasFilter?(e.openBlock(),e.createBlock(i,{key:0,modelValue:e.unref(f),"onUpdate:modelValue":l[0]||(l[0]=t=>e.isRef(f)?f.value=t:f=t),placeholder:"输入名称进行筛选……",clearable:""},null,8,["modelValue"])):e.createCommentVNode("",!0),o.treeCustomizeOperate?(e.openBlock(),e.createBlock(n,{key:2,type:"primary",onClick:l[4]||(l[4]=t=>g("addParent"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.treeAddParentText),1)]),_:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.treeHasOperate?(e.openBlock(),e.createBlock(h,{key:0,placement:"bottom",width:280,trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(n,{type:"primary",onClick:l[1]||(l[1]=t=>e.isRef(a)?a.value="":a="")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.treeAddParentText),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",A,[e.createVNode(i,{modelValue:e.unref(a),"onUpdate:modelValue":l[2]||(l[2]=t=>e.isRef(a)?a.value=t:a=t),placeholder:"请输入名称",clearable:""},null,8,["modelValue"]),e.createVNode(n,{type:"primary",style:{"margin-left":"10px"},onClick:l[3]||(l[3]=e.withModifiers(t=>g("addParent"),["stop"]))},{default:e.withCtx(()=>[...l[9]||(l[9]=[e.createTextVNode("新增",-1)])]),_:1})])]),_:1})):e.createCommentVNode("",!0)],64))])):e.createCommentVNode("",!0),e.createVNode(w,e.mergeProps({ref_key:"wtskTreeRef",ref:p,class:"wtsk-tree wtsk-tree-box-tree"},{"node-key":"id","highlight-current":!0,"default-expand-all":!0,"expand-on-click-node":!1,"check-on-click-leaf":!1,...r.$attrs},{"filter-node-method":u}),e.createSlots({_:2},[o.treeHasOperate?{name:"default",fn:e.withCtx(({node:t,data:c})=>[e.createElementVNode("div",j,[e.createElementVNode("div",null,e.toDisplayString(t.label),1),e.createElementVNode("div",null,[o.treeCustomizeOperate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(n,{type:"success",link:"",icon:e.unref(b),onClick:e.withModifiers(_=>g("add",c,t),["stop"])},null,8,["icon","onClick"]),e.createVNode(n,{type:"primary",link:"",icon:e.unref(B),onClick:e.withModifiers(_=>g("edit",c,t),["stop"])},null,8,["icon","onClick"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(h,{placement:"bottom",width:280,trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(n,{type:"success",link:"",icon:e.unref(b),onClick:l[5]||(l[5]=e.withModifiers(_=>e.isRef(a)?a.value="":a="",["stop"]))},null,8,["icon"])]),default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createVNode(i,{modelValue:e.unref(a),"onUpdate:modelValue":l[6]||(l[6]=_=>e.isRef(a)?a.value=_:a=_),placeholder:"请输入名称",clearable:""},null,8,["modelValue"]),e.createVNode(n,{type:"primary",style:{"margin-left":"10px"},onClick:e.withModifiers(_=>g("add",c,t),["stop"])},{default:e.withCtx(()=>[...l[10]||(l[10]=[e.createTextVNode("新增",-1)])]),_:1},8,["onClick"])])]),_:2},1024),e.createVNode(h,{placement:"bottom",width:280,trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(n,{type:"primary",link:"",icon:e.unref(B),onClick:e.withModifiers(_=>e.isRef(a)?a.value=t.label:a=t.label,["stop"])},null,8,["icon","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",Y,[e.createVNode(i,{modelValue:e.unref(a),"onUpdate:modelValue":l[7]||(l[7]=_=>e.isRef(a)?a.value=_:a=_),placeholder:"请输入名称",clearable:""},null,8,["modelValue"]),e.createVNode(n,{type:"primary",style:{"margin-left":"10px"},onClick:e.withModifiers(_=>g("edit",c,t),["stop"])},{default:e.withCtx(()=>[...l[11]||(l[11]=[e.createTextVNode("修改",-1)])]),_:1},8,["onClick"])])]),_:2},1024)],64)),e.createVNode(C,{title:"确定删除这条数据吗?","hide-icon":"",width:"170",onConfirm:_=>g("delete",c,t)},{reference:e.withCtx(()=>[e.createVNode(n,{type:"danger",link:"",icon:e.unref(M),onClick:l[8]||(l[8]=e.withModifiers(()=>{},["stop"]))},null,8,["icon"])]),_:1},8,["onConfirm"])])])]),key:"0"}:void 0]),1040)])}}}),J=D(G,[["__scopeId","data-v-d3610725"]]),Q=Object.assign({name:"WtskForm",inheritAttrs:!1},{__name:"WtskForm",props:e.mergeModels({formIsSearch:{type:Boolean,default:!1},formItems:{type:Array,default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(o,{expose:m}){const d=o,k=e.computed(()=>d.formItems.filter(u=>!u.hidden)),s=e.useModel(o,"modelValue"),p={input:V.ElInput,number:V.ElInputNumber,select:V.ElSelect,date:V.ElDatePicker,switch:V.ElSwitch,treeSelect:V.ElTreeSelect};function f(u,y){if(!u||typeof u!="object"||!y)return;const g=y.split(".");let r=u;for(const l of g){if(r===null||!(l in r))return;r=r[l]}return r}function a(u,y,g){if(!u||typeof u!="object"||!y)return;const r=y.split(".");let l=u;for(let i=0;i<r.length-1;i++){const n=r[i];if((l[n]===null||typeof l[n]!="object"&&l[n]!==void 0)&&(l[n]={}),!(n in l))return;l=l[n]}l[r[r.length-1]]=g}const v=e.ref();return m({wtskFormRef:v}),(u,y)=>{const g=e.resolveComponent("el-radio"),r=e.resolveComponent("el-radio-group"),l=e.resolveComponent("el-checkbox"),i=e.resolveComponent("el-checkbox-group"),n=e.resolveComponent("el-form-item"),h=e.resolveComponent("el-col"),C=e.resolveComponent("el-row"),w=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(w,e.mergeProps({ref_key:"wtskFormRef",ref:v,class:["wtsk-form",o.formIsSearch?"wtsk-form-search":""]},{"label-width":o.formIsSearch?"auto":"100px",...u.$attrs},{model:s.value}),{default:e.withCtx(()=>[o.formIsSearch?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,t=>(e.openBlock(),e.createBlock(n,{key:t.prop,label:t.label,prop:t.prop},{default:e.withCtx(()=>[e.renderSlot(u.$slots,t.prop,{},()=>[t.type==="radio"||t.type==="checkbox"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.type==="radio"?(e.openBlock(),e.createBlock(r,{key:0,modelValue:s.value[t.prop],"onUpdate:modelValue":c=>s.value[t.prop]=c},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,c=>(e.openBlock(),e.createBlock(g,{value:c.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),t.type==="checkbox"?(e.openBlock(),e.createBlock(i,{key:1,modelValue:s.value[t.prop],"onUpdate:modelValue":c=>s.value[t.prop]=c},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,c=>(e.openBlock(),e.createBlock(l,{label:c.label,value:c.value},null,8,["label","value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p[t.type]),e.mergeProps({key:1,ref_for:!0},t.props,{"model-value":f(s.value,t.prop),"onUpdate:modelValue":c=>a(s.value,t.prop,c)}),null,16,["model-value","onUpdate:modelValue"]))])]),_:2},1032,["label","prop"]))),128)),e.createVNode(n,null,{default:e.withCtx(()=>[e.renderSlot(u.$slots,"formSearchBtn")]),_:3})],64)):(e.openBlock(),e.createBlock(C,{key:1,gutter:16},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,t=>(e.openBlock(),e.createBlock(h,{key:t.prop,span:t.span||24},{default:e.withCtx(()=>[e.createVNode(n,{label:t.label,prop:t.prop},{default:e.withCtx(()=>[e.renderSlot(u.$slots,t.prop,{},()=>[t.type==="radio"||t.type==="checkbox"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.type==="radio"?(e.openBlock(),e.createBlock(r,{key:0,modelValue:s.value[t.prop],"onUpdate:modelValue":c=>s.value[t.prop]=c},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,c=>(e.openBlock(),e.createBlock(g,{value:c.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),t.type==="checkbox"?(e.openBlock(),e.createBlock(i,{key:1,modelValue:s.value[t.prop],"onUpdate:modelValue":c=>s.value[t.prop]=c},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,c=>(e.openBlock(),e.createBlock(l,{label:c.label,value:c.value},null,8,["label","value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p[t.type]),e.mergeProps({key:1,ref_for:!0},t.props,{modelValue:s.value[t.prop],"onUpdate:modelValue":c=>s.value[t.prop]=c}),null,16,["modelValue","onUpdate:modelValue"]))])]),_:2},1032,["label","prop"])]),_:2},1032,["span"]))),128))]),_:3}))]),_:3},16,["class","model"])}}}),X={key:0},Z=Object.assign({name:"WtskTable",inheritAttrs:!1},{__name:"WtskTable",props:{tableData:{type:Array,default:()=>[]},tableHeight:{type:String,default:"550px"},tableColumns:{type:Array,default:()=>[]},tableHasPage:{type:Boolean,default:!0},tableTotal:{type:Number,default:0},tablePageNum:{type:Number,default:1},tablePageSize:{type:Number,default:10},tablePageProp:{type:Object,default:()=>{}}},emits:["tablePageChange"],setup(o,{expose:m,emit:d}){const k=o,s=e.ref(),p=e.ref({pageNum:k.tablePageNum,pageSize:k.tablePageSize});e.watch([()=>k.tablePageNum,()=>k.tablePageSize],([u,y])=>{p.value.pageNum=u,p.value.pageSize=y},{immediate:!0});const f=d;function a(u){p.value.pageNum=u,f("tablePageChange",{...p.value})}function v(u){p.value.pageSize=u,f("tablePageChange",{...p.value})}return m({wtskTableRef:s}),(u,y)=>{const g=e.resolveComponent("el-table-column"),r=e.resolveComponent("el-table"),l=e.resolveComponent("el-pagination");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(r,e.mergeProps({ref_key:"wtskTableRef",ref:s,class:"wtsk-table"},{"row-key":"id","default-expand-all":!0,...u.$attrs},{data:o.tableData,height:o.tableHasPage?o.tableHeight:"auto",stripe:""}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tableColumns,i=>(e.openBlock(),e.createBlock(g,e.mergeProps({key:i.prop},{ref_for:!0},{align:"center","reserve-selection":!0,"show-overflow-tooltip":!0,...i}),e.createSlots({_:2},[i.slot?{name:"default",fn:e.withCtx(n=>[e.renderSlot(u.$slots,i.slot,e.mergeProps({ref_for:!0},n))]),key:"0"}:void 0,i.type==="operate"?{name:"default",fn:e.withCtx(n=>[e.renderSlot(u.$slots,"tableBtn",e.mergeProps({ref_for:!0},n))]),key:"1"}:void 0]),1040))),128))]),_:3},16,["data","height"]),o.tableHasPage?(e.openBlock(),e.createElementBlock("div",X,[e.createVNode(l,e.mergeProps({class:"wtsk-pagination"},{layout:"total, prev, pager, next, sizes","page-sizes":[5,10,20,50,100],background:!0,...o.tablePageProp},{total:o.tableTotal,"current-page":p.value.pageNum,"page-size":p.value.pageSize,onSizeChange:v,onCurrentChange:a}),null,16,["total","current-page","page-size"])])):e.createCommentVNode("",!0)],64)}}}),K=[{name:"WtskLayout",component:U},{name:"WtskBtn",component:z},{name:"WtskTree",component:J},{name:"WtskForm",component:Q},{name:"WtskTable",component:Z}],ee={install(o){K.forEach(({name:m,component:d})=>{o.component(m,d)})}};module.exports=ee;
|
|
1
|
+
"use strict";const e=require("vue"),w=require("element-plus"),N=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/wtsk-images/header-logo.png").href:new URL("wtsk-images/header-logo.png",document.currentScript&&document.currentScript.tagName.toUpperCase()==="SCRIPT"&&document.currentScript.src||document.baseURI).href),x=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/wtsk-images/header-user.png").href:new URL("wtsk-images/header-user.png",document.currentScript&&document.currentScript.tagName.toUpperCase()==="SCRIPT"&&document.currentScript.src||document.baseURI).href),E={class:"wtsk-layout-header"},S={class:"wtsk-layout-header-right"},P={class:"wtsk-layout-header-right-item"},T={__name:"Header",setup(o){let m=e.ref(null),d=e.ref(""),k=e.ref("");e.onMounted(()=>{s(),m.value=setInterval(s,1e3)}),e.onUnmounted(()=>{clearInterval(m.value),m.value=null});function s(){d.value=w.dayjs().format("YYYY-MM-DD"),k.value=w.dayjs().format("HH:mm:ss")}return(p,f)=>(e.openBlock(),e.createElementBlock("div",E,[f[1]||(f[1]=e.createElementVNode("div",{class:"wtsk-layout-header-left"},[e.createElementVNode("img",{src:N,alt:""}),e.createElementVNode("div",{class:"layout-left-title"},"后台管理通用组件文档")],-1)),e.createElementVNode("div",S,[f[0]||(f[0]=e.createElementVNode("div",{class:"wtsk-layout-header-right-item"},[e.createElementVNode("img",{alt:"",src:x})],-1)),e.createElementVNode("div",P,[e.createElementVNode("div",null,e.toDisplayString(e.unref(k)),1),e.createElementVNode("div",null,e.toDisplayString(e.unref(d)),1)])])]))}},F={class:"wtsk-layout"},$={class:"wtsk-layout-bottom"},U={__name:"Layout",setup(o){return(m,d)=>(e.openBlock(),e.createElementBlock("div",F,[e.createVNode(T),e.createElementVNode("div",$,[d[0]||(d[0]=e.createElementVNode("div",null,null,-1)),e.renderSlot(m.$slots,"default")])]))}},z=Object.assign({name:"WtskBtn",inheritAttrs:!1},{__name:"WtskBtn",setup(o){const m=e.useAttrs(),d=e.ref(!1);function k(p,f){const a={};for(const v in p)v!==f&&(a[v]=p[v]);return a}async function s(){d.value=!0;try{await m.onClick?.()}finally{d.value=!1}}return(p,f)=>{const a=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(a,e.mergeProps(k(p.$attrs,"onClick"),{loading:d.value,onClick:s}),{default:e.withCtx(()=>[e.renderSlot(p.$slots,"default")]),_:3},16,["loading"])}}});var H=e.defineComponent({name:"Delete",__name:"delete",setup(o){return(m,d)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),M=H,R=e.defineComponent({name:"Edit",__name:"edit",setup(o){return(m,d)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),e.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),B=R,O=e.defineComponent({name:"Plus",__name:"plus",setup(o){return(m,d)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),b=O;const D=(o,m)=>{const d=o.__vccOpts||o;for(const[k,s]of m)d[k]=s;return d},I={class:"wtsk-tree-box"},L={key:0,class:"wtsk-tree-box-title"},W={key:1,class:"wtsk-tree-box-filter wtsk-form"},A={style:{display:"flex","align-items":"center"},class:"wtsk-form"},j={class:"wtsk-tree-box-tree-custom"},q={style:{display:"flex","align-items":"center"},class:"wtsk-form"},Y={style:{display:"flex","align-items":"center"},class:"wtsk-form"},G=Object.assign({name:"WtskTree",inheritAttrs:!1},{__name:"WtskTree",props:{treeTitle:{type:String,default:""},treeHasFilter:{type:Boolean,default:!1},treeFilterType:{type:String,default:"default"},treeHasOperate:{type:Boolean,default:!1},treeCustomizeOperate:{type:Boolean,default:!1},treeAddParentText:{type:String,default:"新增一级"}},emits:["treeOperate"],setup(o,{expose:m,emit:d}){const k=e.useAttrs(),s=o,p=e.ref();let f=e.ref(""),a=e.ref("");const v=d;e.watch(f,r=>{p.value?.filter(r)});function u(r,l,i){if(!r)return!0;const n=l.label?l.label:k.props?.label;if(s.treeFilterType==="default")return l[n].includes(r);{let h=[];y(i,h,r,n);let V=!1;return h.forEach(C=>{V=V||C}),V}}function y(r,l,i,n){let h=r.data&&r.data[n]&&r.data[n].includes(i);h&&l.push(h),!h&&r.level!==1&&r.parent&&y(r.parent,l,i,n)}function g(r,l,i){s.treeCustomizeOperate||r==="delete"?v("treeOperate",r,l,i):a.value.trim()!==""?(document.documentElement.click(),v("treeOperate",r,l,i,a.value)):w.ElMessage.error("名称不能为空!")}return m({wtskTreeRef:p}),(r,l)=>{const i=e.resolveComponent("el-input"),n=e.resolveComponent("el-button"),h=e.resolveComponent("el-popover"),V=e.resolveComponent("el-popconfirm"),C=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",I,[o.treeTitle!==""?(e.openBlock(),e.createElementBlock("div",L,e.toDisplayString(o.treeTitle),1)):e.createCommentVNode("",!0),o.treeHasFilter||o.treeHasOperate?(e.openBlock(),e.createElementBlock("div",W,[o.treeHasFilter?(e.openBlock(),e.createBlock(i,{key:0,modelValue:e.unref(f),"onUpdate:modelValue":l[0]||(l[0]=t=>e.isRef(f)?f.value=t:f=t),placeholder:"输入名称进行筛选……",clearable:""},null,8,["modelValue"])):e.createCommentVNode("",!0),o.treeCustomizeOperate?(e.openBlock(),e.createBlock(n,{key:2,type:"primary",onClick:l[4]||(l[4]=t=>g("addParent"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.treeAddParentText),1)]),_:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.treeHasOperate?(e.openBlock(),e.createBlock(h,{key:0,placement:"bottom",width:280,trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(n,{type:"primary",onClick:l[1]||(l[1]=t=>e.isRef(a)?a.value="":a="")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.treeAddParentText),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",A,[e.createVNode(i,{modelValue:e.unref(a),"onUpdate:modelValue":l[2]||(l[2]=t=>e.isRef(a)?a.value=t:a=t),placeholder:"请输入名称",clearable:""},null,8,["modelValue"]),e.createVNode(n,{type:"primary",style:{"margin-left":"10px"},onClick:l[3]||(l[3]=e.withModifiers(t=>g("addParent"),["stop"]))},{default:e.withCtx(()=>[...l[9]||(l[9]=[e.createTextVNode("新增",-1)])]),_:1})])]),_:1})):e.createCommentVNode("",!0)],64))])):e.createCommentVNode("",!0),e.createVNode(C,e.mergeProps({ref_key:"wtskTreeRef",ref:p,class:"wtsk-tree wtsk-tree-box-tree"},{"node-key":"id","highlight-current":!0,"default-expand-all":!0,"expand-on-click-node":!1,"check-on-click-leaf":!1,...r.$attrs},{"filter-node-method":u}),e.createSlots({_:2},[o.treeHasOperate?{name:"default",fn:e.withCtx(({node:t,data:c})=>[e.createElementVNode("div",j,[e.createElementVNode("div",null,e.toDisplayString(t.label),1),e.createElementVNode("div",null,[o.treeCustomizeOperate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(n,{type:"success",link:"",icon:e.unref(b),onClick:e.withModifiers(_=>g("add",c,t),["stop"])},null,8,["icon","onClick"]),e.createVNode(n,{type:"primary",link:"",icon:e.unref(B),onClick:e.withModifiers(_=>g("edit",c,t),["stop"])},null,8,["icon","onClick"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(h,{placement:"bottom",width:280,trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(n,{type:"success",link:"",icon:e.unref(b),onClick:l[5]||(l[5]=e.withModifiers(_=>e.isRef(a)?a.value="":a="",["stop"]))},null,8,["icon"])]),default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createVNode(i,{modelValue:e.unref(a),"onUpdate:modelValue":l[6]||(l[6]=_=>e.isRef(a)?a.value=_:a=_),placeholder:"请输入名称",clearable:""},null,8,["modelValue"]),e.createVNode(n,{type:"primary",style:{"margin-left":"10px"},onClick:e.withModifiers(_=>g("add",c,t),["stop"])},{default:e.withCtx(()=>[...l[10]||(l[10]=[e.createTextVNode("新增",-1)])]),_:1},8,["onClick"])])]),_:2},1024),e.createVNode(h,{placement:"bottom",width:280,trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(n,{type:"primary",link:"",icon:e.unref(B),onClick:e.withModifiers(_=>e.isRef(a)?a.value=t.label:a=t.label,["stop"])},null,8,["icon","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("div",Y,[e.createVNode(i,{modelValue:e.unref(a),"onUpdate:modelValue":l[7]||(l[7]=_=>e.isRef(a)?a.value=_:a=_),placeholder:"请输入名称",clearable:""},null,8,["modelValue"]),e.createVNode(n,{type:"primary",style:{"margin-left":"10px"},onClick:e.withModifiers(_=>g("edit",c,t),["stop"])},{default:e.withCtx(()=>[...l[11]||(l[11]=[e.createTextVNode("修改",-1)])]),_:1},8,["onClick"])])]),_:2},1024)],64)),e.createVNode(V,{title:"确定删除这条数据吗?","hide-icon":"",width:"170",onConfirm:_=>g("delete",c,t)},{reference:e.withCtx(()=>[e.createVNode(n,{type:"danger",link:"",icon:e.unref(M),onClick:l[8]||(l[8]=e.withModifiers(()=>{},["stop"]))},null,8,["icon"])]),_:1},8,["onConfirm"])])])]),key:"0"}:void 0]),1040)])}}}),J=D(G,[["__scopeId","data-v-d3610725"]]),Q=Object.assign({name:"WtskForm",inheritAttrs:!1},{__name:"WtskForm",props:e.mergeModels({formIsSearch:{type:Boolean,default:!1},formItems:{type:Array,default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(o,{expose:m}){const d=o,k=e.computed(()=>d.formItems.filter(u=>!u.hidden)),s=e.useModel(o,"modelValue"),p={input:w.ElInput,number:w.ElInputNumber,select:w.ElSelect,date:w.ElDatePicker,switch:w.ElSwitch,treeSelect:w.ElTreeSelect};function f(u,y){if(!u||typeof u!="object"||!y)return;const g=y.split(".");let r=u;for(const l of g){if(r===null||!(l in r))return;r=r[l]}return r}function a(u,y,g){if(!u||typeof u!="object"||!y)return;const r=y.split(".");let l=u;for(let i=0;i<r.length-1;i++){const n=r[i];if((l[n]===null||typeof l[n]!="object"&&l[n]!==void 0)&&(l[n]={}),!(n in l))return;l=l[n]}l[r[r.length-1]]=g}const v=e.ref();return m({wtskFormRef:v}),(u,y)=>{const g=e.resolveComponent("el-radio"),r=e.resolveComponent("el-radio-group"),l=e.resolveComponent("el-checkbox"),i=e.resolveComponent("el-checkbox-group"),n=e.resolveComponent("el-form-item"),h=e.resolveComponent("el-col"),V=e.resolveComponent("el-row"),C=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(C,e.mergeProps({ref_key:"wtskFormRef",ref:v,class:["wtsk-form",o.formIsSearch?"wtsk-form-search":""]},{"label-width":o.formIsSearch?"auto":"100px",...u.$attrs},{model:s.value}),{default:e.withCtx(()=>[o.formIsSearch?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,t=>(e.openBlock(),e.createBlock(n,{key:t.prop,label:t.label,prop:t.prop},{default:e.withCtx(()=>[e.renderSlot(u.$slots,t.prop,{},()=>[t.type==="radio"||t.type==="checkbox"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.type==="radio"?(e.openBlock(),e.createBlock(r,{key:0,modelValue:s.value[t.prop],"onUpdate:modelValue":c=>s.value[t.prop]=c},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,c=>(e.openBlock(),e.createBlock(g,{value:c.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),t.type==="checkbox"?(e.openBlock(),e.createBlock(i,{key:1,modelValue:s.value[t.prop],"onUpdate:modelValue":c=>s.value[t.prop]=c},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,c=>(e.openBlock(),e.createBlock(l,{label:c.label,value:c.value},null,8,["label","value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p[t.type]),e.mergeProps({key:1,ref_for:!0},t.props,{"model-value":f(s.value,t.prop),"onUpdate:modelValue":c=>a(s.value,t.prop,c)}),null,16,["model-value","onUpdate:modelValue"]))])]),_:2},1032,["label","prop"]))),128)),e.createVNode(n,null,{default:e.withCtx(()=>[e.renderSlot(u.$slots,"formSearchBtn")]),_:3})],64)):(e.openBlock(),e.createBlock(V,{key:1,gutter:16},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,t=>(e.openBlock(),e.createBlock(h,{key:t.prop,span:t.span||24},{default:e.withCtx(()=>[e.createVNode(n,{label:t.label,prop:t.prop},{default:e.withCtx(()=>[e.renderSlot(u.$slots,t.prop,{},()=>[t.type==="radio"||t.type==="checkbox"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.type==="radio"?(e.openBlock(),e.createBlock(r,{key:0,modelValue:s.value[t.prop],"onUpdate:modelValue":c=>s.value[t.prop]=c},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,c=>(e.openBlock(),e.createBlock(g,{value:c.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),t.type==="checkbox"?(e.openBlock(),e.createBlock(i,{key:1,modelValue:s.value[t.prop],"onUpdate:modelValue":c=>s.value[t.prop]=c},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,c=>(e.openBlock(),e.createBlock(l,{label:c.label,value:c.value},null,8,["label","value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p[t.type]),e.mergeProps({key:1,ref_for:!0},t.props,{modelValue:s.value[t.prop],"onUpdate:modelValue":c=>s.value[t.prop]=c}),null,16,["modelValue","onUpdate:modelValue"]))])]),_:2},1032,["label","prop"])]),_:2},1032,["span"]))),128))]),_:3}))]),_:3},16,["class","model"])}}}),X={key:0},Z=Object.assign({name:"WtskTable",inheritAttrs:!1},{__name:"WtskTable",props:{tableData:{type:Array,default:()=>[]},tableHeight:{type:String,default:"550px"},tableColumns:{type:Array,default:()=>[]},tableHasPage:{type:Boolean,default:!0},tableTotal:{type:Number,default:0},tablePageNum:{type:Number,default:1},tablePageSize:{type:Number,default:10},tablePageProp:{type:Object,default:()=>{}}},emits:["tablePageChange"],setup(o,{expose:m,emit:d}){const k=o,s=e.ref(),p=e.ref({pageNum:k.tablePageNum,pageSize:k.tablePageSize});e.watch([()=>k.tablePageNum,()=>k.tablePageSize],([u,y])=>{p.value.pageNum=u,p.value.pageSize=y},{immediate:!0});const f=d;function a(u){p.value.pageNum=u,f("tablePageChange",{...p.value})}function v(u){p.value.pageSize=u,f("tablePageChange",{...p.value})}return m({wtskTableRef:s}),(u,y)=>{const g=e.resolveComponent("el-table-column"),r=e.resolveComponent("el-table"),l=e.resolveComponent("el-pagination");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(r,e.mergeProps({ref_key:"wtskTableRef",ref:s,class:"wtsk-table"},{"row-key":"id","default-expand-all":!0,...u.$attrs},{data:o.tableData,height:o.tableHasPage?o.tableHeight:"auto",stripe:""}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tableColumns,i=>(e.openBlock(),e.createBlock(g,e.mergeProps({key:i.prop},{ref_for:!0},{align:"center","reserve-selection":!0,"show-overflow-tooltip":!0,...i}),e.createSlots({_:2},[i.slot?{name:"default",fn:e.withCtx(n=>[e.renderSlot(u.$slots,i.slot,e.mergeProps({ref_for:!0},n))]),key:"0"}:void 0,i.type==="operate"?{name:"default",fn:e.withCtx(n=>[e.renderSlot(u.$slots,"tableBtn",e.mergeProps({ref_for:!0},n))]),key:"1"}:void 0]),1040))),128))]),_:3},16,["data","height"]),o.tableHasPage?(e.openBlock(),e.createElementBlock("div",X,[e.createVNode(l,e.mergeProps({class:"wtsk-pagination"},{layout:"total, prev, pager, next, sizes","page-sizes":[5,10,20,50,100],background:!0,...o.tablePageProp},{total:o.tableTotal,"current-page":p.value.pageNum,"page-size":p.value.pageSize,onSizeChange:v,onCurrentChange:a}),null,16,["total","current-page","page-size"])])):e.createCommentVNode("",!0)],64)}}}),K=[{name:"WtskLayout",component:U},{name:"WtskBtn",component:z},{name:"WtskTree",component:J},{name:"WtskForm",component:Q},{name:"WtskTable",component:Z}],ee={install(o){K.forEach(({name:m,component:d})=>{o.component(m,d)})}};module.exports=ee;
|
package/dist/wtsk-comps.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref as N, onMounted as G, onUnmounted as J, openBlock as l, createElementBlock as f, createElementVNode as v, toDisplayString as O, unref as S, createVNode as k, renderSlot as E, useAttrs as j, resolveComponent as b, createBlock as
|
|
1
|
+
import { ref as N, onMounted as G, onUnmounted as J, openBlock as l, createElementBlock as f, createElementVNode as v, toDisplayString as O, unref as S, createVNode as k, renderSlot as E, useAttrs as j, resolveComponent as b, createBlock as g, mergeProps as z, withCtx as u, defineComponent as A, watch as Y, createCommentVNode as T, isRef as B, Fragment as V, withModifiers as H, createTextVNode as M, createSlots as q, computed as Q, useModel as X, renderList as W, resolveDynamicComponent as I, mergeModels as Z } from "vue";
|
|
2
2
|
import { dayjs as D, ElMessage as K, ElTreeSelect as ee, ElSwitch as te, ElDatePicker as le, ElSelect as ae, ElInputNumber as oe, ElInput as ne } from "element-plus";
|
|
3
|
-
const re = "" + new URL("header-logo.png", import.meta.url).href, se = "" + new URL("header-user.png", import.meta.url).href, ue = { class: "wtsk-layout-header" }, ie = { class: "wtsk-layout-header-right" }, pe = { class: "wtsk-layout-header-right-item" }, de = {
|
|
3
|
+
const re = "" + new URL("wtsk-images/header-logo.png", import.meta.url).href, se = "" + new URL("wtsk-images/header-user.png", import.meta.url).href, ue = { class: "wtsk-layout-header" }, ie = { class: "wtsk-layout-header-right" }, pe = { class: "wtsk-layout-header-right-item" }, de = {
|
|
4
4
|
__name: "Header",
|
|
5
5
|
setup(a) {
|
|
6
6
|
let y = N(null), c = N(""), h = N("");
|
|
@@ -12,8 +12,8 @@ const re = "" + new URL("header-logo.png", import.meta.url).href, se = "" + new
|
|
|
12
12
|
function i() {
|
|
13
13
|
c.value = D().format("YYYY-MM-DD"), h.value = D().format("HH:mm:ss");
|
|
14
14
|
}
|
|
15
|
-
return (m,
|
|
16
|
-
|
|
15
|
+
return (m, _) => (l(), f("div", ue, [
|
|
16
|
+
_[1] || (_[1] = v("div", { class: "wtsk-layout-header-left" }, [
|
|
17
17
|
v("img", {
|
|
18
18
|
src: re,
|
|
19
19
|
alt: ""
|
|
@@ -21,7 +21,7 @@ const re = "" + new URL("header-logo.png", import.meta.url).href, se = "" + new
|
|
|
21
21
|
v("div", { class: "layout-left-title" }, "后台管理通用组件文档")
|
|
22
22
|
], -1)),
|
|
23
23
|
v("div", ie, [
|
|
24
|
-
|
|
24
|
+
_[0] || (_[0] = v("div", { class: "wtsk-layout-header-right-item" }, [
|
|
25
25
|
v("img", {
|
|
26
26
|
alt: "",
|
|
27
27
|
src: se
|
|
@@ -52,10 +52,10 @@ const re = "" + new URL("header-logo.png", import.meta.url).href, se = "" + new
|
|
|
52
52
|
__name: "WtskBtn",
|
|
53
53
|
setup(a) {
|
|
54
54
|
const y = j(), c = N(!1);
|
|
55
|
-
function h(m,
|
|
55
|
+
function h(m, _) {
|
|
56
56
|
const n = {};
|
|
57
57
|
for (const C in m)
|
|
58
|
-
C !==
|
|
58
|
+
C !== _ && (n[C] = m[C]);
|
|
59
59
|
return n;
|
|
60
60
|
}
|
|
61
61
|
async function i() {
|
|
@@ -66,9 +66,9 @@ const re = "" + new URL("header-logo.png", import.meta.url).href, se = "" + new
|
|
|
66
66
|
c.value = !1;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
return (m,
|
|
69
|
+
return (m, _) => {
|
|
70
70
|
const n = b("el-button");
|
|
71
|
-
return l(),
|
|
71
|
+
return l(), g(n, z(h(m.$attrs, "onClick"), {
|
|
72
72
|
loading: c.value,
|
|
73
73
|
onClick: i
|
|
74
74
|
}), {
|
|
@@ -94,7 +94,7 @@ var ve = /* @__PURE__ */ A({
|
|
|
94
94
|
})
|
|
95
95
|
]));
|
|
96
96
|
}
|
|
97
|
-
}), ye = ve,
|
|
97
|
+
}), ye = ve, ge = /* @__PURE__ */ A({
|
|
98
98
|
name: "Edit",
|
|
99
99
|
__name: "edit",
|
|
100
100
|
setup(a) {
|
|
@@ -112,7 +112,7 @@ var ve = /* @__PURE__ */ A({
|
|
|
112
112
|
})
|
|
113
113
|
]));
|
|
114
114
|
}
|
|
115
|
-
}), R =
|
|
115
|
+
}), R = ge, _e = /* @__PURE__ */ A({
|
|
116
116
|
name: "Plus",
|
|
117
117
|
__name: "plus",
|
|
118
118
|
setup(a) {
|
|
@@ -126,7 +126,7 @@ var ve = /* @__PURE__ */ A({
|
|
|
126
126
|
})
|
|
127
127
|
]));
|
|
128
128
|
}
|
|
129
|
-
}), L =
|
|
129
|
+
}), L = _e;
|
|
130
130
|
const be = (a, y) => {
|
|
131
131
|
const c = a.__vccOpts || a;
|
|
132
132
|
for (const [h, i] of y)
|
|
@@ -187,9 +187,9 @@ const be = (a, y) => {
|
|
|
187
187
|
emits: ["treeOperate"],
|
|
188
188
|
setup(a, { expose: y, emit: c }) {
|
|
189
189
|
const h = j(), i = a, m = N();
|
|
190
|
-
let
|
|
190
|
+
let _ = N(""), n = N("");
|
|
191
191
|
const C = c;
|
|
192
|
-
Y(
|
|
192
|
+
Y(_, (o) => {
|
|
193
193
|
m.value?.filter(o);
|
|
194
194
|
});
|
|
195
195
|
function p(o, t, d) {
|
|
@@ -217,14 +217,14 @@ const be = (a, y) => {
|
|
|
217
217
|
return l(), f("div", he, [
|
|
218
218
|
a.treeTitle !== "" ? (l(), f("div", we, O(a.treeTitle), 1)) : T("", !0),
|
|
219
219
|
a.treeHasFilter || a.treeHasOperate ? (l(), f("div", Ve, [
|
|
220
|
-
a.treeHasFilter ? (l(),
|
|
220
|
+
a.treeHasFilter ? (l(), g(d, {
|
|
221
221
|
key: 0,
|
|
222
|
-
modelValue: S(
|
|
223
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) => B(
|
|
222
|
+
modelValue: S(_),
|
|
223
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => B(_) ? _.value = e : _ = e),
|
|
224
224
|
placeholder: "输入名称进行筛选……",
|
|
225
225
|
clearable: ""
|
|
226
226
|
}, null, 8, ["modelValue"])) : T("", !0),
|
|
227
|
-
a.treeCustomizeOperate ? (l(),
|
|
227
|
+
a.treeCustomizeOperate ? (l(), g(r, {
|
|
228
228
|
key: 2,
|
|
229
229
|
type: "primary",
|
|
230
230
|
onClick: t[4] || (t[4] = (e) => w("addParent"))
|
|
@@ -234,7 +234,7 @@ const be = (a, y) => {
|
|
|
234
234
|
]),
|
|
235
235
|
_: 1
|
|
236
236
|
})) : (l(), f(V, { key: 1 }, [
|
|
237
|
-
a.treeHasOperate ? (l(),
|
|
237
|
+
a.treeHasOperate ? (l(), g($, {
|
|
238
238
|
key: 0,
|
|
239
239
|
placement: "bottom",
|
|
240
240
|
width: 280,
|
|
@@ -434,7 +434,7 @@ const be = (a, y) => {
|
|
|
434
434
|
switch: te,
|
|
435
435
|
treeSelect: ee
|
|
436
436
|
};
|
|
437
|
-
function
|
|
437
|
+
function _(p, x) {
|
|
438
438
|
if (!p || typeof p != "object" || !x) return;
|
|
439
439
|
const w = x.split(".");
|
|
440
440
|
let o = p;
|
|
@@ -458,14 +458,14 @@ const be = (a, y) => {
|
|
|
458
458
|
const C = N();
|
|
459
459
|
return y({ wtskFormRef: C }), (p, x) => {
|
|
460
460
|
const w = b("el-radio"), o = b("el-radio-group"), t = b("el-checkbox"), d = b("el-checkbox-group"), r = b("el-form-item"), $ = b("el-col"), U = b("el-row"), F = b("el-form");
|
|
461
|
-
return l(),
|
|
461
|
+
return l(), g(F, z({
|
|
462
462
|
ref_key: "wtskFormRef",
|
|
463
463
|
ref: C,
|
|
464
464
|
class: ["wtsk-form", a.formIsSearch ? "wtsk-form-search" : ""]
|
|
465
465
|
}, { "label-width": a.formIsSearch ? "auto" : "100px", ...p.$attrs }, { model: i.value }), {
|
|
466
466
|
default: u(() => [
|
|
467
467
|
a.formIsSearch ? (l(), f(V, { key: 0 }, [
|
|
468
|
-
(l(!0), f(V, null, W(h.value, (e) => (l(),
|
|
468
|
+
(l(!0), f(V, null, W(h.value, (e) => (l(), g(r, {
|
|
469
469
|
key: e.prop,
|
|
470
470
|
label: e.label,
|
|
471
471
|
prop: e.prop
|
|
@@ -473,13 +473,13 @@ const be = (a, y) => {
|
|
|
473
473
|
default: u(() => [
|
|
474
474
|
E(p.$slots, e.prop, {}, () => [
|
|
475
475
|
e.type === "radio" || e.type === "checkbox" ? (l(), f(V, { key: 0 }, [
|
|
476
|
-
e.type === "radio" ? (l(),
|
|
476
|
+
e.type === "radio" ? (l(), g(o, {
|
|
477
477
|
key: 0,
|
|
478
478
|
modelValue: i.value[e.prop],
|
|
479
479
|
"onUpdate:modelValue": (s) => i.value[e.prop] = s
|
|
480
480
|
}, {
|
|
481
481
|
default: u(() => [
|
|
482
|
-
(l(!0), f(V, null, W(e.data, (s) => (l(),
|
|
482
|
+
(l(!0), f(V, null, W(e.data, (s) => (l(), g(w, {
|
|
483
483
|
value: s.value
|
|
484
484
|
}, {
|
|
485
485
|
default: u(() => [
|
|
@@ -490,24 +490,24 @@ const be = (a, y) => {
|
|
|
490
490
|
]),
|
|
491
491
|
_: 2
|
|
492
492
|
}, 1032, ["modelValue", "onUpdate:modelValue"])) : T("", !0),
|
|
493
|
-
e.type === "checkbox" ? (l(),
|
|
493
|
+
e.type === "checkbox" ? (l(), g(d, {
|
|
494
494
|
key: 1,
|
|
495
495
|
modelValue: i.value[e.prop],
|
|
496
496
|
"onUpdate:modelValue": (s) => i.value[e.prop] = s
|
|
497
497
|
}, {
|
|
498
498
|
default: u(() => [
|
|
499
|
-
(l(!0), f(V, null, W(e.data, (s) => (l(),
|
|
499
|
+
(l(!0), f(V, null, W(e.data, (s) => (l(), g(t, {
|
|
500
500
|
label: s.label,
|
|
501
501
|
value: s.value
|
|
502
502
|
}, null, 8, ["label", "value"]))), 256))
|
|
503
503
|
]),
|
|
504
504
|
_: 2
|
|
505
505
|
}, 1032, ["modelValue", "onUpdate:modelValue"])) : T("", !0)
|
|
506
|
-
], 64)) : (l(),
|
|
506
|
+
], 64)) : (l(), g(I(m[e.type]), z({
|
|
507
507
|
key: 1,
|
|
508
508
|
ref_for: !0
|
|
509
509
|
}, e.props, {
|
|
510
|
-
"model-value":
|
|
510
|
+
"model-value": _(i.value, e.prop),
|
|
511
511
|
"onUpdate:modelValue": (s) => n(i.value, e.prop, s)
|
|
512
512
|
}), null, 16, ["model-value", "onUpdate:modelValue"]))
|
|
513
513
|
])
|
|
@@ -520,12 +520,12 @@ const be = (a, y) => {
|
|
|
520
520
|
]),
|
|
521
521
|
_: 3
|
|
522
522
|
})
|
|
523
|
-
], 64)) : (l(),
|
|
523
|
+
], 64)) : (l(), g(U, {
|
|
524
524
|
key: 1,
|
|
525
525
|
gutter: 16
|
|
526
526
|
}, {
|
|
527
527
|
default: u(() => [
|
|
528
|
-
(l(!0), f(V, null, W(h.value, (e) => (l(),
|
|
528
|
+
(l(!0), f(V, null, W(h.value, (e) => (l(), g($, {
|
|
529
529
|
key: e.prop,
|
|
530
530
|
span: e.span || 24
|
|
531
531
|
}, {
|
|
@@ -537,13 +537,13 @@ const be = (a, y) => {
|
|
|
537
537
|
default: u(() => [
|
|
538
538
|
E(p.$slots, e.prop, {}, () => [
|
|
539
539
|
e.type === "radio" || e.type === "checkbox" ? (l(), f(V, { key: 0 }, [
|
|
540
|
-
e.type === "radio" ? (l(),
|
|
540
|
+
e.type === "radio" ? (l(), g(o, {
|
|
541
541
|
key: 0,
|
|
542
542
|
modelValue: i.value[e.prop],
|
|
543
543
|
"onUpdate:modelValue": (s) => i.value[e.prop] = s
|
|
544
544
|
}, {
|
|
545
545
|
default: u(() => [
|
|
546
|
-
(l(!0), f(V, null, W(e.data, (s) => (l(),
|
|
546
|
+
(l(!0), f(V, null, W(e.data, (s) => (l(), g(w, {
|
|
547
547
|
value: s.value
|
|
548
548
|
}, {
|
|
549
549
|
default: u(() => [
|
|
@@ -554,20 +554,20 @@ const be = (a, y) => {
|
|
|
554
554
|
]),
|
|
555
555
|
_: 2
|
|
556
556
|
}, 1032, ["modelValue", "onUpdate:modelValue"])) : T("", !0),
|
|
557
|
-
e.type === "checkbox" ? (l(),
|
|
557
|
+
e.type === "checkbox" ? (l(), g(d, {
|
|
558
558
|
key: 1,
|
|
559
559
|
modelValue: i.value[e.prop],
|
|
560
560
|
"onUpdate:modelValue": (s) => i.value[e.prop] = s
|
|
561
561
|
}, {
|
|
562
562
|
default: u(() => [
|
|
563
|
-
(l(!0), f(V, null, W(e.data, (s) => (l(),
|
|
563
|
+
(l(!0), f(V, null, W(e.data, (s) => (l(), g(t, {
|
|
564
564
|
label: s.label,
|
|
565
565
|
value: s.value
|
|
566
566
|
}, null, 8, ["label", "value"]))), 256))
|
|
567
567
|
]),
|
|
568
568
|
_: 2
|
|
569
569
|
}, 1032, ["modelValue", "onUpdate:modelValue"])) : T("", !0)
|
|
570
|
-
], 64)) : (l(),
|
|
570
|
+
], 64)) : (l(), g(I(m[e.type]), z({
|
|
571
571
|
key: 1,
|
|
572
572
|
ref_for: !0
|
|
573
573
|
}, e.props, {
|
|
@@ -646,12 +646,12 @@ const be = (a, y) => {
|
|
|
646
646
|
Y([() => h.tablePageNum, () => h.tablePageSize], ([p, x]) => {
|
|
647
647
|
m.value.pageNum = p, m.value.pageSize = x;
|
|
648
648
|
}, { immediate: !0 });
|
|
649
|
-
const
|
|
649
|
+
const _ = c;
|
|
650
650
|
function n(p) {
|
|
651
|
-
m.value.pageNum = p,
|
|
651
|
+
m.value.pageNum = p, _("tablePageChange", { ...m.value });
|
|
652
652
|
}
|
|
653
653
|
function C(p) {
|
|
654
|
-
m.value.pageSize = p,
|
|
654
|
+
m.value.pageSize = p, _("tablePageChange", { ...m.value });
|
|
655
655
|
}
|
|
656
656
|
return y({ wtskTableRef: i }), (p, x) => {
|
|
657
657
|
const w = b("el-table-column"), o = b("el-table"), t = b("el-pagination");
|
|
@@ -666,7 +666,7 @@ const be = (a, y) => {
|
|
|
666
666
|
stripe: ""
|
|
667
667
|
}), {
|
|
668
668
|
default: u(() => [
|
|
669
|
-
(l(!0), f(V, null, W(a.tableColumns, (d) => (l(),
|
|
669
|
+
(l(!0), f(V, null, W(a.tableColumns, (d) => (l(), g(w, z({
|
|
670
670
|
key: d.prop
|
|
671
671
|
}, { ref_for: !0 }, {
|
|
672
672
|
align: "center",
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|