iking-web-ui-pro 0.3.0 → 0.3.2
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/IkApprovalProcessDetail/ik.index.es.js +956 -942
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +48 -48
- package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +210 -189
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +331 -310
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +195 -174
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
- package/dist/IkDescription/ik.index.es.js +1462 -1448
- package/dist/IkDescription/ik.index.umd.js +48 -48
- package/dist/IkDescription/iking-web-ui-pro.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +1441 -1427
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +48 -48
- package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
- package/dist/IkExpandCollapse/ik.index.es.js +191 -170
- package/dist/IkExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +229 -208
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +449 -428
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1440 -1419
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFile/ik.index.es.js +1444 -1430
- package/dist/IkPreviewFile/ik.index.umd.js +48 -48
- package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +1047 -1026
- package/dist/IkPreviewFileDialog/ik.index.umd.js +47 -47
- package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +3041 -3020
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
- package/dist/IkSelectTag/ik.index.es.js +141 -130
- package/dist/IkSelectTag/ik.index.umd.js +1 -1
- package/dist/IkSelectTag/iking-web-ui-pro.css +1 -1
- package/dist/IkSideText/ik.index.es.js +276 -190
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/iking-web-ui-pro.css +1 -1
- package/dist/IkStatu/ik.index.es.js +47 -38
- package/dist/IkStatu/ik.index.umd.js +1 -1
- package/dist/IkStatu/iking-web-ui-pro.css +1 -1
- package/dist/IkStatuOver/ik.index.es.js +114 -106
- package/dist/IkStatuOver/ik.index.umd.js +1 -1
- package/dist/IkStatuOver/iking-web-ui-pro.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +169 -148
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
- package/dist/IkTaskResume/ik.index.es.js +23 -0
- package/dist/IkTaskResume/ik.index.umd.js +1 -0
- package/dist/IkUploadFile/ik.index.es.js +993 -972
- package/dist/IkUploadFile/ik.index.umd.js +47 -47
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +522 -522
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +234 -213
- package/dist/IkVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +2 -2
- package/dist/index.es.js +14080 -14047
- package/dist/index.umd.js +86 -86
- package/dist/src/components/IkMonacoEditor/index.d.ts +12 -2
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +12 -2
- package/dist/src/components/IkStatu/index.d.ts +3 -3
- package/dist/src/components/IkStatu/src/index.vue.d.ts +3 -3
- package/dist/src/components/IkSvgIcon/index.d.ts +12 -2
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +12 -2
- package/dist/src/components/IkTaskResume/index.d.ts +2 -0
- package/dist/src/components/IkTaskResume/src/index.vue.d.ts +2 -0
- package/dist/src/components/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ikColor as
|
|
3
|
-
const
|
|
4
|
-
for (const
|
|
5
|
-
|
|
6
|
-
},
|
|
7
|
-
const
|
|
8
|
-
for (const [
|
|
9
|
-
e
|
|
10
|
-
return
|
|
11
|
-
},
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
|
|
14
|
-
}, H = {
|
|
1
|
+
import { defineComponent as k, computed as w, resolveComponent as _, openBlock as t, createElementBlock as n, Fragment as D, normalizeClass as c, normalizeStyle as v, createCommentVNode as C, createElementVNode as h, createBlock as b, withCtx as d, createTextVNode as B, toDisplayString as $, createVNode as F, unref as z, mergeModels as j, useModel as N, ref as E, h as H, mergeProps as O, createSlots as q, renderSlot as y } from "vue";
|
|
2
|
+
import { ikColor as L } from "iking-utils-pro";
|
|
3
|
+
const V = (o, u) => (o.install = (i) => {
|
|
4
|
+
for (const e of [o, ...Object.values({})])
|
|
5
|
+
i.component(e.name, e);
|
|
6
|
+
}, o), M = (o, u) => {
|
|
7
|
+
const i = o.__vccOpts || o;
|
|
8
|
+
for (const [e, s] of u)
|
|
9
|
+
i[e] = s;
|
|
10
|
+
return i;
|
|
11
|
+
}, W = {
|
|
15
12
|
key: 1,
|
|
16
13
|
class: "h-[1em] w-[1em]",
|
|
17
14
|
"aria-hidden": "true"
|
|
18
|
-
},
|
|
15
|
+
}, X = ["xlink:href"], Y = ["src"], P = {
|
|
19
16
|
key: 1,
|
|
20
17
|
class: "h-[1em] w-[1em]",
|
|
21
18
|
"aria-hidden": "true"
|
|
22
|
-
},
|
|
19
|
+
}, U = ["xlink:href"], A = ["src"], G = /* @__PURE__ */ k({
|
|
23
20
|
name: "IkSvgIcon",
|
|
24
21
|
__name: "index",
|
|
25
22
|
props: {
|
|
@@ -45,11 +42,12 @@ const $ = (s, u) => (s.install = (e) => {
|
|
|
45
42
|
warning: { type: Boolean },
|
|
46
43
|
width: {}
|
|
47
44
|
},
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
emits: ["click", "mouseenter", "mouseleave", "dblclick"],
|
|
46
|
+
setup(o, { emit: u }) {
|
|
47
|
+
const i = o, e = w(() => i), s = w(() => {
|
|
50
48
|
const { name: l } = e.value;
|
|
51
49
|
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
|
-
}),
|
|
50
|
+
}), r = w(() => {
|
|
53
51
|
const l = [];
|
|
54
52
|
if (e.value.flip)
|
|
55
53
|
switch (e.value.flip) {
|
|
@@ -64,143 +62,166 @@ const $ = (s, u) => (s.install = (e) => {
|
|
|
64
62
|
break;
|
|
65
63
|
}
|
|
66
64
|
e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
67
|
-
const
|
|
65
|
+
const g = {
|
|
68
66
|
pointerEvents: e.value.disabled ? "none" : "auto",
|
|
69
67
|
...e.value.color && { color: e.value.color },
|
|
70
68
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
71
69
|
...l.length && { transform: l.join(" ") },
|
|
72
70
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
73
|
-
...e.value.color &&
|
|
71
|
+
...e.value.color && s.value !== "iksig" ? {
|
|
74
72
|
"--ik-icon-deep-color": e.value.color,
|
|
75
|
-
"--ik-icon-shallow-color": e.value.colorLight ||
|
|
73
|
+
"--ik-icon-shallow-color": e.value.colorLight || L.setOpacity(e.value.color, e.value.opacity)
|
|
76
74
|
} : {}
|
|
77
75
|
};
|
|
78
|
-
return e.value.width && (
|
|
79
|
-
})
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
},
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
},
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
76
|
+
return e.value.width && (g.width = g.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), g;
|
|
77
|
+
}), a = u, p = (l) => {
|
|
78
|
+
a("click", l);
|
|
79
|
+
}, f = (l) => {
|
|
80
|
+
a("mouseenter", l);
|
|
81
|
+
}, m = (l) => {
|
|
82
|
+
a("mouseleave", l);
|
|
83
|
+
}, I = (l) => {
|
|
84
|
+
a("dblclick", l);
|
|
85
|
+
};
|
|
86
|
+
return (l, g) => {
|
|
87
|
+
const x = _("el-tooltip"), T = _("el-button");
|
|
88
|
+
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (t(), n(
|
|
89
|
+
D,
|
|
90
|
+
{ key: 0 },
|
|
91
|
+
[
|
|
92
|
+
e.value.notip || !e.value.title ? (t(), n(
|
|
93
|
+
"span",
|
|
94
|
+
{
|
|
95
|
+
key: 0,
|
|
96
|
+
class: c(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
97
|
+
[l.name]: s.value === "unocss",
|
|
98
|
+
"show-bg": e.value.showBg || e.value.bg,
|
|
99
|
+
default: e.value.size === "default",
|
|
100
|
+
small: e.value.size === "small",
|
|
101
|
+
big: e.value.size === "big",
|
|
102
|
+
warning: e.value.warning || e.value.type === "warning",
|
|
103
|
+
primary: e.value.primary || e.value.type === "primary",
|
|
104
|
+
success: l.success || e.value.type === "success",
|
|
105
|
+
error: e.value.error || e.value.type === "error",
|
|
106
|
+
active: e.value.active,
|
|
107
|
+
disabled: e.value.disabled
|
|
108
|
+
}]),
|
|
109
|
+
style: v(r.value),
|
|
110
|
+
onClick: p,
|
|
111
|
+
onDblclick: I,
|
|
112
|
+
onMouseenter: f,
|
|
113
|
+
onMouseleave: m
|
|
114
|
+
},
|
|
115
|
+
[
|
|
116
|
+
C(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
117
|
+
s.value === "iksig" ? (t(), n(
|
|
118
|
+
"i",
|
|
119
|
+
{
|
|
120
|
+
key: 0,
|
|
121
|
+
class: c(`iksig ${e.value.name}`),
|
|
122
|
+
style: v(r.value)
|
|
123
|
+
},
|
|
124
|
+
null,
|
|
125
|
+
6
|
|
126
|
+
/* CLASS, STYLE */
|
|
127
|
+
)) : s.value === "svg" ? (t(), n("svg", W, [
|
|
128
|
+
h("use", {
|
|
129
|
+
"xlink:href": `#${e.value.name}`
|
|
130
|
+
}, null, 8, X)
|
|
131
|
+
])) : s.value === "img" ? (t(), n("img", {
|
|
132
|
+
key: 2,
|
|
133
|
+
src: e.value.name,
|
|
134
|
+
class: "h-[1em] w-[1em]"
|
|
135
|
+
}, null, 8, Y)) : (t(), n(
|
|
136
|
+
"i",
|
|
137
|
+
{
|
|
138
|
+
key: 3,
|
|
139
|
+
class: c(e.value.name),
|
|
140
|
+
style: v(r.value)
|
|
141
|
+
},
|
|
142
|
+
null,
|
|
143
|
+
6
|
|
144
|
+
/* CLASS, STYLE */
|
|
145
|
+
))
|
|
146
|
+
],
|
|
147
|
+
38
|
|
148
|
+
/* CLASS, STYLE, NEED_HYDRATION */
|
|
149
|
+
)) : (t(), b(x, {
|
|
150
|
+
key: 1,
|
|
151
|
+
content: e.value.title,
|
|
152
|
+
placement: "top",
|
|
153
|
+
"hide-after": 0
|
|
154
|
+
}, {
|
|
155
|
+
default: d(() => [
|
|
156
|
+
h(
|
|
157
|
+
"span",
|
|
158
|
+
{
|
|
159
|
+
class: c(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
160
|
+
[l.name]: s.value === "unocss",
|
|
161
|
+
"show-bg": e.value.showBg || e.value.bg,
|
|
162
|
+
default: e.value.size === "default",
|
|
163
|
+
small: e.value.size === "small",
|
|
164
|
+
big: e.value.size === "big",
|
|
165
|
+
warning: e.value.warning || e.value.type === "warning",
|
|
166
|
+
primary: l.primary || e.value.type === "primary",
|
|
167
|
+
success: l.success || e.value.type === "success",
|
|
168
|
+
error: e.value.error || e.value.type === "error",
|
|
169
|
+
active: e.value.active
|
|
170
|
+
}]),
|
|
171
|
+
style: v(r.value),
|
|
172
|
+
onClick: p,
|
|
173
|
+
onDblclick: I,
|
|
174
|
+
onMouseenter: f,
|
|
175
|
+
onMouseleave: m
|
|
176
|
+
},
|
|
177
|
+
[
|
|
178
|
+
s.value === "iksig" ? (t(), n(
|
|
179
|
+
"i",
|
|
180
|
+
{
|
|
181
|
+
key: 0,
|
|
182
|
+
class: c(`iksig ${e.value.name}`),
|
|
183
|
+
style: v(r.value)
|
|
184
|
+
},
|
|
185
|
+
null,
|
|
186
|
+
6
|
|
187
|
+
/* CLASS, STYLE */
|
|
188
|
+
)) : s.value === "svg" ? (t(), n("svg", P, [
|
|
189
|
+
h("use", {
|
|
190
|
+
"xlink:href": `#${e.value.name}`
|
|
191
|
+
}, null, 8, U)
|
|
192
|
+
])) : s.value === "img" ? (t(), n("img", {
|
|
193
|
+
key: 2,
|
|
194
|
+
src: e.value.name,
|
|
195
|
+
class: "h-[1em] w-[1em]"
|
|
196
|
+
}, null, 8, A)) : (t(), n(
|
|
197
|
+
"i",
|
|
198
|
+
{
|
|
199
|
+
key: 3,
|
|
200
|
+
class: c(e.value.name),
|
|
201
|
+
style: v(r.value)
|
|
202
|
+
},
|
|
203
|
+
null,
|
|
204
|
+
6
|
|
205
|
+
/* CLASS, STYLE */
|
|
206
|
+
))
|
|
207
|
+
],
|
|
208
|
+
38
|
|
209
|
+
/* CLASS, STYLE, NEED_HYDRATION */
|
|
210
|
+
)
|
|
211
|
+
]),
|
|
212
|
+
_: 1
|
|
213
|
+
/* STABLE */
|
|
214
|
+
}, 8, ["content"]))
|
|
215
|
+
],
|
|
216
|
+
64
|
|
217
|
+
/* STABLE_FRAGMENT */
|
|
218
|
+
)) : (t(), b(T, {
|
|
198
219
|
key: 1,
|
|
199
220
|
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
200
221
|
}, {
|
|
201
|
-
default:
|
|
202
|
-
|
|
203
|
-
|
|
222
|
+
default: d(() => [
|
|
223
|
+
B(
|
|
224
|
+
$(e.value.title),
|
|
204
225
|
1
|
|
205
226
|
/* TEXT */
|
|
206
227
|
)
|
|
@@ -210,7 +231,7 @@ const $ = (s, u) => (s.install = (e) => {
|
|
|
210
231
|
}, 8, ["type"]));
|
|
211
232
|
};
|
|
212
233
|
}
|
|
213
|
-
}),
|
|
234
|
+
}), J = /* @__PURE__ */ M(G, [["__scopeId", "data-v-c7804024"]]), S = V(J), K = /* @__PURE__ */ k({
|
|
214
235
|
__name: "CloseIcon",
|
|
215
236
|
props: {
|
|
216
237
|
showBg: {
|
|
@@ -222,14 +243,14 @@ const $ = (s, u) => (s.install = (e) => {
|
|
|
222
243
|
default: !1
|
|
223
244
|
}
|
|
224
245
|
},
|
|
225
|
-
setup(
|
|
226
|
-
return (u,
|
|
246
|
+
setup(o) {
|
|
247
|
+
return (u, i) => (t(), n(
|
|
227
248
|
"div",
|
|
228
249
|
{
|
|
229
|
-
class:
|
|
250
|
+
class: c({ "exit-main-page-maximize": o.showBg && o.fullscreen })
|
|
230
251
|
},
|
|
231
252
|
[
|
|
232
|
-
|
|
253
|
+
F(z(S), {
|
|
233
254
|
name: "iksvg_guanbidanchuang",
|
|
234
255
|
title: "关闭",
|
|
235
256
|
size: 20,
|
|
@@ -240,9 +261,9 @@ const $ = (s, u) => (s.install = (e) => {
|
|
|
240
261
|
/* CLASS */
|
|
241
262
|
));
|
|
242
263
|
}
|
|
243
|
-
}),
|
|
264
|
+
}), Q = /* @__PURE__ */ M(K, [["__scopeId", "data-v-ddb34200"]]), R = { class: "base-header" }, Z = /* @__PURE__ */ k({
|
|
244
265
|
__name: "IkBaseDialog",
|
|
245
|
-
props: /* @__PURE__ */
|
|
266
|
+
props: /* @__PURE__ */ j({
|
|
246
267
|
title: { default: "" },
|
|
247
268
|
cancelText: { default: "取消" },
|
|
248
269
|
confirmText: { default: "确认" },
|
|
@@ -260,74 +281,74 @@ const $ = (s, u) => (s.install = (e) => {
|
|
|
260
281
|
modelModifiers: {}
|
|
261
282
|
}),
|
|
262
283
|
emits: ["update:modelValue"],
|
|
263
|
-
setup(
|
|
264
|
-
const u =
|
|
265
|
-
|
|
266
|
-
},
|
|
284
|
+
setup(o) {
|
|
285
|
+
const u = o, i = N(o, "modelValue"), e = E(u.fullscreen), s = () => {
|
|
286
|
+
e.value = !e.value;
|
|
287
|
+
}, r = k({
|
|
267
288
|
setup() {
|
|
268
|
-
return () =>
|
|
289
|
+
return () => H(Q, {
|
|
269
290
|
showBg: u.showCloseBg,
|
|
270
291
|
fullscreen: u.fullscreen
|
|
271
292
|
});
|
|
272
293
|
}
|
|
273
294
|
});
|
|
274
|
-
return (
|
|
275
|
-
const
|
|
276
|
-
return
|
|
277
|
-
modelValue:
|
|
278
|
-
"onUpdate:modelValue":
|
|
295
|
+
return (a, p) => {
|
|
296
|
+
const f = _("el-dialog");
|
|
297
|
+
return t(), b(f, O({
|
|
298
|
+
modelValue: i.value,
|
|
299
|
+
"onUpdate:modelValue": p[0] || (p[0] = (m) => i.value = m),
|
|
279
300
|
"align-center": ""
|
|
280
|
-
},
|
|
281
|
-
"close-icon":
|
|
282
|
-
class: `ik-base-dialog ${
|
|
283
|
-
fullscreen:
|
|
301
|
+
}, a.$attrs, {
|
|
302
|
+
"close-icon": z(r),
|
|
303
|
+
class: `ik-base-dialog ${a.noHeader ? "no-header" : ""} ${a.noFooter ? "no-footer" : ""}`,
|
|
304
|
+
fullscreen: e.value,
|
|
284
305
|
"modal-class": "baseDialog"
|
|
285
|
-
}),
|
|
286
|
-
icon:
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
306
|
+
}), q({
|
|
307
|
+
icon: d(() => [
|
|
308
|
+
y(a.$slots, "title", {}, () => [
|
|
309
|
+
B(
|
|
310
|
+
$(a.title),
|
|
290
311
|
1
|
|
291
312
|
/* TEXT */
|
|
292
313
|
)
|
|
293
314
|
])
|
|
294
315
|
]),
|
|
295
|
-
header:
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
316
|
+
header: d(() => [
|
|
317
|
+
h("div", R, [
|
|
318
|
+
y(a.$slots, "header", {}, () => [
|
|
319
|
+
B(
|
|
320
|
+
$(a.title),
|
|
300
321
|
1
|
|
301
322
|
/* TEXT */
|
|
302
323
|
)
|
|
303
324
|
])
|
|
304
325
|
]),
|
|
305
|
-
|
|
326
|
+
a.$attrs.showClose ? (t(), b(z(S), {
|
|
306
327
|
key: 0,
|
|
307
|
-
onClick:
|
|
308
|
-
name:
|
|
328
|
+
onClick: s,
|
|
329
|
+
name: e.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
309
330
|
class: "absolute! top-[18px] right-[50px] icon-dialog-full",
|
|
310
|
-
title:
|
|
311
|
-
}, null, 8, ["name", "title"])) :
|
|
331
|
+
title: e.value ? "退出全屏" : "全屏"
|
|
332
|
+
}, null, 8, ["name", "title"])) : C("v-if", !0)
|
|
312
333
|
]),
|
|
313
|
-
default:
|
|
314
|
-
|
|
334
|
+
default: d(() => [
|
|
335
|
+
y(a.$slots, "default")
|
|
315
336
|
]),
|
|
316
337
|
_: 2
|
|
317
338
|
/* DYNAMIC */
|
|
318
339
|
}, [
|
|
319
|
-
|
|
340
|
+
a.$slots.footer ? {
|
|
320
341
|
name: "footer",
|
|
321
|
-
fn:
|
|
322
|
-
|
|
342
|
+
fn: d(() => [
|
|
343
|
+
y(a.$slots, "footer")
|
|
323
344
|
]),
|
|
324
345
|
key: "0"
|
|
325
346
|
} : void 0
|
|
326
347
|
]), 1040, ["modelValue", "close-icon", "class", "fullscreen"]);
|
|
327
348
|
};
|
|
328
349
|
}
|
|
329
|
-
}),
|
|
350
|
+
}), ae = V(Z);
|
|
330
351
|
export {
|
|
331
|
-
|
|
332
|
-
|
|
352
|
+
ae as IkBaseDialog,
|
|
353
|
+
ae as default
|
|
333
354
|
};
|
|
@@ -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,
|
|
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,B){"use strict";const f=(a,r)=>(a.install=s=>{for(const l of[a,...Object.values({})])s.component(l.name,l)},a),g=(a,r)=>{const s=a.__vccOpts||a;for(const[l,n]of r)s[l]=n;return s},v={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},_=["xlink:href"],w=["src"],b={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},C=["xlink:href"],z=["src"],k=f(g(e.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","mouseenter","mouseleave","dblclick"],setup(a,{emit:r}){const s=a,l=e.computed(()=>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"}),c=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 m={pointerEvents:l.value.disabled?"none":"auto",...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-icon-deep-color":l.value.color,"--ik-icon-shallow-color":l.value.colorLight||B.ikColor.setOpacity(l.value.color,l.value.opacity)}:{}};return l.value.width&&(m.width=m.height=typeof l.value.width=="number"?`${l.value.width}px`:l.value.width),m}),t=r,u=o=>{t("click",o)},d=o=>{t("mouseenter",o)},p=o=>{t("mouseleave",o)},h=o=>{t("dblclick",o)};return(o,m)=>{const I=e.resolveComponent("el-tooltip"),x=e.resolveComponent("el-button");return l.value.tableIconType==="icon"||!l.value.tableIconType?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.value.notip||!l.value.title?(e.openBlock(),e.createElementBlock("span",{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(c.value),onClick:u,onDblclick:h,onMouseenter:d,onMouseleave:p},[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(c.value)},null,6)):n.value==="svg"?(e.openBlock(),e.createElementBlock("svg",v,[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,w)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.value.name),style:e.normalizeStyle(c.value)},null,6))],38)):(e.openBlock(),e.createBlock(I,{key:1,content:l.value.title,placement:"top","hide-after":0},{default:e.withCtx(()=>[e.createElementVNode("span",{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(c.value),onClick:u,onDblclick:h,onMouseenter:d,onMouseleave:p},[n.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${l.value.name}`),style:e.normalizeStyle(c.value)},null,6)):n.value==="svg"?(e.openBlock(),e.createElementBlock("svg",b,[e.createElementVNode("use",{"xlink:href":`#${l.value.name}`},null,8,C)])):n.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:l.value.name,class:"h-[1em] w-[1em]"},null,8,z)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.value.name),style:e.normalizeStyle(c.value)},null,6))],38)]),_:1},8,["content"]))],64)):(e.openBlock(),e.createBlock(x,{key:1,type:["warning","error"].includes(l.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.title),1)]),_:1},8,["type"]))}}}),[["__scopeId","data-v-c7804024"]])),S=g(e.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(a){return(r,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"exit-main-page-maximize":a.showBg&&a.fullscreen})},[e.createVNode(e.unref(k),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})],2))}}),[["__scopeId","data-v-ddb34200"]]),$={class:"base-header"},y=f(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(a){const r=a,s=e.useModel(a,"modelValue"),l=e.ref(r.fullscreen),n=()=>{l.value=!l.value},c=e.defineComponent({setup(){return()=>e.h(S,{showBg:r.showCloseBg,fullscreen:r.fullscreen})}});return(t,u)=>{const d=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(d,e.mergeProps({modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=p=>s.value=p),"align-center":""},t.$attrs,{"close-icon":e.unref(c),class:`ik-base-dialog ${t.noHeader?"no-header":""} ${t.noFooter?"no-footer":""}`,fullscreen:l.value,"modal-class":"baseDialog"}),e.createSlots({icon:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",$,[e.renderSlot(t.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])]),t.$attrs.showClose?(e.openBlock(),e.createBlock(e.unref(k),{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(t.$slots,"default")]),_:2},[t.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}));i.IkBaseDialog=y,i.default=y,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-c7804024]{display:flex}.ik-svg-icon.ik-icon-span[data-v-c7804024]:not(:first-child){margin-left:var(--ik-margin-s-8)}.exit-main-page-maximize[data-v-ddb34200]{position:fixed;top:-40px;right:-40px;z-index:1000;width:80px;height:80px;cursor:pointer;background-color:var(--ik-icon-bg);border-radius:50%}.exit-main-page-maximize span[data-v-ddb34200]{position:absolute;top:47px;right:47px}.ik-svg-icon.ik-icon[data-v-ddb34200]{--ik-icon-deep-color: var(--ik-bgicon-deep-color);--ik-icon-shallow-color: var(--ik-bgicon-shallow-color)}.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}
|