iking-web-ui-pro 1.0.29 → 1.0.32

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.
@@ -1 +1 @@
1
- @charset "UTF-8";.row-title[data-v-d5c74053]{display:flex}.ik-svg-icon.ik-icon-span[data-v-d5c74053]:not(:first-child){margin-left:var(--ik-margin-8)}.monaco-editor .margin-view-overlays .codicon-chevron-right,.monaco-editor .margin-view-overlays .codicon-chevron-down{font-size:100%!important}.monaco-editor .suggest-widget{width:200px}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:monaco-fade-in .15s ease-out}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:monaco-fade-out .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{padding:1px 4px}.monaco-editor .monaco-editor-overlaymessage .anchor{position:absolute;z-index:1000;width:0!important;height:0!important;border-color:transparent;border-style:solid;border-width:8px}@keyframes monaco-fade-in{0%{opacity:0}to{opacity:1}}@keyframes monaco-fade-out{0%{opacity:1}to{opacity:0}}.datav-editor{position:relative;width:100%;height:240px;padding:0;overflow:hidden;background:var(--datav-component-bg-1);border:var(--datav-gui-editor-border)}.datav-editor .datav-editor-actions{position:absolute;right:10px;bottom:5px;z-index:1;width:40px;font-size:12px;text-align:right}.datav-editor .datav-editor-actions .action-btn{width:20px;color:var(--el-color-primary);cursor:pointer;transition:color .2s}.datav-editor .datav-editor-actions .action-btn:hover{color:var(--el-color-white)}.datav-editor.--read-only .margin,.datav-editor.--read-only .monaco-editor-background{background-color:var(--el-text-color-disabled)}.datav-fullscreen-editor-dialog{display:flex;flex-direction:column;width:90%;max-width:90%;height:95vh;margin-top:1%;background:var(--ik-page-content-bg)}.datav-fullscreen-editor-dialog.el-dialog .el-dialog__body{max-height:100%;height:100%}.datav-fullscreen-editor-dialog .n-dialog__content{height:100%;padding-bottom:10px;border-bottom:none}.datav-fullscreen-editor-dialog .datav-fullscreen-editor-wp{height:100%}.datav-fullscreen-editor-dialog .datav-fullscreen-editor{width:100%;height:100%}
1
+ @charset "UTF-8";.row-title[data-v-d5c74053]{display:flex}.ik-svg-icon.ik-icon-span[data-v-d5c74053]:not(:first-child){margin-left:var(--ik-margin-8)}.monaco-editor .margin-view-overlays .codicon-chevron-right,.monaco-editor .margin-view-overlays .codicon-chevron-down{font-size:100%!important}.monaco-editor .suggest-widget{width:200px}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:monaco-fade-in .15s ease-out}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:monaco-fade-out .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{padding:1px 4px}.monaco-editor .monaco-editor-overlaymessage .anchor{position:absolute;z-index:1000;width:0!important;height:0!important;border-color:transparent;border-style:solid;border-width:8px}@keyframes monaco-fade-in{0%{opacity:0}to{opacity:1}}@keyframes monaco-fade-out{0%{opacity:1}to{opacity:0}}.datav-editor{position:relative;width:100%;height:240px;padding:0;overflow:hidden;background:var(--datav-component-bg-1);border:var(--datav-gui-editor-border)}.datav-editor .datav-editor-actions{position:absolute;right:10px;bottom:5px;z-index:1;width:40px;font-size:12px;text-align:right}.datav-editor .datav-editor-actions .action-btn{width:20px;color:var(--el-color-primary);cursor:pointer;transition:color .2s}.datav-editor .datav-editor-actions .action-btn:hover{color:var(--el-color-white)}.datav-editor.--read-only .margin,.datav-editor.--read-only .monaco-editor-background{background-color:#0c0c0c}.datav-fullscreen-editor-dialog{display:flex;flex-direction:column;width:90%;max-width:90%;height:95vh;margin-top:1%;background:var(--ik-page-content-bg)}.datav-fullscreen-editor-dialog.el-dialog .el-dialog__body{max-height:100%;height:100%}.datav-fullscreen-editor-dialog .n-dialog__content{height:100%;padding-bottom:10px;border-bottom:none}.datav-fullscreen-editor-dialog .datav-fullscreen-editor-wp{height:100%}.datav-fullscreen-editor-dialog .datav-fullscreen-editor{width:100%;height:100%}
@@ -1,17 +1,222 @@
1
- import { defineComponent as i, mergeModels as m, useModel as _, resolveComponent as s, openBlock as n, createBlock as u, mergeProps as f, withCtx as d, createElementBlock as v, Fragment as g, renderList as b, createTextVNode as k, toDisplayString as y } from "vue";
2
- const V = (e, l) => (e.install = (o) => {
3
- for (const t of [e, ...Object.values({})])
4
- o.component(t.name, t);
5
- }, e), x = /* @__PURE__ */ i({
1
+ import { defineComponent as w, computed as h, resolveComponent as p, openBlock as t, createElementBlock as a, normalizeClass as d, normalizeStyle as V, Fragment as v, createElementVNode as b, createBlock as c, withCtx as m, mergeProps as B, createTextVNode as _, toDisplayString as f, mergeModels as M, useModel as T, renderList as j, unref as D } from "vue";
2
+ import { ikColor as L } from "iking-utils-pro";
3
+ const x = (o, u) => (o.install = (i) => {
4
+ for (const e of [o, ...Object.values({})])
5
+ i.component(e.name, e);
6
+ }, o), z = (o, u) => {
7
+ const i = o.__vccOpts || o;
8
+ for (const [e, n] of u)
9
+ i[e] = n;
10
+ return i;
11
+ }, O = {
12
+ key: 1,
13
+ class: "h-[1em] w-[1em]",
14
+ "aria-hidden": "true"
15
+ }, E = ["xlink:href"], G = ["src"], N = {
16
+ key: 1,
17
+ class: "h-[1em] w-[1em]",
18
+ "aria-hidden": "true"
19
+ }, R = ["xlink:href"], W = ["src"], X = /* @__PURE__ */ w({
20
+ name: "IkSvgIcon",
6
21
  __name: "index",
7
- props: /* @__PURE__ */ m({
22
+ props: {
23
+ active: { type: Boolean, default: !1 },
24
+ bg: { type: Boolean, default: !1 },
25
+ color: {},
26
+ colorLight: {},
27
+ disabled: { type: Boolean, default: !1 },
28
+ error: { type: Boolean },
29
+ flip: {},
30
+ name: {},
31
+ notip: { type: Boolean, default: !1 },
32
+ opacity: { default: 0.5 },
33
+ padding: { default: "6px" },
34
+ primary: { type: Boolean },
35
+ rotate: {},
36
+ showBg: { type: Boolean, default: !1 },
37
+ size: { default: "" },
38
+ success: { type: Boolean },
39
+ tableIconType: {},
40
+ title: {},
41
+ type: { default: "primary" },
42
+ warning: { type: Boolean },
43
+ width: {},
44
+ iconClass: { default: "" }
45
+ },
46
+ emits: ["click", "mouseenter", "mouseleave", "dblclick"],
47
+ setup(o, { emit: u }) {
48
+ const i = o, e = h(() => i), n = h(() => {
49
+ const { name: l } = e.value;
50
+ 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";
51
+ }), g = h(() => {
52
+ const l = [];
53
+ if (e.value.flip)
54
+ switch (e.value.flip) {
55
+ case "horizontal":
56
+ l.push("rotateY(180deg)");
57
+ break;
58
+ case "vertical":
59
+ l.push("rotateX(180deg)");
60
+ break;
61
+ case "both":
62
+ l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
63
+ break;
64
+ }
65
+ e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
66
+ const y = {
67
+ ...e.value.color && { color: e.value.color },
68
+ ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
69
+ ...l.length && { transform: l.join(" ") },
70
+ padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
71
+ ...e.value.color && n.value !== "iksig" ? {
72
+ "--ik-icon-deep-color": e.value.color,
73
+ "--ik-icon-shallow-color": e.value.colorLight || L.setOpacity(e.value.color, e.value.opacity)
74
+ } : {}
75
+ };
76
+ return e.value.width && (y.width = y.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), y;
77
+ }), r = u, s = (l) => {
78
+ r("click", l);
79
+ }, k = (l) => {
80
+ r("mouseenter", l);
81
+ }, I = (l) => {
82
+ r("mouseleave", l);
83
+ }, $ = (l) => {
84
+ r("dblclick", l);
85
+ };
86
+ return (l, y) => {
87
+ const C = p("el-tooltip"), S = p("el-button");
88
+ return t(), a(
89
+ "i",
90
+ {
91
+ class: d(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
92
+ [l.iconClass]: !0,
93
+ [l.name]: n.value === "unocss",
94
+ "show-bg": e.value.showBg || e.value.bg,
95
+ default: e.value.size === "default",
96
+ small: e.value.size === "small",
97
+ big: e.value.size === "big",
98
+ warning: e.value.warning || e.value.type === "warning",
99
+ primary: e.value.primary || e.value.type === "primary",
100
+ success: l.success || e.value.type === "success",
101
+ error: e.value.error || e.value.type === "error",
102
+ active: e.value.active,
103
+ disabled: e.value.disabled
104
+ }]),
105
+ style: V(g.value),
106
+ onClick: s,
107
+ onDblclick: $,
108
+ onMouseenter: k,
109
+ onMouseleave: I
110
+ },
111
+ [
112
+ e.value.tableIconType === "icon" || !e.value.tableIconType ? (t(), a(
113
+ v,
114
+ { key: 0 },
115
+ [
116
+ e.value.notip || !e.value.title ? (t(), a(
117
+ v,
118
+ { key: 0 },
119
+ [
120
+ n.value === "iksig" ? (t(), a(
121
+ "i",
122
+ {
123
+ key: 0,
124
+ class: d(`iksig ${e.value.name}`)
125
+ },
126
+ null,
127
+ 2
128
+ /* CLASS */
129
+ )) : n.value === "svg" ? (t(), a("svg", O, [
130
+ b("use", {
131
+ "xlink:href": `#${e.value.name}`
132
+ }, null, 8, E)
133
+ ])) : n.value === "img" ? (t(), a("img", {
134
+ key: 2,
135
+ src: e.value.name,
136
+ class: "h-[1em] w-[1em]"
137
+ }, null, 8, G)) : (t(), a(
138
+ "i",
139
+ {
140
+ key: 3,
141
+ class: d(e.value.name)
142
+ },
143
+ null,
144
+ 2
145
+ /* CLASS */
146
+ ))
147
+ ],
148
+ 64
149
+ /* STABLE_FRAGMENT */
150
+ )) : (t(), c(C, {
151
+ key: 1,
152
+ content: e.value.title,
153
+ placement: "top",
154
+ "popper-class": "ik-svg-icon-tooltip",
155
+ "hide-after": 0
156
+ }, {
157
+ default: m(() => [
158
+ n.value === "iksig" ? (t(), a(
159
+ "i",
160
+ {
161
+ key: 0,
162
+ class: d(`iksig ${e.value.name}`)
163
+ },
164
+ null,
165
+ 2
166
+ /* CLASS */
167
+ )) : n.value === "svg" ? (t(), a("svg", N, [
168
+ b("use", {
169
+ "xlink:href": `#${e.value.name}`
170
+ }, null, 8, R)
171
+ ])) : n.value === "img" ? (t(), a("img", {
172
+ key: 2,
173
+ src: e.value.name,
174
+ class: "h-[1em] w-[1em]"
175
+ }, null, 8, W)) : (t(), a(
176
+ "i",
177
+ {
178
+ key: 3,
179
+ class: d(e.value.name)
180
+ },
181
+ null,
182
+ 2
183
+ /* CLASS */
184
+ ))
185
+ ]),
186
+ _: 1
187
+ /* STABLE */
188
+ }, 8, ["content"]))
189
+ ],
190
+ 64
191
+ /* STABLE_FRAGMENT */
192
+ )) : (t(), c(S, B({ key: 1 }, l.$attrs, {
193
+ type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
194
+ }), {
195
+ default: m(() => [
196
+ _(
197
+ f(e.value.title),
198
+ 1
199
+ /* TEXT */
200
+ )
201
+ ]),
202
+ _: 1
203
+ /* STABLE */
204
+ }, 16, ["type"]))
205
+ ],
206
+ 38
207
+ /* CLASS, STYLE, NEED_HYDRATION */
208
+ );
209
+ };
210
+ }
211
+ }), Y = /* @__PURE__ */ z(X, [["__scopeId", "data-v-d5c74053"]]), A = x(Y), F = { key: 1 }, P = /* @__PURE__ */ w({
212
+ __name: "index",
213
+ props: /* @__PURE__ */ M({
8
214
  list: {
9
215
  type: Array
10
216
  },
11
- // 是否是按钮模式
12
- isButton: {
13
- type: Boolean,
14
- default: !0
217
+ type: {
218
+ type: String,
219
+ default: "button"
15
220
  }
16
221
  }, {
17
222
  modelValue: {
@@ -21,49 +226,82 @@ const V = (e, l) => (e.install = (o) => {
21
226
  modelModifiers: {}
22
227
  }),
23
228
  emits: ["update:modelValue"],
24
- setup(e) {
25
- const l = _(e, "modelValue");
26
- return (o, t) => {
27
- const r = s("el-radio-button"), c = s("el-radio-group");
28
- return n(), u(c, f(o.$attrs, {
29
- modelValue: l.value,
30
- "onUpdate:modelValue": t[0] || (t[0] = (a) => l.value = a),
31
- class: "ik-radio-btn"
229
+ setup(o) {
230
+ const u = T(o, "modelValue");
231
+ return (i, e) => {
232
+ const n = p("el-radio-button"), g = p("el-radio"), r = p("el-radio-group");
233
+ return t(), c(r, B(i.$attrs, {
234
+ modelValue: u.value,
235
+ "onUpdate:modelValue": e[0] || (e[0] = (s) => u.value = s),
236
+ class: ["ik-radio-btn", { "un-button": o.type !== "button" }]
32
237
  }), {
33
- default: d(() => [
34
- (n(!0), v(
35
- g,
238
+ default: m(() => [
239
+ (t(!0), a(
240
+ v,
36
241
  null,
37
- b(e.list, (a, p) => (n(), u(r, {
38
- key: p,
39
- label: a.value
40
- }, {
41
- default: d(() => [
42
- k(
43
- y(a.label),
44
- 1
45
- /* TEXT */
46
- )
47
- ]),
48
- _: 2
49
- /* DYNAMIC */
50
- }, 1032, ["label"]))),
242
+ j(o.list, (s, k) => (t(), a(
243
+ v,
244
+ { key: k },
245
+ [
246
+ o.type === "button" ? (t(), c(n, {
247
+ key: 0,
248
+ label: s.value
249
+ }, {
250
+ default: m(() => [
251
+ _(
252
+ f(s.label),
253
+ 1
254
+ /* TEXT */
255
+ )
256
+ ]),
257
+ _: 2
258
+ /* DYNAMIC */
259
+ }, 1032, ["label"])) : o.type === "icon" ? (t(), a(
260
+ v,
261
+ { key: 1 },
262
+ [
263
+ s.icon ? (t(), c(D(A), {
264
+ key: 0,
265
+ name: s.icon
266
+ }, null, 8, ["name"])) : (t(), a(
267
+ "span",
268
+ F,
269
+ f(s.label),
270
+ 1
271
+ /* TEXT */
272
+ ))
273
+ ],
274
+ 64
275
+ /* STABLE_FRAGMENT */
276
+ )) : (t(), c(g, {
277
+ key: 2,
278
+ label: s.value
279
+ }, {
280
+ default: m(() => [
281
+ _(
282
+ f(s.label),
283
+ 1
284
+ /* TEXT */
285
+ )
286
+ ]),
287
+ _: 2
288
+ /* DYNAMIC */
289
+ }, 1032, ["label"]))
290
+ ],
291
+ 64
292
+ /* STABLE_FRAGMENT */
293
+ ))),
51
294
  128
52
295
  /* KEYED_FRAGMENT */
53
296
  ))
54
297
  ]),
55
298
  _: 1
56
299
  /* STABLE */
57
- }, 16, ["modelValue"]);
300
+ }, 16, ["modelValue", "class"]);
58
301
  };
59
302
  }
60
- }), B = (e, l) => {
61
- const o = e.__vccOpts || e;
62
- for (const [t, r] of l)
63
- o[t] = r;
64
- return o;
65
- }, C = /* @__PURE__ */ B(x, [["__scopeId", "data-v-5d00263f"]]), M = V(C);
303
+ }), U = /* @__PURE__ */ z(P, [["__scopeId", "data-v-221e6ffc"]]), J = x(U);
66
304
  export {
67
- M as IkRadioGroup,
68
- M as default
305
+ J as IkRadioGroup,
306
+ J as default
69
307
  };
@@ -1 +1 @@
1
- .ik-radio-btn[data-v-5d00263f]{padding:4px;background-color:var(--ik-page-main-bg);border-radius:6px}.ik-radio-btn[data-v-5d00263f] .el-radio-button__inner{background:transparent;border:none;border-left:none!important}.ik-radio-btn[data-v-5d00263f] .el-radio-button__original-radio:checked+.el-radio-button__inner{color:var(--el-color-primary);background-color:var(--ik-card-bg);border:none;padding:8px 20px;border-radius:6px;box-shadow:none}.ik-radio-btn[data-v-5d00263f] .el-radio-button:last-child .el-radio-button__inner{border-radius:var(--el-border-radius-base)}
1
+ .row-title[data-v-d5c74053]{display:flex}.ik-svg-icon.ik-icon-span[data-v-d5c74053]:not(:first-child){margin-left:var(--ik-margin-8)}.ik-radio-btn[data-v-221e6ffc]{padding:4px;background-color:var(--ik-page-main-bg);border-radius:6px}.ik-radio-btn.un-button[data-v-221e6ffc]{background-color:transparent}.ik-radio-btn[data-v-221e6ffc] .el-radio-button__inner{background:transparent;border:none;border-left:none!important}.ik-radio-btn[data-v-221e6ffc] .el-radio-button__original-radio:checked+.el-radio-button__inner{color:var(--el-color-primary);background-color:var(--ik-card-bg);border:none;padding:8px 20px;border-radius:6px;box-shadow:none}.ik-radio-btn[data-v-221e6ffc] .el-radio-button:last-child .el-radio-button__inner{border-radius:var(--el-border-radius-base)}