iking-web-ui-pro 0.2.21 → 0.2.22
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/IKExpandCollapse/ik.index.es.js +79 -73
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +302 -296
- package/dist/IKPreviewFile/ik.index.umd.js +16 -16
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +130 -124
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +306 -300
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +117 -111
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +242 -236
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +83 -77
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +434 -428
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +308 -302
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +140 -134
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +383 -377
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1135 -1129
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +588 -582
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +2960 -2954
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +111 -105
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +74 -68
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +720 -714
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +223 -217
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +5502 -5496
- package/dist/index.umd.js +78 -78
- package/dist/src/components/IkSvgIcon/index.d.ts +6 -2
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +6 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ikColor as
|
|
3
|
-
const
|
|
4
|
-
if (
|
|
5
|
-
for (const
|
|
6
|
-
|
|
1
|
+
import { defineComponent as w, computed as d, resolveComponent as m, openBlock as t, createElementBlock as i, withModifiers as y, normalizeClass as r, normalizeStyle as c, createCommentVNode as B, createElementVNode as g, createBlock as f, withCtx as h, createTextVNode as z, toDisplayString as x } from "vue";
|
|
2
|
+
import { ikColor as C } from "iking-utils-pro";
|
|
3
|
+
const I = (s, n) => {
|
|
4
|
+
if (s.install = (o) => {
|
|
5
|
+
for (const e of [s, ...Object.values(n ?? {})])
|
|
6
|
+
o.component(e.name, e);
|
|
7
7
|
}, n)
|
|
8
|
-
for (const [
|
|
9
|
-
o
|
|
10
|
-
return
|
|
11
|
-
},
|
|
8
|
+
for (const [o, e] of Object.entries(n))
|
|
9
|
+
s[o] = e;
|
|
10
|
+
return s;
|
|
11
|
+
}, $ = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
|
|
14
|
-
},
|
|
14
|
+
}, j = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "h-[1em] w-[1em]",
|
|
17
17
|
"aria-hidden": "true"
|
|
18
|
-
},
|
|
18
|
+
}, S = ["xlink:href"], T = ["src"], O = {
|
|
19
19
|
key: 1,
|
|
20
20
|
class: "h-[1em] w-[1em]",
|
|
21
21
|
"aria-hidden": "true"
|
|
22
|
-
},
|
|
22
|
+
}, N = ["xlink:href"], V = ["src"], E = /* @__PURE__ */ w({
|
|
23
23
|
name: "IkSvgIcon",
|
|
24
24
|
__name: "index",
|
|
25
25
|
props: {
|
|
@@ -45,11 +45,12 @@ const B = (o, n) => {
|
|
|
45
45
|
warning: { type: Boolean },
|
|
46
46
|
width: {}
|
|
47
47
|
},
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
emits: ["click"],
|
|
49
|
+
setup(s, { emit: n }) {
|
|
50
|
+
const o = s, e = d(() => o), a = d(() => {
|
|
50
51
|
const { name: l } = e.value;
|
|
51
52
|
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";
|
|
52
|
-
}),
|
|
53
|
+
}), u = d(() => {
|
|
53
54
|
const l = [];
|
|
54
55
|
if (e.value.flip)
|
|
55
56
|
switch (e.value.flip) {
|
|
@@ -64,27 +65,30 @@ const B = (o, n) => {
|
|
|
64
65
|
break;
|
|
65
66
|
}
|
|
66
67
|
e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
67
|
-
const
|
|
68
|
+
const v = {
|
|
68
69
|
...e.value.color && { color: e.value.color },
|
|
69
70
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
70
71
|
...l.length && { transform: l.join(" ") },
|
|
71
72
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
72
|
-
...e.value.color &&
|
|
73
|
+
...e.value.color && a.value !== "iksig" ? {
|
|
73
74
|
"--ik-color-icon-dark": e.value.color,
|
|
74
|
-
"--ik-color-icon-light": e.value.colorLight ||
|
|
75
|
+
"--ik-color-icon-light": e.value.colorLight || C.setOpacity(e.value.color, e.value.opacity)
|
|
75
76
|
} : {}
|
|
76
77
|
};
|
|
77
|
-
return e.value.width && (
|
|
78
|
-
})
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
return e.value.width && (v.width = v.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), v;
|
|
79
|
+
}), k = n, p = (l) => {
|
|
80
|
+
e.value.disabled || k("click", l);
|
|
81
|
+
};
|
|
82
|
+
return (l, v) => {
|
|
83
|
+
const _ = m("el-tooltip"), b = m("el-button");
|
|
84
|
+
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (t(), i("span", $, [
|
|
85
|
+
e.value.notip || !e.value.title ? (t(), i(
|
|
83
86
|
"i",
|
|
84
87
|
{
|
|
85
88
|
key: 0,
|
|
86
|
-
|
|
87
|
-
|
|
89
|
+
onClick: y(p, ["stop"]),
|
|
90
|
+
class: r(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
91
|
+
[l.name]: a.value === "unocss",
|
|
88
92
|
"show-bg": e.value.showBg || e.value.bg,
|
|
89
93
|
default: e.value.size === "default",
|
|
90
94
|
small: e.value.size === "small",
|
|
@@ -96,34 +100,34 @@ const B = (o, n) => {
|
|
|
96
100
|
active: e.value.active,
|
|
97
101
|
disabled: e.value.disabled
|
|
98
102
|
}]),
|
|
99
|
-
style:
|
|
103
|
+
style: c(u.value)
|
|
100
104
|
},
|
|
101
105
|
[
|
|
102
|
-
|
|
103
|
-
|
|
106
|
+
B(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
107
|
+
a.value === "iksig" ? (t(), i(
|
|
104
108
|
"i",
|
|
105
109
|
{
|
|
106
110
|
key: 0,
|
|
107
|
-
class:
|
|
108
|
-
style:
|
|
111
|
+
class: r(`iksig ${e.value.name}`),
|
|
112
|
+
style: c(u.value)
|
|
109
113
|
},
|
|
110
114
|
null,
|
|
111
115
|
6
|
|
112
116
|
/* CLASS, STYLE */
|
|
113
|
-
)) :
|
|
114
|
-
|
|
117
|
+
)) : a.value === "svg" ? (t(), i("svg", j, [
|
|
118
|
+
g("use", {
|
|
115
119
|
"xlink:href": `#${e.value.name}`
|
|
116
|
-
}, null, 8,
|
|
117
|
-
])) :
|
|
120
|
+
}, null, 8, S)
|
|
121
|
+
])) : a.value === "img" ? (t(), i("img", {
|
|
118
122
|
key: 2,
|
|
119
123
|
src: e.value.name,
|
|
120
124
|
class: "h-[1em] w-[1em]"
|
|
121
|
-
}, null, 8,
|
|
125
|
+
}, null, 8, T)) : (t(), i(
|
|
122
126
|
"i",
|
|
123
127
|
{
|
|
124
128
|
key: 3,
|
|
125
|
-
class:
|
|
126
|
-
style:
|
|
129
|
+
class: r(e.value.name),
|
|
130
|
+
style: c(u.value)
|
|
127
131
|
},
|
|
128
132
|
null,
|
|
129
133
|
6
|
|
@@ -132,17 +136,17 @@ const B = (o, n) => {
|
|
|
132
136
|
],
|
|
133
137
|
6
|
|
134
138
|
/* CLASS, STYLE */
|
|
135
|
-
)) : (
|
|
139
|
+
)) : (t(), f(_, {
|
|
136
140
|
key: 1,
|
|
137
141
|
content: e.value.title,
|
|
138
142
|
placement: "top"
|
|
139
143
|
}, {
|
|
140
|
-
default:
|
|
141
|
-
|
|
144
|
+
default: h(() => [
|
|
145
|
+
g(
|
|
142
146
|
"i",
|
|
143
147
|
{
|
|
144
|
-
class:
|
|
145
|
-
[l.name]:
|
|
148
|
+
class: r(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
149
|
+
[l.name]: a.value === "unocss",
|
|
146
150
|
"show-bg": e.value.showBg || e.value.bg,
|
|
147
151
|
default: e.value.size === "default",
|
|
148
152
|
small: e.value.size === "small",
|
|
@@ -153,33 +157,34 @@ const B = (o, n) => {
|
|
|
153
157
|
error: e.value.error || e.value.type === "error",
|
|
154
158
|
active: e.value.active
|
|
155
159
|
}]),
|
|
156
|
-
|
|
160
|
+
onClick: y(p, ["stop"]),
|
|
161
|
+
style: c(u.value)
|
|
157
162
|
},
|
|
158
163
|
[
|
|
159
|
-
|
|
164
|
+
a.value === "iksig" ? (t(), i(
|
|
160
165
|
"i",
|
|
161
166
|
{
|
|
162
167
|
key: 0,
|
|
163
|
-
class:
|
|
164
|
-
style:
|
|
168
|
+
class: r(`iksig ${e.value.name}`),
|
|
169
|
+
style: c(u.value)
|
|
165
170
|
},
|
|
166
171
|
null,
|
|
167
172
|
6
|
|
168
173
|
/* CLASS, STYLE */
|
|
169
|
-
)) :
|
|
170
|
-
|
|
174
|
+
)) : a.value === "svg" ? (t(), i("svg", O, [
|
|
175
|
+
g("use", {
|
|
171
176
|
"xlink:href": `#${e.value.name}`
|
|
172
|
-
}, null, 8,
|
|
173
|
-
])) :
|
|
177
|
+
}, null, 8, N)
|
|
178
|
+
])) : a.value === "img" ? (t(), i("img", {
|
|
174
179
|
key: 2,
|
|
175
180
|
src: e.value.name,
|
|
176
181
|
class: "h-[1em] w-[1em]"
|
|
177
|
-
}, null, 8,
|
|
182
|
+
}, null, 8, V)) : (t(), i(
|
|
178
183
|
"i",
|
|
179
184
|
{
|
|
180
185
|
key: 3,
|
|
181
|
-
class:
|
|
182
|
-
style:
|
|
186
|
+
class: r(e.value.name),
|
|
187
|
+
style: c(u.value)
|
|
183
188
|
},
|
|
184
189
|
null,
|
|
185
190
|
6
|
|
@@ -193,13 +198,14 @@ const B = (o, n) => {
|
|
|
193
198
|
_: 1
|
|
194
199
|
/* STABLE */
|
|
195
200
|
}, 8, ["content"]))
|
|
196
|
-
])) : (
|
|
201
|
+
])) : (t(), f(b, {
|
|
197
202
|
key: 1,
|
|
198
|
-
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
203
|
+
type: ["warning", "error"].includes(e.value.type) ? "danger" : "",
|
|
204
|
+
onClick: y(p, ["stop"])
|
|
199
205
|
}, {
|
|
200
|
-
default:
|
|
201
|
-
|
|
202
|
-
|
|
206
|
+
default: h(() => [
|
|
207
|
+
z(
|
|
208
|
+
x(e.value.title),
|
|
203
209
|
1
|
|
204
210
|
/* TEXT */
|
|
205
211
|
)
|
|
@@ -210,13 +216,13 @@ const B = (o, n) => {
|
|
|
210
216
|
};
|
|
211
217
|
}
|
|
212
218
|
});
|
|
213
|
-
const
|
|
214
|
-
const
|
|
215
|
-
for (const [
|
|
216
|
-
e
|
|
217
|
-
return
|
|
218
|
-
},
|
|
219
|
+
const L = (s, n) => {
|
|
220
|
+
const o = s.__vccOpts || s;
|
|
221
|
+
for (const [e, a] of n)
|
|
222
|
+
o[e] = a;
|
|
223
|
+
return o;
|
|
224
|
+
}, W = /* @__PURE__ */ L(E, [["__scopeId", "data-v-4a1004b9"]]), D = I(W);
|
|
219
225
|
export {
|
|
220
|
-
|
|
221
|
-
|
|
226
|
+
D as IkSvgIcon,
|
|
227
|
+
D as default
|
|
222
228
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],l):(a=typeof globalThis<"u"?globalThis:a||self,l(a.index={},a.vue,a["iking-utils-pro"]))})(this,function(a,l,
|
|
1
|
+
(function(a,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],l):(a=typeof globalThis<"u"?globalThis:a||self,l(a.index={},a.vue,a["iking-utils-pro"]))})(this,function(a,l,d){"use strict";const m=(i,s)=>{if(i.install=n=>{for(const e of[i,...Object.values(s??{})])n.component(e.name,e)},s)for(const[n,e]of Object.entries(s))i[n]=e;return i},f={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},y={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},k=["xlink:href"],g=["src"],v={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},h=["xlink:href"],_=["src"],B=l.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},emits:["click"],setup(i,{emit:s}){const n=i,e=l.computed(()=>n),o=l.computed(()=>{const{name:t}=e.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"}),c=l.computed(()=>{const t=[];if(e.value.flip)switch(e.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}e.value.rotate&&t.push(`rotate(${e.value.rotate%360}deg)`);const r={...e.value.color&&{color:e.value.color},...e.value.size&&{fontSize:typeof e.value.size=="number"?`${e.value.size}px`:e.value.size},...t.length&&{transform:t.join(" ")},padding:e.value.showBg||e.value.bg?e.value.padding:0,...e.value.color&&o.value!=="iksig"?{"--ik-color-icon-dark":e.value.color,"--ik-color-icon-light":e.value.colorLight||d.ikColor.setOpacity(e.value.color,e.value.opacity)}:{}};return e.value.width&&(r.width=r.height=typeof e.value.width=="number"?`${e.value.width}px`:e.value.width),r}),w=s,u=t=>{e.value.disabled||w("click",t)};return(t,r)=>{const b=l.resolveComponent("el-tooltip"),z=l.resolveComponent("el-button");return e.value.tableIconType==="icon"||!e.value.tableIconType?(l.openBlock(),l.createElementBlock("span",f,[e.value.notip||!e.value.title?(l.openBlock(),l.createElementBlock("i",{key:0,onClick:l.withModifiers(u,["stop"]),class:l.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":e.value.showBg||e.value.bg,default:e.value.size==="default",small:e.value.size==="small",big:e.value.size==="big",warning:e.value.warning||e.value.type==="warning",primary:e.value.primary||e.value.type==="primary",success:t.success||e.value.type==="success",error:e.value.error||e.value.type==="error",active:e.value.active,disabled:e.value.disabled}]),style:l.normalizeStyle(c.value)},[l.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),o.value==="iksig"?(l.openBlock(),l.createElementBlock("i",{key:0,class:l.normalizeClass(`iksig ${e.value.name}`),style:l.normalizeStyle(c.value)},null,6)):o.value==="svg"?(l.openBlock(),l.createElementBlock("svg",y,[l.createElementVNode("use",{"xlink:href":`#${e.value.name}`},null,8,k)])):o.value==="img"?(l.openBlock(),l.createElementBlock("img",{key:2,src:e.value.name,class:"h-[1em] w-[1em]"},null,8,g)):(l.openBlock(),l.createElementBlock("i",{key:3,class:l.normalizeClass(e.value.name),style:l.normalizeStyle(c.value)},null,6))],6)):(l.openBlock(),l.createBlock(b,{key:1,content:e.value.title,placement:"top"},{default:l.withCtx(()=>[l.createElementVNode("i",{class:l.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":e.value.showBg||e.value.bg,default:e.value.size==="default",small:e.value.size==="small",big:e.value.size==="big",warning:e.value.warning||e.value.type==="warning",primary:t.primary||e.value.type==="primary",success:t.success||e.value.type==="success",error:e.value.error||e.value.type==="error",active:e.value.active}]),onClick:l.withModifiers(u,["stop"]),style:l.normalizeStyle(c.value)},[o.value==="iksig"?(l.openBlock(),l.createElementBlock("i",{key:0,class:l.normalizeClass(`iksig ${e.value.name}`),style:l.normalizeStyle(c.value)},null,6)):o.value==="svg"?(l.openBlock(),l.createElementBlock("svg",v,[l.createElementVNode("use",{"xlink:href":`#${e.value.name}`},null,8,h)])):o.value==="img"?(l.openBlock(),l.createElementBlock("img",{key:2,src:e.value.name,class:"h-[1em] w-[1em]"},null,8,_)):(l.openBlock(),l.createElementBlock("i",{key:3,class:l.normalizeClass(e.value.name),style:l.normalizeStyle(c.value)},null,6))],6)]),_:1},8,["content"]))])):(l.openBlock(),l.createBlock(z,{key:1,type:["warning","error"].includes(e.value.type)?"danger":"",onClick:l.withModifiers(u,["stop"])},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.value.title),1)]),_:1},8,["type"]))}}}),C="",p=m(((i,s)=>{const n=i.__vccOpts||i;for(const[e,o]of s)n[e]=o;return n})(B,[["__scopeId","data-v-4a1004b9"]]));a.IkSvgIcon=p,a.default=p,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/IkSvgIcon/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-4a1004b9]{display:flex}.ik-svg-icon.ik-icon-span[data-v-4a1004b9]:not(:first-child){margin-left:var(--ik-margin-s-12)}
|