iking-web-ui-pro 0.2.4 → 0.2.6
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 +586 -571
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKDetailPreviewFiles/style.css +1 -1
- package/dist/IKExpandCollapse/ik.index.es.js +123 -120
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +491 -476
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +142 -139
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +756 -741
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +125 -122
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +252 -249
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +129 -126
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +530 -515
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +196 -193
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +397 -394
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1122 -1119
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +314 -308
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +968 -965
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +148 -145
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +106 -103
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +963 -944
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +265 -253
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/Provider/ik.index.es.js +1611 -0
- package/dist/Provider/ik.index.umd.js +17 -0
- package/dist/index.es.js +38689 -37072
- package/dist/index.umd.js +95 -79
- package/dist/src/components/IKDetailPreviewFiles/index.d.ts +1 -1
- package/dist/src/components/IKDetailPreviewFiles/src/IKDetailPreviewFiles.vue.d.ts +1 -1
- package/dist/src/components/IKPreviewFile/index.d.ts +3 -3
- package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +1 -1
- package/dist/src/components/IkApprovalProcess/index.d.ts +1 -1
- package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +1 -1
- package/dist/src/components/IkDescription/index.d.ts +3 -3
- package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +1 -1
- package/dist/src/components/IkPreviewFileDialog/index.d.ts +1 -1
- package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +1 -1
- package/dist/src/components/IkTinymce/index.d.ts +1 -1
- package/dist/src/components/IkTinymce/src/index.vue.d.ts +1 -1
- package/dist/src/components/IkUploadFile/index.d.ts +3 -3
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +1 -1
- package/dist/src/components/IkUploadImage/index.d.ts +3 -3
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +1 -1
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +66 -0
- package/dist/src/components/Provider/index.d.ts +139 -0
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/utils/use-provider.d.ts +8 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ikColor as
|
|
3
|
-
const
|
|
4
|
-
if (d.install = (
|
|
5
|
-
for (const
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
for (const [
|
|
9
|
-
d[
|
|
1
|
+
import { defineComponent as B, inject as O, computed as q, resolveComponent as v, openBlock as i, createElementBlock as l, normalizeClass as r, normalizeStyle as p, createCommentVNode as V, createElementVNode as x, createBlock as f, withCtx as g, createTextVNode as D, toDisplayString as G, mergeModels as A, useModel as E, ref as k, watch as H, unref as y, withModifiers as P, createVNode as j, Fragment as C, renderList as S } from "vue";
|
|
2
|
+
import { ikColor as U, _ as W } from "iking-utils-pro";
|
|
3
|
+
const T = (d, s) => {
|
|
4
|
+
if (d.install = (c) => {
|
|
5
|
+
for (const e of [d, ...Object.values(s ?? {})])
|
|
6
|
+
c.component(e.name, e);
|
|
7
|
+
}, s)
|
|
8
|
+
for (const [c, e] of Object.entries(s))
|
|
9
|
+
d[c] = e;
|
|
10
10
|
return d;
|
|
11
|
-
},
|
|
11
|
+
}, X = "4383166", Y = "中台-双色图标", F = "iconfont", K = "iksvg_", Q = "", R = [
|
|
12
12
|
{
|
|
13
13
|
icon_id: "40615013",
|
|
14
14
|
name: "开票记录",
|
|
@@ -1549,14 +1549,14 @@ const V = (d, e) => {
|
|
|
1549
1549
|
unicode: "e668",
|
|
1550
1550
|
unicode_decimal: 58984
|
|
1551
1551
|
}
|
|
1552
|
-
],
|
|
1553
|
-
id:
|
|
1554
|
-
name:
|
|
1555
|
-
font_family:
|
|
1556
|
-
css_prefix_text:
|
|
1557
|
-
description:
|
|
1558
|
-
glyphs:
|
|
1559
|
-
},
|
|
1552
|
+
], Z = {
|
|
1553
|
+
id: X,
|
|
1554
|
+
name: Y,
|
|
1555
|
+
font_family: F,
|
|
1556
|
+
css_prefix_text: K,
|
|
1557
|
+
description: Q,
|
|
1558
|
+
glyphs: R
|
|
1559
|
+
}, ee = "4383216", ne = "中台-单色图标", ie = "iconfont", ce = "iksig_", oe = "", ae = [
|
|
1560
1560
|
{
|
|
1561
1561
|
icon_id: "7429411",
|
|
1562
1562
|
name: "子流程",
|
|
@@ -2537,30 +2537,30 @@ const V = (d, e) => {
|
|
|
2537
2537
|
unicode: "e665",
|
|
2538
2538
|
unicode_decimal: 58981
|
|
2539
2539
|
}
|
|
2540
|
-
],
|
|
2541
|
-
id:
|
|
2542
|
-
name:
|
|
2543
|
-
font_family:
|
|
2544
|
-
css_prefix_text:
|
|
2545
|
-
description:
|
|
2546
|
-
glyphs:
|
|
2547
|
-
},
|
|
2548
|
-
const
|
|
2549
|
-
for (const [
|
|
2550
|
-
|
|
2551
|
-
return
|
|
2552
|
-
},
|
|
2540
|
+
], de = {
|
|
2541
|
+
id: ee,
|
|
2542
|
+
name: ne,
|
|
2543
|
+
font_family: ie,
|
|
2544
|
+
css_prefix_text: ce,
|
|
2545
|
+
description: oe,
|
|
2546
|
+
glyphs: ae
|
|
2547
|
+
}, M = (d, s) => {
|
|
2548
|
+
const c = d.__vccOpts || d;
|
|
2549
|
+
for (const [e, a] of s)
|
|
2550
|
+
c[e] = a;
|
|
2551
|
+
return c;
|
|
2552
|
+
}, ue = {
|
|
2553
2553
|
key: 0,
|
|
2554
2554
|
class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
|
|
2555
|
-
},
|
|
2555
|
+
}, _e = {
|
|
2556
2556
|
key: 1,
|
|
2557
2557
|
class: "h-[1em] w-[1em]",
|
|
2558
2558
|
"aria-hidden": "true"
|
|
2559
|
-
},
|
|
2559
|
+
}, le = ["xlink:href"], se = ["src"], me = {
|
|
2560
2560
|
key: 1,
|
|
2561
2561
|
class: "h-[1em] w-[1em]",
|
|
2562
2562
|
"aria-hidden": "true"
|
|
2563
|
-
},
|
|
2563
|
+
}, te = ["xlink:href"], fe = ["src"], ge = /* @__PURE__ */ B({
|
|
2564
2564
|
name: "IkSvgIcon",
|
|
2565
2565
|
__name: "index",
|
|
2566
2566
|
props: {
|
|
@@ -2587,13 +2587,16 @@ const V = (d, e) => {
|
|
|
2587
2587
|
tableIconType: { default: "icon" }
|
|
2588
2588
|
},
|
|
2589
2589
|
setup(d) {
|
|
2590
|
-
const
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
}),
|
|
2590
|
+
const s = d, c = O("iconConfig"), e = q(() => ({
|
|
2591
|
+
...(c == null ? void 0 : c.value) || {},
|
|
2592
|
+
...s
|
|
2593
|
+
})), a = q(() => {
|
|
2594
|
+
const { name: n } = e.value;
|
|
2595
|
+
return /^http?:\/\//.test(n) ? "img" : /i-[^:]+:[^:]+/.test(n) ? "unocss" : n != null && n.startsWith("iksig") ? "iksig" : n != null && n.includes(":") ? "iconify" : n != null && n.startsWith("iksvg") ? "svg" : "i";
|
|
2596
|
+
}), t = q(() => {
|
|
2594
2597
|
const n = [];
|
|
2595
|
-
if (e.flip)
|
|
2596
|
-
switch (e.flip) {
|
|
2598
|
+
if (e.value.flip)
|
|
2599
|
+
switch (e.value.flip) {
|
|
2597
2600
|
case "horizontal":
|
|
2598
2601
|
n.push("rotateY(180deg)");
|
|
2599
2602
|
break;
|
|
@@ -2604,67 +2607,67 @@ const V = (d, e) => {
|
|
|
2604
2607
|
n.push("rotateX(180deg)"), n.push("rotateY(180deg)");
|
|
2605
2608
|
break;
|
|
2606
2609
|
}
|
|
2607
|
-
e.rotate && n.push(`rotate(${e.rotate % 360}deg)`);
|
|
2608
|
-
const
|
|
2609
|
-
...e.color && { color: e.color },
|
|
2610
|
-
...e.size && { fontSize: typeof e.size == "number" ? `${e.size}px` : e.size },
|
|
2610
|
+
e.value.rotate && n.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
2611
|
+
const h = {
|
|
2612
|
+
...e.value.color && { color: e.value.color },
|
|
2613
|
+
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
2611
2614
|
...n.length && { transform: n.join(" ") },
|
|
2612
|
-
padding: e.showBg || e.bg ? e.padding : 0,
|
|
2613
|
-
...e.color &&
|
|
2614
|
-
"--ik-color-icon-dark": e.color,
|
|
2615
|
-
"--ik-color-icon-light": e.colorLight ||
|
|
2615
|
+
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
2616
|
+
...e.value.color && a.value !== "iksig" ? {
|
|
2617
|
+
"--ik-color-icon-dark": e.value.color,
|
|
2618
|
+
"--ik-color-icon-light": e.value.colorLight || U.setOpacity(e.value.color, e.value.opacity)
|
|
2616
2619
|
} : {}
|
|
2617
2620
|
};
|
|
2618
|
-
return e.width && (
|
|
2621
|
+
return e.value.width && (h.width = h.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), h;
|
|
2619
2622
|
});
|
|
2620
|
-
return (n,
|
|
2621
|
-
const
|
|
2622
|
-
return
|
|
2623
|
-
|
|
2623
|
+
return (n, h) => {
|
|
2624
|
+
const w = v("el-tooltip"), z = v("el-button");
|
|
2625
|
+
return e.value.tableIconType === "icon" ? (i(), l("span", ue, [
|
|
2626
|
+
e.value.notip || !e.value.title ? (i(), l(
|
|
2624
2627
|
"i",
|
|
2625
2628
|
{
|
|
2626
2629
|
key: 0,
|
|
2627
|
-
class:
|
|
2628
|
-
[n.name]:
|
|
2629
|
-
"show-bg":
|
|
2630
|
-
default:
|
|
2631
|
-
small:
|
|
2632
|
-
big:
|
|
2633
|
-
warning:
|
|
2634
|
-
primary:
|
|
2635
|
-
success: n.success || e.type === "success",
|
|
2636
|
-
error:
|
|
2637
|
-
active:
|
|
2638
|
-
disabled:
|
|
2630
|
+
class: r(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
2631
|
+
[n.name]: a.value === "unocss",
|
|
2632
|
+
"show-bg": e.value.showBg || e.value.bg,
|
|
2633
|
+
default: e.value.size === "default",
|
|
2634
|
+
small: e.value.size === "small",
|
|
2635
|
+
big: e.value.size === "big",
|
|
2636
|
+
warning: e.value.warning || e.value.type === "warning",
|
|
2637
|
+
primary: e.value.primary || e.value.type === "primary",
|
|
2638
|
+
success: n.success || e.value.type === "success",
|
|
2639
|
+
error: e.value.error || e.value.type === "error",
|
|
2640
|
+
active: e.value.active,
|
|
2641
|
+
disabled: e.value.disabled
|
|
2639
2642
|
}]),
|
|
2640
|
-
style:
|
|
2643
|
+
style: p(t.value)
|
|
2641
2644
|
},
|
|
2642
2645
|
[
|
|
2643
|
-
|
|
2644
|
-
|
|
2646
|
+
V(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
2647
|
+
a.value === "iksig" ? (i(), l(
|
|
2645
2648
|
"i",
|
|
2646
2649
|
{
|
|
2647
2650
|
key: 0,
|
|
2648
|
-
class:
|
|
2649
|
-
style:
|
|
2651
|
+
class: r(`iksig ${e.value.name}`),
|
|
2652
|
+
style: p(t.value)
|
|
2650
2653
|
},
|
|
2651
2654
|
null,
|
|
2652
2655
|
6
|
|
2653
2656
|
/* CLASS, STYLE */
|
|
2654
|
-
)) :
|
|
2655
|
-
|
|
2656
|
-
"xlink:href": `#${
|
|
2657
|
-
}, null, 8,
|
|
2658
|
-
])) :
|
|
2657
|
+
)) : a.value === "svg" ? (i(), l("svg", _e, [
|
|
2658
|
+
x("use", {
|
|
2659
|
+
"xlink:href": `#${e.value.name}`
|
|
2660
|
+
}, null, 8, le)
|
|
2661
|
+
])) : a.value === "img" ? (i(), l("img", {
|
|
2659
2662
|
key: 2,
|
|
2660
|
-
src:
|
|
2663
|
+
src: e.value.name,
|
|
2661
2664
|
class: "h-[1em] w-[1em]"
|
|
2662
|
-
}, null, 8,
|
|
2665
|
+
}, null, 8, se)) : (i(), l(
|
|
2663
2666
|
"i",
|
|
2664
2667
|
{
|
|
2665
2668
|
key: 3,
|
|
2666
|
-
class:
|
|
2667
|
-
style:
|
|
2669
|
+
class: r(e.value.name),
|
|
2670
|
+
style: p(t.value)
|
|
2668
2671
|
},
|
|
2669
2672
|
null,
|
|
2670
2673
|
6
|
|
@@ -2673,54 +2676,54 @@ const V = (d, e) => {
|
|
|
2673
2676
|
],
|
|
2674
2677
|
6
|
|
2675
2678
|
/* CLASS, STYLE */
|
|
2676
|
-
)) : (
|
|
2679
|
+
)) : (i(), f(w, {
|
|
2677
2680
|
key: 1,
|
|
2678
|
-
content:
|
|
2681
|
+
content: e.value.title,
|
|
2679
2682
|
placement: "top"
|
|
2680
2683
|
}, {
|
|
2681
|
-
default:
|
|
2682
|
-
|
|
2684
|
+
default: g(() => [
|
|
2685
|
+
x(
|
|
2683
2686
|
"i",
|
|
2684
2687
|
{
|
|
2685
|
-
class:
|
|
2686
|
-
[n.name]:
|
|
2687
|
-
"show-bg":
|
|
2688
|
-
default:
|
|
2689
|
-
small:
|
|
2690
|
-
big:
|
|
2691
|
-
warning:
|
|
2692
|
-
primary: n.primary || e.type === "primary",
|
|
2693
|
-
success: n.success || e.type === "success",
|
|
2694
|
-
error:
|
|
2695
|
-
active:
|
|
2688
|
+
class: r(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
2689
|
+
[n.name]: a.value === "unocss",
|
|
2690
|
+
"show-bg": e.value.showBg || e.value.bg,
|
|
2691
|
+
default: e.value.size === "default",
|
|
2692
|
+
small: e.value.size === "small",
|
|
2693
|
+
big: e.value.size === "big",
|
|
2694
|
+
warning: e.value.warning || e.value.type === "warning",
|
|
2695
|
+
primary: n.primary || e.value.type === "primary",
|
|
2696
|
+
success: n.success || e.value.type === "success",
|
|
2697
|
+
error: e.value.error || e.value.type === "error",
|
|
2698
|
+
active: e.value.active
|
|
2696
2699
|
}]),
|
|
2697
|
-
style:
|
|
2700
|
+
style: p(t.value)
|
|
2698
2701
|
},
|
|
2699
2702
|
[
|
|
2700
|
-
|
|
2703
|
+
a.value === "iksig" ? (i(), l(
|
|
2701
2704
|
"i",
|
|
2702
2705
|
{
|
|
2703
2706
|
key: 0,
|
|
2704
|
-
class:
|
|
2705
|
-
style:
|
|
2707
|
+
class: r(`iksig ${e.value.name}`),
|
|
2708
|
+
style: p(t.value)
|
|
2706
2709
|
},
|
|
2707
2710
|
null,
|
|
2708
2711
|
6
|
|
2709
2712
|
/* CLASS, STYLE */
|
|
2710
|
-
)) :
|
|
2711
|
-
|
|
2712
|
-
"xlink:href": `#${
|
|
2713
|
-
}, null, 8,
|
|
2714
|
-
])) :
|
|
2713
|
+
)) : a.value === "svg" ? (i(), l("svg", me, [
|
|
2714
|
+
x("use", {
|
|
2715
|
+
"xlink:href": `#${e.value.name}`
|
|
2716
|
+
}, null, 8, te)
|
|
2717
|
+
])) : a.value === "img" ? (i(), l("img", {
|
|
2715
2718
|
key: 2,
|
|
2716
|
-
src:
|
|
2719
|
+
src: e.value.name,
|
|
2717
2720
|
class: "h-[1em] w-[1em]"
|
|
2718
|
-
}, null, 8,
|
|
2721
|
+
}, null, 8, fe)) : (i(), l(
|
|
2719
2722
|
"i",
|
|
2720
2723
|
{
|
|
2721
2724
|
key: 3,
|
|
2722
|
-
class:
|
|
2723
|
-
style:
|
|
2725
|
+
class: r(e.value.name),
|
|
2726
|
+
style: p(t.value)
|
|
2724
2727
|
},
|
|
2725
2728
|
null,
|
|
2726
2729
|
6
|
|
@@ -2734,13 +2737,13 @@ const V = (d, e) => {
|
|
|
2734
2737
|
_: 1
|
|
2735
2738
|
/* STABLE */
|
|
2736
2739
|
}, 8, ["content"]))
|
|
2737
|
-
])) : (
|
|
2740
|
+
])) : (i(), f(z, {
|
|
2738
2741
|
key: 1,
|
|
2739
|
-
type: ["warning", "error"].includes(
|
|
2742
|
+
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
2740
2743
|
}, {
|
|
2741
|
-
default:
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
+
default: g(() => [
|
|
2745
|
+
D(
|
|
2746
|
+
G(e.value.title),
|
|
2744
2747
|
1
|
|
2745
2748
|
/* TEXT */
|
|
2746
2749
|
)
|
|
@@ -2751,14 +2754,14 @@ const V = (d, e) => {
|
|
|
2751
2754
|
};
|
|
2752
2755
|
}
|
|
2753
2756
|
});
|
|
2754
|
-
const
|
|
2757
|
+
const he = /* @__PURE__ */ M(ge, [["__scopeId", "data-v-1be337e4"]]), b = T(he), re = { class: "icon-list" }, pe = { class: "icon-list" }, ye = /* @__PURE__ */ B({
|
|
2755
2758
|
__name: "index",
|
|
2756
|
-
props: /* @__PURE__ */
|
|
2759
|
+
props: /* @__PURE__ */ A({
|
|
2757
2760
|
icon: {
|
|
2758
2761
|
type: Object,
|
|
2759
2762
|
default: () => ({
|
|
2760
|
-
icon:
|
|
2761
|
-
iconSingle:
|
|
2763
|
+
icon: Z,
|
|
2764
|
+
iconSingle: de
|
|
2762
2765
|
})
|
|
2763
2766
|
},
|
|
2764
2767
|
size: {
|
|
@@ -2774,51 +2777,51 @@ const hn = /* @__PURE__ */ T(gn, [["__scopeId", "data-v-7d95dbf5"]]), y = V(hn),
|
|
|
2774
2777
|
}),
|
|
2775
2778
|
emits: ["update:modelValue"],
|
|
2776
2779
|
setup(d) {
|
|
2777
|
-
const
|
|
2780
|
+
const s = d, c = E(d, "modelValue");
|
|
2778
2781
|
k(!1);
|
|
2779
|
-
let
|
|
2780
|
-
const
|
|
2781
|
-
function
|
|
2782
|
-
const
|
|
2783
|
-
|
|
2784
|
-
double:
|
|
2785
|
-
...
|
|
2786
|
-
class: `${
|
|
2782
|
+
let e = {};
|
|
2783
|
+
const a = k({}), t = k(null);
|
|
2784
|
+
function n() {
|
|
2785
|
+
const m = s.icon.icon, u = s.icon.iconSingle;
|
|
2786
|
+
e = {
|
|
2787
|
+
double: m.glyphs.map((_) => ({
|
|
2788
|
+
..._,
|
|
2789
|
+
class: `${m.css_prefix_text}${_.font_class}`
|
|
2787
2790
|
})),
|
|
2788
|
-
single:
|
|
2789
|
-
...
|
|
2790
|
-
class: `${
|
|
2791
|
+
single: u.glyphs.map((_) => ({
|
|
2792
|
+
..._,
|
|
2793
|
+
class: `${u.css_prefix_text}${_.font_class}`
|
|
2791
2794
|
}))
|
|
2792
|
-
},
|
|
2795
|
+
}, a.value = W.cloneDeep(e);
|
|
2793
2796
|
}
|
|
2794
|
-
|
|
2795
|
-
function
|
|
2796
|
-
|
|
2797
|
+
n();
|
|
2798
|
+
function h(m) {
|
|
2799
|
+
c.value = m.class;
|
|
2797
2800
|
}
|
|
2798
|
-
function
|
|
2799
|
-
|
|
2801
|
+
function w() {
|
|
2802
|
+
c.value = "";
|
|
2800
2803
|
}
|
|
2801
|
-
const
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
single:
|
|
2805
|
-
var
|
|
2806
|
-
return (
|
|
2804
|
+
const z = k("");
|
|
2805
|
+
H(z, (m) => {
|
|
2806
|
+
a.value = {
|
|
2807
|
+
single: e.single.filter((u) => {
|
|
2808
|
+
var _;
|
|
2809
|
+
return (_ = u.name) == null ? void 0 : _.includes(m);
|
|
2807
2810
|
}),
|
|
2808
|
-
double:
|
|
2809
|
-
var
|
|
2810
|
-
return (
|
|
2811
|
+
double: e.double.filter((u) => {
|
|
2812
|
+
var _;
|
|
2813
|
+
return (_ = u.name) == null ? void 0 : _.includes(m);
|
|
2811
2814
|
})
|
|
2812
2815
|
};
|
|
2813
2816
|
});
|
|
2814
|
-
const
|
|
2815
|
-
return (
|
|
2816
|
-
const
|
|
2817
|
-
return
|
|
2817
|
+
const I = k("double");
|
|
2818
|
+
return (m, u) => {
|
|
2819
|
+
const _ = v("el-input"), $ = v("el-tab-pane"), N = v("el-tabs"), J = v("el-popover");
|
|
2820
|
+
return i(), f(
|
|
2818
2821
|
J,
|
|
2819
2822
|
{
|
|
2820
2823
|
ref_key: "target",
|
|
2821
|
-
ref:
|
|
2824
|
+
ref: t,
|
|
2822
2825
|
title: "",
|
|
2823
2826
|
"hide-after": 0,
|
|
2824
2827
|
"popper-class": "icon-picker-pop",
|
|
@@ -2826,65 +2829,65 @@ const hn = /* @__PURE__ */ T(gn, [["__scopeId", "data-v-7d95dbf5"]]), y = V(hn),
|
|
|
2826
2829
|
trigger: "click"
|
|
2827
2830
|
},
|
|
2828
2831
|
{
|
|
2829
|
-
reference:
|
|
2830
|
-
|
|
2832
|
+
reference: g(() => [
|
|
2833
|
+
x("div", {
|
|
2831
2834
|
class: "icon-picker-header font-size-[var(--ik-margin-m-28)] line-height-[0]",
|
|
2832
|
-
onClick:
|
|
2833
|
-
(...
|
|
2835
|
+
onClick: u[2] || (u[2] = //@ts-ignore
|
|
2836
|
+
(...o) => m.handChooseIcon && m.handChooseIcon(...o))
|
|
2834
2837
|
}, [
|
|
2835
|
-
|
|
2838
|
+
c.value ? (i(), f(y(b), {
|
|
2836
2839
|
key: 0,
|
|
2837
|
-
name:
|
|
2840
|
+
name: c.value,
|
|
2838
2841
|
size: d.size
|
|
2839
|
-
}, null, 8, ["name", "size"])) : (
|
|
2842
|
+
}, null, 8, ["name", "size"])) : (i(), f(y(b), {
|
|
2840
2843
|
key: 1,
|
|
2841
2844
|
name: "iksvg_guanbibeifen",
|
|
2842
2845
|
size: d.size
|
|
2843
2846
|
}, null, 8, ["size"])),
|
|
2844
|
-
|
|
2847
|
+
c.value ? (i(), f(y(b), {
|
|
2845
2848
|
key: 2,
|
|
2846
2849
|
title: "删除图标",
|
|
2847
2850
|
name: "iksvg_guanbi",
|
|
2848
2851
|
error: "",
|
|
2849
2852
|
class: "icon-delete",
|
|
2850
|
-
onClick:
|
|
2851
|
-
})) :
|
|
2853
|
+
onClick: P(w, ["stop"])
|
|
2854
|
+
})) : V("v-if", !0)
|
|
2852
2855
|
])
|
|
2853
2856
|
]),
|
|
2854
|
-
default:
|
|
2855
|
-
|
|
2856
|
-
modelValue:
|
|
2857
|
-
"onUpdate:modelValue":
|
|
2857
|
+
default: g(() => [
|
|
2858
|
+
j(_, {
|
|
2859
|
+
modelValue: z.value,
|
|
2860
|
+
"onUpdate:modelValue": u[0] || (u[0] = (o) => z.value = o),
|
|
2858
2861
|
clearable: "",
|
|
2859
2862
|
placeholder: "输入图标名称检索"
|
|
2860
2863
|
}, {
|
|
2861
|
-
suffix:
|
|
2862
|
-
|
|
2864
|
+
suffix: g(() => [
|
|
2865
|
+
j(y(b), { name: "iksvg_sousuo-daohang" })
|
|
2863
2866
|
]),
|
|
2864
2867
|
_: 1
|
|
2865
2868
|
/* STABLE */
|
|
2866
2869
|
}, 8, ["modelValue"]),
|
|
2867
|
-
|
|
2868
|
-
modelValue:
|
|
2869
|
-
"onUpdate:modelValue":
|
|
2870
|
+
j(N, {
|
|
2871
|
+
modelValue: I.value,
|
|
2872
|
+
"onUpdate:modelValue": u[1] || (u[1] = (o) => I.value = o)
|
|
2870
2873
|
}, {
|
|
2871
|
-
default:
|
|
2872
|
-
|
|
2874
|
+
default: g(() => [
|
|
2875
|
+
j($, {
|
|
2873
2876
|
label: "双色图标",
|
|
2874
2877
|
name: "double"
|
|
2875
2878
|
}, {
|
|
2876
|
-
default:
|
|
2877
|
-
|
|
2878
|
-
(
|
|
2879
|
-
|
|
2879
|
+
default: g(() => [
|
|
2880
|
+
x("div", re, [
|
|
2881
|
+
(i(!0), l(
|
|
2882
|
+
C,
|
|
2880
2883
|
null,
|
|
2881
|
-
S(
|
|
2882
|
-
key:
|
|
2883
|
-
primary:
|
|
2884
|
+
S(a.value.double, (o) => (i(), f(y(b), {
|
|
2885
|
+
key: o.name,
|
|
2886
|
+
primary: o.class === c.value,
|
|
2884
2887
|
size: 20,
|
|
2885
|
-
title:
|
|
2886
|
-
name:
|
|
2887
|
-
onClick: (L) =>
|
|
2888
|
+
title: o.name,
|
|
2889
|
+
name: o.class,
|
|
2890
|
+
onClick: (L) => h(o)
|
|
2888
2891
|
}, null, 8, ["primary", "title", "name", "onClick"]))),
|
|
2889
2892
|
128
|
|
2890
2893
|
/* KEYED_FRAGMENT */
|
|
@@ -2894,22 +2897,22 @@ const hn = /* @__PURE__ */ T(gn, [["__scopeId", "data-v-7d95dbf5"]]), y = V(hn),
|
|
|
2894
2897
|
_: 1
|
|
2895
2898
|
/* STABLE */
|
|
2896
2899
|
}),
|
|
2897
|
-
|
|
2900
|
+
j($, {
|
|
2898
2901
|
label: "单色图标",
|
|
2899
2902
|
name: "single"
|
|
2900
2903
|
}, {
|
|
2901
|
-
default:
|
|
2902
|
-
|
|
2903
|
-
(
|
|
2904
|
-
|
|
2904
|
+
default: g(() => [
|
|
2905
|
+
x("div", pe, [
|
|
2906
|
+
(i(!0), l(
|
|
2907
|
+
C,
|
|
2905
2908
|
null,
|
|
2906
|
-
S(
|
|
2907
|
-
key:
|
|
2908
|
-
primary:
|
|
2909
|
+
S(a.value.single, (o) => (i(), f(y(b), {
|
|
2910
|
+
key: o.name,
|
|
2911
|
+
primary: o.class === c.value,
|
|
2909
2912
|
size: 20,
|
|
2910
|
-
title:
|
|
2911
|
-
name:
|
|
2912
|
-
onClick: (L) =>
|
|
2913
|
+
title: o.name,
|
|
2914
|
+
name: o.class,
|
|
2915
|
+
onClick: (L) => h(o)
|
|
2913
2916
|
}, null, 8, ["primary", "title", "name", "onClick"]))),
|
|
2914
2917
|
128
|
|
2915
2918
|
/* KEYED_FRAGMENT */
|
|
@@ -2933,8 +2936,8 @@ const hn = /* @__PURE__ */ T(gn, [["__scopeId", "data-v-7d95dbf5"]]), y = V(hn),
|
|
|
2933
2936
|
};
|
|
2934
2937
|
}
|
|
2935
2938
|
});
|
|
2936
|
-
const
|
|
2939
|
+
const be = /* @__PURE__ */ M(ye, [["__scopeId", "data-v-bb8396c3"]]), ze = T(be);
|
|
2937
2940
|
export {
|
|
2938
|
-
|
|
2939
|
-
|
|
2941
|
+
ze as IkIconPicker,
|
|
2942
|
+
ze as default
|
|
2940
2943
|
};
|