ss-component-new 1.1.201 → 1.1.202
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/{array-Crj-rCrk.js → array-9iTLyKqW.js} +9 -9
- package/dist/{array-CNjg4YJo.cjs → array-ClMdQeYx.cjs} +1 -1
- package/dist/{cloneDeep-BPIVs2SM.js → cloneDeep-BpAefU3Z.js} +1 -1
- package/dist/{cloneDeep-BcOXEEv2.cjs → cloneDeep-DeLNPZ1z.cjs} +1 -1
- package/dist/formToTable-BLqqpL4L.cjs +1 -0
- package/dist/formToTable-CChcFM-W.js +45 -0
- package/dist/{index-BBCH4IyC.cjs → index-3zaWs-C9.cjs} +1 -1
- package/dist/{index-BOTZInFG.cjs → index-6_z_TpR8.cjs} +1 -1
- package/dist/{index-D70fMB8u.js → index-A4Gyh5sH.js} +6 -6
- package/dist/{index-DddiqSGo.js → index-BBV1mEId.js} +7 -7
- package/dist/{index-BZUY-U4m.js → index-BSAMd4oh.js} +1 -1
- package/dist/{index-DYts1noR.js → index-BSiZJ30i.js} +4 -4
- package/dist/{index-DXr4Ih8j.cjs → index-Ba__zDMu.cjs} +1 -1
- package/dist/{index-GGTKRYr6.js → index-BglXiJwe.js} +6 -6
- package/dist/{index-nFaKW4fl.cjs → index-BqKN_L_0.cjs} +1 -1
- package/dist/{index-D-LxJAlM.cjs → index-Bs70suRc.cjs} +1 -1
- package/dist/{index-nfybdVvt.cjs → index-BvtFHn35.cjs} +1 -1
- package/dist/{index-D3jlqe7L.js → index-C8pfHj5l.js} +1 -1
- package/dist/{index-Bt3-0vjE.js → index-CBkOurue.js} +1 -1
- package/dist/{index--9VS1Po1.js → index-CIdEK9-v.js} +1515 -1508
- package/dist/{index-w8IaNUsW.js → index-CJ39obRd.js} +1 -1
- package/dist/{index--0PI2HbW.js → index-COMTWuI3.js} +7 -7
- package/dist/{index-B1wEvEPC.cjs → index-Cj3HM8mA.cjs} +1 -1
- package/dist/{index-DMI4zAvb.js → index-CjjZY9qz.js} +6 -6
- package/dist/{index-L3YisjLJ.cjs → index-Cjud2oRL.cjs} +1 -1
- package/dist/{index-BMXvVDV3.js → index-D43h1EYw.js} +7 -7
- package/dist/{index-C_eLSZa0.js → index-D64rezhw.js} +7 -7
- package/dist/{index-DUMxUtvv.cjs → index-DD_Gsy7A.cjs} +1 -1
- package/dist/{index-DAB4vKek.js → index-DJiVw5P1.js} +5 -5
- package/dist/{index-DUswh-3c.cjs → index-DMRVk4AE.cjs} +1 -1
- package/dist/{index-B082suc7.cjs → index-DRKegsBw.cjs} +1 -1
- package/dist/{index-BrnySweC.cjs → index-DdZ0naEt.cjs} +1 -1
- package/dist/{index-CY1uUb5a.js → index-Dk49iyK6.js} +4 -4
- package/dist/{index-BEGev1aZ.cjs → index-DlZOl37e.cjs} +1 -1
- package/dist/{index-BEa5aIb3.js → index-DmMWwak4.js} +12 -12
- package/dist/{index-C-vCkHdl.js → index-FQrVIR-1.js} +1 -1
- package/dist/{index-0ORf165A.js → index-HGJD7g_o.js} +6 -6
- package/dist/{index-CJJyblUM.cjs → index-NpT4yQh4.cjs} +1 -1
- package/dist/{index-D8RcZCU0.cjs → index-Rx59tO17.cjs} +1 -1
- package/dist/{index-B7glwz_2.cjs → index-TeTSy6Hs.cjs} +1 -1
- package/dist/{index-J2yc1eCm.cjs → index-YSqkKpWi.cjs} +1 -1
- package/dist/{index-CymW4wNe.js → index-ZNsQvsD_.js} +1 -1
- package/dist/{index-XvO03bMs.js → index-eq_KaB32.js} +7 -7
- package/dist/{index-BjgI5G4X.cjs → index-rns7CnXq.cjs} +1 -1
- package/dist/{index-DzWECzT9.cjs → index-xCiXSc9M.cjs} +27 -27
- package/dist/{index-pTz7wRhC.cjs → index-y4woWWFQ.cjs} +1 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-B8g6RfK4.js +207 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-z-fPHl36.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_baf99455_lang--aIYMMju.js → index.vue_vue_type_style_index_0_scoped_baf99455_lang-Cng3k7Fr.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_baf99455_lang-6lm3bAnN.cjs → index.vue_vue_type_style_index_0_scoped_baf99455_lang-R89L6UV1.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CpMCkcRG.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CtYBwxZ5.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-d4iaRhVo.cjs → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-D6JwRZHf.cjs} +1 -1
- package/dist/{login-h9Co14f5.js → login-D5t7lIjE.js} +3 -3
- package/dist/{login-BnYzFDmd.cjs → login-jt0_zdYC.cjs} +1 -1
- package/dist/{main-4TykuUli.js → main-CU5pA7Zd.js} +6 -6
- package/dist/{main-ZgUibS4P.cjs → main-nUPghNZO.cjs} +1 -1
- package/dist/{menu-BE_REnWn.cjs → menu-BRb07J6O.cjs} +1 -1
- package/dist/{menu-DZ9h2YlJ.js → menu-BjDw_fze.js} +1 -1
- package/dist/{modelComp-Ca9juGZr.js → modelComp-CkCESUaO.js} +1 -1
- package/dist/{modelComp-CpQyB22b.cjs → modelComp-DrEno2p9.cjs} +1 -1
- package/dist/{request-D70ZQl-W.cjs → request-B1V5TBi0.cjs} +1 -1
- package/dist/{request-Bfh57hRu.js → request-C4gz7McS.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +7 -7
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +1 -1
- package/package.json +1 -1
- package/dist/formToTable-ByBLiwoc.cjs +0 -1
- package/dist/formToTable-uu5dtAiJ.js +0 -18
- package/dist/index.vue_vue_type_script_setup_true_lang-BivVclss.js +0 -232
- package/dist/index.vue_vue_type_script_setup_true_lang-Smvw4sUj.cjs +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as H, resolveComponent as X, createBlock as L, openBlock as _, withCtx as Y, createElementBlock as B, Fragment as st, renderList as ot, createTextVNode as he, toDisplayString as bt, watch as It, renderSlot as ct, createCommentVNode as J, resolveDynamicComponent as ae, createSlots as jt, mergeProps as He, onMounted as Ce, normalizeProps as Mn, guardReactiveProps as In, defineComponent as ze, nextTick as Ae, createVNode as xt, normalizeStyle as pt, createElementVNode as Et, unref as Ze, h as Qe, normalizeClass as On } from "vue";
|
|
2
2
|
import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { c as Te } from "./cloneDeep-
|
|
4
|
-
import { E as pn } from "./menu-
|
|
5
|
-
import Rn from "./index-
|
|
6
|
-
import Nn from "./index-
|
|
7
|
-
import { a3 as tn } from "./index
|
|
3
|
+
import { c as Te } from "./cloneDeep-BpAefU3Z.js";
|
|
4
|
+
import { E as pn } from "./menu-BjDw_fze.js";
|
|
5
|
+
import Rn from "./index-FQrVIR-1.js";
|
|
6
|
+
import Nn from "./index-ZNsQvsD_.js";
|
|
7
|
+
import { a3 as tn } from "./index-COMTWuI3.js";
|
|
8
8
|
function Bn(o) {
|
|
9
9
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("vue"),h=require("./menu-
|
|
1
|
+
"use strict";const o=require("vue"),h=require("./menu-BRb07J6O.cjs"),p=require("./index-Cj3HM8mA.cjs"),R=require("./login-jt0_zdYC.cjs"),D=require("./cloneDeep-DeLNPZ1z.cjs"),M=h.useMenuState(),{activeMenuPath:b}=h.storeToRefs(M),T=R.useLoginState(),{structureData:F}=h.storeToRefs(T),P=o.ref([{label:"角色名称",value:"",name:"roleName"}]),q=o.ref([{label:"查询"},{label:"重置"}]),S=o.reactive({isFilter:!1,filterForm:{}}),z=o.ref(!1),O=a=>{console.log("handleQueryChange",a),S.isFilter=!0,S.filterForm=a},v=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"授权",textColor:"blue"},{label:"编辑"},{label:"删除",textColor:"red"}]},{key:"tableIndex",contents:[]},{key:"header",contents:[{label:"角色名称",prop:"roleName"},{label:"角色状态",formType:"Radio",prop:"roleStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"角色排序",prop:"roleOrder",formType:"Number"},{label:"备注",prop:"remark",formType:"TextArea"},{label:"权限",prop:"roleAuthority",isTableColHidden:!0,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents"}]),_=o.computed(()=>v.value),j=a=>{console.log("handleItemDataChange",a),C(a.singleContent,a.buttonName)},k=o.ref({}),B=o.ref(),f=async(a,e,l)=>{var t,n;try{const s=await a(e);return((t=s==null?void 0:s.data)==null?void 0:t.code)===200?(l!=="查询"&&await T.setLogRecordAsync({type:l,data:e},b.value),s.data.result||((n=s==null?void 0:s.data)==null?void 0:n.code)===200):null}catch(s){h.ElMessage.error(s)}},I=(a,e)=>{e==null||e.forEach(l=>{a==null||a.forEach(t=>{var n;t.path==l.path&&(t.checkedButtons=l.checkedButtons),t.children&&((n=t.children)==null?void 0:n.length)>0&&I(t.children,e)})})},K=a=>a==null?void 0:a.map(e=>{var t;const l={...e,checkedButtons:[]};return l.children&&((t=l.children)==null?void 0:t.length)>0&&(l.children=K(l.children)),l}),m=async(a,e)=>{switch(console.log("clickRowButton",a,e,c.value),k.value=D.cloneDeep(e),a){case"授权":console.log("角色的权限",e.roleAuthority),console.log("角色的tree",c.value),console.log("角色的pageData",v.value),i.title=`【${e.roleName}】授权`,i.show=!0,await o.nextTick(),e.roleAuthority&&Array.isArray(e.roleAuthority)&&I(c.value,e.roleAuthority);break}},H=()=>{i.show=!1},d=o.ref(),L=async a=>{const e=await f(p.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:a}},"查询"),l=e==null?void 0:e.map(t=>{var n;return{id:t.id,rowData:(n=t==null?void 0:t.value)==null?void 0:n.rowData}});return l==null?void 0:l.map(t=>{var n;if(Array.isArray(t==null?void 0:t.rowData)){let s={id:t.id};return(n=t==null?void 0:t.rowData)==null||n.forEach((r,y)=>{s[`a${y}`]=r}),s}else return{...t.rowData,id:t.id}})},C=(a,e)=>{if(e==="新增"){const l=D.cloneDeep(a);delete l.id,f(p.createInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:b.value},value:{rowData:l}},e).then(t=>{d.value={...a,newId:t},e&&t&&h.ElMessage.success(e+"成功")})}else e==="编辑"?f(p.updateInsofDataApi,{id:a.id,key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:b.value},value:{rowData:a}},e).then(l=>{e&&l&&h.ElMessage.success(e+"成功"),i.show=!1}):e==="删除"&&(console.log(222,a),f(p.deleteInsofDataApi,{id:a.id},e).then(l=>{e&&l&&h.ElMessage.success(e+"成功")}))},w=a=>{let e=[];return a==null||a.forEach(l=>{var t;if(l.checkedButtons&&((t=l.checkedButtons)==null?void 0:t.length)>0){const n={path:l.path,checkedButtons:l.checkedButtons};e=e.concat(n)}l.children&&(e=e.concat(w(l.children)))}),e},Q=()=>{console.log(122,k.value,w(c.value)),d.value={...k.value,roleAuthority:w(c.value)},o.nextTick(()=>{console.log("clickSubmitAuthority",d.value,v.value),C(d.value,"编辑")})},i=o.reactive({show:!1,title:"角色授权",width:"35%",draggable:!0}),U=({isPenultimate:a},e)=>{var l,t;return console.log("isPenultimate",a,e),((t=(l=e==null?void 0:e.data)==null?void 0:l.renderButtons)==null?void 0:t.length)>0?"is-penultimate":""},c=o.ref([]),V=o.ref([{path:"资源管理",buttons:["查询","新增","编辑","删除"]},{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]),$=(a,e)=>{var l;a.checkedButtons=e?(l=a.renderButtons)==null?void 0:l.map(t=>t.path):[],console.log("handleNodeCheckChange",a,e)},g=o.ref([]),J=(a,e)=>{var l,t,n;e.checkedButtons=a,((l=e.checkedButtons)==null?void 0:l.length)===((t=e.renderButtons)==null?void 0:t.length)?g.value.push(e.path):(a==null?void 0:a.length)===0&&(g.value=(n=g.value)==null?void 0:n.filter(s=>s!==e.path)),console.log("角色的按钮点击",e,a)};o.watch(()=>g.value.length,()=>{var e,l;const a=(e=B.value)==null?void 0:e.getCheckedKeys();console.log(112,g.value,a),(l=B.value)==null||l.setCheckedKeys([...g.value])});o.watch(()=>i.show,a=>{a||(c.value=K(c.value),console.log("角色的resetCheckedButtonsInTree",c.value))});const x=o.computed(()=>{var l;const a=(l=D.cloneDeep(F.value))==null?void 0:l.filter(t=>{var n,s;return((s=(n=t==null?void 0:t.key)==null?void 0:n.pageKey)==null?void 0:s.toUpperCase())!=="MENU"});return a==null?void 0:a.map(t=>{var s,r,y,A;let n=(y=(r=(s=t==null?void 0:t.value)==null?void 0:s.pageData)==null?void 0:r.compData)==null?void 0:y.filter(u=>(u==null?void 0:u.key)==="extraButton"||(u==null?void 0:u.key)==="rowButton");return n=Array.from(new Set(n==null?void 0:n.flatMap(u=>u.contents.map(N=>N.label)))),{path:(A=t==null?void 0:t.key)==null?void 0:A.pageKey,buttons:n}})}),E=(a,e)=>{if(Array.isArray(a))return a==null?void 0:a.map(l=>{var n,s;const t=e==null?void 0:e.find(r=>(r==null?void 0:r.path)===(l==null?void 0:l.path));return l.children&&l.children.length>0?{...l,renderButtons:l.carryData?(n=t==null?void 0:t.buttons)==null?void 0:n.map(r=>({title:r,path:l.path+"/"+r})):[],checkedButtons:[],children:E(l.children,x.value)}:{...l,renderButtons:l.carryData?(s=t==null?void 0:t.buttons)==null?void 0:s.map(r=>({title:r,path:l.path+"/"+r})):[],checkedButtons:[]}})},W=Object.freeze(Object.defineProperty({__proto__:null,addButtonsToTree:E,authorizeDialog:i,buttonValue:q,changedRow:d,clickRow:k,clickRowButton:m,clickSubmitAuthority:Q,closeAuthorizeDialog:H,customNodeClass:U,getPageDataAsync:L,handleItemDataChange:j,handleNodeBtnChange:J,handleNodeCheckChange:$,handleQueryChange:O,handleSubmitAsync:f,isPageDataExist:z,menuData:c,menusButtons:V,pageData:v,pageDataFiltered:_,queryFormData:P,structureButtons:x,submitTableAsyncByVerify:C,treeRef:B},Symbol.toStringTag,{value:"Module"}));exports.State=W;exports.authorizeDialog=i;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const a=require("vue"),xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ut=require("./cloneDeep-BcOXEEv2.cjs"),Ht=require("./menu-BE_REnWn.cjs"),hn=require("./index-DXr4Ih8j.cjs"),fn=require("./index-pTz7wRhC.cjs"),At=require("./index-DUMxUtvv.cjs");function pn(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Je={exports:{}},mn=Je.exports,Pt;function gn(){return Pt||(Pt=1,function(o,e){(function(t,n){o.exports=n()})(mn,function(){var t=1e3,n=6e4,r=36e5,i="millisecond",s="second",l="minute",u="hour",c="day",d="week",h="month",w="quarter",m="year",f="date",y="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var b=["th","st","nd","rd"],g=x%100;return"["+x+(b[(g-20)%10]||b[g]||b[0])+"]"}},k=function(x,b,g){var C=String(x);return!C||C.length>=b?x:""+Array(b+1-C.length).join(g)+x},V={s:k,z:function(x){var b=-x.utcOffset(),g=Math.abs(b),C=Math.floor(g/60),_=g%60;return(b<=0?"+":"-")+k(C,2,"0")+":"+k(_,2,"0")},m:function x(b,g){if(b.date()<g.date())return-x(g,b);var C=12*(g.year()-b.year())+(g.month()-b.month()),_=b.clone().add(C,h),M=g-_<0,I=b.clone().add(C+(M?-1:1),h);return+(-(C+(g-_)/(M?_-I:I-_))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:h,y:m,w:d,d:c,D:f,h:u,m:l,s,ms:i,Q:w}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},W="en",E={};E[W]=p;var j="$isDayjsObject",S=function(x){return x instanceof ee||!(!x||!x[j])},B=function x(b,g,C){var _;if(!b)return W;if(typeof b=="string"){var M=b.toLowerCase();E[M]&&(_=M),g&&(E[M]=g,_=M);var I=b.split("-");if(!_&&I.length>1)return x(I[0])}else{var L=b.name;E[L]=b,_=L}return!C&&_&&(W=_),_||!C&&W},O=function(x,b){if(S(x))return x.clone();var g=typeof b=="object"?b:{};return g.date=x,g.args=arguments,new ee(g)},P=V;P.l=B,P.i=S,P.w=function(x,b){return O(x,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var ee=function(){function x(g){this.$L=B(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[j]=!0}var b=x.prototype;return b.parse=function(g){this.$d=function(C){var _=C.date,M=C.utc;if(_===null)return new Date(NaN);if(P.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var I=_.match(D);if(I){var L=I[2]-1||0,U=(I[7]||"0").substring(0,3);return M?new Date(Date.UTC(I[1],L,I[3]||1,I[4]||0,I[5]||0,I[6]||0,U)):new Date(I[1],L,I[3]||1,I[4]||0,I[5]||0,I[6]||0,U)}}return new Date(_)}(g),this.init()},b.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},b.$utils=function(){return P},b.isValid=function(){return this.$d.toString()!==y},b.isSame=function(g,C){var _=O(g);return this.startOf(C)<=_&&_<=this.endOf(C)},b.isAfter=function(g,C){return O(g)<this.startOf(C)},b.isBefore=function(g,C){return this.endOf(C)<O(g)},b.$g=function(g,C,_){return P.u(g)?this[C]:this.set(_,g)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(g,C){var _=this,M=!!P.u(C)||C,I=P.p(g),L=function(we,ne){var ge=P.w(_.$u?Date.UTC(_.$y,ne,we):new Date(_.$y,ne,we),_);return M?ge:ge.endOf(c)},U=function(we,ne){return P.w(_.toDate()[we].apply(_.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(ne)),_)},J=this.$W,Z=this.$M,le=this.$D,Ce="set"+(this.$u?"UTC":"");switch(I){case m:return M?L(1,0):L(31,11);case h:return M?L(1,Z):L(0,Z+1);case d:var _e=this.$locale().weekStart||0,Me=(J<_e?J+7:J)-_e;return L(M?le-Me:le+(6-Me),Z);case c:case f:return U(Ce+"Hours",0);case u:return U(Ce+"Minutes",1);case l:return U(Ce+"Seconds",2);case s:return U(Ce+"Milliseconds",3);default:return this.clone()}},b.endOf=function(g){return this.startOf(g,!1)},b.$set=function(g,C){var _,M=P.p(g),I="set"+(this.$u?"UTC":""),L=(_={},_[c]=I+"Date",_[f]=I+"Date",_[h]=I+"Month",_[m]=I+"FullYear",_[u]=I+"Hours",_[l]=I+"Minutes",_[s]=I+"Seconds",_[i]=I+"Milliseconds",_)[M],U=M===c?this.$D+(C-this.$W):C;if(M===h||M===m){var J=this.clone().set(f,1);J.$d[L](U),J.init(),this.$d=J.set(f,Math.min(this.$D,J.daysInMonth())).$d}else L&&this.$d[L](U);return this.init(),this},b.set=function(g,C){return this.clone().$set(g,C)},b.get=function(g){return this[P.p(g)]()},b.add=function(g,C){var _,M=this;g=Number(g);var I=P.p(C),L=function(Z){var le=O(M);return P.w(le.date(le.date()+Math.round(Z*g)),M)};if(I===h)return this.set(h,this.$M+g);if(I===m)return this.set(m,this.$y+g);if(I===c)return L(1);if(I===d)return L(7);var U=(_={},_[l]=n,_[u]=r,_[s]=t,_)[I]||1,J=this.$d.getTime()+g*U;return P.w(J,this)},b.subtract=function(g,C){return this.add(-1*g,C)},b.format=function(g){var C=this,_=this.$locale();if(!this.isValid())return _.invalidDate||y;var M=g||"YYYY-MM-DDTHH:mm:ssZ",I=P.z(this),L=this.$H,U=this.$m,J=this.$M,Z=_.weekdays,le=_.months,Ce=_.meridiem,_e=function(ne,ge,Ie,He){return ne&&(ne[ge]||ne(C,M))||Ie[ge].slice(0,He)},Me=function(ne){return P.s(L%12||12,ne,"0")},we=Ce||function(ne,ge,Ie){var He=ne<12?"AM":"PM";return Ie?He.toLowerCase():He};return M.replace(A,function(ne,ge){return ge||function(Ie){switch(Ie){case"YY":return String(C.$y).slice(-2);case"YYYY":return P.s(C.$y,4,"0");case"M":return J+1;case"MM":return P.s(J+1,2,"0");case"MMM":return _e(_.monthsShort,J,le,3);case"MMMM":return _e(le,J);case"D":return C.$D;case"DD":return P.s(C.$D,2,"0");case"d":return String(C.$W);case"dd":return _e(_.weekdaysMin,C.$W,Z,2);case"ddd":return _e(_.weekdaysShort,C.$W,Z,3);case"dddd":return Z[C.$W];case"H":return String(L);case"HH":return P.s(L,2,"0");case"h":return Me(1);case"hh":return Me(2);case"a":return we(L,U,!0);case"A":return we(L,U,!1);case"m":return String(U);case"mm":return P.s(U,2,"0");case"s":return String(C.$s);case"ss":return P.s(C.$s,2,"0");case"SSS":return P.s(C.$ms,3,"0");case"Z":return I}return null}(ne)||I.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(g,C,_){var M,I=this,L=P.p(C),U=O(g),J=(U.utcOffset()-this.utcOffset())*n,Z=this-U,le=function(){return P.m(I,U)};switch(L){case m:M=le()/12;break;case h:M=le();break;case w:M=le()/3;break;case d:M=(Z-J)/6048e5;break;case c:M=(Z-J)/864e5;break;case u:M=Z/r;break;case l:M=Z/n;break;case s:M=Z/t;break;default:M=Z}return _?M:P.a(M)},b.daysInMonth=function(){return this.endOf(h).$D},b.$locale=function(){return E[this.$L]},b.locale=function(g,C){if(!g)return this.$L;var _=this.clone(),M=B(g,C,!0);return M&&(_.$L=M),_},b.clone=function(){return P.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},x}(),q=ee.prototype;return O.prototype=q,[["$ms",i],["$s",s],["$m",l],["$H",u],["$W",c],["$M",h],["$y",m],["$D",f]].forEach(function(x){q[x[1]]=function(b){return this.$g(b,x[0],x[1])}}),O.extend=function(x,b){return x.$i||(x(b,ee,O),x.$i=!0),O},O.locale=B,O.isDayjs=S,O.unix=function(x){return O(1e3*x)},O.en=E[W],O.Ls=E,O.p={},O})}(Je)),Je.exports}var vn=gn();const jt=pn(vn),yn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-switch");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),"active-color":"#13ce66","inactive-color":"#ff4949"},null,8,["modelValue"])}}},bn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-input");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),disabled:!(e!=null&&e.isEdit)},null,8,["modelValue","disabled"])}}},_n={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-input");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),disabled:!(e!=null&&e.isEdit),type:"password","show-password":"",clearable:""},null,8,["modelValue","disabled"])}}},wn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-color-picker");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),"show-alpha":""},null,8,["modelValue"])}}},En={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-input");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),style:{height:"100%"},type:"number"},null,8,["modelValue"])}}},Sn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o;return(t,n)=>{var r,i,s,l,u,c;return a.openBlock(),a.createBlock(dn,{rowContents:((r=e==null?void 0:e.content)==null?void 0:r.rowContents)??[],buttonValue:((i=e==null?void 0:e.content)==null?void 0:i.buttonValue)??[],isEnableWrap:(s=e==null?void 0:e.content)==null?void 0:s.isEnableWrap,isRowFlex:(l=e==null?void 0:e.content)==null?void 0:l.isRowFlex,isButtonRow:(u=e==null?void 0:e.content)==null?void 0:u.isButtonRow,rowValues:((c=e==null?void 0:e.content)==null?void 0:c.rowValues)??[]},null,8,["rowContents","buttonValue","isEnableWrap","isRowFlex","isButtonRow","rowValues"])}}},Dn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-radio"),s=a.resolveComponent("el-radio-group");return a.openBlock(),a.createBlock(s,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=l=>t.value=l),style:{height:"100%"}},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.content,(l,u)=>(a.openBlock(),a.createBlock(i,{key:u,label:l.label},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l==null?void 0:l.value),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}},xn=["onDblclick"],Cn={key:1,class:"tabs-label"},kn={__name:"index",props:{tabsContents:{type:Array,default:()=>[]}},emits:["dblClick","dbChange"],setup(o,{emit:e}){var c;const t=o,n=e,r=a.ref([]),i=a.ref((c=t==null?void 0:t.tabsContents[0])==null?void 0:c.value),s=d=>$t(d),l=d=>{n("dblClick",d)},u=d=>{n("dbChange",d)};return a.watch(()=>t.tabsContents,()=>{r.value=ut.cloneDeep(t.tabsContents)},{deep:!0,immediate:!0}),(d,h)=>{const w=a.resolveComponent("el-tab-pane"),m=a.resolveComponent("el-tabs");return a.openBlock(),a.createBlock(m,{type:"card",modelValue:i.value,"onUpdate:modelValue":h[0]||(h[0]=f=>i.value=f)},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(f,y)=>(a.openBlock(),a.createBlock(w,{key:y,name:f==null?void 0:f.value},{label:a.withCtx(()=>{var D;return[f!=null&&f.label?(a.openBlock(),a.createElementBlock("div",{key:0,onDblclick:A=>l(f)},a.toDisplayString(f==null?void 0:f.label),41,xn)):a.createCommentVNode("",!0),f!=null&&f.contents&&((D=f==null?void 0:f.contents)==null?void 0:D.length)>0?(a.openBlock(),a.createElementBlock("div",Cn,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f==null?void 0:f.contents,(A,p)=>(a.openBlock(),a.createElementBlock("div",{key:p,class:"tabs-children"},[A!=null&&A.value||(A==null?void 0:A.value)===""?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(A==null?void 0:A.type)),{key:0,modelValue:A.value,"onUpdate:modelValue":k=>A.value=k,content:(A==null?void 0:A.contents)??[]},null,8,["modelValue","onUpdate:modelValue","content"])):a.createCommentVNode("",!0)]))),128))])):a.createCommentVNode("",!0),a.renderSlot(d.$slots,`${(f==null?void 0:f.value)??""}_header`,{},void 0,!0)]}),default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f==null?void 0:f.children,(D,A)=>(a.openBlock(),a.createElementBlock("div",{key:A,class:"tabs-contents"},[a.renderSlot(d.$slots,`${(D==null?void 0:D.value)??""}_operateButtons`,{},void 0,!0),D!=null&&D.value||(D==null?void 0:D.value)===""?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(D==null?void 0:D.type)),{key:0,modelValue:D.value,"onUpdate:modelValue":p=>D.value=p,onDbChange:u,content:D==null?void 0:D.content},a.createSlots({_:2},[a.renderList(d.$slots,(p,k)=>({name:k,fn:a.withCtx(V=>[a.renderSlot(d.$slots,k,a.mergeProps({ref_for:!0},V||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"])):a.createCommentVNode("",!0)]))),128))]),_:2},1032,["name"]))),128))]),_:3},8,["modelValue"])}}},Xt=xe._export_sfc(kn,[["__scopeId","data-v-c1c693d0"]]),Bn=Object.freeze(Object.defineProperty({__proto__:null,default:Xt},Symbol.toStringTag,{value:"Module"})),Tn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o;return a.onMounted(()=>{document.querySelectorAll(".el-tab-pane").forEach(n=>{n.style.display="block"})}),(t,n)=>{var r;return a.openBlock(),a.createBlock(Xt,{tabsContents:((r=e==null?void 0:e.content)==null?void 0:r.tabsContents)??[]},a.createSlots({_:2},[a.renderList(t.$slots,(i,s)=>({name:s,fn:a.withCtx(l=>[a.renderSlot(t.$slots,s,a.normalizeProps(a.guardReactiveProps(l||{})))])}))]),1032,["tabsContents"])}}};/**!
|
|
1
|
+
"use strict";const a=require("vue"),xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ut=require("./cloneDeep-DeLNPZ1z.cjs"),Ht=require("./menu-BRb07J6O.cjs"),hn=require("./index-Ba__zDMu.cjs"),fn=require("./index-y4woWWFQ.cjs"),At=require("./index-DD_Gsy7A.cjs");function pn(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Je={exports:{}},mn=Je.exports,Pt;function gn(){return Pt||(Pt=1,function(o,e){(function(t,n){o.exports=n()})(mn,function(){var t=1e3,n=6e4,r=36e5,i="millisecond",s="second",l="minute",u="hour",c="day",d="week",h="month",w="quarter",m="year",f="date",y="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var b=["th","st","nd","rd"],g=x%100;return"["+x+(b[(g-20)%10]||b[g]||b[0])+"]"}},k=function(x,b,g){var C=String(x);return!C||C.length>=b?x:""+Array(b+1-C.length).join(g)+x},V={s:k,z:function(x){var b=-x.utcOffset(),g=Math.abs(b),C=Math.floor(g/60),_=g%60;return(b<=0?"+":"-")+k(C,2,"0")+":"+k(_,2,"0")},m:function x(b,g){if(b.date()<g.date())return-x(g,b);var C=12*(g.year()-b.year())+(g.month()-b.month()),_=b.clone().add(C,h),M=g-_<0,I=b.clone().add(C+(M?-1:1),h);return+(-(C+(g-_)/(M?_-I:I-_))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:h,y:m,w:d,d:c,D:f,h:u,m:l,s,ms:i,Q:w}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},W="en",E={};E[W]=p;var j="$isDayjsObject",S=function(x){return x instanceof ee||!(!x||!x[j])},B=function x(b,g,C){var _;if(!b)return W;if(typeof b=="string"){var M=b.toLowerCase();E[M]&&(_=M),g&&(E[M]=g,_=M);var I=b.split("-");if(!_&&I.length>1)return x(I[0])}else{var L=b.name;E[L]=b,_=L}return!C&&_&&(W=_),_||!C&&W},O=function(x,b){if(S(x))return x.clone();var g=typeof b=="object"?b:{};return g.date=x,g.args=arguments,new ee(g)},P=V;P.l=B,P.i=S,P.w=function(x,b){return O(x,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var ee=function(){function x(g){this.$L=B(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[j]=!0}var b=x.prototype;return b.parse=function(g){this.$d=function(C){var _=C.date,M=C.utc;if(_===null)return new Date(NaN);if(P.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var I=_.match(D);if(I){var L=I[2]-1||0,U=(I[7]||"0").substring(0,3);return M?new Date(Date.UTC(I[1],L,I[3]||1,I[4]||0,I[5]||0,I[6]||0,U)):new Date(I[1],L,I[3]||1,I[4]||0,I[5]||0,I[6]||0,U)}}return new Date(_)}(g),this.init()},b.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},b.$utils=function(){return P},b.isValid=function(){return this.$d.toString()!==y},b.isSame=function(g,C){var _=O(g);return this.startOf(C)<=_&&_<=this.endOf(C)},b.isAfter=function(g,C){return O(g)<this.startOf(C)},b.isBefore=function(g,C){return this.endOf(C)<O(g)},b.$g=function(g,C,_){return P.u(g)?this[C]:this.set(_,g)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(g,C){var _=this,M=!!P.u(C)||C,I=P.p(g),L=function(we,ne){var ge=P.w(_.$u?Date.UTC(_.$y,ne,we):new Date(_.$y,ne,we),_);return M?ge:ge.endOf(c)},U=function(we,ne){return P.w(_.toDate()[we].apply(_.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(ne)),_)},J=this.$W,Z=this.$M,le=this.$D,Ce="set"+(this.$u?"UTC":"");switch(I){case m:return M?L(1,0):L(31,11);case h:return M?L(1,Z):L(0,Z+1);case d:var _e=this.$locale().weekStart||0,Me=(J<_e?J+7:J)-_e;return L(M?le-Me:le+(6-Me),Z);case c:case f:return U(Ce+"Hours",0);case u:return U(Ce+"Minutes",1);case l:return U(Ce+"Seconds",2);case s:return U(Ce+"Milliseconds",3);default:return this.clone()}},b.endOf=function(g){return this.startOf(g,!1)},b.$set=function(g,C){var _,M=P.p(g),I="set"+(this.$u?"UTC":""),L=(_={},_[c]=I+"Date",_[f]=I+"Date",_[h]=I+"Month",_[m]=I+"FullYear",_[u]=I+"Hours",_[l]=I+"Minutes",_[s]=I+"Seconds",_[i]=I+"Milliseconds",_)[M],U=M===c?this.$D+(C-this.$W):C;if(M===h||M===m){var J=this.clone().set(f,1);J.$d[L](U),J.init(),this.$d=J.set(f,Math.min(this.$D,J.daysInMonth())).$d}else L&&this.$d[L](U);return this.init(),this},b.set=function(g,C){return this.clone().$set(g,C)},b.get=function(g){return this[P.p(g)]()},b.add=function(g,C){var _,M=this;g=Number(g);var I=P.p(C),L=function(Z){var le=O(M);return P.w(le.date(le.date()+Math.round(Z*g)),M)};if(I===h)return this.set(h,this.$M+g);if(I===m)return this.set(m,this.$y+g);if(I===c)return L(1);if(I===d)return L(7);var U=(_={},_[l]=n,_[u]=r,_[s]=t,_)[I]||1,J=this.$d.getTime()+g*U;return P.w(J,this)},b.subtract=function(g,C){return this.add(-1*g,C)},b.format=function(g){var C=this,_=this.$locale();if(!this.isValid())return _.invalidDate||y;var M=g||"YYYY-MM-DDTHH:mm:ssZ",I=P.z(this),L=this.$H,U=this.$m,J=this.$M,Z=_.weekdays,le=_.months,Ce=_.meridiem,_e=function(ne,ge,Ie,He){return ne&&(ne[ge]||ne(C,M))||Ie[ge].slice(0,He)},Me=function(ne){return P.s(L%12||12,ne,"0")},we=Ce||function(ne,ge,Ie){var He=ne<12?"AM":"PM";return Ie?He.toLowerCase():He};return M.replace(A,function(ne,ge){return ge||function(Ie){switch(Ie){case"YY":return String(C.$y).slice(-2);case"YYYY":return P.s(C.$y,4,"0");case"M":return J+1;case"MM":return P.s(J+1,2,"0");case"MMM":return _e(_.monthsShort,J,le,3);case"MMMM":return _e(le,J);case"D":return C.$D;case"DD":return P.s(C.$D,2,"0");case"d":return String(C.$W);case"dd":return _e(_.weekdaysMin,C.$W,Z,2);case"ddd":return _e(_.weekdaysShort,C.$W,Z,3);case"dddd":return Z[C.$W];case"H":return String(L);case"HH":return P.s(L,2,"0");case"h":return Me(1);case"hh":return Me(2);case"a":return we(L,U,!0);case"A":return we(L,U,!1);case"m":return String(U);case"mm":return P.s(U,2,"0");case"s":return String(C.$s);case"ss":return P.s(C.$s,2,"0");case"SSS":return P.s(C.$ms,3,"0");case"Z":return I}return null}(ne)||I.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(g,C,_){var M,I=this,L=P.p(C),U=O(g),J=(U.utcOffset()-this.utcOffset())*n,Z=this-U,le=function(){return P.m(I,U)};switch(L){case m:M=le()/12;break;case h:M=le();break;case w:M=le()/3;break;case d:M=(Z-J)/6048e5;break;case c:M=(Z-J)/864e5;break;case u:M=Z/r;break;case l:M=Z/n;break;case s:M=Z/t;break;default:M=Z}return _?M:P.a(M)},b.daysInMonth=function(){return this.endOf(h).$D},b.$locale=function(){return E[this.$L]},b.locale=function(g,C){if(!g)return this.$L;var _=this.clone(),M=B(g,C,!0);return M&&(_.$L=M),_},b.clone=function(){return P.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},x}(),q=ee.prototype;return O.prototype=q,[["$ms",i],["$s",s],["$m",l],["$H",u],["$W",c],["$M",h],["$y",m],["$D",f]].forEach(function(x){q[x[1]]=function(b){return this.$g(b,x[0],x[1])}}),O.extend=function(x,b){return x.$i||(x(b,ee,O),x.$i=!0),O},O.locale=B,O.isDayjs=S,O.unix=function(x){return O(1e3*x)},O.en=E[W],O.Ls=E,O.p={},O})}(Je)),Je.exports}var vn=gn();const jt=pn(vn),yn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-switch");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),"active-color":"#13ce66","inactive-color":"#ff4949"},null,8,["modelValue"])}}},bn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-input");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),disabled:!(e!=null&&e.isEdit)},null,8,["modelValue","disabled"])}}},_n={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-input");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),disabled:!(e!=null&&e.isEdit),type:"password","show-password":"",clearable:""},null,8,["modelValue","disabled"])}}},wn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-color-picker");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),"show-alpha":""},null,8,["modelValue"])}}},En={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-input");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),style:{height:"100%"},type:"number"},null,8,["modelValue"])}}},Sn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o;return(t,n)=>{var r,i,s,l,u,c;return a.openBlock(),a.createBlock(dn,{rowContents:((r=e==null?void 0:e.content)==null?void 0:r.rowContents)??[],buttonValue:((i=e==null?void 0:e.content)==null?void 0:i.buttonValue)??[],isEnableWrap:(s=e==null?void 0:e.content)==null?void 0:s.isEnableWrap,isRowFlex:(l=e==null?void 0:e.content)==null?void 0:l.isRowFlex,isButtonRow:(u=e==null?void 0:e.content)==null?void 0:u.isButtonRow,rowValues:((c=e==null?void 0:e.content)==null?void 0:c.rowValues)??[]},null,8,["rowContents","buttonValue","isEnableWrap","isRowFlex","isButtonRow","rowValues"])}}},Dn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-radio"),s=a.resolveComponent("el-radio-group");return a.openBlock(),a.createBlock(s,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=l=>t.value=l),style:{height:"100%"}},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.content,(l,u)=>(a.openBlock(),a.createBlock(i,{key:u,label:l.label},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l==null?void 0:l.value),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}},xn=["onDblclick"],Cn={key:1,class:"tabs-label"},kn={__name:"index",props:{tabsContents:{type:Array,default:()=>[]}},emits:["dblClick","dbChange"],setup(o,{emit:e}){var c;const t=o,n=e,r=a.ref([]),i=a.ref((c=t==null?void 0:t.tabsContents[0])==null?void 0:c.value),s=d=>$t(d),l=d=>{n("dblClick",d)},u=d=>{n("dbChange",d)};return a.watch(()=>t.tabsContents,()=>{r.value=ut.cloneDeep(t.tabsContents)},{deep:!0,immediate:!0}),(d,h)=>{const w=a.resolveComponent("el-tab-pane"),m=a.resolveComponent("el-tabs");return a.openBlock(),a.createBlock(m,{type:"card",modelValue:i.value,"onUpdate:modelValue":h[0]||(h[0]=f=>i.value=f)},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(f,y)=>(a.openBlock(),a.createBlock(w,{key:y,name:f==null?void 0:f.value},{label:a.withCtx(()=>{var D;return[f!=null&&f.label?(a.openBlock(),a.createElementBlock("div",{key:0,onDblclick:A=>l(f)},a.toDisplayString(f==null?void 0:f.label),41,xn)):a.createCommentVNode("",!0),f!=null&&f.contents&&((D=f==null?void 0:f.contents)==null?void 0:D.length)>0?(a.openBlock(),a.createElementBlock("div",Cn,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f==null?void 0:f.contents,(A,p)=>(a.openBlock(),a.createElementBlock("div",{key:p,class:"tabs-children"},[A!=null&&A.value||(A==null?void 0:A.value)===""?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(A==null?void 0:A.type)),{key:0,modelValue:A.value,"onUpdate:modelValue":k=>A.value=k,content:(A==null?void 0:A.contents)??[]},null,8,["modelValue","onUpdate:modelValue","content"])):a.createCommentVNode("",!0)]))),128))])):a.createCommentVNode("",!0),a.renderSlot(d.$slots,`${(f==null?void 0:f.value)??""}_header`,{},void 0,!0)]}),default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f==null?void 0:f.children,(D,A)=>(a.openBlock(),a.createElementBlock("div",{key:A,class:"tabs-contents"},[a.renderSlot(d.$slots,`${(D==null?void 0:D.value)??""}_operateButtons`,{},void 0,!0),D!=null&&D.value||(D==null?void 0:D.value)===""?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(D==null?void 0:D.type)),{key:0,modelValue:D.value,"onUpdate:modelValue":p=>D.value=p,onDbChange:u,content:D==null?void 0:D.content},a.createSlots({_:2},[a.renderList(d.$slots,(p,k)=>({name:k,fn:a.withCtx(V=>[a.renderSlot(d.$slots,k,a.mergeProps({ref_for:!0},V||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"])):a.createCommentVNode("",!0)]))),128))]),_:2},1032,["name"]))),128))]),_:3},8,["modelValue"])}}},Xt=xe._export_sfc(kn,[["__scopeId","data-v-c1c693d0"]]),Bn=Object.freeze(Object.defineProperty({__proto__:null,default:Xt},Symbol.toStringTag,{value:"Module"})),Tn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o;return a.onMounted(()=>{document.querySelectorAll(".el-tab-pane").forEach(n=>{n.style.display="block"})}),(t,n)=>{var r;return a.openBlock(),a.createBlock(Xt,{tabsContents:((r=e==null?void 0:e.content)==null?void 0:r.tabsContents)??[]},a.createSlots({_:2},[a.renderList(t.$slots,(i,s)=>({name:s,fn:a.withCtx(l=>[a.renderSlot(t.$slots,s,a.normalizeProps(a.guardReactiveProps(l||{})))])}))]),1032,["tabsContents"])}}};/**!
|
|
2
2
|
* Sortable 1.15.6
|
|
3
3
|
* @author RubaXa <trash@rubaxa.org>
|
|
4
4
|
* @author owenm <owen23355@gmail.com>
|