@lingshugroup/web-plus 2.1.2 → 2.1.3

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.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-ad37b7e2"]]);exports.default=u;
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-a88825a4"]]);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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ad37b7e2"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a88825a4"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1 +1 @@
1
- "use strict";var ne=Object.defineProperty;var o=(g,p)=>ne(g,"name",{value:p,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"),oe=/* empty css */r=require("element-plus"),ie=/* empty css */re=/* empty css */se=/* empty css */de=/* empty css */ue=/* empty css */fe=/* empty css */ce=/* empty css */be={key:0,class:"animate_fadeIn transition-all-300 ls-list-wrap"},me={class:"flex items-center"},he=e.defineComponent({name:"LSList"}),Te=e.defineComponent({...he,props:ie.lsListProps,emits:["submitForm","resetForm","handleLoading","handleCurrentPage","handlePageSize"],setup(g,{expose:p,emit:N}){const{jumpRouteCom:y,currentRouter:S}=de.default(),t=g,f=N,C=e.useSlots(),E=e.ref(),v=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 P(l,n=!1){if(l){const i=l.toString().lastIndexOf(`${n?"-form-slot":"-table-slot"}`);return i!==-1?l.toString().slice(0,i):l}return""}o(P,"getSlotName");const{isFirst:B,loading:c,tableData:x,total:R,pageSize:b,currentPage:m,handleReset:$,loadData:T,handleCurrentPageChange:q,handleSizeChange:L}=oe.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(c,l=>{f("handleLoading",l)}),e.watch(m,l=>{f("handleCurrentPage",l)}),e.watch(b,l=>{f("handlePageSize",l)});function O(l){q(1,!1),f("submitForm",l),t!=null&&t.queryFn?t.queryFn(l):T()}o(O,"submitForm");function K(l){console.warn("resetForm",l),f("resetForm",l),$()}o(K,"resetForm");const w=e.computed(()=>S?S.value.path:"");function H(){t!=null&&t.addFn?t.addFn():y({path:t!=null&&t.addRoutePath?t.addRoutePath:`${w.value}/add`},1)}o(H,"onAdd");function I(l,n){t!=null&&t.tableDetailFn?t.tableDetailFn(n):y({path:`${t!=null&&t.detailRoutePath?t.detailRoutePath:`${w.value}/detail`}/${l}`},1)}o(I,"onDetail");function M(l,n){t!=null&&t.tableEditFn?t.tableEditFn(n):y({path:`${t!=null&&t.editRoutePath?t.editRoutePath:`${w.value}/edit`}/${l}`},1)}o(M,"onEdit");const D=e.ref(void 0),h=e.ref(!1);function U(l,n){if(t.delApi){D.value=l,h.value=!0;let i=l;t!=null&&t.dealDelParams&&(i=t.dealDelParams(n)),t.delApi(i).then(()=>{r.ElMessage.success("删除成功"),T()}).catch(d=>{console.warn(d)}).finally(()=>{h.value=!1})}}o(U,"onDel");const F=e.ref(),k=e.ref(!1);function j(l,n,i){F.value=l;const d=o((u,a)=>{if(t.switchApi){k.value=!0;let s=l;t!=null&&t.dealSwitchParams&&(s=t.dealSwitchParams(i)),t.switchApi(s).then(()=>{T(!1),u(!0)}).catch(()=>{a(new Error("Error"))}).finally(()=>{k.value=!1})}else a(new Error("Error"))},"onSwitch");return new Promise((u,a)=>{n?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)})}o(j,"switchBeforeChange");function W(l){let n=!1;return t!=null&&t.disabledTableSwitch&&(typeof t.disabledTableSwitch=="boolean"?n=t.disabledTableSwitch:typeof t.disabledTableSwitch=="function"&&(n=t.disabledTableSwitch(l))),!!n}o(W,"disabledTableSwitch");function G(l){if(t!=null&&t.tableDetailText){if(typeof t.tableDetailText=="string")return t.tableDetailText;if(typeof t.tableDetailText=="function")return t.tableDetailText(l)}return"查看"}o(G,"getTableDetailText");function J(l){let n=!1;return t!=null&&t.showTableDetail&&(typeof t.showTableDetail=="boolean"?n=t.showTableDetail:typeof t.showTableDetail=="function"&&(n=t.showTableDetail(l))),!!n}o(J,"showTableDetail");function Q(l){let n=!1;return t!=null&&t.disabledTableDetail&&(typeof t.disabledTableDetail=="boolean"?n=t.disabledTableDetail:typeof t.disabledTableDetail=="function"&&(n=t.disabledTableDetail(l))),!!n}o(Q,"disabledTableDetail");function X(l){if(t!=null&&t.tableEditText){if(typeof t.tableEditText=="string")return t.tableEditText;if(typeof t.tableEditText=="function")return t.tableEditText(l)}return"编辑"}o(X,"getTableEditText");function Y(l){let n=!1;return t!=null&&t.showTableEdit&&(typeof t.showTableEdit=="boolean"?n=t.showTableEdit:typeof t.showTableEdit=="function"&&(n=t.showTableEdit(l))),!!n}o(Y,"showTableEdit");function Z(l){let n=!1;return t!=null&&t.disabledTableEdit&&(typeof t.disabledTableEdit=="boolean"?n=t.disabledTableEdit:typeof t.disabledTableEdit=="function"&&(n=t.disabledTableEdit(l))),!!n}o(Z,"disabledTableEdit");function V(l){if(t!=null&&t.tableDelText){if(typeof t.tableDelText=="string")return t.tableDelText;if(typeof t.tableDelText=="function")return t.tableDelText(l)}return"删除"}o(V,"getTableDelText");function _(l){let n=!1;return t!=null&&t.showTableDel&&(typeof t.showTableDel=="boolean"?n=t.showTableDel:typeof t.showTableDel=="function"&&(n=t.showTableDel(l))),!!n}o(_,"showTableDel");function ee(l){let n=!1;return t!=null&&t.disabledTableDel&&(typeof t.disabledTableDel=="boolean"?n=t.disabledTableDel:typeof t.disabledTableDel=="function"&&(n=t.disabledTableDel(l))),!!n}o(ee,"disabledTableDel");function te(l){if(t!=null&&t.popconfirmTxt){if(typeof t.popconfirmTxt=="string")return t.popconfirmTxt;if(typeof t.popconfirmTxt=="function")return t.popconfirmTxt(l)}return`是否${V(l)}当前行数据?`}o(te,"getPopconfirmTxt");const le=e.h(r.ElDivider,{direction:"vertical"}),ae=e.computed(()=>t.showSkeleton?!B.value:!0);return p({loadData:T,handleReset:$,setCurrentPage:q,setPageSize:L,isFirst:B,loading:c,currentPage:m,pageSize:b,total:R,FormRef:E,TableRef:v}),(l,n)=>{const i=ue.ElTableColumn,d=fe.ElPopconfirm,u=ce.ElSkeleton;return e.unref(ae)?(e.openBlock(),e.createElementBlock("div",be,[l.showForm?(e.openBlock(),e.createBlock(re.default,e.mergeProps({key:0,ref_key:"FormRef",ref:E,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(c),"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:P(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(c)||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(se.default,e.mergeProps({ref_key:"TableRef",ref:v,class:["ls-table-cpo",[l.showOperate?"mt-16px":"mt-24px"]],"show-overflow-tooltip":!0,loading:e.unref(c),total:e.unref(R),"table-data":e.unref(x),"table-column":l.tableColumn,"current-page":e.unref(m),"onUpdate:currentPage":n[0]||(n[0]=a=>e.isRef(m)?m.value=a:null),"page-size":e.unref(b),"onUpdate:pageSize":n[1]||(n[1]=a=>e.isRef(b)?b.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(k)&&a[l.tableRowKey]===e.unref(F),"before-change":o(()=>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",me,[e.createVNode(e.unref(r.ElSpace),{size:0,spacer:e.unref(le)},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"table-operate-prepend",{row:a},void 0,!0),J(a)?(e.openBlock(),e.createBlock(e.unref(r.ElButton),{key:0,disabled:Q(a),link:"",type:"primary",onClick:o(s=>I(a[l.tableRowKey],a),"onClick")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.tableDetailText||G(a)),1)]),_:2},1032,["disabled","onClick"])):e.createCommentVNode("",!0),Y(a)?(e.openBlock(),e.createBlock(e.unref(r.ElButton),{key:1,disabled:Z(a),link:"",type:"primary",onClick:o(s=>M(a[l.tableRowKey],a),"onClick")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.tableEditText||X(a)),1)]),_:2},1032,["disabled","onClick"])):e.createCommentVNode("",!0),_(a)?(e.openBlock(),e.createBlock(d,{key:2,"hide-icon":"",placement:"top",width:"180","confirm-button-text":"确认","cancel-button-text":"取消",title:a.popconfirmTxt||te(a),onConfirm:o(s=>U(a[l.tableRowKey],a),"onConfirm")},{reference:e.withCtx(()=>[e.createVNode(e.unref(r.ElButton),{link:"",type:"danger",disabled:e.unref(h)||ee(a),loading:e.unref(h)&&e.unref(D)===a[l.tableRowKey]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)&&e.unref(D)===a[l.tableRowKey]?"":a.tableDelText||V(a)),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(x)},void 0,!0)]),_:2},[e.renderList(e.unref(A),a=>({name:P(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=Te;
1
+ "use strict";var oe=Object.defineProperty;var i=(p,y)=>oe(p,"name",{value:y,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 t=require("vue"),re=/* empty css */r=require("element-plus"),se=/* empty css */de=/* empty css */ue=/* empty css */fe=/* empty css */ce=/* empty css */be=/* empty css */me=/* empty css */he={key:0,class:"animate_fadeIn transition-all-300 ls-list-wrap"},Te={class:"flex items-center"},ge=t.defineComponent({name:"LSList"}),pe=t.defineComponent({...ge,props:se.lsListProps,emits:["submitForm","resetForm","delSuccess","switchSuccess","handleLoading","handleCurrentPage","handlePageSize"],setup(p,{expose:y,emit:N}){const{jumpRouteCom:D,currentRouter:E}=fe.default(),e=p,u=N,C=t.useSlots(),v=t.ref(),B=t.ref(),z=t.computed(()=>Object.keys(C).filter(l=>l.toString().endsWith("-form-slot"))),L=t.computed(()=>Object.keys(C).filter(l=>l.toString().endsWith("-table-slot")));function R(l,n=!1){if(l){const o=l.toString().lastIndexOf(`${n?"-form-slot":"-table-slot"}`);return o!==-1?l.toString().slice(0,o):l}return""}i(R,"getSlotName");const{isFirst:F,loading:b,tableData:$,total:x,pageSize:m,currentPage:h,handleReset:q,loadData:T,handleCurrentPageChange:V,handleSizeChange:M}=re.default(e.listApi,e.formData,{dealData:e==null?void 0:e.dealData,dealParams:e==null?void 0:e.dealParams,...e==null?void 0:e.listHookConfig});t.watch(b,l=>{u("handleLoading",l)}),t.watch(h,l=>{u("handleCurrentPage",l)}),t.watch(m,l=>{u("handlePageSize",l)});function O(l){V(1,!1),u("submitForm",l),e!=null&&e.queryFn?e.queryFn(l):T()}i(O,"submitForm");function K(l){console.warn("resetForm",l),u("resetForm",l),e!=null&&e.resetFn?e.resetFn(l):q()}i(K,"resetForm");const g=t.computed(()=>E?E.value.path:"");function H(){e!=null&&e.addFn?e.addFn():D({path:e!=null&&e.addRoutePath?e.addRoutePath:`${g.value}/add`},1)}i(H,"onAdd");function I(l,n){e!=null&&e.tableDetailFn?e.tableDetailFn(n):D({path:`${e!=null&&e.detailRoutePath?e.detailRoutePath:`${g.value}/detail`}/${l}`},1)}i(I,"onDetail");function U(l,n){e!=null&&e.tableEditFn?e.tableEditFn(n):D({path:`${e!=null&&e.editRoutePath?e.editRoutePath:`${g.value}/edit`}/${l}`},1)}i(U,"onEdit");const w=t.ref(void 0),f=t.ref(!1);function j(l,n){if(w.value=l,e!=null&&e.tableDelFn)e.tableDelFn(n,o=>{f.value=o});else if(e.delApi){f.value=!0;let o=l;e!=null&&e.dealDelParams&&(o=e.dealDelParams(n)),e.delApi(o).then(()=>{const d=ee(n)||`${k(n)}成功`;r.ElMessage.success(d),T(),u("delSuccess",n,!0)}).catch(d=>{console.warn(d)}).finally(()=>{f.value=!1})}}i(j,"onDel");const A=t.ref(),S=t.ref(!1);function W(l,n,o){A.value=l;const d=i((c,a)=>{if(e.switchApi){S.value=!0;let s=l;e!=null&&e.dealSwitchParams&&(s=e.dealSwitchParams(o)),e.switchApi(s).then(()=>{T(!1),c(!0),u("switchSuccess",o,n)}).catch(()=>{a(new Error("Error"))}).finally(()=>{S.value=!1})}else a(new Error("Error"))},"onSwitch");return new Promise((c,a)=>{n?r.ElMessageBox.confirm(`<strong class="text-14px">${e.tableSwitchPopTxt||"请问是否关闭?"}</strong>`,{confirmButtonText:"确定",cancelButtonText:"取消",dangerouslyUseHTMLString:!0,customStyle:{width:"240px"},...e.tableSwitchPopAttrs}).then(()=>{d(c,a)}).catch(()=>{a(new Error("Error"))}):d(c,a)})}i(W,"switchBeforeChange");function G(l){let n=!1;return e!=null&&e.disabledTableSwitch&&(typeof e.disabledTableSwitch=="boolean"?n=e.disabledTableSwitch:typeof e.disabledTableSwitch=="function"&&(n=e.disabledTableSwitch(l))),!!n}i(G,"disabledTableSwitch");function J(l){if(e!=null&&e.tableDetailText){if(typeof e.tableDetailText=="string")return e.tableDetailText;if(typeof e.tableDetailText=="function")return e.tableDetailText(l)}return"查看"}i(J,"getTableDetailText");function Q(l){let n=!1;return e!=null&&e.showTableDetail&&(typeof e.showTableDetail=="boolean"?n=e.showTableDetail:typeof e.showTableDetail=="function"&&(n=e.showTableDetail(l))),!!n}i(Q,"showTableDetail");function X(l){let n=!1;return e!=null&&e.disabledTableDetail&&(typeof e.disabledTableDetail=="boolean"?n=e.disabledTableDetail:typeof e.disabledTableDetail=="function"&&(n=e.disabledTableDetail(l))),!!n}i(X,"disabledTableDetail");function Y(l){if(e!=null&&e.tableEditText){if(typeof e.tableEditText=="string")return e.tableEditText;if(typeof e.tableEditText=="function")return e.tableEditText(l)}return"编辑"}i(Y,"getTableEditText");function Z(l){let n=!1;return e!=null&&e.showTableEdit&&(typeof e.showTableEdit=="boolean"?n=e.showTableEdit:typeof e.showTableEdit=="function"&&(n=e.showTableEdit(l))),!!n}i(Z,"showTableEdit");function _(l){let n=!1;return e!=null&&e.disabledTableEdit&&(typeof e.disabledTableEdit=="boolean"?n=e.disabledTableEdit:typeof e.disabledTableEdit=="function"&&(n=e.disabledTableEdit(l))),!!n}i(_,"disabledTableEdit");function k(l){if(e!=null&&e.tableDelText){if(typeof e.tableDelText=="string")return e.tableDelText;if(typeof e.tableDelText=="function")return e.tableDelText(l)}return"删除"}i(k,"getTableDelText");function ee(l){if(e!=null&&e.delMessage){if(typeof e.delMessage=="string")return e.delMessage;if(typeof e.delMessage=="function")return e.delMessage(l)}return""}i(ee,"getTableDelMessage");function te(l){let n=!1;return e!=null&&e.showTableDel&&(typeof e.showTableDel=="boolean"?n=e.showTableDel:typeof e.showTableDel=="function"&&(n=e.showTableDel(l))),!!n}i(te,"showTableDel");function le(l){let n=!1;return e!=null&&e.disabledTableDel&&(typeof e.disabledTableDel=="boolean"?n=e.disabledTableDel:typeof e.disabledTableDel=="function"&&(n=e.disabledTableDel(l))),!!n}i(le,"disabledTableDel");function ae(l){if(e!=null&&e.popconfirmTxt){if(typeof e.popconfirmTxt=="string")return e.popconfirmTxt;if(typeof e.popconfirmTxt=="function")return e.popconfirmTxt(l)}return`是否${k(l)}当前行数据?`}i(ae,"getPopconfirmTxt");function P(l,n){const o=e[l];if(o){if(typeof o=="string")return o;if(typeof o=="function")return o(n)}return""}i(P,"getTableBtnType");const ne=t.h(r.ElDivider,{direction:"vertical"}),ie=t.computed(()=>e.showSkeleton?!F.value:!0);return y({loadData:T,handleReset:q,setCurrentPage:V,setPageSize:M,isFirst:F,loading:b,routePath:g,currentPage:h,pageSize:m,total:x,FormRef:v,TableRef:B}),(l,n)=>{const o=ce.ElTableColumn,d=be.ElPopconfirm,c=me.ElSkeleton;return t.unref(ie)?(t.openBlock(),t.createElementBlock("div",he,[l.showForm?(t.openBlock(),t.createBlock(de.default,t.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:t.unref(b),"confirm-text":"查询"},l.formAttrs,{onSubmit:O,onReset:K}),t.createSlots({default:t.withCtx(a=>[t.renderSlot(l.$slots,"form-append",t.normalizeProps(t.guardReactiveProps(a)),void 0,!0)]),_:2},[t.renderList(t.unref(z),a=>({name:R(a,!0),fn:t.withCtx(s=>[t.renderSlot(l.$slots,a,t.normalizeProps(t.guardReactiveProps(s)),void 0,!0)])}))]),1040,["class","form-data","form-items","loading"])):t.createCommentVNode("",!0),l.showOperate?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.$slots.operate?t.renderSlot(l.$slots,"operate",{key:0},void 0,!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.showOperateDivider?(t.openBlock(),t.createBlock(t.unref(r.ElDivider),{key:0,"border-style":"dashed"})):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["mt-24px flex items-center justify-start",l.operateClass])},[t.renderSlot(l.$slots,"operate-prepend",{},void 0,!0),l.showAdd?(t.openBlock(),t.createBlock(t.unref(r.ElButton),t.mergeProps({key:0,type:"primary",disabled:t.unref(b)||l.disabledAddBtn},l.addBtnAttrs,{onClick:H}),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(l.addBtnText),1)]),_:1},16,["disabled"])):t.createCommentVNode("",!0),t.renderSlot(l.$slots,"operate-append",{},void 0,!0)],2)],64))],64)):t.createCommentVNode("",!0),t.createVNode(ue.default,t.mergeProps({ref_key:"TableRef",ref:B,class:["ls-table-cpo",[l.showOperate?"mt-16px":"mt-24px"]],"show-overflow-tooltip":!0,loading:t.unref(b),total:t.unref(x),"table-data":t.unref($),"table-column":l.tableColumn,"current-page":t.unref(h),"onUpdate:currentPage":n[0]||(n[0]=a=>t.isRef(h)?h.value=a:null),"page-size":t.unref(m),"onUpdate:pageSize":n[1]||(n[1]=a=>t.isRef(m)?m.value=a:null)},l.tableAttrs,t.toHandlers(l.tableListeners||{})),t.createSlots({default:t.withCtx(()=>[l.showTableSwitch?(t.openBlock(),t.createBlock(o,t.mergeProps({key:0,prop:l.switchProp,label:"是否开启",width:"100"},l.tableSwitchColumn),{default:t.withCtx(({row:a})=>[t.createVNode(t.unref(r.ElSwitch),t.mergeProps({class:"ls-list-table__switch","model-value":a[l.switchProp]?1:0,"active-value":1,"inactive-value":0,loading:t.unref(S)&&a[l.tableRowKey]===t.unref(A),"before-change":i(()=>W(a[l.tableRowKey],a[l.switchProp],a),"before-change"),disabled:G(a)},l.tableSwitchAttrs),null,16,["model-value","loading","before-change","disabled"])]),_:1},16,["prop"])):t.createCommentVNode("",!0),l.showTableOperate?(t.openBlock(),t.createBlock(o,t.mergeProps({key:1,fixed:"right",prop:"operate",label:"操作","show-overflow-tooltip":!1},l.tableOperateColumn),{default:t.withCtx(({row:a})=>[t.createElementVNode("div",Te,[t.createVNode(t.unref(r.ElSpace),{size:0,spacer:t.unref(ne)},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"table-operate-prepend",{row:a},void 0,!0),Q(a)?(t.openBlock(),t.createBlock(t.unref(r.ElButton),t.mergeProps({key:0,disabled:X(a),link:"",type:P("tableDetailType",a)||"primary",onClick:i(s=>I(a[l.tableRowKey],a),"onClick")},l.tableDetailBtnAttrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.tableDetailText||J(a)),1)]),_:2},1040,["disabled","type","onClick"])):t.createCommentVNode("",!0),Z(a)?(t.openBlock(),t.createBlock(t.unref(r.ElButton),t.mergeProps({key:1,disabled:_(a),link:"",type:P("tableEditType",a)||"primary",onClick:i(s=>U(a[l.tableRowKey],a),"onClick")},l.tableEditBtnAttrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.tableEditText||Y(a)),1)]),_:2},1040,["disabled","type","onClick"])):t.createCommentVNode("",!0),te(a)?(t.openBlock(),t.createBlock(d,t.mergeProps({key:2,"hide-icon":"",placement:"top",width:"180","confirm-button-text":"确认","cancel-button-text":"取消",title:a.popconfirmTxt||ae(a),onConfirm:i(s=>j(a[l.tableRowKey],a),"onConfirm")},l.tableDelPopAttrs),{reference:t.withCtx(()=>[t.createVNode(t.unref(r.ElButton),t.mergeProps({link:"",type:P("tableDelType",a)||"danger",disabled:t.unref(f)||le(a),loading:t.unref(f)&&t.unref(w)===a[l.tableRowKey]},l.tableDelBtnAttrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(f)&&t.unref(w)===a[l.tableRowKey]?"":a.tableDelText||k(a)),1)]),_:2},1040,["type","disabled","loading"])]),_:2},1040,["title","onConfirm"])):t.createCommentVNode("",!0),t.renderSlot(l.$slots,"table-operate-append",{row:a},void 0,!0)]),_:2},1032,["spacer"])])]),_:3},16)):t.createCommentVNode("",!0),t.renderSlot(l.$slots,"table-append",{tableData:t.unref($)},void 0,!0)]),_:2},[t.renderList(t.unref(L),a=>({name:R(a,!1),fn:t.withCtx(s=>[t.renderSlot(l.$slots,a,t.normalizeProps(t.guardReactiveProps(s)),void 0,!0)])}))]),1040,["class","loading","total","table-data","table-column","current-page","page-size"])])):(t.openBlock(),t.createBlock(c,t.mergeProps({key:1,rows:5,animated:""},l.skeletonAttrs),null,16))}}});exports.default=pe;