@lingshugroup/web-plus 1.7.5 → 1.7.6
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/lib/index.css +1 -1
- package/lib/index.css.br +0 -0
- package/lib/index.css.gz +0 -0
- package/lib/packages/ls-components/components/layout/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/layout/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/list/List.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/list/List.vue/index.js +2 -2
- package/lib/packages/ls-components/components/list/List.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/list/List.vue/index2.js +73 -73
- package/lib/packages/ls-components/components/list/List.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/list/List.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/list/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/list/types/index.js +5 -0
- package/lib/packages/ls-components/components/list/types/index.js.br +0 -0
- package/lib/packages/ls-components/components/list/types/index.js.gz +0 -0
- package/lib/types/components/list/List.vue.d.ts +3 -0
- package/lib/types/components/list/index.d.ts +6 -0
- package/lib/types/components/list/types.d.ts +1 -0
- package/package.json +1 -1
package/lib/index.css.br
CHANGED
|
Binary file
|
package/lib/index.css.gz
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-c888550f"]]);exports.default=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c888550f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-882ebc64"]]);exports.default=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-882ebc64"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ee=Object.defineProperty;var n=(p,g)=>ee(p,"name",{value:g,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const e=require("vue"),te=,/* empty css */r=require("element-plus"),le=,/* empty css */ae=,/* empty css */oe=,/* empty css */ne=,/* empty css */ie=,/* empty css */re=,/* empty css */se=,/* empty css */de={key:0,class:"animate_fadeIn transition-all-300 ls-list-wrap"},ue={class:"flex items-center"},fe=e.defineComponent({name:"LSList"}),ce=e.defineComponent({...fe,props:le.lsListProps,emits:["submitForm","handleLoading","handleCurrentPage","handlePageSize"],setup(p,{expose:g,emit:N}){const{jumpRouteCom:T,currentRouter:D}=ne.default(),t=p,h=N,C=e.useSlots(),v=e.ref(),P=e.ref(),z=e.computed(()=>Object.keys(C).filter(l=>l.toString().endsWith("-form-slot"))),A=e.computed(()=>Object.keys(C).filter(l=>l.toString().endsWith("-table-slot")));function E(l,a=!1){if(l){const i=l.toString().lastIndexOf(`${a?"-form-slot":"-table-slot"}`);return i!==-1?l.toString().slice(0,i):l}return""}n(E,"getSlotName");const{isFirst:B,loading:f,tableData:R,total:$,pageSize:c,currentPage:b,handleReset:q,loadData:w,handleCurrentPageChange:F,handleSizeChange:L}=te.default(t.listApi,t.formData,{dealData:t==null?void 0:t.dealData,dealParams:t==null?void 0:t.dealParams,...t==null?void 0:t.listHookConfig});e.watch(f,l=>{h("handleLoading",l)}),e.watch(b,l=>{h("handleCurrentPage",l)}),e.watch(c,l=>{h("handlePageSize",l)});function O(l){F(1),h("submitForm",l),t!=null&&t.queryFn?t.queryFn(l):w()}n(O,"submitForm");function K(l){console.warn("resetForm",l),q()}n(K,"resetForm");const y=e.computed(()=>D?D.value.path:"");function H(){t!=null&&t.addFn?t.addFn():T({path:t!=null&&t.addRoutePath?t.addRoutePath:`${y.value}/add`},1)}n(H,"onAdd");function I(l,a){t!=null&&t.tableDetailFn?t.tableDetailFn(a):T({path:`${t!=null&&t.detailRoutePath?t.detailRoutePath:`${y.value}/detail`}/${l}`},1)}n(I,"onDetail");function M(l,a){t!=null&&t.tableEditFn?t.tableEditFn(a):T({path:`${t!=null&&t.editRoutePath?t.editRoutePath:`${y.value}/edit`}/${l}`},1)}n(M,"onEdit");const k=e.ref(void 0),m=e.ref(!1);function U(l,a){if(t.delApi){k.value=l,m.value=!0;let i=l;t!=null&&t.dealDelParams&&(i=t.dealDelParams(a)),t.delApi(i).then(()=>{r.ElMessage.success("删除成功"),w()}).catch(d=>{console.warn(d)}).finally(()=>{m.value=!1})}}n(U,"onDel");const V=e.ref(),S=e.ref(!1);function j(l,a,i){V.value=l;const d=n((u,o)=>{if(t.switchApi){S.value=!0;let s=l;t!=null&&t.dealSwitchParams&&(s=t.dealSwitchParams(i)),t.switchApi(s).then(()=>{w(!1),u(!0)}).catch(()=>{o(new Error("Error"))}).finally(()=>{S.value=!1})}else o(new Error("Error"))},"onSwitch");return new Promise((u,o)=>{a?r.ElMessageBox.confirm('<strong class="text-14px">请问是否关闭?</strong>',{confirmButtonText:"确定",cancelButtonText:"取消",dangerouslyUseHTMLString:!0,customStyle:{width:"240px"}}).then(()=>{d(u,o)}).catch(()=>{o(new Error("Error"))}):d(u,o)})}n(j,"switchBeforeChange");function W(l){let a=!1;return t!=null&&t.disabledTableSwitch&&(typeof t.disabledTableSwitch=="boolean"?a=t.disabledTableSwitch:typeof t.disabledTableSwitch=="function"&&(a=t.disabledTableSwitch(l))),!!a}n(W,"disabledTableSwitch");function G(l){let a=!1;return t!=null&&t.showTableDetail&&(typeof t.showTableDetail=="boolean"?a=t.showTableDetail:typeof t.showTableDetail=="function"&&(a=t.showTableDetail(l))),!!a}n(G,"showTableDetail");function J(l){let a=!1;return t!=null&&t.disabledTableDetail&&(typeof t.disabledTableDetail=="boolean"?a=t.disabledTableDetail:typeof t.disabledTableDetail=="function"&&(a=t.disabledTableDetail(l))),!!a}n(J,"disabledTableDetail");function Q(l){let a=!1;return t!=null&&t.showTableEdit&&(typeof t.showTableEdit=="boolean"?a=t.showTableEdit:typeof t.showTableEdit=="function"&&(a=t.showTableEdit(l))),!!a}n(Q,"showTableEdit");function X(l){let a=!1;return t!=null&&t.disabledTableEdit&&(typeof t.disabledTableEdit=="boolean"?a=t.disabledTableEdit:typeof t.disabledTableEdit=="function"&&(a=t.disabledTableEdit(l))),!!a}n(X,"disabledTableEdit");function Y(l){let a=!1;return t!=null&&t.showTableDel&&(typeof t.showTableDel=="boolean"?a=t.showTableDel:typeof t.showTableDel=="function"&&(a=t.showTableDel(l))),!!a}n(Y,"showTableDel");function Z(l){let a=!1;return t!=null&&t.disabledTableDel&&(typeof t.disabledTableDel=="boolean"?a=t.disabledTableDel:typeof t.disabledTableDel=="function"&&(a=t.disabledTableDel(l))),!!a}n(Z,"disabledTableDel");const x=e.h(r.ElDivider,{direction:"vertical"}),_=e.computed(()=>t.showSkeleton?!B.value:!0);return g({loadData:w,handleReset:q,setCurrentPage:F,setPageSize:L,isFirst:B,loading:f,currentPage:b,pageSize:c,total:$,FormRef:v,TableRef:P}),(l,a)=>{const i=ie.ElTableColumn,d=re.ElPopconfirm,u=se.ElSkeleton;return e.unref(_)?(e.openBlock(),e.createElementBlock("div",de,[l.showForm?(e.openBlock(),e.createBlock(ae.default,e.mergeProps({key:0,ref_key:"FormRef",ref:v,class:["mb-6px ls-form-cpo",l.formClass],"label-position":"top","show-btn-loading":!1,colon:!1,inline:!0,"form-data":l.formData,"form-items":l.formItems,loading:e.unref(f),"confirm-text":"查询"},l.formAttrs,{onSubmit:O,onReset:K}),e.createSlots({default:e.withCtx(o=>[e.renderSlot(l.$slots,"form-append",e.normalizeProps(e.guardReactiveProps(o)),void 0,!0)]),_:2},[e.renderList(e.unref(z),o=>({name:E(o,!0),fn:e.withCtx(s=>[e.renderSlot(l.$slots,o,e.normalizeProps(e.guardReactiveProps(s)),void 0,!0)])}))]),1040,["class","form-data","form-items","loading"])):e.createCommentVNode("",!0),l.showOperate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.$slots.operate?e.renderSlot(l.$slots,"operate",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.showOperateDivider?(e.openBlock(),e.createBlock(e.unref(r.ElDivider),{key:0,"border-style":"dashed"})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["mt-24px flex items-center justify-start",l.operateClass])},[e.renderSlot(l.$slots,"operate-prepend",{},void 0,!0),l.showAdd?(e.openBlock(),e.createBlock(e.unref(r.ElButton),e.mergeProps({key:0,type:"primary",disabled:e.unref(f)||l.disabledAddBtn},l.addBtnAttrs,{onClick:H}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.addBtnText),1)]),_:1},16,["disabled"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"operate-append",{},void 0,!0)],2)],64))],64)):e.createCommentVNode("",!0),e.createVNode(oe.default,e.mergeProps({ref_key:"TableRef",ref:P,class:["ls-table-cpo",[l.showOperate?"mt-16px":"mt-24px"]],"show-overflow-tooltip":!0,loading:e.unref(f),total:e.unref($),"table-data":e.unref(R),"table-column":l.tableColumn,"current-page":e.unref(b),"onUpdate:currentPage":a[0]||(a[0]=o=>e.isRef(b)?b.value=o:null),"page-size":e.unref(c),"onUpdate:pageSize":a[1]||(a[1]=o=>e.isRef(c)?c.value=o:null)},l.tableAttrs,e.toHandlers(l.tableListeners||{})),e.createSlots({default:e.withCtx(()=>[l.showTableSwitch?(e.openBlock(),e.createBlock(i,e.mergeProps({key:0,prop:l.switchProp,label:"是否开启",width:"100"},l.tableSwitchColumn),{default:e.withCtx(({row:o})=>[e.createVNode(e.unref(r.ElSwitch),{class:"ls-list-table__switch","model-value":o[l.switchProp]?1:0,"active-value":1,"inactive-value":0,loading:e.unref(S)&&o[l.tableRowKey]===e.unref(V),"before-change":n(()=>j(o[l.tableRowKey],o[l.switchProp],o),"before-change"),disabled:W(o)},null,8,["model-value","loading","before-change","disabled"])]),_:1},16,["prop"])):e.createCommentVNode("",!0),l.showTableOperate?(e.openBlock(),e.createBlock(i,e.mergeProps({key:1,fixed:"right",prop:"operate",label:"操作","show-overflow-tooltip":!1},l.tableOperateColumn),{default:e.withCtx(({row:o})=>[e.createElementVNode("div",ue,[e.createVNode(e.unref(r.ElSpace),{size:0,spacer:e.unref(x)},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"table-operate-prepend",{row:o},void 0,!0),G(o)?(e.openBlock(),e.createBlock(e.unref(r.ElButton),{key:0,disabled:J(o),link:"",type:"primary",onClick:n(s=>I(o[l.tableRowKey],o),"onClick")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.tableDetailText||"查看"),1)]),_:2},1032,["disabled","onClick"])):e.createCommentVNode("",!0),Q(o)?(e.openBlock(),e.createBlock(e.unref(r.ElButton),{key:1,disabled:X(o),link:"",type:"primary",onClick:n(s=>M(o[l.tableRowKey],o),"onClick")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.tableEditText||"编辑"),1)]),_:2},1032,["disabled","onClick"])):e.createCommentVNode("",!0),Y(o)?(e.openBlock(),e.createBlock(d,{key:2,"hide-icon":"",placement:"top",width:"180","confirm-button-text":"确认","cancel-button-text":"取消",title:`是否${l.tableDelText||"删除"}当前列数据?`,onConfirm:n(s=>U(o[l.tableRowKey],o),"onConfirm")},{reference:e.withCtx(()=>[e.createVNode(e.unref(r.ElButton),{link:"",type:"danger",disabled:e.unref(m)||Z(o),loading:e.unref(m)&&e.unref(k)===o[l.tableRowKey]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)&&e.unref(k)===o[l.tableRowKey]?"":l.tableDelText||"删除"),1)]),_:2},1032,["disabled","loading"])]),_:2},1032,["title","onConfirm"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"table-operate-append",{row:o},void 0,!0)]),_:2},1032,["spacer"])])]),_:3},16)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"table-append",{tableData:e.unref(R)},void 0,!0)]),_:2},[e.renderList(e.unref(A),o=>({name:E(o,!1),fn:e.withCtx(s=>[e.renderSlot(l.$slots,o,e.normalizeProps(e.guardReactiveProps(s)),void 0,!0)])}))]),1040,["class","loading","total","table-data","table-column","current-page","page-size"])])):(e.openBlock(),e.createBlock(u,e.mergeProps({key:1,rows:5,animated:""},l.skeletonAttrs),null,16))}}});exports.default=ce;
|
|
1
|
+
"use strict";var ee=Object.defineProperty;var n=(w,g)=>ee(w,"name",{value:g,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const e=require("vue"),te=,/* empty css */r=require("element-plus"),le=,/* empty css */ae=,/* empty css */oe=,/* empty css */ne=,/* empty css */ie=,/* empty css */re=,/* empty css */se=,/* empty css */de={key:0,class:"animate_fadeIn transition-all-300 ls-list-wrap"},ue={class:"flex items-center"},fe=e.defineComponent({name:"LSList"}),ce=e.defineComponent({...fe,props:le.lsListProps,emits:["submitForm","handleLoading","handleCurrentPage","handlePageSize"],setup(w,{expose:g,emit:N}){const{jumpRouteCom:T,currentRouter:D}=ne.default(),t=w,h=N,C=e.useSlots(),v=e.ref(),P=e.ref(),z=e.computed(()=>Object.keys(C).filter(l=>l.toString().endsWith("-form-slot"))),A=e.computed(()=>Object.keys(C).filter(l=>l.toString().endsWith("-table-slot")));function E(l,o=!1){if(l){const i=l.toString().lastIndexOf(`${o?"-form-slot":"-table-slot"}`);return i!==-1?l.toString().slice(0,i):l}return""}n(E,"getSlotName");const{isFirst:B,loading:f,tableData:R,total:$,pageSize:c,currentPage:b,handleReset:q,loadData:p,handleCurrentPageChange:F,handleSizeChange:L}=te.default(t.listApi,t.formData,{dealData:t==null?void 0:t.dealData,dealParams:t==null?void 0:t.dealParams,...t==null?void 0:t.listHookConfig});e.watch(f,l=>{h("handleLoading",l)}),e.watch(b,l=>{h("handleCurrentPage",l)}),e.watch(c,l=>{h("handlePageSize",l)});function O(l){F(1),h("submitForm",l),t!=null&&t.queryFn?t.queryFn(l):p()}n(O,"submitForm");function K(l){console.warn("resetForm",l),q()}n(K,"resetForm");const y=e.computed(()=>D?D.value.path:"");function H(){t!=null&&t.addFn?t.addFn():T({path:t!=null&&t.addRoutePath?t.addRoutePath:`${y.value}/add`},1)}n(H,"onAdd");function I(l,o){t!=null&&t.tableDetailFn?t.tableDetailFn(o):T({path:`${t!=null&&t.detailRoutePath?t.detailRoutePath:`${y.value}/detail`}/${l}`},1)}n(I,"onDetail");function M(l,o){t!=null&&t.tableEditFn?t.tableEditFn(o):T({path:`${t!=null&&t.editRoutePath?t.editRoutePath:`${y.value}/edit`}/${l}`},1)}n(M,"onEdit");const k=e.ref(void 0),m=e.ref(!1);function U(l,o){if(t.delApi){k.value=l,m.value=!0;let i=l;t!=null&&t.dealDelParams&&(i=t.dealDelParams(o)),t.delApi(i).then(()=>{r.ElMessage.success("删除成功"),p()}).catch(d=>{console.warn(d)}).finally(()=>{m.value=!1})}}n(U,"onDel");const V=e.ref(),S=e.ref(!1);function j(l,o,i){V.value=l;const d=n((u,a)=>{if(t.switchApi){S.value=!0;let s=l;t!=null&&t.dealSwitchParams&&(s=t.dealSwitchParams(i)),t.switchApi(s).then(()=>{p(!1),u(!0)}).catch(()=>{a(new Error("Error"))}).finally(()=>{S.value=!1})}else a(new Error("Error"))},"onSwitch");return new Promise((u,a)=>{o?r.ElMessageBox.confirm('<strong class="text-14px">请问是否关闭?</strong>',{confirmButtonText:"确定",cancelButtonText:"取消",dangerouslyUseHTMLString:!0,customStyle:{width:"240px"}}).then(()=>{d(u,a)}).catch(()=>{a(new Error("Error"))}):d(u,a)})}n(j,"switchBeforeChange");function W(l){let o=!1;return t!=null&&t.disabledTableSwitch&&(typeof t.disabledTableSwitch=="boolean"?o=t.disabledTableSwitch:typeof t.disabledTableSwitch=="function"&&(o=t.disabledTableSwitch(l))),!!o}n(W,"disabledTableSwitch");function x(l){let o=!1;return t!=null&&t.showTableDetail&&(typeof t.showTableDetail=="boolean"?o=t.showTableDetail:typeof t.showTableDetail=="function"&&(o=t.showTableDetail(l))),!!o}n(x,"showTableDetail");function G(l){let o=!1;return t!=null&&t.disabledTableDetail&&(typeof t.disabledTableDetail=="boolean"?o=t.disabledTableDetail:typeof t.disabledTableDetail=="function"&&(o=t.disabledTableDetail(l))),!!o}n(G,"disabledTableDetail");function J(l){let o=!1;return t!=null&&t.showTableEdit&&(typeof t.showTableEdit=="boolean"?o=t.showTableEdit:typeof t.showTableEdit=="function"&&(o=t.showTableEdit(l))),!!o}n(J,"showTableEdit");function Q(l){let o=!1;return t!=null&&t.disabledTableEdit&&(typeof t.disabledTableEdit=="boolean"?o=t.disabledTableEdit:typeof t.disabledTableEdit=="function"&&(o=t.disabledTableEdit(l))),!!o}n(Q,"disabledTableEdit");function X(l){let o=!1;return t!=null&&t.showTableDel&&(typeof t.showTableDel=="boolean"?o=t.showTableDel:typeof t.showTableDel=="function"&&(o=t.showTableDel(l))),!!o}n(X,"showTableDel");function Y(l){let o=!1;return t!=null&&t.disabledTableDel&&(typeof t.disabledTableDel=="boolean"?o=t.disabledTableDel:typeof t.disabledTableDel=="function"&&(o=t.disabledTableDel(l))),!!o}n(Y,"disabledTableDel");const Z=e.h(r.ElDivider,{direction:"vertical"}),_=e.computed(()=>t.showSkeleton?!B.value:!0);return g({loadData:p,handleReset:q,setCurrentPage:F,setPageSize:L,isFirst:B,loading:f,currentPage:b,pageSize:c,total:$,FormRef:v,TableRef:P}),(l,o)=>{const i=ie.ElTableColumn,d=re.ElPopconfirm,u=se.ElSkeleton;return e.unref(_)?(e.openBlock(),e.createElementBlock("div",de,[l.showForm?(e.openBlock(),e.createBlock(ae.default,e.mergeProps({key:0,ref_key:"FormRef",ref:v,class:["mb-6px ls-form-cpo",l.formClass],"label-position":"top","show-btn-loading":!1,colon:!1,inline:!0,"form-data":l.formData,"form-items":l.formItems,loading:e.unref(f),"confirm-text":"查询"},l.formAttrs,{onSubmit:O,onReset:K}),e.createSlots({default:e.withCtx(a=>[e.renderSlot(l.$slots,"form-append",e.normalizeProps(e.guardReactiveProps(a)),void 0,!0)]),_:2},[e.renderList(e.unref(z),a=>({name:E(a,!0),fn:e.withCtx(s=>[e.renderSlot(l.$slots,a,e.normalizeProps(e.guardReactiveProps(s)),void 0,!0)])}))]),1040,["class","form-data","form-items","loading"])):e.createCommentVNode("",!0),l.showOperate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.$slots.operate?e.renderSlot(l.$slots,"operate",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.showOperateDivider?(e.openBlock(),e.createBlock(e.unref(r.ElDivider),{key:0,"border-style":"dashed"})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["mt-24px flex items-center justify-start",l.operateClass])},[e.renderSlot(l.$slots,"operate-prepend",{},void 0,!0),l.showAdd?(e.openBlock(),e.createBlock(e.unref(r.ElButton),e.mergeProps({key:0,type:"primary",disabled:e.unref(f)||l.disabledAddBtn},l.addBtnAttrs,{onClick:H}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.addBtnText),1)]),_:1},16,["disabled"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"operate-append",{},void 0,!0)],2)],64))],64)):e.createCommentVNode("",!0),e.createVNode(oe.default,e.mergeProps({ref_key:"TableRef",ref:P,class:["ls-table-cpo",[l.showOperate?"mt-16px":"mt-24px"]],"show-overflow-tooltip":!0,loading:e.unref(f),total:e.unref($),"table-data":e.unref(R),"table-column":l.tableColumn,"current-page":e.unref(b),"onUpdate:currentPage":o[0]||(o[0]=a=>e.isRef(b)?b.value=a:null),"page-size":e.unref(c),"onUpdate:pageSize":o[1]||(o[1]=a=>e.isRef(c)?c.value=a:null)},l.tableAttrs,e.toHandlers(l.tableListeners||{})),e.createSlots({default:e.withCtx(()=>[l.showTableSwitch?(e.openBlock(),e.createBlock(i,e.mergeProps({key:0,prop:l.switchProp,label:"是否开启",width:"100"},l.tableSwitchColumn),{default:e.withCtx(({row:a})=>[e.createVNode(e.unref(r.ElSwitch),{class:"ls-list-table__switch","model-value":a[l.switchProp]?1:0,"active-value":1,"inactive-value":0,loading:e.unref(S)&&a[l.tableRowKey]===e.unref(V),"before-change":n(()=>j(a[l.tableRowKey],a[l.switchProp],a),"before-change"),disabled:W(a)},null,8,["model-value","loading","before-change","disabled"])]),_:1},16,["prop"])):e.createCommentVNode("",!0),l.showTableOperate?(e.openBlock(),e.createBlock(i,e.mergeProps({key:1,fixed:"right",prop:"operate",label:"操作","show-overflow-tooltip":!1},l.tableOperateColumn),{default:e.withCtx(({row:a})=>[e.createElementVNode("div",ue,[e.createVNode(e.unref(r.ElSpace),{size:0,spacer:e.unref(Z)},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"table-operate-prepend",{row:a},void 0,!0),x(a)?(e.openBlock(),e.createBlock(e.unref(r.ElButton),{key:0,disabled:G(a),link:"",type:"primary",onClick:n(s=>I(a[l.tableRowKey],a),"onClick")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.tableDetailText||"查看"),1)]),_:2},1032,["disabled","onClick"])):e.createCommentVNode("",!0),J(a)?(e.openBlock(),e.createBlock(e.unref(r.ElButton),{key:1,disabled:Q(a),link:"",type:"primary",onClick:n(s=>M(a[l.tableRowKey],a),"onClick")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.tableEditText||"编辑"),1)]),_:2},1032,["disabled","onClick"])):e.createCommentVNode("",!0),X(a)?(e.openBlock(),e.createBlock(d,{key:2,"hide-icon":"",placement:"top",width:"180","confirm-button-text":"确认","cancel-button-text":"取消",title:a.popconfirmTxt||l.popconfirmTxt||`是否${l.tableDelText||"删除"}当前行数据?`,onConfirm:n(s=>U(a[l.tableRowKey],a),"onConfirm")},{reference:e.withCtx(()=>[e.createVNode(e.unref(r.ElButton),{link:"",type:"danger",disabled:e.unref(m)||Y(a),loading:e.unref(m)&&e.unref(k)===a[l.tableRowKey]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)&&e.unref(k)===a[l.tableRowKey]?"":l.tableDelText||"删除"),1)]),_:2},1032,["disabled","loading"])]),_:2},1032,["title","onConfirm"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"table-operate-append",{row:a},void 0,!0)]),_:2},1032,["spacer"])])]),_:3},16)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"table-append",{tableData:e.unref(R)},void 0,!0)]),_:2},[e.renderList(e.unref(A),a=>({name:E(a,!1),fn:e.withCtx(s=>[e.renderSlot(l.$slots,a,e.normalizeProps(e.guardReactiveProps(s)),void 0,!0)])}))]),1040,["class","loading","total","table-data","table-column","current-page","page-size"])])):(e.openBlock(),e.createBlock(u,e.mergeProps({key:1,rows:5,animated:""},l.skeletonAttrs),null,16))}}});exports.default=ce;
|
|
@@ -10,7 +10,7 @@ var o = (R, $) => ve(R, "name", { value: $, configurable: !0 });
|
|
|
10
10
|
/* empty css */
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { defineComponent as te, useSlots as Se, ref as
|
|
13
|
+
import { defineComponent as te, useSlots as Se, ref as h, computed as S, watch as B, h as ke, unref as i, openBlock as n, createElementBlock as O, createBlock as f, mergeProps as p, createSlots as X, withCtx as s, renderSlot as u, normalizeProps as K, guardReactiveProps as H, renderList as Y, createCommentVNode as b, Fragment as Z, createElementVNode as _, normalizeClass as Ee, createTextVNode as k, toDisplayString as E, createVNode as P, isRef as x, toHandlers as Pe } from "vue";
|
|
14
14
|
import Ce from "../../_hooks/useTableListHook/index.js";
|
|
15
15
|
import { ElDivider as ee, ElButton as C, ElSwitch as Re, ElSpace as $e, ElMessage as Fe, ElMessageBox as Le } from "element-plus";
|
|
16
16
|
import { lsListProps as Ae } from "../types/index.js";
|
|
@@ -30,10 +30,10 @@ const Ve = {
|
|
|
30
30
|
props: Ae,
|
|
31
31
|
emits: ["submitForm", "handleLoading", "handleCurrentPage", "handlePageSize"],
|
|
32
32
|
setup(R, { expose: $, emit: le }) {
|
|
33
|
-
const { jumpRouteCom: F, currentRouter: I } = Oe(), e = R, D = le, V = Se(), M =
|
|
34
|
-
function q(t,
|
|
33
|
+
const { jumpRouteCom: F, currentRouter: I } = Oe(), e = R, D = le, V = Se(), M = h(), U = h(), ae = S(() => Object.keys(V).filter((t) => t.toString().endsWith("-form-slot"))), ie = S(() => Object.keys(V).filter((t) => t.toString().endsWith("-table-slot")));
|
|
34
|
+
function q(t, a = !1) {
|
|
35
35
|
if (t) {
|
|
36
|
-
const d = t.toString().lastIndexOf(`${
|
|
36
|
+
const d = t.toString().lastIndexOf(`${a ? "-form-slot" : "-table-slot"}`);
|
|
37
37
|
return d !== -1 ? t.toString().slice(0, d) : t;
|
|
38
38
|
}
|
|
39
39
|
return "";
|
|
@@ -80,8 +80,8 @@ const Ve = {
|
|
|
80
80
|
);
|
|
81
81
|
}
|
|
82
82
|
o(de, "onAdd");
|
|
83
|
-
function re(t,
|
|
84
|
-
e != null && e.tableDetailFn ? e.tableDetailFn(
|
|
83
|
+
function re(t, a) {
|
|
84
|
+
e != null && e.tableDetailFn ? e.tableDetailFn(a) : F(
|
|
85
85
|
{
|
|
86
86
|
path: `${e != null && e.detailRoutePath ? e.detailRoutePath : `${L.value}/detail`}/${t}`
|
|
87
87
|
},
|
|
@@ -89,8 +89,8 @@ const Ve = {
|
|
|
89
89
|
);
|
|
90
90
|
}
|
|
91
91
|
o(re, "onDetail");
|
|
92
|
-
function fe(t,
|
|
93
|
-
e != null && e.tableEditFn ? e.tableEditFn(
|
|
92
|
+
function fe(t, a) {
|
|
93
|
+
e != null && e.tableEditFn ? e.tableEditFn(a) : F(
|
|
94
94
|
{
|
|
95
95
|
path: `${e != null && e.editRoutePath ? e.editRoutePath : `${L.value}/edit`}/${t}`
|
|
96
96
|
},
|
|
@@ -98,12 +98,12 @@ const Ve = {
|
|
|
98
98
|
);
|
|
99
99
|
}
|
|
100
100
|
o(fe, "onEdit");
|
|
101
|
-
const A =
|
|
102
|
-
function ue(t,
|
|
101
|
+
const A = h(void 0), g = h(!1);
|
|
102
|
+
function ue(t, a) {
|
|
103
103
|
if (e.delApi) {
|
|
104
104
|
A.value = t, g.value = !0;
|
|
105
105
|
let d = t;
|
|
106
|
-
e != null && e.dealDelParams && (d = e.dealDelParams(
|
|
106
|
+
e != null && e.dealDelParams && (d = e.dealDelParams(a)), e.delApi(d).then(() => {
|
|
107
107
|
Fe.success("删除成功"), v();
|
|
108
108
|
}).catch((m) => {
|
|
109
109
|
console.warn(m);
|
|
@@ -113,25 +113,25 @@ const Ve = {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
o(ue, "onDel");
|
|
116
|
-
const Q =
|
|
117
|
-
function be(t,
|
|
116
|
+
const Q = h(), z = h(!1);
|
|
117
|
+
function be(t, a, d) {
|
|
118
118
|
Q.value = t;
|
|
119
|
-
const m = /* @__PURE__ */ o((
|
|
119
|
+
const m = /* @__PURE__ */ o((c, l) => {
|
|
120
120
|
if (e.switchApi) {
|
|
121
121
|
z.value = !0;
|
|
122
122
|
let r = t;
|
|
123
123
|
e != null && e.dealSwitchParams && (r = e.dealSwitchParams(d)), e.switchApi(r).then(() => {
|
|
124
|
-
v(!1),
|
|
124
|
+
v(!1), c(!0);
|
|
125
125
|
}).catch(() => {
|
|
126
|
-
|
|
126
|
+
l(new Error("Error"));
|
|
127
127
|
}).finally(() => {
|
|
128
128
|
z.value = !1;
|
|
129
129
|
});
|
|
130
130
|
} else
|
|
131
|
-
|
|
131
|
+
l(new Error("Error"));
|
|
132
132
|
}, "onSwitch");
|
|
133
|
-
return new Promise((
|
|
134
|
-
|
|
133
|
+
return new Promise((c, l) => {
|
|
134
|
+
a ? Le.confirm('<strong class="text-14px">请问是否关闭?</strong>', {
|
|
135
135
|
confirmButtonText: "确定",
|
|
136
136
|
cancelButtonText: "取消",
|
|
137
137
|
dangerouslyUseHTMLString: !0,
|
|
@@ -139,46 +139,46 @@ const Ve = {
|
|
|
139
139
|
width: "240px"
|
|
140
140
|
}
|
|
141
141
|
}).then(() => {
|
|
142
|
-
m(
|
|
142
|
+
m(c, l);
|
|
143
143
|
}).catch(() => {
|
|
144
|
-
|
|
145
|
-
}) : m(
|
|
144
|
+
l(new Error("Error"));
|
|
145
|
+
}) : m(c, l);
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
o(be, "switchBeforeChange");
|
|
149
149
|
function me(t) {
|
|
150
|
-
let
|
|
151
|
-
return e != null && e.disabledTableSwitch && (typeof e.disabledTableSwitch == "boolean" ?
|
|
150
|
+
let a = !1;
|
|
151
|
+
return e != null && e.disabledTableSwitch && (typeof e.disabledTableSwitch == "boolean" ? a = e.disabledTableSwitch : typeof e.disabledTableSwitch == "function" && (a = e.disabledTableSwitch(t))), !!a;
|
|
152
152
|
}
|
|
153
153
|
o(me, "disabledTableSwitch");
|
|
154
|
-
function he(t) {
|
|
155
|
-
let l = !1;
|
|
156
|
-
return e != null && e.showTableDetail && (typeof e.showTableDetail == "boolean" ? l = e.showTableDetail : typeof e.showTableDetail == "function" && (l = e.showTableDetail(t))), !!l;
|
|
157
|
-
}
|
|
158
|
-
o(he, "showTableDetail");
|
|
159
154
|
function ce(t) {
|
|
160
|
-
let
|
|
161
|
-
return e != null && e.
|
|
155
|
+
let a = !1;
|
|
156
|
+
return e != null && e.showTableDetail && (typeof e.showTableDetail == "boolean" ? a = e.showTableDetail : typeof e.showTableDetail == "function" && (a = e.showTableDetail(t))), !!a;
|
|
157
|
+
}
|
|
158
|
+
o(ce, "showTableDetail");
|
|
159
|
+
function he(t) {
|
|
160
|
+
let a = !1;
|
|
161
|
+
return e != null && e.disabledTableDetail && (typeof e.disabledTableDetail == "boolean" ? a = e.disabledTableDetail : typeof e.disabledTableDetail == "function" && (a = e.disabledTableDetail(t))), !!a;
|
|
162
162
|
}
|
|
163
|
-
o(
|
|
163
|
+
o(he, "disabledTableDetail");
|
|
164
164
|
function pe(t) {
|
|
165
|
-
let
|
|
166
|
-
return e != null && e.showTableEdit && (typeof e.showTableEdit == "boolean" ?
|
|
165
|
+
let a = !1;
|
|
166
|
+
return e != null && e.showTableEdit && (typeof e.showTableEdit == "boolean" ? a = e.showTableEdit : typeof e.showTableEdit == "function" && (a = e.showTableEdit(t))), !!a;
|
|
167
167
|
}
|
|
168
168
|
o(pe, "showTableEdit");
|
|
169
169
|
function Te(t) {
|
|
170
|
-
let
|
|
171
|
-
return e != null && e.disabledTableEdit && (typeof e.disabledTableEdit == "boolean" ?
|
|
170
|
+
let a = !1;
|
|
171
|
+
return e != null && e.disabledTableEdit && (typeof e.disabledTableEdit == "boolean" ? a = e.disabledTableEdit : typeof e.disabledTableEdit == "function" && (a = e.disabledTableEdit(t))), !!a;
|
|
172
172
|
}
|
|
173
173
|
o(Te, "disabledTableEdit");
|
|
174
174
|
function we(t) {
|
|
175
|
-
let
|
|
176
|
-
return e != null && e.showTableDel && (typeof e.showTableDel == "boolean" ?
|
|
175
|
+
let a = !1;
|
|
176
|
+
return e != null && e.showTableDel && (typeof e.showTableDel == "boolean" ? a = e.showTableDel : typeof e.showTableDel == "function" && (a = e.showTableDel(t))), !!a;
|
|
177
177
|
}
|
|
178
178
|
o(we, "showTableDel");
|
|
179
179
|
function ye(t) {
|
|
180
|
-
let
|
|
181
|
-
return e != null && e.disabledTableDel && (typeof e.disabledTableDel == "boolean" ?
|
|
180
|
+
let a = !1;
|
|
181
|
+
return e != null && e.disabledTableDel && (typeof e.disabledTableDel == "boolean" ? a = e.disabledTableDel : typeof e.disabledTableDel == "function" && (a = e.disabledTableDel(t))), !!a;
|
|
182
182
|
}
|
|
183
183
|
o(ye, "disabledTableDel");
|
|
184
184
|
const ge = ke(ee, { direction: "vertical" }), De = S(() => e.showSkeleton ? !W.value : !0);
|
|
@@ -194,8 +194,8 @@ const Ve = {
|
|
|
194
194
|
total: G,
|
|
195
195
|
FormRef: M,
|
|
196
196
|
TableRef: U
|
|
197
|
-
}), (t,
|
|
198
|
-
const d = Ke, m = He,
|
|
197
|
+
}), (t, a) => {
|
|
198
|
+
const d = Ke, m = He, c = Ie;
|
|
199
199
|
return i(De) ? (n(), O("div", Ve, [
|
|
200
200
|
t.showForm ? (n(), f(ze, p({
|
|
201
201
|
key: 0,
|
|
@@ -214,15 +214,15 @@ const Ve = {
|
|
|
214
214
|
onSubmit: ne,
|
|
215
215
|
onReset: se
|
|
216
216
|
}), X({
|
|
217
|
-
default: s((
|
|
218
|
-
u(t.$slots, "form-append", K(H(
|
|
217
|
+
default: s((l) => [
|
|
218
|
+
u(t.$slots, "form-append", K(H(l)), void 0, !0)
|
|
219
219
|
]),
|
|
220
220
|
_: 2
|
|
221
221
|
}, [
|
|
222
|
-
Y(i(ae), (
|
|
223
|
-
name: q(
|
|
222
|
+
Y(i(ae), (l) => ({
|
|
223
|
+
name: q(l, !0),
|
|
224
224
|
fn: s((r) => [
|
|
225
|
-
u(t.$slots,
|
|
225
|
+
u(t.$slots, l, K(H(r)), void 0, !0)
|
|
226
226
|
])
|
|
227
227
|
}))
|
|
228
228
|
]), 1040, ["class", "form-data", "form-items", "loading"])) : b("", !0),
|
|
@@ -260,9 +260,9 @@ const Ve = {
|
|
|
260
260
|
"table-data": i(j),
|
|
261
261
|
"table-column": t.tableColumn,
|
|
262
262
|
"current-page": i(y),
|
|
263
|
-
"onUpdate:currentPage":
|
|
263
|
+
"onUpdate:currentPage": a[0] || (a[0] = (l) => x(y) ? y.value = l : null),
|
|
264
264
|
"page-size": i(w),
|
|
265
|
-
"onUpdate:pageSize":
|
|
265
|
+
"onUpdate:pageSize": a[1] || (a[1] = (l) => x(w) ? w.value = l : null)
|
|
266
266
|
}, t.tableAttrs, Pe(t.tableListeners || {})), X({
|
|
267
267
|
default: s(() => [
|
|
268
268
|
t.showTableSwitch ? (n(), f(d, p({
|
|
@@ -271,15 +271,15 @@ const Ve = {
|
|
|
271
271
|
label: "是否开启",
|
|
272
272
|
width: "100"
|
|
273
273
|
}, t.tableSwitchColumn), {
|
|
274
|
-
default: s(({ row:
|
|
274
|
+
default: s(({ row: l }) => [
|
|
275
275
|
P(i(Re), {
|
|
276
276
|
class: "ls-list-table__switch",
|
|
277
|
-
"model-value":
|
|
277
|
+
"model-value": l[t.switchProp] ? 1 : 0,
|
|
278
278
|
"active-value": 1,
|
|
279
279
|
"inactive-value": 0,
|
|
280
|
-
loading: i(z) &&
|
|
281
|
-
"before-change": /* @__PURE__ */ o(() => be(
|
|
282
|
-
disabled: me(
|
|
280
|
+
loading: i(z) && l[t.tableRowKey] === i(Q),
|
|
281
|
+
"before-change": /* @__PURE__ */ o(() => be(l[t.tableRowKey], l[t.switchProp], l), "before-change"),
|
|
282
|
+
disabled: me(l)
|
|
283
283
|
}, null, 8, ["model-value", "loading", "before-change", "disabled"])
|
|
284
284
|
]),
|
|
285
285
|
_: 1
|
|
@@ -291,64 +291,64 @@ const Ve = {
|
|
|
291
291
|
label: "操作",
|
|
292
292
|
"show-overflow-tooltip": !1
|
|
293
293
|
}, t.tableOperateColumn), {
|
|
294
|
-
default: s(({ row:
|
|
294
|
+
default: s(({ row: l }) => [
|
|
295
295
|
_("div", Me, [
|
|
296
296
|
P(i($e), {
|
|
297
297
|
size: 0,
|
|
298
298
|
spacer: i(ge)
|
|
299
299
|
}, {
|
|
300
300
|
default: s(() => [
|
|
301
|
-
u(t.$slots, "table-operate-prepend", { row:
|
|
302
|
-
|
|
301
|
+
u(t.$slots, "table-operate-prepend", { row: l }, void 0, !0),
|
|
302
|
+
ce(l) ? (n(), f(i(C), {
|
|
303
303
|
key: 0,
|
|
304
|
-
disabled:
|
|
304
|
+
disabled: he(l),
|
|
305
305
|
link: "",
|
|
306
306
|
type: "primary",
|
|
307
|
-
onClick: /* @__PURE__ */ o((r) => re(
|
|
307
|
+
onClick: /* @__PURE__ */ o((r) => re(l[t.tableRowKey], l), "onClick")
|
|
308
308
|
}, {
|
|
309
309
|
default: s(() => [
|
|
310
310
|
k(E(t.tableDetailText || "查看"), 1)
|
|
311
311
|
]),
|
|
312
312
|
_: 2
|
|
313
313
|
}, 1032, ["disabled", "onClick"])) : b("", !0),
|
|
314
|
-
pe(
|
|
314
|
+
pe(l) ? (n(), f(i(C), {
|
|
315
315
|
key: 1,
|
|
316
|
-
disabled: Te(
|
|
316
|
+
disabled: Te(l),
|
|
317
317
|
link: "",
|
|
318
318
|
type: "primary",
|
|
319
|
-
onClick: /* @__PURE__ */ o((r) => fe(
|
|
319
|
+
onClick: /* @__PURE__ */ o((r) => fe(l[t.tableRowKey], l), "onClick")
|
|
320
320
|
}, {
|
|
321
321
|
default: s(() => [
|
|
322
322
|
k(E(t.tableEditText || "编辑"), 1)
|
|
323
323
|
]),
|
|
324
324
|
_: 2
|
|
325
325
|
}, 1032, ["disabled", "onClick"])) : b("", !0),
|
|
326
|
-
we(
|
|
326
|
+
we(l) ? (n(), f(m, {
|
|
327
327
|
key: 2,
|
|
328
328
|
"hide-icon": "",
|
|
329
329
|
placement: "top",
|
|
330
330
|
width: "180",
|
|
331
331
|
"confirm-button-text": "确认",
|
|
332
332
|
"cancel-button-text": "取消",
|
|
333
|
-
title: `是否${t.tableDelText || "删除"}
|
|
334
|
-
onConfirm: /* @__PURE__ */ o((r) => ue(
|
|
333
|
+
title: l.popconfirmTxt || t.popconfirmTxt || `是否${t.tableDelText || "删除"}当前行数据?`,
|
|
334
|
+
onConfirm: /* @__PURE__ */ o((r) => ue(l[t.tableRowKey], l), "onConfirm")
|
|
335
335
|
}, {
|
|
336
336
|
reference: s(() => [
|
|
337
337
|
P(i(C), {
|
|
338
338
|
link: "",
|
|
339
339
|
type: "danger",
|
|
340
|
-
disabled: i(g) || ye(
|
|
341
|
-
loading: i(g) && i(A) ===
|
|
340
|
+
disabled: i(g) || ye(l),
|
|
341
|
+
loading: i(g) && i(A) === l[t.tableRowKey]
|
|
342
342
|
}, {
|
|
343
343
|
default: s(() => [
|
|
344
|
-
k(E(i(g) && i(A) ===
|
|
344
|
+
k(E(i(g) && i(A) === l[t.tableRowKey] ? "" : t.tableDelText || "删除"), 1)
|
|
345
345
|
]),
|
|
346
346
|
_: 2
|
|
347
347
|
}, 1032, ["disabled", "loading"])
|
|
348
348
|
]),
|
|
349
349
|
_: 2
|
|
350
350
|
}, 1032, ["title", "onConfirm"])) : b("", !0),
|
|
351
|
-
u(t.$slots, "table-operate-append", { row:
|
|
351
|
+
u(t.$slots, "table-operate-append", { row: l }, void 0, !0)
|
|
352
352
|
]),
|
|
353
353
|
_: 2
|
|
354
354
|
}, 1032, ["spacer"])
|
|
@@ -360,14 +360,14 @@ const Ve = {
|
|
|
360
360
|
]),
|
|
361
361
|
_: 2
|
|
362
362
|
}, [
|
|
363
|
-
Y(i(ie), (
|
|
364
|
-
name: q(
|
|
363
|
+
Y(i(ie), (l) => ({
|
|
364
|
+
name: q(l, !1),
|
|
365
365
|
fn: s((r) => [
|
|
366
|
-
u(t.$slots,
|
|
366
|
+
u(t.$slots, l, K(H(r)), void 0, !0)
|
|
367
367
|
])
|
|
368
368
|
}))
|
|
369
369
|
]), 1040, ["class", "loading", "total", "table-data", "table-column", "current-page", "page-size"])
|
|
370
|
-
])) : (n(), f(
|
|
370
|
+
])) : (n(), f(c, p({
|
|
371
371
|
key: 1,
|
|
372
372
|
rows: 5,
|
|
373
373
|
animated: ""
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var l=Object.defineProperty;var t=(e,a)=>l(e,"name",{value:a,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../_utils/runtime/index.cjs"),n=o.buildProps({listApi:{type:Function},dealParams:{type:Function},dealData:{type:Function},listHookConfig:{type:Object},delApi:{type:Function},dealDelParams:{type:Function},switchApi:{type:Function},dealSwitchParams:{type:Function},showForm:{type:Boolean,default:!0},formClass:{type:String,default:""},formData:{type:Object,default:t(()=>({}),"default")},formItems:{type:Array,default:t(()=>[],"default")},formAttrs:{type:Object,default:t(()=>{},"default")},queryFn:{type:Function},tableColumn:{type:Array,default:t(()=>[],"default")},tableRowKey:{type:String,default:"id"},tableAttrs:{type:Object,default:t(()=>{},"default")},tableListeners:{type:Object,default:t(()=>{},"default")},showOperate:{type:Boolean,default:!0},showOperateDivider:{type:Boolean,default:!0},operateClass:{type:String,default:""},showAdd:{type:Boolean,default:!0},disabledAddBtn:{type:Boolean,default:!1},addBtnText:{type:String,default:"添加"},addFn:{type:Function},addBtnAttrs:{type:Object,default:t(()=>{},"default")},showTableSwitch:{type:Boolean,default:!1},switchProp:{type:String,default:"status"},tableSwitchColumn:{type:Object,default:t(()=>{},"default")},disabledTableSwitch:{type:[Boolean,Function],default:!1},showTableOperate:{type:Boolean,default:!0},tableOperateColumn:{type:Object,default:t(()=>{},"default")},tableDetailFn:{type:Function},tableEditFn:{type:Function},showTableDetail:{type:[Boolean,Function],default:!0},disabledTableDetail:{type:[Boolean,Function],default:!1},showTableEdit:{type:[Boolean,Function],default:!0},disabledTableEdit:{type:[Boolean,Function],default:!1},showTableDel:{type:[Boolean,Function],default:!0},disabledTableDel:{type:[Boolean,Function],default:!1},addRoutePath:{type:String,default:""},detailRoutePath:{type:String,default:""},editRoutePath:{type:String,default:""},tableDetailText:{type:String,default:"查看"},tableEditText:{type:String,default:"编辑"},tableDelText:{type:String,default:"删除"},skeletonAttrs:{type:Object,default:t(()=>{},"default")},showSkeleton:{type:Boolean,default:!0}});exports.lsListProps=n;
|
|
1
|
+
"use strict";var l=Object.defineProperty;var t=(e,a)=>l(e,"name",{value:a,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../_utils/runtime/index.cjs"),n=o.buildProps({listApi:{type:Function},dealParams:{type:Function},dealData:{type:Function},listHookConfig:{type:Object},delApi:{type:Function},dealDelParams:{type:Function},switchApi:{type:Function},dealSwitchParams:{type:Function},showForm:{type:Boolean,default:!0},formClass:{type:String,default:""},formData:{type:Object,default:t(()=>({}),"default")},formItems:{type:Array,default:t(()=>[],"default")},formAttrs:{type:Object,default:t(()=>{},"default")},queryFn:{type:Function},tableColumn:{type:Array,default:t(()=>[],"default")},tableRowKey:{type:String,default:"id"},tableAttrs:{type:Object,default:t(()=>{},"default")},tableListeners:{type:Object,default:t(()=>{},"default")},showOperate:{type:Boolean,default:!0},showOperateDivider:{type:Boolean,default:!0},operateClass:{type:String,default:""},showAdd:{type:Boolean,default:!0},disabledAddBtn:{type:Boolean,default:!1},addBtnText:{type:String,default:"添加"},addFn:{type:Function},addBtnAttrs:{type:Object,default:t(()=>{},"default")},showTableSwitch:{type:Boolean,default:!1},switchProp:{type:String,default:"status"},tableSwitchColumn:{type:Object,default:t(()=>{},"default")},disabledTableSwitch:{type:[Boolean,Function],default:!1},showTableOperate:{type:Boolean,default:!0},tableOperateColumn:{type:Object,default:t(()=>{},"default")},tableDetailFn:{type:Function},tableEditFn:{type:Function},showTableDetail:{type:[Boolean,Function],default:!0},disabledTableDetail:{type:[Boolean,Function],default:!1},showTableEdit:{type:[Boolean,Function],default:!0},disabledTableEdit:{type:[Boolean,Function],default:!1},showTableDel:{type:[Boolean,Function],default:!0},disabledTableDel:{type:[Boolean,Function],default:!1},addRoutePath:{type:String,default:""},detailRoutePath:{type:String,default:""},editRoutePath:{type:String,default:""},tableDetailText:{type:String,default:"查看"},tableEditText:{type:String,default:"编辑"},tableDelText:{type:String,default:"删除"},skeletonAttrs:{type:Object,default:t(()=>{},"default")},showSkeleton:{type:Boolean,default:!0},popconfirmTxt:{type:String,default:""}});exports.lsListProps=n;
|
|
Binary file
|
|
Binary file
|
|
@@ -1428,6 +1428,7 @@ declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
1428
1428
|
readonly tableDelText: EpPropFinalized<StringConstructor, unknown, unknown, "删除", boolean>;
|
|
1429
1429
|
readonly skeletonAttrs: EpPropFinalized<ObjectConstructor, unknown, unknown, () => void, boolean>;
|
|
1430
1430
|
readonly showSkeleton: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1431
|
+
readonly popconfirmTxt: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
1431
1432
|
}>, {
|
|
1432
1433
|
loadData: (showLoading?: boolean, firstLoad?: boolean) => void;
|
|
1433
1434
|
handleReset: () => void;
|
|
@@ -1584,6 +1585,7 @@ declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
1584
1585
|
readonly tableDelText: EpPropFinalized<StringConstructor, unknown, unknown, "删除", boolean>;
|
|
1585
1586
|
readonly skeletonAttrs: EpPropFinalized<ObjectConstructor, unknown, unknown, () => void, boolean>;
|
|
1586
1587
|
readonly showSkeleton: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1588
|
+
readonly popconfirmTxt: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
1587
1589
|
}>> & Readonly<{
|
|
1588
1590
|
onSubmitForm?: ((formData: any) => any) | undefined;
|
|
1589
1591
|
onHandleLoading?: ((loading: boolean) => any) | undefined;
|
|
@@ -1626,6 +1628,7 @@ declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
1626
1628
|
readonly tableDelText: string;
|
|
1627
1629
|
readonly skeletonAttrs: Record<string, any>;
|
|
1628
1630
|
readonly showSkeleton: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1631
|
+
readonly popconfirmTxt: string;
|
|
1629
1632
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1630
1633
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1631
1634
|
export default _default;
|
|
@@ -140,6 +140,7 @@ declare const LSList: {
|
|
|
140
140
|
readonly tableDelText: EpPropFinalized<StringConstructor, unknown, unknown, "删除", boolean>;
|
|
141
141
|
readonly skeletonAttrs: EpPropFinalized<ObjectConstructor, unknown, unknown, () => void, boolean>;
|
|
142
142
|
readonly showSkeleton: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
143
|
+
readonly popconfirmTxt: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
143
144
|
}>> & Readonly<{
|
|
144
145
|
onSubmitForm?: ((formData: any) => any) | undefined;
|
|
145
146
|
onHandleLoading?: ((loading: boolean) => any) | undefined;
|
|
@@ -199,6 +200,7 @@ declare const LSList: {
|
|
|
199
200
|
readonly tableDelText: string;
|
|
200
201
|
readonly skeletonAttrs: Record<string, any>;
|
|
201
202
|
readonly showSkeleton: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
203
|
+
readonly popconfirmTxt: string;
|
|
202
204
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
203
205
|
P: {};
|
|
204
206
|
B: {};
|
|
@@ -345,6 +347,7 @@ declare const LSList: {
|
|
|
345
347
|
readonly tableDelText: EpPropFinalized<StringConstructor, unknown, unknown, "删除", boolean>;
|
|
346
348
|
readonly skeletonAttrs: EpPropFinalized<ObjectConstructor, unknown, unknown, () => void, boolean>;
|
|
347
349
|
readonly showSkeleton: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
350
|
+
readonly popconfirmTxt: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
348
351
|
}>> & Readonly<{
|
|
349
352
|
onSubmitForm?: ((formData: any) => any) | undefined;
|
|
350
353
|
onHandleLoading?: ((loading: boolean) => any) | undefined;
|
|
@@ -399,6 +402,7 @@ declare const LSList: {
|
|
|
399
402
|
readonly tableDelText: string;
|
|
400
403
|
readonly skeletonAttrs: Record<string, any>;
|
|
401
404
|
readonly showSkeleton: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
405
|
+
readonly popconfirmTxt: string;
|
|
402
406
|
}>;
|
|
403
407
|
__isFragment?: never;
|
|
404
408
|
__isTeleport?: never;
|
|
@@ -542,6 +546,7 @@ declare const LSList: {
|
|
|
542
546
|
readonly tableDelText: EpPropFinalized<StringConstructor, unknown, unknown, "删除", boolean>;
|
|
543
547
|
readonly skeletonAttrs: EpPropFinalized<ObjectConstructor, unknown, unknown, () => void, boolean>;
|
|
544
548
|
readonly showSkeleton: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
549
|
+
readonly popconfirmTxt: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
545
550
|
}>> & Readonly<{
|
|
546
551
|
onSubmitForm?: ((formData: any) => any) | undefined;
|
|
547
552
|
onHandleLoading?: ((loading: boolean) => any) | undefined;
|
|
@@ -601,6 +606,7 @@ declare const LSList: {
|
|
|
601
606
|
readonly tableDelText: string;
|
|
602
607
|
readonly skeletonAttrs: Record<string, any>;
|
|
603
608
|
readonly showSkeleton: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
609
|
+
readonly popconfirmTxt: string;
|
|
604
610
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
605
611
|
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
606
612
|
"form-append"?(_: any): any;
|
|
@@ -138,4 +138,5 @@ export declare const lsListProps: {
|
|
|
138
138
|
readonly tableDelText: EpPropFinalized<StringConstructor, unknown, unknown, "删除", boolean>;
|
|
139
139
|
readonly skeletonAttrs: EpPropFinalized<ObjectConstructor, unknown, unknown, () => void, boolean>;
|
|
140
140
|
readonly showSkeleton: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
141
|
+
readonly popconfirmTxt: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
141
142
|
};
|