iking-web-ui-pro 0.2.6 → 0.2.8
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/IKDetailPreviewFiles/ik.index.es.js +24 -24
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKDetailPreviewFiles/style.css +1 -1
- package/dist/IKExpandCollapse/ik.index.es.js +6 -6
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +3 -3
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +15 -15
- package/dist/IKVerticalStepBar/ik.index.umd.js +1 -1
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +660 -663
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +12 -12
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +3 -3
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +14 -14
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +14 -14
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +3 -3
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +3 -3
- package/dist/IkMonacoEditor/ik.index.umd.js +1 -1
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +3 -3
- package/dist/IkPageFull/ik.index.umd.js +1 -1
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +3 -3
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +3 -3
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +18 -18
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +7 -7
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +3 -3
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +22 -22
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +12519 -12522
- package/dist/index.umd.js +68 -68
- package/dist/src/components/IkSvgIcon/index.d.ts +0 -3
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +0 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.index={},i.vue,i["iking-utils-pro"]))})(this,function(i,e,k){"use strict";const f=(t,s)=>{if(t.install=a=>{for(const l of[t,...Object.values(s??{})])a.component(l.name,l)},s)for(const[a,l]of Object.entries(s))t[a]=l;return t},m=(t,s)=>{const a=t.__vccOpts||t;for(const[l,n]of s)a[l]=n;return a},y={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},h={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},_=["xlink:href"],B=["src"],v={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},w=["xlink:href"],b=["src"],C=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{
|
|
1
|
+
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.index={},i.vue,i["iking-utils-pro"]))})(this,function(i,e,k){"use strict";const f=(t,s)=>{if(t.install=a=>{for(const l of[t,...Object.values(s??{})])a.component(l.name,l)},s)for(const[a,l]of Object.entries(s))t[a]=l;return t},m=(t,s)=>{const a=t.__vccOpts||t;for(const[l,n]of s)a[l]=n;return a},y={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},h={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},_=["xlink:href"],B=["src"],v={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},w=["xlink:href"],b=["src"],C=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{}},setup(t){const s=t,a=e.inject("iconConfig"),l=e.computed(()=>({...(a==null?void 0:a.value)||{},...s})),n=e.computed(()=>{const{name:o}=l.value;return/^http?:\/\//.test(o)?"img":/i-[^:]+:[^:]+/.test(o)?"unocss":o!=null&&o.startsWith("iksig")?"iksig":o!=null&&o.includes(":")?"iconify":o!=null&&o.startsWith("iksvg")?"svg":"i"}),r=e.computed(()=>{const o=[];if(l.value.flip)switch(l.value.flip){case"horizontal":o.push("rotateY(180deg)");break;case"vertical":o.push("rotateX(180deg)");break;case"both":o.push("rotateX(180deg)"),o.push("rotateY(180deg)");break}l.value.rotate&&o.push(`rotate(${l.value.rotate%360}deg)`);const c={...l.value.color&&{color:l.value.color},...l.value.size&&{fontSize:typeof l.value.size=="number"?`${l.value.size}px`:l.value.size},...o.length&&{transform:o.join(" ")},padding:l.value.showBg||l.value.bg?l.value.padding:0,...l.value.color&&n.value!=="iksig"?{"--ik-color-icon-dark":l.value.color,"--ik-color-icon-light":l.value.colorLight||k.ikColor.setOpacity(l.value.color,l.value.opacity)}:{}};return l.value.width&&(c.width=c.height=typeof l.value.width=="number"?`${l.value.width}px`:l.value.width),c});return(o,c)=>{const d=e.resolveComponent("el-tooltip"),p=e.resolveComponent("el-button");return l.value.tableIconType==="icon"||!l.value.tableIconType?(e.openBlock(),e.createElementBlock("span",y,[l.value.notip||!l.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[o.name]:n.value==="unocss","show-bg":l.value.showBg||l.value.bg,default:l.value.size==="default",small:l.value.size==="small",big:l.value.size==="big",warning:l.value.warning||l.value.type==="warning",primary:l.value.primary||l.value.type==="primary",success:o.success||l.value.type==="success",error:l.value.error||l.value.type==="error",active:l.value.active,disabled:l.value.disabled}]),style:e.normalizeStyle(r.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),n.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${l.value.name}`),style:e.normalizeStyle(r.value)},null,6)):n.value==="svg"?(e.openBlock(),e.createElementBlock("svg",h,[e.createElementVNode("use",{"xlink:href":`#${l.value.name}`},null,8,_)])):n.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:l.value.name,class:"h-[1em] w-[1em]"},null,8,B)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.value.name),style:e.normalizeStyle(r.value)},null,6))],6)):(e.openBlock(),e.createBlock(d,{key:1,content:l.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[o.name]:n.value==="unocss","show-bg":l.value.showBg||l.value.bg,default:l.value.size==="default",small:l.value.size==="small",big:l.value.size==="big",warning:l.value.warning||l.value.type==="warning",primary:o.primary||l.value.type==="primary",success:o.success||l.value.type==="success",error:l.value.error||l.value.type==="error",active:l.value.active}]),style:e.normalizeStyle(r.value)},[n.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${l.value.name}`),style:e.normalizeStyle(r.value)},null,6)):n.value==="svg"?(e.openBlock(),e.createElementBlock("svg",v,[e.createElementVNode("use",{"xlink:href":`#${l.value.name}`},null,8,w)])):n.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:l.value.name,class:"h-[1em] w-[1em]"},null,8,b)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.value.name),style:e.normalizeStyle(r.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(p,{key:1,type:["warning","error"].includes(l.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.title),1)]),_:1},8,["type"]))}}}),E="",u=f(m(C,[["__scopeId","data-v-7729b79a"]])),z={key:0,class:"exit-main-page-maximize"},I=e.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(t){return(s,a)=>(e.openBlock(),e.createElementBlock("div",null,[t.showBg&&t.fullscreen?(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(e.unref(u),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})])):(e.openBlock(),e.createBlock(e.unref(u),{key:1,error:"",name:"iksvg_guanbidanchuang",title:"关闭",size:20}))]))}}),T="",S=m(I,[["__scopeId","data-v-79f49df8"]]),$={class:"base-header"},x=e.defineComponent({__name:"IkBaseDialog",props:e.mergeModels({title:{default:""},cancelText:{default:"取消"},confirmText:{default:"确认"},noHeader:{type:Boolean},noFooter:{type:Boolean},showCloseBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1,noHeader:!1,noFooter:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const s=t,a=e.useModel(t,"modelValue"),l=e.ref(s.fullscreen),n=()=>{l.value=!l.value},r=e.defineComponent({setup(){return()=>e.h(S,{showBg:s.showCloseBg,fullscreen:s.fullscreen})}});return(o,c)=>{const d=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(d,e.mergeProps({modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=p=>a.value=p)},o.$attrs,{"close-icon":e.unref(r),class:`ik-base-dialog ${o.noHeader?"no-header":""} ${o.noFooter?"no-footer":""}`,fullscreen:l.value,"modal-class":"baseDialog"}),e.createSlots({icon:e.withCtx(()=>[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",$,[e.renderSlot(o.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])]),o.$attrs.showClose?(e.openBlock(),e.createBlock(e.unref(u),{key:0,onClick:n,name:l.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:l.value?"退出全屏":"全屏"},null,8,["name","title"])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:2},[o.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),N="",g=f(x);i.IkBaseDialog=g,i.default=g,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-7729b79a]{display:flex}.exit-main-page-maximize[data-v-79f49df8]{position:fixed;top:-40px;right:-40px;z-index:1000;width:80px;height:80px;cursor:pointer;background-color:var(--ik-color-bg-icon);border-radius:50%}.exit-main-page-maximize span[data-v-79f49df8]{position:absolute;top:47px;right:47px}.ik-svg-icon.ik-icon[data-v-79f49df8]{--ik-color-icon-dark: var(--ik-color-bgicon-dark);--ik-color-icon-light: var(--ik-color-bgicon-light)}.el-dialog.ik-base-dialog.no-header .el-dialog__header{height:0}.el-dialog.ik-base-dialog.no-header .el-dialog__header .base-header{overflow:hidden;display:none}.el-dialog.ik-base-dialog.no-header .el-dialog__header:after{display:none}.el-dialog.ik-base-dialog.no-footer .el-dialog__footer{height:0;overflow:hidden}
|
|
@@ -66,7 +66,7 @@ const X = (t, h) => {
|
|
|
66
66
|
type: {},
|
|
67
67
|
active: { type: Boolean, default: !1 },
|
|
68
68
|
disabled: { type: Boolean, default: !1 },
|
|
69
|
-
tableIconType: {
|
|
69
|
+
tableIconType: {}
|
|
70
70
|
},
|
|
71
71
|
setup(t) {
|
|
72
72
|
const h = t, a = ne("iconConfig"), e = L(() => ({
|
|
@@ -104,7 +104,7 @@ const X = (t, h) => {
|
|
|
104
104
|
});
|
|
105
105
|
return (l, I) => {
|
|
106
106
|
const z = N("el-tooltip"), p = N("el-button");
|
|
107
|
-
return e.value.tableIconType === "icon" ? (c(), g("span", ye, [
|
|
107
|
+
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (c(), g("span", ye, [
|
|
108
108
|
e.value.notip || !e.value.title ? (c(), g(
|
|
109
109
|
"i",
|
|
110
110
|
{
|
|
@@ -236,7 +236,7 @@ const X = (t, h) => {
|
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
|
-
const xe = /* @__PURE__ */ X(Ie, [["__scopeId", "data-v-
|
|
239
|
+
const xe = /* @__PURE__ */ X(Ie, [["__scopeId", "data-v-7729b79a"]]), Be = P(xe), Q = {
|
|
240
240
|
animation: 200,
|
|
241
241
|
group: "gl",
|
|
242
242
|
disabled: !1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro","vuedraggable"],e):(_=typeof globalThis<"u"?globalThis:_||self,e(_.index={},_.vue,_["iking-utils-pro"],_.vuedraggable))})(this,function(_,e,g,T){"use strict";const v=(l,h)=>{if(l.install=o=>{for(const t of[l,...Object.values(h??{})])o.component(t.name,t)},h)for(const[o,t]of Object.entries(h))l[o]=t;return l};/*! Element Plus Icons Vue v2.3.1 */var j=e.defineComponent({name:"DCaret",__name:"d-caret",setup(l){return(h,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),L=j;const x=(l,h)=>{const o=l.__vccOpts||l;for(const[t,u]of h)o[t]=u;return o},O={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},M={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},F=["xlink:href"],A=["src"],q={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},W=["xlink:href"],H=["src"],X=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{default:"icon"}},setup(l){const h=l,o=e.inject("iconConfig"),t=e.computed(()=>({...(o==null?void 0:o.value)||{},...h})),u=e.computed(()=>{const{name:a}=t.value;return/^http?:\/\//.test(a)?"img":/i-[^:]+:[^:]+/.test(a)?"unocss":a!=null&&a.startsWith("iksig")?"iksig":a!=null&&a.includes(":")?"iconify":a!=null&&a.startsWith("iksvg")?"svg":"i"}),i=e.computed(()=>{const a=[];if(t.value.flip)switch(t.value.flip){case"horizontal":a.push("rotateY(180deg)");break;case"vertical":a.push("rotateX(180deg)");break;case"both":a.push("rotateX(180deg)"),a.push("rotateY(180deg)");break}t.value.rotate&&a.push(`rotate(${t.value.rotate%360}deg)`);const B={...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...a.length&&{transform:a.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&u.value!=="iksig"?{"--ik-color-icon-dark":t.value.color,"--ik-color-icon-light":t.value.colorLight||g.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(B.width=B.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),B});return(a,B)=>{const S=e.resolveComponent("el-tooltip"),p=e.resolveComponent("el-button");return t.value.tableIconType==="icon"?(e.openBlock(),e.createElementBlock("span",O,[t.value.notip||!t.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[a.name]:u.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:t.value.primary||t.value.type==="primary",success:a.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active,disabled:t.value.disabled}]),style:e.normalizeStyle(i.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),u.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(i.value)},null,6)):u.value==="svg"?(e.openBlock(),e.createElementBlock("svg",M,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,F)])):u.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,A)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(i.value)},null,6))],6)):(e.openBlock(),e.createBlock(S,{key:1,content:t.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[a.name]:u.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:a.primary||t.value.type==="primary",success:a.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),style:e.normalizeStyle(i.value)},[u.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(i.value)},null,6)):u.value==="svg"?(e.openBlock(),e.createElementBlock("svg",q,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,W)])):u.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,H)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(i.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(p,{key:1,type:["warning","error"].includes(t.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),oe="",Y=v(x(X,[["__scopeId","data-v-1be337e4"]])),E={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:4,bottom:8,background:"var(--ik-sub-sidebar-menu-bg)"}},R={list:{required:!0,type:Array,default:[]},group:{type:String,default:"draggable"},sort:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},delay:{type:Number,default:0},touchStartThreshold:{type:Number,default:0},disabled:{type:Boolean,default:!1},animation:{type:Number,default:200},handle:{type:String,default:".mover"},filter:{type:String,default:".unmover"},draggable:{type:String,default:".item"},ghostClass:{type:String,default:"ghost"},chosenClass:{type:String,default:"chosen"},dragClass:{type:String,default:"drag"},forceFallback:{type:Boolean,default:!1},fallbackClass:{type:String,default:"fallback"},fallbackOnBody:{type:Boolean,default:!1},fallbackTolerance:{type:Number,default:8},scroll:{type:Boolean,default:!0},scrollFn:{type:Function,default:()=>{}},scrollFensitivity:{type:Number,default:30},scrollSpeed:{type:Number,default:30},itemClass:{type:String,default:""},groupClass:{type:String,default:""},itemStyle:{type:Object,default:()=>({radius:{type:Number,default:30},bottom:{type:Number,default:8},background:{type:String,default:"var(--ik-sub-sidebar-menu-bg)"}})}},G=e.defineComponent({__name:"IkDragList",props:R,emits:["change"],setup(l,{emit:h}){const o=l,t=h,u=e.ref([]);e.watch(()=>o.list,p=>{u.value=g._.cloneDeep(p)},{immediate:!0,deep:!0});const i=e.computed(()=>({...E,...o,itemStyle:{...E.itemStyle,...o.itemStyle}})),a=e.ref(!1),B=()=>{a.value=!0},S=p=>{a.value=!1;const w=o.list[p.oldIndex];t("change",u.value,{...w,oldIndex:p.oldIndex,newIndex:p.newIndex})};return(p,w)=>{const f=e.resolveComponent("el-icon");return e.openBlock(),e.createBlock(e.unref(T),{modelValue:u.value,"onUpdate:modelValue":w[0]||(w[0]=r=>u.value=r),class:e.normalizeClass(["list-group",[i.value.groupClass]]),tag:"ul",attrs:i.value,animation:i.value.animation,group:i.value.group,disabled:i.value.disabled,"ghost-class":i.value.ghostClass,"force-fallback":i.value.ghostClass,"item-key":"order",onStart:B,onEnd:S},{item:e.withCtx(({element:r})=>[e.createVNode(e.Transition,{type:"transition",name:"flip-list"},{default:e.withCtx(()=>[p.$slots.item?e.renderSlot(p.$slots,"item",{key:0,item:r},void 0,!0):(e.openBlock(),e.createElementBlock("li",{key:1,class:e.normalizeClass(["list-group-item",[i.value.itemClass]]),style:e.normalizeStyle({borderRadius:`${i.value.itemStyle.radius}px`,marginBottom:`${i.value.itemStyle.bottom}px`,backgroundColor:`${i.value.itemStyle.background}`})},[i.value.showIcon&&!p.$slots.icon?(e.openBlock(),e.createBlock(f,{key:0},{default:e.withCtx(()=>[e.createVNode(e.unref(L))]),_:1})):e.renderSlot(p.$slots,"icon",{key:1},void 0,!0),e.createTextVNode(" "+e.toDisplayString(r.label),1)],6))]),_:2},1024)]),_:3},8,["modelValue","class","attrs","animation","group","disabled","ghost-class","force-fallback"])}}}),se="",J=v(x(G,[["__scopeId","data-v-3716c05e"]])),K=(l=>(e.pushScopeId("data-v-b5ed17ed"),l=l(),e.popScopeId(),l))(()=>e.createElementVNode("i",{class:"ik ik-shezhi"},null,-1)),Q={class:"check-right"},Z={class:"dialog-footer"},U=e.defineComponent({__name:"IkBtnSetting",props:e.mergeModels({list:{type:Array,default:()=>[]},tab:{type:[String,Number],default:""},type:{type:String,default:"primary"},btnType:{type:String,default:"icon"},circle:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},role:{type:String,default:""},config:{type:Object,default:()=>({t:l=>l,dialog:{l:"700px",sl:"600px"},path:"user_0",user:{id:"111"}})}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:e.mergeModels(["sort"],["update:modelValue"]),setup(l,{emit:h}){const o=l,t=h,u=e.useModel(l,"modelValue"),{t:i,dialog:a,path:B,user:S}=o.config,p=e.computed(()=>`${S==null?void 0:S.id}_${B}${o.tab!==""?`_${o.tab}`:""}`),w=e.ref([]),f=e.ref([]),r=e.ref([]),V=new Map,I=e.ref(!1),P=e.computed(()=>{const c=f.value.length&&f.value.length!==o.list.length;return!c&&f.value.length&&(I.value=!0),!!c}),N=c=>{var d;const n=g._.cloneDeep(r.value);n==null||n.forEach(s=>{var b;if(!f.value.length)r.value=[];else if(!f.value.includes(s==null?void 0:s.key)){const k=(b=r.value)==null?void 0:b.findIndex(m=>m.key===s.key);k!==-1&&r.value.splice(k,1),s.show=!1,V.set(s.key,s)}}),f.value.forEach(s=>{var k;if(((k=r.value)==null?void 0:k.findIndex(m=>(m==null?void 0:m.key)===s))===-1){const m=V.get(s);m&&(m.show=!0,r.value.push(m))}}),(d=r.value)!=null&&d.length||(r.value=g._.cloneDeep(o.list)),c===!0&&(t("sort",g._.cloneDeep(r.value)),u.value=g._.cloneDeep(r.value))},ee=c=>{if(c)f.value=o.list.map(n=>n.key);else{const n=o.list.find(d=>!d.key||d.label==="操作");f.value=n?[n.key]:[]}N()},z=()=>{const c=g.ikStore.local.getItem(p.value);try{const n=g._.cloneDeep(o==null?void 0:o.list);if((!c||!(c!=null&&c.length))&&g.ikStore.local.setItem(p.value,n.map(({show:d,type:s,key:b,label:k,width:m,minWidth:y,align:ae})=>({show:d,key:b,type:s,label:k,width:m,minWidth:y,align:ae}))),w.value=[...(n==null?void 0:n.map(d=>(V.set(d.key,d),{...d,show:d.show||!1})))||[]],c){const d=c.filter(s=>s.show).map(s=>s.key);f.value=[...d]}else{const d=w.value.filter(s=>s.show);f.value=d.map(s=>s.key)}N(!0)}catch(n){console.info("error: ",n)}};z(),e.watch(()=>o.list,()=>{z()},{deep:!0});const C=e.ref(!1),D=()=>{C.value=!0},te=c=>{r.value=c},le=()=>{C.value=!1,g.ikStore.local.setItem(p.value,r.value.map(({show:c,key:n,label:d,value:s,width:b,minWidth:k,align:m})=>({show:c,key:n,label:d,value:s,width:b,minWidth:k,align:m}))),t("sort",g._.cloneDeep(r.value)),u.value=g._.cloneDeep(r.value)};return(c,n)=>{const d=e.resolveComponent("el-button"),s=e.resolveComponent("el-checkbox"),b=e.resolveComponent("el-checkbox-group"),k=e.resolveComponent("el-dialog"),m=e.resolveDirective("role");return e.openBlock(),e.createElementBlock(e.Fragment,null,[l.btnType==="button"?e.withDirectives((e.openBlock(),e.createBlock(d,e.mergeProps({key:0},c.$attrs,{circle:l.circle,type:l.type,style:{minWidth:l.circle?"40px":"",minHeight:l.circle?"40px":""},onClick:D}),e.createSlots({icon:e.withCtx(()=>[K]),_:2},[l.circle?void 0:{name:"default",fn:e.withCtx(()=>[e.createCommentVNode(' {{ t("action.setting") }} '),e.createTextVNode(" "+e.toDisplayString(e.unref(i)("设置")),1)]),key:"0"}]),1040,["circle","type","style"])),[[m,c.$props.role]]):e.createCommentVNode("v-if",!0),l.btnType==="icon"?e.withDirectives((e.openBlock(),e.createBlock(e.unref(Y),e.mergeProps({key:1,name:"iksvg_shezhi-daohang","show-bg":"",size:"default"},c.$attrs,{onClick:D}),null,16)),[[m,c.$props.role]]):e.createCommentVNode("v-if",!0),e.createVNode(k,{modelValue:C.value,"onUpdate:modelValue":n[3]||(n[3]=y=>C.value=y),draggable:"",width:l.inline?e.unref(a).l:e.unref(a).sl,"close-on-click-modal":!1,"close-on-press-escape":!1,title:"显示字段","append-to-body":"",onOpen:z},{footer:e.withCtx(()=>[e.createElementVNode("div",Z,[e.createVNode(d,{onClick:n[2]||(n[2]=y=>C.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("关闭"))+" ",1),e.createCommentVNode(' {{ t("action.close") }} ')]),_:1}),e.createVNode(d,{type:"primary",disabled:r.value.length<2,onClick:le},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value.length<2?"至少选择一个字段":e.unref(i)("确定")),1)]),_:1},8,["disabled"])])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["view-fields",[l.inline?null:"un-inline"]])},[e.createElementVNode("div",{style:e.normalizeStyle({flex:l.inline?2:1})},[e.createVNode(s,{modelValue:I.value,"onUpdate:modelValue":n[0]||(n[0]=y=>I.value=y),class:"single-line",indeterminate:P.value,onChange:ee},{default:e.withCtx(()=>[e.createTextVNode(" 全选 ")]),_:1},8,["modelValue","indeterminate"]),e.createVNode(b,{modelValue:f.value,"onUpdate:modelValue":n[1]||(n[1]=y=>f.value=y),onChange:N},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,y=>(e.openBlock(),e.createBlock(s,{key:y.key,disabled:!y.key,label:y.key},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue"])],4),e.createElementVNode("div",Q,[e.createVNode(e.unref(J),{list:r.value,"item-style":{bottom:4},onChange:te},null,8,["list"])])],2)]),_:1},8,["modelValue","width"])],64)}}}),ce="",$=v(x(U,[["__scopeId","data-v-b5ed17ed"]]));_.IkBtnSetting=$,_.default=$,Object.defineProperties(_,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(b,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro","vuedraggable"],e):(b=typeof globalThis<"u"?globalThis:b||self,e(b.index={},b.vue,b["iking-utils-pro"],b.vuedraggable))})(this,function(b,e,g,T){"use strict";const v=(l,h)=>{if(l.install=o=>{for(const t of[l,...Object.values(h??{})])o.component(t.name,t)},h)for(const[o,t]of Object.entries(h))l[o]=t;return l};/*! Element Plus Icons Vue v2.3.1 */var j=e.defineComponent({name:"DCaret",__name:"d-caret",setup(l){return(h,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),L=j;const x=(l,h)=>{const o=l.__vccOpts||l;for(const[t,u]of h)o[t]=u;return o},O={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},M={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},F=["xlink:href"],A=["src"],q={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},W=["xlink:href"],H=["src"],X=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{}},setup(l){const h=l,o=e.inject("iconConfig"),t=e.computed(()=>({...(o==null?void 0:o.value)||{},...h})),u=e.computed(()=>{const{name:a}=t.value;return/^http?:\/\//.test(a)?"img":/i-[^:]+:[^:]+/.test(a)?"unocss":a!=null&&a.startsWith("iksig")?"iksig":a!=null&&a.includes(":")?"iconify":a!=null&&a.startsWith("iksvg")?"svg":"i"}),i=e.computed(()=>{const a=[];if(t.value.flip)switch(t.value.flip){case"horizontal":a.push("rotateY(180deg)");break;case"vertical":a.push("rotateX(180deg)");break;case"both":a.push("rotateX(180deg)"),a.push("rotateY(180deg)");break}t.value.rotate&&a.push(`rotate(${t.value.rotate%360}deg)`);const B={...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...a.length&&{transform:a.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&u.value!=="iksig"?{"--ik-color-icon-dark":t.value.color,"--ik-color-icon-light":t.value.colorLight||g.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(B.width=B.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),B});return(a,B)=>{const S=e.resolveComponent("el-tooltip"),p=e.resolveComponent("el-button");return t.value.tableIconType==="icon"||!t.value.tableIconType?(e.openBlock(),e.createElementBlock("span",O,[t.value.notip||!t.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[a.name]:u.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:t.value.primary||t.value.type==="primary",success:a.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active,disabled:t.value.disabled}]),style:e.normalizeStyle(i.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),u.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(i.value)},null,6)):u.value==="svg"?(e.openBlock(),e.createElementBlock("svg",M,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,F)])):u.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,A)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(i.value)},null,6))],6)):(e.openBlock(),e.createBlock(S,{key:1,content:t.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[a.name]:u.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:a.primary||t.value.type==="primary",success:a.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),style:e.normalizeStyle(i.value)},[u.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(i.value)},null,6)):u.value==="svg"?(e.openBlock(),e.createElementBlock("svg",q,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,W)])):u.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,H)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(i.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(p,{key:1,type:["warning","error"].includes(t.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),oe="",Y=v(x(X,[["__scopeId","data-v-7729b79a"]])),E={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:4,bottom:8,background:"var(--ik-sub-sidebar-menu-bg)"}},R={list:{required:!0,type:Array,default:[]},group:{type:String,default:"draggable"},sort:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},delay:{type:Number,default:0},touchStartThreshold:{type:Number,default:0},disabled:{type:Boolean,default:!1},animation:{type:Number,default:200},handle:{type:String,default:".mover"},filter:{type:String,default:".unmover"},draggable:{type:String,default:".item"},ghostClass:{type:String,default:"ghost"},chosenClass:{type:String,default:"chosen"},dragClass:{type:String,default:"drag"},forceFallback:{type:Boolean,default:!1},fallbackClass:{type:String,default:"fallback"},fallbackOnBody:{type:Boolean,default:!1},fallbackTolerance:{type:Number,default:8},scroll:{type:Boolean,default:!0},scrollFn:{type:Function,default:()=>{}},scrollFensitivity:{type:Number,default:30},scrollSpeed:{type:Number,default:30},itemClass:{type:String,default:""},groupClass:{type:String,default:""},itemStyle:{type:Object,default:()=>({radius:{type:Number,default:30},bottom:{type:Number,default:8},background:{type:String,default:"var(--ik-sub-sidebar-menu-bg)"}})}},G=e.defineComponent({__name:"IkDragList",props:R,emits:["change"],setup(l,{emit:h}){const o=l,t=h,u=e.ref([]);e.watch(()=>o.list,p=>{u.value=g._.cloneDeep(p)},{immediate:!0,deep:!0});const i=e.computed(()=>({...E,...o,itemStyle:{...E.itemStyle,...o.itemStyle}})),a=e.ref(!1),B=()=>{a.value=!0},S=p=>{a.value=!1;const w=o.list[p.oldIndex];t("change",u.value,{...w,oldIndex:p.oldIndex,newIndex:p.newIndex})};return(p,w)=>{const f=e.resolveComponent("el-icon");return e.openBlock(),e.createBlock(e.unref(T),{modelValue:u.value,"onUpdate:modelValue":w[0]||(w[0]=r=>u.value=r),class:e.normalizeClass(["list-group",[i.value.groupClass]]),tag:"ul",attrs:i.value,animation:i.value.animation,group:i.value.group,disabled:i.value.disabled,"ghost-class":i.value.ghostClass,"force-fallback":i.value.ghostClass,"item-key":"order",onStart:B,onEnd:S},{item:e.withCtx(({element:r})=>[e.createVNode(e.Transition,{type:"transition",name:"flip-list"},{default:e.withCtx(()=>[p.$slots.item?e.renderSlot(p.$slots,"item",{key:0,item:r},void 0,!0):(e.openBlock(),e.createElementBlock("li",{key:1,class:e.normalizeClass(["list-group-item",[i.value.itemClass]]),style:e.normalizeStyle({borderRadius:`${i.value.itemStyle.radius}px`,marginBottom:`${i.value.itemStyle.bottom}px`,backgroundColor:`${i.value.itemStyle.background}`})},[i.value.showIcon&&!p.$slots.icon?(e.openBlock(),e.createBlock(f,{key:0},{default:e.withCtx(()=>[e.createVNode(e.unref(L))]),_:1})):e.renderSlot(p.$slots,"icon",{key:1},void 0,!0),e.createTextVNode(" "+e.toDisplayString(r.label),1)],6))]),_:2},1024)]),_:3},8,["modelValue","class","attrs","animation","group","disabled","ghost-class","force-fallback"])}}}),se="",J=v(x(G,[["__scopeId","data-v-3716c05e"]])),K=(l=>(e.pushScopeId("data-v-b5ed17ed"),l=l(),e.popScopeId(),l))(()=>e.createElementVNode("i",{class:"ik ik-shezhi"},null,-1)),Q={class:"check-right"},Z={class:"dialog-footer"},U=e.defineComponent({__name:"IkBtnSetting",props:e.mergeModels({list:{type:Array,default:()=>[]},tab:{type:[String,Number],default:""},type:{type:String,default:"primary"},btnType:{type:String,default:"icon"},circle:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},role:{type:String,default:""},config:{type:Object,default:()=>({t:l=>l,dialog:{l:"700px",sl:"600px"},path:"user_0",user:{id:"111"}})}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:e.mergeModels(["sort"],["update:modelValue"]),setup(l,{emit:h}){const o=l,t=h,u=e.useModel(l,"modelValue"),{t:i,dialog:a,path:B,user:S}=o.config,p=e.computed(()=>`${S==null?void 0:S.id}_${B}${o.tab!==""?`_${o.tab}`:""}`),w=e.ref([]),f=e.ref([]),r=e.ref([]),V=new Map,I=e.ref(!1),P=e.computed(()=>{const c=f.value.length&&f.value.length!==o.list.length;return!c&&f.value.length&&(I.value=!0),!!c}),N=c=>{var d;const n=g._.cloneDeep(r.value);n==null||n.forEach(s=>{var _;if(!f.value.length)r.value=[];else if(!f.value.includes(s==null?void 0:s.key)){const k=(_=r.value)==null?void 0:_.findIndex(m=>m.key===s.key);k!==-1&&r.value.splice(k,1),s.show=!1,V.set(s.key,s)}}),f.value.forEach(s=>{var k;if(((k=r.value)==null?void 0:k.findIndex(m=>(m==null?void 0:m.key)===s))===-1){const m=V.get(s);m&&(m.show=!0,r.value.push(m))}}),(d=r.value)!=null&&d.length||(r.value=g._.cloneDeep(o.list)),c===!0&&(t("sort",g._.cloneDeep(r.value)),u.value=g._.cloneDeep(r.value))},ee=c=>{if(c)f.value=o.list.map(n=>n.key);else{const n=o.list.find(d=>!d.key||d.label==="操作");f.value=n?[n.key]:[]}N()},z=()=>{const c=g.ikStore.local.getItem(p.value);try{const n=g._.cloneDeep(o==null?void 0:o.list);if((!c||!(c!=null&&c.length))&&g.ikStore.local.setItem(p.value,n.map(({show:d,type:s,key:_,label:k,width:m,minWidth:y,align:ae})=>({show:d,key:_,type:s,label:k,width:m,minWidth:y,align:ae}))),w.value=[...(n==null?void 0:n.map(d=>(V.set(d.key,d),{...d,show:d.show||!1})))||[]],c){const d=c.filter(s=>s.show).map(s=>s.key);f.value=[...d]}else{const d=w.value.filter(s=>s.show);f.value=d.map(s=>s.key)}N(!0)}catch(n){console.info("error: ",n)}};z(),e.watch(()=>o.list,()=>{z()},{deep:!0});const C=e.ref(!1),D=()=>{C.value=!0},te=c=>{r.value=c},le=()=>{C.value=!1,g.ikStore.local.setItem(p.value,r.value.map(({show:c,key:n,label:d,value:s,width:_,minWidth:k,align:m})=>({show:c,key:n,label:d,value:s,width:_,minWidth:k,align:m}))),t("sort",g._.cloneDeep(r.value)),u.value=g._.cloneDeep(r.value)};return(c,n)=>{const d=e.resolveComponent("el-button"),s=e.resolveComponent("el-checkbox"),_=e.resolveComponent("el-checkbox-group"),k=e.resolveComponent("el-dialog"),m=e.resolveDirective("role");return e.openBlock(),e.createElementBlock(e.Fragment,null,[l.btnType==="button"?e.withDirectives((e.openBlock(),e.createBlock(d,e.mergeProps({key:0},c.$attrs,{circle:l.circle,type:l.type,style:{minWidth:l.circle?"40px":"",minHeight:l.circle?"40px":""},onClick:D}),e.createSlots({icon:e.withCtx(()=>[K]),_:2},[l.circle?void 0:{name:"default",fn:e.withCtx(()=>[e.createCommentVNode(' {{ t("action.setting") }} '),e.createTextVNode(" "+e.toDisplayString(e.unref(i)("设置")),1)]),key:"0"}]),1040,["circle","type","style"])),[[m,c.$props.role]]):e.createCommentVNode("v-if",!0),l.btnType==="icon"?e.withDirectives((e.openBlock(),e.createBlock(e.unref(Y),e.mergeProps({key:1,name:"iksvg_shezhi-daohang","show-bg":"",size:"default"},c.$attrs,{onClick:D}),null,16)),[[m,c.$props.role]]):e.createCommentVNode("v-if",!0),e.createVNode(k,{modelValue:C.value,"onUpdate:modelValue":n[3]||(n[3]=y=>C.value=y),draggable:"",width:l.inline?e.unref(a).l:e.unref(a).sl,"close-on-click-modal":!1,"close-on-press-escape":!1,title:"显示字段","append-to-body":"",onOpen:z},{footer:e.withCtx(()=>[e.createElementVNode("div",Z,[e.createVNode(d,{onClick:n[2]||(n[2]=y=>C.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("关闭"))+" ",1),e.createCommentVNode(' {{ t("action.close") }} ')]),_:1}),e.createVNode(d,{type:"primary",disabled:r.value.length<2,onClick:le},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value.length<2?"至少选择一个字段":e.unref(i)("确定")),1)]),_:1},8,["disabled"])])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["view-fields",[l.inline?null:"un-inline"]])},[e.createElementVNode("div",{style:e.normalizeStyle({flex:l.inline?2:1})},[e.createVNode(s,{modelValue:I.value,"onUpdate:modelValue":n[0]||(n[0]=y=>I.value=y),class:"single-line",indeterminate:P.value,onChange:ee},{default:e.withCtx(()=>[e.createTextVNode(" 全选 ")]),_:1},8,["modelValue","indeterminate"]),e.createVNode(_,{modelValue:f.value,"onUpdate:modelValue":n[1]||(n[1]=y=>f.value=y),onChange:N},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,y=>(e.openBlock(),e.createBlock(s,{key:y.key,disabled:!y.key,label:y.key},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue"])],4),e.createElementVNode("div",Q,[e.createVNode(e.unref(J),{list:r.value,"item-style":{bottom:4},onChange:te},null,8,["list"])])],2)]),_:1},8,["modelValue","width"])],64)}}}),ce="",$=v(x(U,[["__scopeId","data-v-b5ed17ed"]]));b.IkBtnSetting=$,b.default=$,Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-7729b79a]{display:flex}.ghost[data-v-3716c05e]{opacity:.9;background:var(--el-color-primary)!important;color:var(--el-color-white)}.list-group[data-v-3716c05e]{height:100%;width:100%;color:var(--el-text-color-regular);transition:all .25s}.list-group-item[data-v-3716c05e]{cursor:move;border-radius:4px;background:var(--el-color-primary-light-9);margin-bottom:var(--base-m);padding:var(--base-p);-webkit-user-select:none;user-select:none;display:flex;align-items:center}.list-group-item[data-v-3716c05e]:hover{background:var(--el-color-primary-light-7)!important}.list-group-item i[data-v-3716c05e]{margin-right:calc(var(--base-m) / 2);cursor:pointer}.view-fields.un-inline .el-checkbox[data-v-b5ed17ed]{width:100%;background:var(--ik-sub-sidebar-menu-bg);margin:2px 0;padding:8px;border-radius:4px;height:37px}.view-fields[data-v-b5ed17ed]{display:flex;justify-content:space-between;max-height:55vh;overflow-y:auto;overflow-x:hidden}.view-fields .check-right[data-v-b5ed17ed]{margin-top:37px}.view-fields .single-line[data-v-b5ed17ed]{background-color:transparent!important}.view-fields>div[data-v-b5ed17ed]:nth-child(1){padding-right:8px;flex:2;border-right:1px solid var(--el-border-color)}.view-fields>div[data-v-b5ed17ed]:nth-child(2){flex:1;margin-left:8px}.view-fields>div:nth-child(2) .field-sort[data-v-b5ed17ed]{cursor:move;padding:calc(var(--base-p) / 2);color:var(--el-text-color-regular)}.view-fields .el-checkbox[data-v-b5ed17ed]{width:195px;margin-right:0}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _, inject as $, computed as
|
|
1
|
+
import { defineComponent as _, inject as $, computed as m, resolveComponent as g, openBlock as a, createElementBlock as i, normalizeClass as r, normalizeStyle as c, createCommentVNode as p, createElementVNode as v, createBlock as y, withCtx as f, createTextVNode as k, toDisplayString as b, mergeModels as I, useModel as C, renderSlot as h, createVNode as T, unref as j } from "vue";
|
|
2
2
|
import { ikColor as S } from "iking-utils-pro";
|
|
3
3
|
const w = (s, o) => {
|
|
4
4
|
if (s.install = (n) => {
|
|
@@ -48,16 +48,16 @@ const w = (s, o) => {
|
|
|
48
48
|
type: {},
|
|
49
49
|
active: { type: Boolean, default: !1 },
|
|
50
50
|
disabled: { type: Boolean, default: !1 },
|
|
51
|
-
tableIconType: {
|
|
51
|
+
tableIconType: {}
|
|
52
52
|
},
|
|
53
53
|
setup(s) {
|
|
54
|
-
const o = s, n = $("iconConfig"), e =
|
|
54
|
+
const o = s, n = $("iconConfig"), e = m(() => ({
|
|
55
55
|
...(n == null ? void 0 : n.value) || {},
|
|
56
56
|
...o
|
|
57
|
-
})), t =
|
|
57
|
+
})), t = m(() => {
|
|
58
58
|
const { name: l } = e.value;
|
|
59
59
|
return /^http?:\/\//.test(l) ? "img" : /i-[^:]+:[^:]+/.test(l) ? "unocss" : l != null && l.startsWith("iksig") ? "iksig" : l != null && l.includes(":") ? "iconify" : l != null && l.startsWith("iksvg") ? "svg" : "i";
|
|
60
|
-
}), u =
|
|
60
|
+
}), u = m(() => {
|
|
61
61
|
const l = [];
|
|
62
62
|
if (e.value.flip)
|
|
63
63
|
switch (e.value.flip) {
|
|
@@ -86,7 +86,7 @@ const w = (s, o) => {
|
|
|
86
86
|
});
|
|
87
87
|
return (l, d) => {
|
|
88
88
|
const x = g("el-tooltip"), z = g("el-button");
|
|
89
|
-
return e.value.tableIconType === "icon" ? (a(), i("span", V, [
|
|
89
|
+
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (a(), i("span", V, [
|
|
90
90
|
e.value.notip || !e.value.title ? (a(), i(
|
|
91
91
|
"i",
|
|
92
92
|
{
|
|
@@ -140,7 +140,7 @@ const w = (s, o) => {
|
|
|
140
140
|
],
|
|
141
141
|
6
|
|
142
142
|
/* CLASS, STYLE */
|
|
143
|
-
)) : (a(),
|
|
143
|
+
)) : (a(), y(x, {
|
|
144
144
|
key: 1,
|
|
145
145
|
content: e.value.title,
|
|
146
146
|
placement: "top"
|
|
@@ -201,7 +201,7 @@ const w = (s, o) => {
|
|
|
201
201
|
_: 1
|
|
202
202
|
/* STABLE */
|
|
203
203
|
}, 8, ["content"]))
|
|
204
|
-
])) : (a(),
|
|
204
|
+
])) : (a(), y(z, {
|
|
205
205
|
key: 1,
|
|
206
206
|
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
207
207
|
}, {
|
|
@@ -218,9 +218,9 @@ const w = (s, o) => {
|
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
220
|
});
|
|
221
|
-
const Y = /* @__PURE__ */ B(X, [["__scopeId", "data-v-
|
|
221
|
+
const Y = /* @__PURE__ */ B(X, [["__scopeId", "data-v-7729b79a"]]), q = w(Y), D = { class: "align-center flex justify-between" }, A = { class: "align-center flex" }, F = { style: { overflow: "hidden" } }, G = /* @__PURE__ */ _({
|
|
222
222
|
__name: "index",
|
|
223
|
-
props: /* @__PURE__ */
|
|
223
|
+
props: /* @__PURE__ */ I({
|
|
224
224
|
showToggle: {
|
|
225
225
|
type: Boolean,
|
|
226
226
|
default: !0
|
|
@@ -234,12 +234,12 @@ const Y = /* @__PURE__ */ B(X, [["__scopeId", "data-v-1be337e4"]]), q = w(Y), D
|
|
|
234
234
|
}),
|
|
235
235
|
emits: ["update:modelValue"],
|
|
236
236
|
setup(s) {
|
|
237
|
-
const o =
|
|
237
|
+
const o = C(s, "modelValue"), n = () => {
|
|
238
238
|
o.value = !o.value;
|
|
239
239
|
};
|
|
240
240
|
return (e, t) => {
|
|
241
241
|
const u = g("el-button"), l = g("el-card");
|
|
242
|
-
return a(),
|
|
242
|
+
return a(), y(l, {
|
|
243
243
|
class: r(["ik-collapse-box-card", o.value ? "hiddened" : ""]),
|
|
244
244
|
shadow: "hover"
|
|
245
245
|
}, {
|
|
@@ -251,7 +251,7 @@ const Y = /* @__PURE__ */ B(X, [["__scopeId", "data-v-1be337e4"]]), q = w(Y), D
|
|
|
251
251
|
p(" card header右侧内容 "),
|
|
252
252
|
h(e.$slots, "header-right", {}, void 0, !0),
|
|
253
253
|
p(" 展开、收起按钮 "),
|
|
254
|
-
s.showToggle ? (a(),
|
|
254
|
+
s.showToggle ? (a(), y(u, {
|
|
255
255
|
key: 0,
|
|
256
256
|
link: "",
|
|
257
257
|
class: "ml-[8px]",
|
|
@@ -263,7 +263,7 @@ const Y = /* @__PURE__ */ B(X, [["__scopeId", "data-v-1be337e4"]]), q = w(Y), D
|
|
|
263
263
|
1
|
|
264
264
|
/* TEXT */
|
|
265
265
|
),
|
|
266
|
-
j(
|
|
266
|
+
T(j(q), {
|
|
267
267
|
name: "iksvg_shouqi",
|
|
268
268
|
size: 16,
|
|
269
269
|
class: r(o.value ? "toogle" : null)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.index={},i.vue,i["iking-utils-pro"]))})(this,function(i,e,m){"use strict";const d=(n,a)=>{if(n.install=s=>{for(const l of[n,...Object.values(a??{})])s.component(l.name,l)},a)for(const[s,l]of Object.entries(a))n[s]=l;return n},u=(n,a)=>{const s=n.__vccOpts||n;for(const[l,o]of a)s[l]=o;return s},f={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},
|
|
1
|
+
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.index={},i.vue,i["iking-utils-pro"]))})(this,function(i,e,m){"use strict";const d=(n,a)=>{if(n.install=s=>{for(const l of[n,...Object.values(a??{})])s.component(l.name,l)},a)for(const[s,l]of Object.entries(a))n[s]=l;return n},u=(n,a)=>{const s=n.__vccOpts||n;for(const[l,o]of a)s[l]=o;return s},f={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},y={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},g=["xlink:href"],k=["src"],h={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},_=["xlink:href"],v=["src"],B=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{}},setup(n){const a=n,s=e.inject("iconConfig"),l=e.computed(()=>({...(s==null?void 0:s.value)||{},...a})),o=e.computed(()=>{const{name:t}=l.value;return/^http?:\/\//.test(t)?"img":/i-[^:]+:[^:]+/.test(t)?"unocss":t!=null&&t.startsWith("iksig")?"iksig":t!=null&&t.includes(":")?"iconify":t!=null&&t.startsWith("iksvg")?"svg":"i"}),r=e.computed(()=>{const t=[];if(l.value.flip)switch(l.value.flip){case"horizontal":t.push("rotateY(180deg)");break;case"vertical":t.push("rotateX(180deg)");break;case"both":t.push("rotateX(180deg)"),t.push("rotateY(180deg)");break}l.value.rotate&&t.push(`rotate(${l.value.rotate%360}deg)`);const c={...l.value.color&&{color:l.value.color},...l.value.size&&{fontSize:typeof l.value.size=="number"?`${l.value.size}px`:l.value.size},...t.length&&{transform:t.join(" ")},padding:l.value.showBg||l.value.bg?l.value.padding:0,...l.value.color&&o.value!=="iksig"?{"--ik-color-icon-dark":l.value.color,"--ik-color-icon-light":l.value.colorLight||m.ikColor.setOpacity(l.value.color,l.value.opacity)}:{}};return l.value.width&&(c.width=c.height=typeof l.value.width=="number"?`${l.value.width}px`:l.value.width),c});return(t,c)=>{const S=e.resolveComponent("el-tooltip"),V=e.resolveComponent("el-button");return l.value.tableIconType==="icon"||!l.value.tableIconType?(e.openBlock(),e.createElementBlock("span",f,[l.value.notip||!l.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[t.name]:o.value==="unocss","show-bg":l.value.showBg||l.value.bg,default:l.value.size==="default",small:l.value.size==="small",big:l.value.size==="big",warning:l.value.warning||l.value.type==="warning",primary:l.value.primary||l.value.type==="primary",success:t.success||l.value.type==="success",error:l.value.error||l.value.type==="error",active:l.value.active,disabled:l.value.disabled}]),style:e.normalizeStyle(r.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${l.value.name}`),style:e.normalizeStyle(r.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",y,[e.createElementVNode("use",{"xlink:href":`#${l.value.name}`},null,8,g)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:l.value.name,class:"h-[1em] w-[1em]"},null,8,k)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.value.name),style:e.normalizeStyle(r.value)},null,6))],6)):(e.openBlock(),e.createBlock(S,{key:1,content:l.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[t.name]:o.value==="unocss","show-bg":l.value.showBg||l.value.bg,default:l.value.size==="default",small:l.value.size==="small",big:l.value.size==="big",warning:l.value.warning||l.value.type==="warning",primary:t.primary||l.value.type==="primary",success:t.success||l.value.type==="success",error:l.value.error||l.value.type==="error",active:l.value.active}]),style:e.normalizeStyle(r.value)},[o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${l.value.name}`),style:e.normalizeStyle(r.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",h,[e.createElementVNode("use",{"xlink:href":`#${l.value.name}`},null,8,_)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:l.value.name,class:"h-[1em] w-[1em]"},null,8,v)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.value.name),style:e.normalizeStyle(r.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(V,{key:1,type:["warning","error"].includes(l.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.title),1)]),_:1},8,["type"]))}}}),E="",b=d(u(B,[["__scopeId","data-v-7729b79a"]])),w={class:"align-center flex justify-between"},C={class:"align-center flex"},z={style:{overflow:"hidden"}},x=e.defineComponent({__name:"index",props:e.mergeModels({showToggle:{type:Boolean,default:!0}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const a=e.useModel(n,"modelValue"),s=()=>{a.value=!a.value};return(l,o)=>{const r=e.resolveComponent("el-button"),t=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(t,{class:e.normalizeClass(["ik-collapse-box-card",a.value?"hiddened":""]),shadow:"hover"},{header:e.withCtx(()=>[e.createElementVNode("div",w,[e.createCommentVNode(" card header左侧内容 "),e.renderSlot(l.$slots,"header-leaft",{},void 0,!0),e.createElementVNode("div",C,[e.createCommentVNode(" card header右侧内容 "),e.renderSlot(l.$slots,"header-right",{},void 0,!0),e.createCommentVNode(" 展开、收起按钮 "),n.showToggle?(e.openBlock(),e.createBlock(r,{key:0,link:"",class:"ml-[8px]",onClick:o[0]||(o[0]=c=>s())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.value?"展开":"收起")+" ",1),e.createVNode(e.unref(b),{name:"iksvg_shouqi",size:16,class:e.normalizeClass(a.value?"toogle":null)},null,8,["class"])]),_:1})):e.createCommentVNode("v-if",!0)])])]),default:e.withCtx(()=>[e.createElementVNode("div",z,[e.renderSlot(l.$slots,"default",{},void 0,!0)])]),_:3},8,["class"])}}}),$="",p=d(u(x,[["__scopeId","data-v-eab56bfd"]]));i.IkCollapseCard=p,i.default=p,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-7729b79a]{display:flex}.ik-collapse-box-card[data-v-eab56bfd]{flex:1;margin-bottom:20px;--el-card-border-radius: 0}.ik-collapse-box-card[data-v-eab56bfd] .el-card__header{padding-right:0;color:var(--el-text-color-regular);background-color:var(--el-bg-color-page);border-bottom:none}.ik-collapse-box-card[data-v-eab56bfd] .el-card__header .el-button.is-link:hover{--ik-color-icon-dark: var(--ik-color-tag-primary);--ik-color-icon-light: var(--ik-color-icon-light-hover)}.ik-collapse-box-card[data-v-eab56bfd] .ik-svg-icon{transition:all .25s}.ik-collapse-box-card[data-v-eab56bfd] .ik-svg-icon.toogle{transform:rotate(-90deg)}.ik-collapse-box-card.hiddened[data-v-eab56bfd] .el-card__body{grid-template-rows:0fr;padding-top:0!important;padding-bottom:0!important;overflow:hidden;opacity:0}.ik-collapse-box-card[data-v-eab56bfd] .el-card__body{display:grid;grid-template-rows:1fr;padding:0;overflow:hidden!important;opacity:1;transition:all .25s ease}.ik-collapse-box-card[data-v-eab56bfd] .el-card__body table>tbody>tr>td>.cell .cell-icon{font-size:14px}.ik-collapse-box-card[data-v-eab56bfd] .el-card__body table>tbody>tr>td>.cell .el-button span{margin-left:3px}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as
|
|
1
|
+
import { inject as R, computed as m, defineComponent as z, openBlock as c, createElementBlock as u, createElementVNode as r, ref as M, Fragment as P, renderList as K, normalizeClass as C, normalizeStyle as b, createVNode as F, toDisplayString as O, unref as g, withModifiers as J, renderSlot as V, createCommentVNode as B, mergeModels as G, useModel as X, reactive as Q, watch as e3, nextTick as t3, resolveComponent as I, createBlock as S, withCtx as y, createTextVNode as D, h as n3, mergeProps as j, createSlots as o3, useCssVars as i3 } from "vue";
|
|
2
2
|
import { paramType as l3, ikFile as s3, buildUUID as a3, ikColor as c3 } from "iking-utils-pro";
|
|
3
3
|
const $ = (t, n) => {
|
|
4
4
|
if (t.install = (o) => {
|
|
@@ -22,7 +22,7 @@ const $ = (t, n) => {
|
|
|
22
22
|
let l = t / Math.pow(1024, e);
|
|
23
23
|
return (l % 1 === 0 ? l.toFixed(n || 0) : l.toFixed(n)) + " " + o[e];
|
|
24
24
|
}, T = (t, n) => n ? n.startsWith("http") ? n : `${t || location.origin}${n}` : "", d3 = (t) => {
|
|
25
|
-
const n =
|
|
25
|
+
const n = R("loadUrl"), o = m(() => t.loadUrl || (n == null ? void 0 : n.value)), e = R("uploadUrl"), l = m(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), i = R("token"), s = m(() => t.token || (i == null ? void 0 : i.value)), f = R("onlyofficeConfig"), v = m(() => t.onlyofficeConfig || (f == null ? void 0 : f.value)), a = R("userInfo"), p = m(() => t.userInfo || (a == null ? void 0 : a.value));
|
|
26
26
|
return {
|
|
27
27
|
cLoadUrl: o,
|
|
28
28
|
cUploadUrl: l,
|
|
@@ -294,10 +294,10 @@ const $ = (t, n) => {
|
|
|
294
294
|
null,
|
|
295
295
|
-1
|
|
296
296
|
/* HOISTED */
|
|
297
|
-
),
|
|
297
|
+
), I3 = [
|
|
298
298
|
O3,
|
|
299
299
|
B3
|
|
300
|
-
],
|
|
300
|
+
], R3 = {
|
|
301
301
|
key: 4,
|
|
302
302
|
t: "1686300180947",
|
|
303
303
|
class: "icon",
|
|
@@ -641,7 +641,7 @@ const $ = (t, n) => {
|
|
|
641
641
|
},
|
|
642
642
|
setup(t) {
|
|
643
643
|
const n = t, o = m(() => n.file ? Y(n.file, n.fields) : n.type);
|
|
644
|
-
return (e, l) => o.value === "image" ? (c(), u("svg", v3, w3)) : o.value === "zip" ? (c(), u("svg", _3, z3)) : o.value === "ppt" ? (c(), u("svg", b3, C3)) : o.value === "word" ? (c(), u("svg", V3,
|
|
644
|
+
return (e, l) => o.value === "image" ? (c(), u("svg", v3, w3)) : o.value === "zip" ? (c(), u("svg", _3, z3)) : o.value === "ppt" ? (c(), u("svg", b3, C3)) : o.value === "word" ? (c(), u("svg", V3, I3)) : o.value === "pdf" ? (c(), u("svg", R3, $3)) : o.value === "txt" ? (c(), u("svg", q3, A3)) : o.value === "audio" ? (c(), u("svg", P3, j3)) : o.value === "video" ? (c(), u("svg", L3, K3)) : o.value === "excel" ? (c(), u("svg", G3, J3)) : o.value === "exe" ? (c(), u("svg", Q3, i6)) : o.value === "json" ? (c(), u("svg", l6, r6)) : (c(), u("svg", d6, v6));
|
|
645
645
|
}
|
|
646
646
|
}), g6 = ["onClick"], m6 = { class: "text" }, y6 = { class: "fileName" }, w6 = { class: "size" }, _6 = /* @__PURE__ */ z({
|
|
647
647
|
__name: "IkPreviewFile",
|
|
@@ -935,7 +935,7 @@ const x6 = $(_6), k6 = /* @__PURE__ */ z({
|
|
|
935
935
|
};
|
|
936
936
|
return (a, p) => {
|
|
937
937
|
var w, _;
|
|
938
|
-
const d =
|
|
938
|
+
const d = I("el-image-viewer");
|
|
939
939
|
return o.value ? (c(), u(
|
|
940
940
|
P,
|
|
941
941
|
{ key: 0 },
|
|
@@ -994,7 +994,7 @@ const z6 = $(k6), b6 = {
|
|
|
994
994
|
key: 1,
|
|
995
995
|
class: "h-[1em] w-[1em]",
|
|
996
996
|
"aria-hidden": "true"
|
|
997
|
-
}, O6 = ["xlink:href"], B6 = ["src"],
|
|
997
|
+
}, O6 = ["xlink:href"], B6 = ["src"], I6 = /* @__PURE__ */ z({
|
|
998
998
|
name: "IkSvgIcon",
|
|
999
999
|
__name: "index",
|
|
1000
1000
|
props: {
|
|
@@ -1018,10 +1018,10 @@ const z6 = $(k6), b6 = {
|
|
|
1018
1018
|
type: {},
|
|
1019
1019
|
active: { type: Boolean, default: !1 },
|
|
1020
1020
|
disabled: { type: Boolean, default: !1 },
|
|
1021
|
-
tableIconType: {
|
|
1021
|
+
tableIconType: {}
|
|
1022
1022
|
},
|
|
1023
1023
|
setup(t) {
|
|
1024
|
-
const n = t, o =
|
|
1024
|
+
const n = t, o = R("iconConfig"), e = m(() => ({
|
|
1025
1025
|
...(o == null ? void 0 : o.value) || {},
|
|
1026
1026
|
...n
|
|
1027
1027
|
})), l = m(() => {
|
|
@@ -1055,8 +1055,8 @@ const z6 = $(k6), b6 = {
|
|
|
1055
1055
|
return e.value.width && (f.width = f.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), f;
|
|
1056
1056
|
});
|
|
1057
1057
|
return (s, f) => {
|
|
1058
|
-
const v =
|
|
1059
|
-
return e.value.tableIconType === "icon" ? (c(), u("span", b6, [
|
|
1058
|
+
const v = I("el-tooltip"), a = I("el-button");
|
|
1059
|
+
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (c(), u("span", b6, [
|
|
1060
1060
|
e.value.notip || !e.value.title ? (c(), u(
|
|
1061
1061
|
"i",
|
|
1062
1062
|
{
|
|
@@ -1188,7 +1188,7 @@ const z6 = $(k6), b6 = {
|
|
|
1188
1188
|
};
|
|
1189
1189
|
}
|
|
1190
1190
|
});
|
|
1191
|
-
const
|
|
1191
|
+
const R6 = /* @__PURE__ */ U(I6, [["__scopeId", "data-v-7729b79a"]]), A = $(R6), D6 = {
|
|
1192
1192
|
key: 0,
|
|
1193
1193
|
class: "exit-main-page-maximize"
|
|
1194
1194
|
}, M6 = /* @__PURE__ */ z({
|
|
@@ -1254,7 +1254,7 @@ const $6 = /* @__PURE__ */ U(M6, [["__scopeId", "data-v-79f49df8"]]), q6 = { cla
|
|
|
1254
1254
|
}
|
|
1255
1255
|
});
|
|
1256
1256
|
return (s, f) => {
|
|
1257
|
-
const v =
|
|
1257
|
+
const v = I("el-dialog");
|
|
1258
1258
|
return c(), S(v, j({
|
|
1259
1259
|
modelValue: o.value,
|
|
1260
1260
|
"onUpdate:modelValue": f[0] || (f[0] = (a) => o.value = a)
|
|
@@ -1731,7 +1731,7 @@ const W6 = /* @__PURE__ */ U(L6, [["__scopeId", "data-v-98d51ef9"]]), N6 = $(W6)
|
|
|
1731
1731
|
...n.fileField
|
|
1732
1732
|
}, e = m(() => typeof n.labelWidth == "number" ? `${n.labelWidth}px` : n.labelWidth);
|
|
1733
1733
|
return (l, i) => {
|
|
1734
|
-
const s =
|
|
1734
|
+
const s = I("el-tag"), f = I("el-descriptions-item"), v = I("el-descriptions");
|
|
1735
1735
|
return c(), S(
|
|
1736
1736
|
v,
|
|
1737
1737
|
j({ class: "margin-top" }, { ...t.titleProps, ...n }),
|