iking-web-ui-pro 0.3.3 → 0.3.4
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 +7 -3
- package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +21 -17
- package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +46 -42
- package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +36 -32
- package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
- package/dist/IkDescription/ik.index.es.js +7 -3
- package/dist/IkDescription/iking-web-ui-pro.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +7 -3
- package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
- package/dist/IkExpandCollapse/ik.index.es.js +15 -11
- package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +184 -173
- package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +42 -38
- package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +7 -3
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFile/ik.index.es.js +7 -3
- package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +7 -3
- package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +26 -22
- package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
- package/dist/IkSideText/ik.index.es.js +61 -57
- package/dist/IkSideText/iking-web-ui-pro.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +28 -24
- package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
- package/dist/IkTree/ik.index.es.js +7 -7
- package/dist/IkTree/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +7 -3
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +115 -111
- package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +73 -69
- package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +2 -2
- package/dist/index.es.js +6003 -5992
- package/dist/index.umd.js +99 -99
- package/dist/src/components/IkMonacoEditor/index.d.ts +9 -0
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +9 -0
- package/dist/src/components/IkSvgIcon/index.d.ts +9 -0
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as A, openBlock as c, createElementBlock as m, createElementVNode as C, computed as L, resolveComponent as D, Fragment as P, normalizeClass as S, normalizeStyle as
|
|
2
|
-
import { ikColor as ce, _ as
|
|
1
|
+
import { defineComponent as A, openBlock as c, createElementBlock as m, createElementVNode as C, computed as L, resolveComponent as D, Fragment as P, normalizeClass as S, normalizeStyle as $, createBlock as N, withCtx as f, createTextVNode as z, toDisplayString as T, ref as V, watch as Z, unref as _, createVNode as x, Transition as ne, renderSlot as R, mergeModels as G, useModel as se, resolveDirective as ie, withDirectives as J, mergeProps as K, createSlots as ue, createCommentVNode as F, renderList as re } from "vue";
|
|
2
|
+
import { ikColor as ce, _ as I, ikStore as H } from "iking-utils-pro";
|
|
3
3
|
import de from "vuedraggable";
|
|
4
4
|
const X = (o, b) => (o.install = (s) => {
|
|
5
5
|
for (const e of [o, ...Object.values({})])
|
|
@@ -58,7 +58,8 @@ const Y = (o, b) => {
|
|
|
58
58
|
title: {},
|
|
59
59
|
type: { default: "primary" },
|
|
60
60
|
warning: { type: Boolean },
|
|
61
|
-
width: {}
|
|
61
|
+
width: {},
|
|
62
|
+
iconClass: { default: "" }
|
|
62
63
|
},
|
|
63
64
|
emits: ["click", "mouseenter", "mouseleave", "dblclick"],
|
|
64
65
|
setup(o, { emit: b }) {
|
|
@@ -112,6 +113,7 @@ const Y = (o, b) => {
|
|
|
112
113
|
{
|
|
113
114
|
key: 0,
|
|
114
115
|
class: S(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
116
|
+
[t.iconClass]: !0,
|
|
115
117
|
[t.name]: d.value === "unocss",
|
|
116
118
|
"show-bg": e.value.showBg || e.value.bg,
|
|
117
119
|
default: e.value.size === "default",
|
|
@@ -124,7 +126,7 @@ const Y = (o, b) => {
|
|
|
124
126
|
active: e.value.active,
|
|
125
127
|
disabled: e.value.disabled
|
|
126
128
|
}]),
|
|
127
|
-
style:
|
|
129
|
+
style: $(i.value),
|
|
128
130
|
onClick: M,
|
|
129
131
|
onDblclick: y,
|
|
130
132
|
onMouseenter: B,
|
|
@@ -136,7 +138,7 @@ const Y = (o, b) => {
|
|
|
136
138
|
{
|
|
137
139
|
key: 0,
|
|
138
140
|
class: S(`iksig ${e.value.name}`),
|
|
139
|
-
style:
|
|
141
|
+
style: $(i.value)
|
|
140
142
|
},
|
|
141
143
|
null,
|
|
142
144
|
6
|
|
@@ -154,7 +156,7 @@ const Y = (o, b) => {
|
|
|
154
156
|
{
|
|
155
157
|
key: 3,
|
|
156
158
|
class: S(e.value.name),
|
|
157
|
-
style:
|
|
159
|
+
style: $(i.value)
|
|
158
160
|
},
|
|
159
161
|
null,
|
|
160
162
|
6
|
|
@@ -175,6 +177,7 @@ const Y = (o, b) => {
|
|
|
175
177
|
"i",
|
|
176
178
|
{
|
|
177
179
|
class: S(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
180
|
+
[t.iconClass]: !0,
|
|
178
181
|
[t.name]: d.value === "unocss",
|
|
179
182
|
"show-bg": e.value.showBg || e.value.bg,
|
|
180
183
|
default: e.value.size === "default",
|
|
@@ -185,9 +188,10 @@ const Y = (o, b) => {
|
|
|
185
188
|
success: t.success || e.value.type === "success",
|
|
186
189
|
error: e.value.error || e.value.type === "error",
|
|
187
190
|
active: e.value.active,
|
|
188
|
-
disabled: e.value.disabled
|
|
191
|
+
disabled: e.value.disabled,
|
|
192
|
+
...t.$attrs.class || {}
|
|
189
193
|
}]),
|
|
190
|
-
style:
|
|
194
|
+
style: $(i.value),
|
|
191
195
|
onClick: M,
|
|
192
196
|
onDblclick: y,
|
|
193
197
|
onMouseenter: B,
|
|
@@ -199,7 +203,7 @@ const Y = (o, b) => {
|
|
|
199
203
|
{
|
|
200
204
|
key: 0,
|
|
201
205
|
class: S(`iksig ${e.value.name}`),
|
|
202
|
-
style:
|
|
206
|
+
style: $(i.value)
|
|
203
207
|
},
|
|
204
208
|
null,
|
|
205
209
|
6
|
|
@@ -217,7 +221,7 @@ const Y = (o, b) => {
|
|
|
217
221
|
{
|
|
218
222
|
key: 3,
|
|
219
223
|
class: S(e.value.name),
|
|
220
|
-
style:
|
|
224
|
+
style: $(i.value)
|
|
221
225
|
},
|
|
222
226
|
null,
|
|
223
227
|
6
|
|
@@ -250,7 +254,7 @@ const Y = (o, b) => {
|
|
|
250
254
|
}, 8, ["type"]));
|
|
251
255
|
};
|
|
252
256
|
}
|
|
253
|
-
}),
|
|
257
|
+
}), we = /* @__PURE__ */ Y(be, [["__scopeId", "data-v-64b61696"]]), _e = X(we), Q = {
|
|
254
258
|
animation: 200,
|
|
255
259
|
group: "gl",
|
|
256
260
|
disabled: !1,
|
|
@@ -410,7 +414,7 @@ const Y = (o, b) => {
|
|
|
410
414
|
Z(
|
|
411
415
|
() => s.list,
|
|
412
416
|
(v) => {
|
|
413
|
-
d.value =
|
|
417
|
+
d.value = I.cloneDeep(v);
|
|
414
418
|
},
|
|
415
419
|
{
|
|
416
420
|
immediate: !0,
|
|
@@ -437,7 +441,7 @@ const Y = (o, b) => {
|
|
|
437
441
|
};
|
|
438
442
|
return (v, y) => {
|
|
439
443
|
const t = D("el-icon");
|
|
440
|
-
return c(), N(
|
|
444
|
+
return c(), N(_(de), {
|
|
441
445
|
modelValue: d.value,
|
|
442
446
|
"onUpdate:modelValue": y[0] || (y[0] = (a) => d.value = a),
|
|
443
447
|
class: S(["list-group", [i.value.groupClass]]),
|
|
@@ -453,7 +457,7 @@ const Y = (o, b) => {
|
|
|
453
457
|
onEnd: B
|
|
454
458
|
}, {
|
|
455
459
|
item: f(({ element: a }) => [
|
|
456
|
-
|
|
460
|
+
x(
|
|
457
461
|
ne,
|
|
458
462
|
{
|
|
459
463
|
type: "transition",
|
|
@@ -469,7 +473,7 @@ const Y = (o, b) => {
|
|
|
469
473
|
{
|
|
470
474
|
key: 1,
|
|
471
475
|
class: S(["list-group-item", [i.value.itemClass]]),
|
|
472
|
-
style:
|
|
476
|
+
style: $({
|
|
473
477
|
borderRadius: `${i.value.itemStyle.radius}px`,
|
|
474
478
|
marginBottom: `${i.value.itemStyle.bottom}px`,
|
|
475
479
|
backgroundColor: `${i.value.itemStyle.background}`
|
|
@@ -478,7 +482,7 @@ const Y = (o, b) => {
|
|
|
478
482
|
[
|
|
479
483
|
i.value.showIcon && !v.$slots.icon ? (c(), N(t, { key: 0 }, {
|
|
480
484
|
default: f(() => [
|
|
481
|
-
|
|
485
|
+
x(_(pe))
|
|
482
486
|
]),
|
|
483
487
|
_: 1
|
|
484
488
|
/* STABLE */
|
|
@@ -505,7 +509,7 @@ const Y = (o, b) => {
|
|
|
505
509
|
}, 8, ["modelValue", "class", "attrs", "animation", "group", "disabled", "ghost-class", "force-fallback"]);
|
|
506
510
|
};
|
|
507
511
|
}
|
|
508
|
-
}), Be = /* @__PURE__ */ Y(Ce, [["__scopeId", "data-v-3716c05e"]]),
|
|
512
|
+
}), Be = /* @__PURE__ */ Y(Ce, [["__scopeId", "data-v-3716c05e"]]), Ie = X(Be), $e = { class: "check-right" }, xe = { class: "dialog-footer" }, ze = /* @__PURE__ */ A({
|
|
509
513
|
__name: "IkBtnSetting",
|
|
510
514
|
props: /* @__PURE__ */ G({
|
|
511
515
|
list: {
|
|
@@ -570,13 +574,13 @@ const Y = (o, b) => {
|
|
|
570
574
|
return !u && t.value.length && (E.value = !0), !!u;
|
|
571
575
|
}), U = (u) => {
|
|
572
576
|
var r;
|
|
573
|
-
const l =
|
|
577
|
+
const l = I.cloneDeep(a.value);
|
|
574
578
|
l == null || l.forEach((n) => {
|
|
575
|
-
var
|
|
579
|
+
var w;
|
|
576
580
|
if (!t.value.length)
|
|
577
581
|
a.value = [];
|
|
578
582
|
else if (!t.value.includes(n == null ? void 0 : n.key)) {
|
|
579
|
-
const h = (
|
|
583
|
+
const h = (w = a.value) == null ? void 0 : w.findIndex((p) => p.key === n.key);
|
|
580
584
|
h !== -1 && a.value.splice(h, 1), n.show = !1, O.set(n.key, n);
|
|
581
585
|
}
|
|
582
586
|
}), t.value.forEach((n) => {
|
|
@@ -585,7 +589,7 @@ const Y = (o, b) => {
|
|
|
585
589
|
const p = O.get(n);
|
|
586
590
|
p && (p.show = !0, a.value.push(p));
|
|
587
591
|
}
|
|
588
|
-
}), (r = a.value) != null && r.length || (a.value =
|
|
592
|
+
}), (r = a.value) != null && r.length || (a.value = I.cloneDeep(s.list)), u === !0 && (e("sort", I.cloneDeep(a.value)), d.value = I.cloneDeep(a.value));
|
|
589
593
|
}, te = (u) => {
|
|
590
594
|
if (u)
|
|
591
595
|
t.value = s.list.map((l) => l.key);
|
|
@@ -597,12 +601,12 @@ const Y = (o, b) => {
|
|
|
597
601
|
}, W = () => {
|
|
598
602
|
const u = H.local.getItem(v.value);
|
|
599
603
|
try {
|
|
600
|
-
const l =
|
|
604
|
+
const l = I.cloneDeep(s == null ? void 0 : s.list);
|
|
601
605
|
if ((!u || !(u != null && u.length)) && H.local.setItem(
|
|
602
606
|
v.value,
|
|
603
|
-
l.map(({ show: r, type: n, key:
|
|
607
|
+
l.map(({ show: r, type: n, key: w, label: h, width: p, minWidth: g, align: oe }) => ({
|
|
604
608
|
show: r,
|
|
605
|
-
key:
|
|
609
|
+
key: w,
|
|
606
610
|
type: n,
|
|
607
611
|
label: h,
|
|
608
612
|
width: p,
|
|
@@ -636,19 +640,19 @@ const Y = (o, b) => {
|
|
|
636
640
|
}, ae = () => {
|
|
637
641
|
j.value = !1, H.local.setItem(
|
|
638
642
|
v.value,
|
|
639
|
-
a.value.map(({ show: u, key: l, label: r, value: n, width:
|
|
643
|
+
a.value.map(({ show: u, key: l, label: r, value: n, width: w, minWidth: h, align: p }) => ({
|
|
640
644
|
show: u,
|
|
641
645
|
key: l,
|
|
642
646
|
label: r,
|
|
643
647
|
value: n,
|
|
644
|
-
width:
|
|
648
|
+
width: w,
|
|
645
649
|
minWidth: h,
|
|
646
650
|
align: p
|
|
647
651
|
}))
|
|
648
|
-
), e("sort",
|
|
652
|
+
), e("sort", I.cloneDeep(a.value)), d.value = I.cloneDeep(a.value);
|
|
649
653
|
};
|
|
650
654
|
return (u, l) => {
|
|
651
|
-
const r = D("el-button"), n = D("el-checkbox"),
|
|
655
|
+
const r = D("el-button"), n = D("el-checkbox"), w = D("el-checkbox-group"), h = D("el-dialog"), p = ie("role");
|
|
652
656
|
return c(), m(
|
|
653
657
|
P,
|
|
654
658
|
null,
|
|
@@ -676,7 +680,7 @@ const Y = (o, b) => {
|
|
|
676
680
|
fn: f(() => [
|
|
677
681
|
F(' {{ t("action.setting") }} '),
|
|
678
682
|
z(
|
|
679
|
-
" " + T(
|
|
683
|
+
" " + T(_(i)("设置")),
|
|
680
684
|
1
|
|
681
685
|
/* TEXT */
|
|
682
686
|
)
|
|
@@ -687,7 +691,7 @@ const Y = (o, b) => {
|
|
|
687
691
|
[p, u.$props.role]
|
|
688
692
|
]) : F("v-if", !0),
|
|
689
693
|
o.btnType === "icon" ? J((c(), N(
|
|
690
|
-
|
|
694
|
+
_(_e),
|
|
691
695
|
K({
|
|
692
696
|
key: 1,
|
|
693
697
|
name: "iksvg_shezhi-daohang",
|
|
@@ -700,11 +704,11 @@ const Y = (o, b) => {
|
|
|
700
704
|
)), [
|
|
701
705
|
[p, u.$props.role]
|
|
702
706
|
]) : F("v-if", !0),
|
|
703
|
-
|
|
707
|
+
x(h, {
|
|
704
708
|
modelValue: j.value,
|
|
705
709
|
"onUpdate:modelValue": l[3] || (l[3] = (g) => j.value = g),
|
|
706
710
|
draggable: "",
|
|
707
|
-
width: o.inline ?
|
|
711
|
+
width: o.inline ? _(k).l : _(k).sl,
|
|
708
712
|
"close-on-click-modal": !1,
|
|
709
713
|
"close-on-press-escape": !1,
|
|
710
714
|
title: "显示字段",
|
|
@@ -712,13 +716,13 @@ const Y = (o, b) => {
|
|
|
712
716
|
onOpen: W
|
|
713
717
|
}, {
|
|
714
718
|
footer: f(() => [
|
|
715
|
-
C("div",
|
|
716
|
-
|
|
719
|
+
C("div", xe, [
|
|
720
|
+
x(r, {
|
|
717
721
|
onClick: l[2] || (l[2] = (g) => j.value = !1)
|
|
718
722
|
}, {
|
|
719
723
|
default: f(() => [
|
|
720
724
|
z(
|
|
721
|
-
T(
|
|
725
|
+
T(_(i)("关闭")) + " ",
|
|
722
726
|
1
|
|
723
727
|
/* TEXT */
|
|
724
728
|
),
|
|
@@ -727,14 +731,14 @@ const Y = (o, b) => {
|
|
|
727
731
|
_: 1
|
|
728
732
|
/* STABLE */
|
|
729
733
|
}),
|
|
730
|
-
|
|
734
|
+
x(r, {
|
|
731
735
|
type: "primary",
|
|
732
736
|
disabled: a.value.length < 2,
|
|
733
737
|
onClick: ae
|
|
734
738
|
}, {
|
|
735
739
|
default: f(() => [
|
|
736
740
|
z(
|
|
737
|
-
T(a.value.length < 2 ? "至少选择一个字段" :
|
|
741
|
+
T(a.value.length < 2 ? "至少选择一个字段" : _(i)("确定")),
|
|
738
742
|
1
|
|
739
743
|
/* TEXT */
|
|
740
744
|
)
|
|
@@ -754,10 +758,10 @@ const Y = (o, b) => {
|
|
|
754
758
|
C(
|
|
755
759
|
"div",
|
|
756
760
|
{
|
|
757
|
-
style:
|
|
761
|
+
style: $({ flex: o.inline ? 2 : 1 })
|
|
758
762
|
},
|
|
759
763
|
[
|
|
760
|
-
|
|
764
|
+
x(n, {
|
|
761
765
|
modelValue: E.value,
|
|
762
766
|
"onUpdate:modelValue": l[0] || (l[0] = (g) => E.value = g),
|
|
763
767
|
class: "single-line",
|
|
@@ -770,7 +774,7 @@ const Y = (o, b) => {
|
|
|
770
774
|
_: 1
|
|
771
775
|
/* STABLE */
|
|
772
776
|
}, 8, ["modelValue", "indeterminate"]),
|
|
773
|
-
|
|
777
|
+
x(w, {
|
|
774
778
|
modelValue: t.value,
|
|
775
779
|
"onUpdate:modelValue": l[1] || (l[1] = (g) => t.value = g),
|
|
776
780
|
onChange: U
|
|
@@ -805,8 +809,8 @@ const Y = (o, b) => {
|
|
|
805
809
|
4
|
|
806
810
|
/* STYLE */
|
|
807
811
|
),
|
|
808
|
-
C("div",
|
|
809
|
-
|
|
812
|
+
C("div", $e, [
|
|
813
|
+
x(_(Ie), {
|
|
810
814
|
list: a.value,
|
|
811
815
|
"item-style": { bottom: 4 },
|
|
812
816
|
onChange: le
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-64b61696]{display:flex}.ik-svg-icon.ik-icon-span[data-v-64b61696]:not(:first-child){margin-left:var(--ik-margin-s-8)}.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,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as C, computed as k, resolveComponent as f, openBlock as t, createElementBlock as n, Fragment as S, normalizeClass as r, normalizeStyle as v, createElementVNode as d, createBlock as h, withCtx as p, createTextVNode as z, toDisplayString as $, mergeModels as V, useModel as j, createCommentVNode as g, renderSlot as _, createVNode as D, unref as N } from "vue";
|
|
2
2
|
import { ikColor as E } from "iking-utils-pro";
|
|
3
|
-
const
|
|
3
|
+
const I = (o, s) => (o.install = (i) => {
|
|
4
4
|
for (const e of [o, ...Object.values({})])
|
|
5
5
|
i.component(e.name, e);
|
|
6
|
-
}, o),
|
|
6
|
+
}, o), x = (o, s) => {
|
|
7
7
|
const i = o.__vccOpts || o;
|
|
8
|
-
for (const [e,
|
|
9
|
-
i[e] =
|
|
8
|
+
for (const [e, a] of s)
|
|
9
|
+
i[e] = a;
|
|
10
10
|
return i;
|
|
11
11
|
}, O = {
|
|
12
12
|
key: 1,
|
|
@@ -16,7 +16,7 @@ const x = (o, s) => (o.install = (i) => {
|
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "h-[1em] w-[1em]",
|
|
18
18
|
"aria-hidden": "true"
|
|
19
|
-
}, Y = ["xlink:href"], q = ["src"], F = /* @__PURE__ */
|
|
19
|
+
}, Y = ["xlink:href"], q = ["src"], F = /* @__PURE__ */ C({
|
|
20
20
|
name: "IkSvgIcon",
|
|
21
21
|
__name: "index",
|
|
22
22
|
props: {
|
|
@@ -40,11 +40,12 @@ const x = (o, s) => (o.install = (i) => {
|
|
|
40
40
|
title: {},
|
|
41
41
|
type: { default: "primary" },
|
|
42
42
|
warning: { type: Boolean },
|
|
43
|
-
width: {}
|
|
43
|
+
width: {},
|
|
44
|
+
iconClass: { default: "" }
|
|
44
45
|
},
|
|
45
46
|
emits: ["click", "mouseenter", "mouseleave", "dblclick"],
|
|
46
47
|
setup(o, { emit: s }) {
|
|
47
|
-
const i = o, e = k(() => i),
|
|
48
|
+
const i = o, e = k(() => i), a = k(() => {
|
|
48
49
|
const { name: l } = e.value;
|
|
49
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";
|
|
50
51
|
}), u = k(() => {
|
|
@@ -68,7 +69,7 @@ const x = (o, s) => (o.install = (i) => {
|
|
|
68
69
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
69
70
|
...l.length && { transform: l.join(" ") },
|
|
70
71
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
71
|
-
...e.value.color &&
|
|
72
|
+
...e.value.color && a.value !== "iksig" ? {
|
|
72
73
|
"--ik-icon-deep-color": e.value.color,
|
|
73
74
|
"--ik-icon-shallow-color": e.value.colorLight || E.setOpacity(e.value.color, e.value.opacity)
|
|
74
75
|
} : {}
|
|
@@ -85,16 +86,17 @@ const x = (o, s) => (o.install = (i) => {
|
|
|
85
86
|
};
|
|
86
87
|
return (l, m) => {
|
|
87
88
|
const M = f("el-tooltip"), T = f("el-button");
|
|
88
|
-
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (
|
|
89
|
+
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (t(), n(
|
|
89
90
|
S,
|
|
90
91
|
{ key: 0 },
|
|
91
92
|
[
|
|
92
|
-
e.value.notip || !e.value.title ? (
|
|
93
|
+
e.value.notip || !e.value.title ? (t(), n(
|
|
93
94
|
"i",
|
|
94
95
|
{
|
|
95
96
|
key: 0,
|
|
96
97
|
class: r(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
97
|
-
[l.
|
|
98
|
+
[l.iconClass]: !0,
|
|
99
|
+
[l.name]: a.value === "unocss",
|
|
98
100
|
"show-bg": e.value.showBg || e.value.bg,
|
|
99
101
|
default: e.value.size === "default",
|
|
100
102
|
small: e.value.size === "small",
|
|
@@ -113,7 +115,7 @@ const x = (o, s) => (o.install = (i) => {
|
|
|
113
115
|
onMouseleave: w
|
|
114
116
|
},
|
|
115
117
|
[
|
|
116
|
-
|
|
118
|
+
a.value === "iksig" ? (t(), n(
|
|
117
119
|
"i",
|
|
118
120
|
{
|
|
119
121
|
key: 0,
|
|
@@ -123,15 +125,15 @@ const x = (o, s) => (o.install = (i) => {
|
|
|
123
125
|
null,
|
|
124
126
|
6
|
|
125
127
|
/* CLASS, STYLE */
|
|
126
|
-
)) :
|
|
128
|
+
)) : a.value === "svg" ? (t(), n("svg", O, [
|
|
127
129
|
d("use", {
|
|
128
130
|
"xlink:href": `#${e.value.name}`
|
|
129
131
|
}, null, 8, L)
|
|
130
|
-
])) :
|
|
132
|
+
])) : a.value === "img" ? (t(), n("img", {
|
|
131
133
|
key: 2,
|
|
132
134
|
src: e.value.name,
|
|
133
135
|
class: "h-[1em] w-[1em]"
|
|
134
|
-
}, null, 8, W)) : (
|
|
136
|
+
}, null, 8, W)) : (t(), n(
|
|
135
137
|
"i",
|
|
136
138
|
{
|
|
137
139
|
key: 3,
|
|
@@ -145,7 +147,7 @@ const x = (o, s) => (o.install = (i) => {
|
|
|
145
147
|
],
|
|
146
148
|
38
|
|
147
149
|
/* CLASS, STYLE, NEED_HYDRATION */
|
|
148
|
-
)) : (
|
|
150
|
+
)) : (t(), h(M, {
|
|
149
151
|
key: 1,
|
|
150
152
|
content: e.value.title,
|
|
151
153
|
placement: "top",
|
|
@@ -157,7 +159,8 @@ const x = (o, s) => (o.install = (i) => {
|
|
|
157
159
|
"i",
|
|
158
160
|
{
|
|
159
161
|
class: r(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
160
|
-
[l.
|
|
162
|
+
[l.iconClass]: !0,
|
|
163
|
+
[l.name]: a.value === "unocss",
|
|
161
164
|
"show-bg": e.value.showBg || e.value.bg,
|
|
162
165
|
default: e.value.size === "default",
|
|
163
166
|
small: e.value.size === "small",
|
|
@@ -167,7 +170,8 @@ const x = (o, s) => (o.install = (i) => {
|
|
|
167
170
|
success: l.success || e.value.type === "success",
|
|
168
171
|
error: e.value.error || e.value.type === "error",
|
|
169
172
|
active: e.value.active,
|
|
170
|
-
disabled: e.value.disabled
|
|
173
|
+
disabled: e.value.disabled,
|
|
174
|
+
...l.$attrs.class || {}
|
|
171
175
|
}]),
|
|
172
176
|
style: v(u.value),
|
|
173
177
|
onClick: y,
|
|
@@ -176,7 +180,7 @@ const x = (o, s) => (o.install = (i) => {
|
|
|
176
180
|
onMouseleave: w
|
|
177
181
|
},
|
|
178
182
|
[
|
|
179
|
-
|
|
183
|
+
a.value === "iksig" ? (t(), n(
|
|
180
184
|
"i",
|
|
181
185
|
{
|
|
182
186
|
key: 0,
|
|
@@ -186,15 +190,15 @@ const x = (o, s) => (o.install = (i) => {
|
|
|
186
190
|
null,
|
|
187
191
|
6
|
|
188
192
|
/* CLASS, STYLE */
|
|
189
|
-
)) :
|
|
193
|
+
)) : a.value === "svg" ? (t(), n("svg", X, [
|
|
190
194
|
d("use", {
|
|
191
195
|
"xlink:href": `#${e.value.name}`
|
|
192
196
|
}, null, 8, Y)
|
|
193
|
-
])) :
|
|
197
|
+
])) : a.value === "img" ? (t(), n("img", {
|
|
194
198
|
key: 2,
|
|
195
199
|
src: e.value.name,
|
|
196
200
|
class: "h-[1em] w-[1em]"
|
|
197
|
-
}, null, 8, q)) : (
|
|
201
|
+
}, null, 8, q)) : (t(), n(
|
|
198
202
|
"i",
|
|
199
203
|
{
|
|
200
204
|
key: 3,
|
|
@@ -216,12 +220,12 @@ const x = (o, s) => (o.install = (i) => {
|
|
|
216
220
|
],
|
|
217
221
|
64
|
|
218
222
|
/* STABLE_FRAGMENT */
|
|
219
|
-
)) : (
|
|
223
|
+
)) : (t(), h(T, {
|
|
220
224
|
key: 1,
|
|
221
225
|
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
222
226
|
}, {
|
|
223
227
|
default: p(() => [
|
|
224
|
-
|
|
228
|
+
z(
|
|
225
229
|
$(e.value.title),
|
|
226
230
|
1
|
|
227
231
|
/* TEXT */
|
|
@@ -232,7 +236,7 @@ const x = (o, s) => (o.install = (i) => {
|
|
|
232
236
|
}, 8, ["type"]));
|
|
233
237
|
};
|
|
234
238
|
}
|
|
235
|
-
}), A = /* @__PURE__ */
|
|
239
|
+
}), A = /* @__PURE__ */ x(F, [["__scopeId", "data-v-64b61696"]]), G = I(A), H = { class: "align-center flex justify-between" }, J = { class: "align-center flex" }, K = { style: { overflow: "hidden" } }, P = /* @__PURE__ */ C({
|
|
236
240
|
__name: "index",
|
|
237
241
|
props: /* @__PURE__ */ V({
|
|
238
242
|
showToggle: {
|
|
@@ -251,9 +255,9 @@ const x = (o, s) => (o.install = (i) => {
|
|
|
251
255
|
const s = j(o, "modelValue"), i = () => {
|
|
252
256
|
s.value = !s.value;
|
|
253
257
|
};
|
|
254
|
-
return (e,
|
|
258
|
+
return (e, a) => {
|
|
255
259
|
const u = f("el-button"), c = f("el-card");
|
|
256
|
-
return
|
|
260
|
+
return t(), h(c, {
|
|
257
261
|
class: r(["ik-collapse-box-card", s.value ? "hiddened" : ""]),
|
|
258
262
|
shadow: "hover"
|
|
259
263
|
}, {
|
|
@@ -265,14 +269,14 @@ const x = (o, s) => (o.install = (i) => {
|
|
|
265
269
|
g(" card header右侧内容 "),
|
|
266
270
|
_(e.$slots, "header-right", {}, void 0, !0),
|
|
267
271
|
g(" 展开、收起按钮 "),
|
|
268
|
-
o.showToggle ? (
|
|
272
|
+
o.showToggle ? (t(), h(u, {
|
|
269
273
|
key: 0,
|
|
270
274
|
link: "",
|
|
271
275
|
class: "ml-[8px]",
|
|
272
|
-
onClick:
|
|
276
|
+
onClick: a[0] || (a[0] = (y) => i())
|
|
273
277
|
}, {
|
|
274
278
|
default: p(() => [
|
|
275
|
-
|
|
279
|
+
z(
|
|
276
280
|
$(s.value ? "展开" : "收起") + " ",
|
|
277
281
|
1
|
|
278
282
|
/* TEXT */
|
|
@@ -299,7 +303,7 @@ const x = (o, s) => (o.install = (i) => {
|
|
|
299
303
|
}, 8, ["class"]);
|
|
300
304
|
};
|
|
301
305
|
}
|
|
302
|
-
}), Q = /* @__PURE__ */
|
|
306
|
+
}), Q = /* @__PURE__ */ x(P, [["__scopeId", "data-v-34b0a02c"]]), Z = I(Q);
|
|
303
307
|
export {
|
|
304
308
|
Z as IkCollapseCard,
|
|
305
309
|
Z as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-64b61696]{display:flex}.ik-svg-icon.ik-icon-span[data-v-64b61696]:not(:first-child){margin-left:var(--ik-margin-s-8)}.ik-collapse-box-card[data-v-34b0a02c]{flex:1;margin-bottom:20px;--el-card-border-radius: 0}.ik-collapse-box-card[data-v-34b0a02c] .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-34b0a02c] .el-card__header .el-button.is-link:hover{--ik-icon-deep-color: var(--ik-color-tag-primary);--ik-icon-shallow-color: var(--ik-icon-shallow-color-hover)}.ik-collapse-box-card[data-v-34b0a02c] .ik-svg-icon{transition:all .25s}.ik-collapse-box-card[data-v-34b0a02c] .ik-svg-icon.toogle{transform:rotate(-90deg)}.ik-collapse-box-card.hiddened[data-v-34b0a02c] .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-34b0a02c] .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-34b0a02c] .el-card__body table>tbody>tr>td>.cell .cell-icon{font-size:14px}.ik-collapse-box-card[data-v-34b0a02c] .el-card__body table>tbody>tr>td>.cell .el-button span{margin-left:3px}
|
|
@@ -1375,7 +1375,8 @@ const Rt = (o, a) => {
|
|
|
1375
1375
|
title: {},
|
|
1376
1376
|
type: { default: "primary" },
|
|
1377
1377
|
warning: { type: Boolean },
|
|
1378
|
-
width: {}
|
|
1378
|
+
width: {},
|
|
1379
|
+
iconClass: { default: "" }
|
|
1379
1380
|
},
|
|
1380
1381
|
emits: ["click", "mouseenter", "mouseleave", "dblclick"],
|
|
1381
1382
|
setup(o, { emit: a }) {
|
|
@@ -1429,6 +1430,7 @@ const Rt = (o, a) => {
|
|
|
1429
1430
|
{
|
|
1430
1431
|
key: 0,
|
|
1431
1432
|
class: Y(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1433
|
+
[f.iconClass]: !0,
|
|
1432
1434
|
[f.name]: e.value === "unocss",
|
|
1433
1435
|
"show-bg": t.value.showBg || t.value.bg,
|
|
1434
1436
|
default: t.value.size === "default",
|
|
@@ -1492,6 +1494,7 @@ const Rt = (o, a) => {
|
|
|
1492
1494
|
"i",
|
|
1493
1495
|
{
|
|
1494
1496
|
class: Y(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1497
|
+
[f.iconClass]: !0,
|
|
1495
1498
|
[f.name]: e.value === "unocss",
|
|
1496
1499
|
"show-bg": t.value.showBg || t.value.bg,
|
|
1497
1500
|
default: t.value.size === "default",
|
|
@@ -1502,7 +1505,8 @@ const Rt = (o, a) => {
|
|
|
1502
1505
|
success: f.success || t.value.type === "success",
|
|
1503
1506
|
error: t.value.error || t.value.type === "error",
|
|
1504
1507
|
active: t.value.active,
|
|
1505
|
-
disabled: t.value.disabled
|
|
1508
|
+
disabled: t.value.disabled,
|
|
1509
|
+
...f.$attrs.class || {}
|
|
1506
1510
|
}]),
|
|
1507
1511
|
style: ae(i.value),
|
|
1508
1512
|
onClick: s,
|
|
@@ -1567,7 +1571,7 @@ const Rt = (o, a) => {
|
|
|
1567
1571
|
}, 8, ["type"]));
|
|
1568
1572
|
};
|
|
1569
1573
|
}
|
|
1570
|
-
}), As = /* @__PURE__ */ Rt(Ps, [["__scopeId", "data-v-
|
|
1574
|
+
}), As = /* @__PURE__ */ Rt(Ps, [["__scopeId", "data-v-64b61696"]]), Be = Le(As);
|
|
1571
1575
|
function mi(o) {
|
|
1572
1576
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
1573
1577
|
}
|