iking-web-ui-pro 0.2.22 → 0.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IKExpandCollapse/ik.index.es.js +77 -82
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +727 -745
- package/dist/IKPreviewFile/ik.index.umd.js +46 -46
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKSearch/ik.index.es.js +41 -33
- package/dist/IKSearch/ik.index.umd.js +1 -1
- package/dist/IKSearch/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +125 -130
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcess/ik.index.es.js +167 -159
- package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcess/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +659 -677
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +47 -47
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +112 -130
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +237 -242
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +73 -65
- package/dist/IkCalendar/ik.index.umd.js +1 -1
- package/dist/IkCalendar/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +78 -83
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +902 -920
- package/dist/IkDescription/ik.index.umd.js +45 -45
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +613 -631
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +45 -45
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +135 -140
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +378 -383
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1305 -1302
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +41 -33
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPickerUser/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +687 -705
- package/dist/IkPreviewFileDialog/ik.index.umd.js +47 -47
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +2955 -2960
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +106 -111
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +69 -74
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +761 -779
- package/dist/IkUploadFile/ik.index.umd.js +45 -45
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +218 -223
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +7089 -7099
- package/dist/index.umd.js +89 -89
- package/dist/src/components/IkSvgIcon/index.d.ts +2 -6
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +2 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-f0925ff8]{padding:0;margin:0}.demo-app[data-v-f0925ff8]{width:70%;margin:auto}.icon[data-v-f0925ff8]{width:10%!important;text-align:center}.icon svg[data-v-f0925ff8]{width:25px;height:25px;vertical-align:middle}.to[data-v-f0925ff8]{width:4%!important;display:inline-block;margin:auto;text-align:center}[data-v-f0925ff8] .fc-event{width:calc(100% - 4px);padding:0 4px}[data-v-f0925ff8] .fc-button{color:var(--el-color-white);border-color:var(--el-color-primary);background-color:var(--el-color-primary)}[data-v-f0925ff8] .fc-button:hover{color:var(--el-color-white);border-color:var(--el-color-primary-light-3);background-color:var(--el-color-primary-light-3);outline:none}[data-v-f0925ff8] .fc-button-primary:disabled{background-color:var(--el-color-primary-light-5);border-color:var(--el-color-primary-light-5);color:var(--el-color-white)}[data-v-f0925ff8] .fc-button-active{background-color:var(--el-color-primary-dark-2)!important;border-color:var(--el-color-primary-dark-2)!important;color:var(--el-color-white)!important;box-shadow:none!important}[data-v-f0925ff8] .fc .fc-button-primary:not(:disabled):active{background-color:var(--el-color-primary-dark-2)!important;border-color:var(--el-color-primary-dark-2)!important;color:var(--el-color-white)!important;box-shadow:none!important}[data-v-f0925ff8] .fc .fc-button-primary:focus{box-shadow:none!important}[data-v-f0925ff8] .fc .fc-h-event{background-color:inherit;border:none}[data-v-f0925ff8] .fc .fc-view table.fc-scrollgrid thead{line-height:40px}.title-line[data-v-f0925ff8]{width:100%;display:flex;justify-content:space-between;align-items:center;color:var(--el-color-primary-dark-2)}.title-line .title[data-v-f0925ff8]{display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ik-full-calendar[data-v-f0925ff8]{width:100%;height:100%}.event-title[data-v-f0925ff8]{display:flex;align-items:center;color:var(--ik-text-color)}[data-v-f0925ff8] .fc .fc-timeGridWeek-view .fc-v-event .event-title,[data-v-f0925ff8] .fc .fc-timeGridDay-view .fc-v-event .event-title{color:var(--el-color-white)}.event-title[data-v-f0925ff8]:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:5px}.allday[data-v-f0925ff8]:before{background-color:var(--ik-success)}.no-allday[data-v-f0925ff8]:before{background-color:var(--ik-error)}.event-title-time[data-v-f0925ff8]{color:var(--ik-vice-text-color)}[data-v-f0925ff8] .fc .fc-timeGridWeek-view .fc-v-event .event-title .event-title-time,[data-v-f0925ff8] .fc .fc-timeGridDay-view .fc-v-event .event-title .event-title-time{color:var(--el-color-info-light-8)}.event-title-text[data-v-f0925ff8]{margin-left:4px}.row-title[data-v-
|
|
1
|
+
[data-v-f0925ff8]{padding:0;margin:0}.demo-app[data-v-f0925ff8]{width:70%;margin:auto}.icon[data-v-f0925ff8]{width:10%!important;text-align:center}.icon svg[data-v-f0925ff8]{width:25px;height:25px;vertical-align:middle}.to[data-v-f0925ff8]{width:4%!important;display:inline-block;margin:auto;text-align:center}[data-v-f0925ff8] .fc-event{width:calc(100% - 4px);padding:0 4px}[data-v-f0925ff8] .fc-button{color:var(--el-color-white);border-color:var(--el-color-primary);background-color:var(--el-color-primary)}[data-v-f0925ff8] .fc-button:hover{color:var(--el-color-white);border-color:var(--el-color-primary-light-3);background-color:var(--el-color-primary-light-3);outline:none}[data-v-f0925ff8] .fc-button-primary:disabled{background-color:var(--el-color-primary-light-5);border-color:var(--el-color-primary-light-5);color:var(--el-color-white)}[data-v-f0925ff8] .fc-button-active{background-color:var(--el-color-primary-dark-2)!important;border-color:var(--el-color-primary-dark-2)!important;color:var(--el-color-white)!important;box-shadow:none!important}[data-v-f0925ff8] .fc .fc-button-primary:not(:disabled):active{background-color:var(--el-color-primary-dark-2)!important;border-color:var(--el-color-primary-dark-2)!important;color:var(--el-color-white)!important;box-shadow:none!important}[data-v-f0925ff8] .fc .fc-button-primary:focus{box-shadow:none!important}[data-v-f0925ff8] .fc .fc-h-event{background-color:inherit;border:none}[data-v-f0925ff8] .fc .fc-view table.fc-scrollgrid thead{line-height:40px}.title-line[data-v-f0925ff8]{width:100%;display:flex;justify-content:space-between;align-items:center;color:var(--el-color-primary-dark-2)}.title-line .title[data-v-f0925ff8]{display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ik-full-calendar[data-v-f0925ff8]{width:100%;height:100%}.event-title[data-v-f0925ff8]{display:flex;align-items:center;color:var(--ik-text-color)}[data-v-f0925ff8] .fc .fc-timeGridWeek-view .fc-v-event .event-title,[data-v-f0925ff8] .fc .fc-timeGridDay-view .fc-v-event .event-title{color:var(--el-color-white)}.event-title[data-v-f0925ff8]:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:5px}.allday[data-v-f0925ff8]:before{background-color:var(--ik-success)}.no-allday[data-v-f0925ff8]:before{background-color:var(--ik-error)}.event-title-time[data-v-f0925ff8]{color:var(--ik-vice-text-color)}[data-v-f0925ff8] .fc .fc-timeGridWeek-view .fc-v-event .event-title .event-title-time,[data-v-f0925ff8] .fc .fc-timeGridDay-view .fc-v-event .event-title .event-title-time{color:var(--el-color-info-light-8)}.event-title-text[data-v-f0925ff8]{margin-left:4px}.row-title[data-v-52806adf]{display:flex}.ik-svg-icon.ik-icon-span[data-v-52806adf]:not(:first-child){margin-left:var(--ik-margin-s-12)}.ik-schedule[data-v-e308f501]{width:100%;height:100%;display:flex}.ik-schedule__left[data-v-e308f501]{height:100%;display:flex;flex-direction:column;flex-grow:1;flex-shrink:0}.ik-schedule__header[data-v-e308f501]{flex-shrink:0;flex-grow:0;text-align:left;display:flex}.ik-schedule__title[data-v-e308f501]{font-family:Arial-BoldMT,Arial Bold,Arial,sans-serif;font-weight:700;flex-shrink:0}.ik-schedule__body[data-v-e308f501]{flex-grow:1;margin-top:16px;height:calc(100% - 56px)}.ik-schedule__header-right[data-v-e308f501]{display:flex;justify-content:space-between;flex-grow:1}.ik-schedule__header-right-item[data-v-e308f501]{border-left:4px solid;line-height:32px}.ik-schedule__right-title[data-v-e308f501]{text-align:left;line-height:32px}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ikColor as
|
|
3
|
-
const
|
|
4
|
-
if (t.install = (
|
|
5
|
-
for (const
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
for (const [
|
|
9
|
-
t[
|
|
1
|
+
import { defineComponent as k, computed as p, resolveComponent as f, openBlock as n, createElementBlock as s, normalizeClass as v, normalizeStyle as c, createCommentVNode as d, createElementVNode as u, createBlock as g, withCtx as m, createTextVNode as x, toDisplayString as y, useCssVars as $, unref as I, ref as T, Fragment as C, createVNode as L } from "vue";
|
|
2
|
+
import { ikColor as z } from "iking-utils-pro";
|
|
3
|
+
const S = (t, o) => {
|
|
4
|
+
if (t.install = (e) => {
|
|
5
|
+
for (const l of [t, ...Object.values(o ?? {})])
|
|
6
|
+
e.component(l.name, l);
|
|
7
|
+
}, o)
|
|
8
|
+
for (const [e, l] of Object.entries(o))
|
|
9
|
+
t[e] = l;
|
|
10
10
|
return t;
|
|
11
|
-
},
|
|
12
|
-
const
|
|
13
|
-
for (const [
|
|
14
|
-
|
|
15
|
-
return
|
|
16
|
-
},
|
|
11
|
+
}, _ = (t, o) => {
|
|
12
|
+
const e = t.__vccOpts || t;
|
|
13
|
+
for (const [l, i] of o)
|
|
14
|
+
e[l] = i;
|
|
15
|
+
return e;
|
|
16
|
+
}, N = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
|
|
19
|
-
},
|
|
19
|
+
}, j = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "h-[1em] w-[1em]",
|
|
22
22
|
"aria-hidden": "true"
|
|
23
|
-
},
|
|
23
|
+
}, E = ["xlink:href"], V = ["src"], G = {
|
|
24
24
|
key: 1,
|
|
25
25
|
class: "h-[1em] w-[1em]",
|
|
26
26
|
"aria-hidden": "true"
|
|
27
|
-
},
|
|
27
|
+
}, O = ["xlink:href"], U = ["src"], W = /* @__PURE__ */ k({
|
|
28
28
|
name: "IkSvgIcon",
|
|
29
29
|
__name: "index",
|
|
30
30
|
props: {
|
|
@@ -50,12 +50,11 @@ const $ = (t, n) => {
|
|
|
50
50
|
warning: { type: Boolean },
|
|
51
51
|
width: {}
|
|
52
52
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const i = t, e = y(() => i), o = y(() => {
|
|
53
|
+
setup(t) {
|
|
54
|
+
const o = t, e = p(() => o), l = p(() => {
|
|
56
55
|
const { name: a } = e.value;
|
|
57
56
|
return /^http?:\/\//.test(a) ? "img" : /i-[^:]+:[^:]+/.test(a) ? "unocss" : a != null && a.startsWith("iksig") ? "iksig" : a != null && a.includes(":") ? "iconify" : a != null && a.startsWith("iksvg") ? "svg" : "i";
|
|
58
|
-
}),
|
|
57
|
+
}), i = p(() => {
|
|
59
58
|
const a = [];
|
|
60
59
|
if (e.value.flip)
|
|
61
60
|
switch (e.value.flip) {
|
|
@@ -70,30 +69,28 @@ const $ = (t, n) => {
|
|
|
70
69
|
break;
|
|
71
70
|
}
|
|
72
71
|
e.value.rotate && a.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
73
|
-
const
|
|
72
|
+
const r = {
|
|
73
|
+
pointerEvents: e.value.disabled ? "none" : "auto",
|
|
74
74
|
...e.value.color && { color: e.value.color },
|
|
75
75
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
76
76
|
...a.length && { transform: a.join(" ") },
|
|
77
77
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
78
|
-
...e.value.color &&
|
|
78
|
+
...e.value.color && l.value !== "iksig" ? {
|
|
79
79
|
"--ik-color-icon-dark": e.value.color,
|
|
80
|
-
"--ik-color-icon-light": e.value.colorLight ||
|
|
80
|
+
"--ik-color-icon-light": e.value.colorLight || z.setOpacity(e.value.color, e.value.opacity)
|
|
81
81
|
} : {}
|
|
82
82
|
};
|
|
83
|
-
return e.value.width && (
|
|
84
|
-
})
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (l(), s("span", V, [
|
|
90
|
-
e.value.notip || !e.value.title ? (l(), s(
|
|
83
|
+
return e.value.width && (r.width = r.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), r;
|
|
84
|
+
});
|
|
85
|
+
return (a, r) => {
|
|
86
|
+
const b = f("el-tooltip"), h = f("el-button");
|
|
87
|
+
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (n(), s("span", N, [
|
|
88
|
+
e.value.notip || !e.value.title ? (n(), s(
|
|
91
89
|
"i",
|
|
92
90
|
{
|
|
93
91
|
key: 0,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
[a.name]: o.value === "unocss",
|
|
92
|
+
class: v(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
93
|
+
[a.name]: l.value === "unocss",
|
|
97
94
|
"show-bg": e.value.showBg || e.value.bg,
|
|
98
95
|
default: e.value.size === "default",
|
|
99
96
|
small: e.value.size === "small",
|
|
@@ -105,34 +102,34 @@ const $ = (t, n) => {
|
|
|
105
102
|
active: e.value.active,
|
|
106
103
|
disabled: e.value.disabled
|
|
107
104
|
}]),
|
|
108
|
-
style: c(
|
|
105
|
+
style: c(i.value)
|
|
109
106
|
},
|
|
110
107
|
[
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
d(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
109
|
+
l.value === "iksig" ? (n(), s(
|
|
113
110
|
"i",
|
|
114
111
|
{
|
|
115
112
|
key: 0,
|
|
116
|
-
class:
|
|
117
|
-
style: c(
|
|
113
|
+
class: v(`iksig ${e.value.name}`),
|
|
114
|
+
style: c(i.value)
|
|
118
115
|
},
|
|
119
116
|
null,
|
|
120
117
|
6
|
|
121
118
|
/* CLASS, STYLE */
|
|
122
|
-
)) :
|
|
119
|
+
)) : l.value === "svg" ? (n(), s("svg", j, [
|
|
123
120
|
u("use", {
|
|
124
121
|
"xlink:href": `#${e.value.name}`
|
|
125
|
-
}, null, 8,
|
|
126
|
-
])) :
|
|
122
|
+
}, null, 8, E)
|
|
123
|
+
])) : l.value === "img" ? (n(), s("img", {
|
|
127
124
|
key: 2,
|
|
128
125
|
src: e.value.name,
|
|
129
126
|
class: "h-[1em] w-[1em]"
|
|
130
|
-
}, null, 8,
|
|
127
|
+
}, null, 8, V)) : (n(), s(
|
|
131
128
|
"i",
|
|
132
129
|
{
|
|
133
130
|
key: 3,
|
|
134
|
-
class:
|
|
135
|
-
style: c(
|
|
131
|
+
class: v(e.value.name),
|
|
132
|
+
style: c(i.value)
|
|
136
133
|
},
|
|
137
134
|
null,
|
|
138
135
|
6
|
|
@@ -141,17 +138,17 @@ const $ = (t, n) => {
|
|
|
141
138
|
],
|
|
142
139
|
6
|
|
143
140
|
/* CLASS, STYLE */
|
|
144
|
-
)) : (
|
|
141
|
+
)) : (n(), g(b, {
|
|
145
142
|
key: 1,
|
|
146
143
|
content: e.value.title,
|
|
147
144
|
placement: "top"
|
|
148
145
|
}, {
|
|
149
|
-
default:
|
|
146
|
+
default: m(() => [
|
|
150
147
|
u(
|
|
151
148
|
"i",
|
|
152
149
|
{
|
|
153
|
-
class:
|
|
154
|
-
[a.name]:
|
|
150
|
+
class: v(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
151
|
+
[a.name]: l.value === "unocss",
|
|
155
152
|
"show-bg": e.value.showBg || e.value.bg,
|
|
156
153
|
default: e.value.size === "default",
|
|
157
154
|
small: e.value.size === "small",
|
|
@@ -162,34 +159,33 @@ const $ = (t, n) => {
|
|
|
162
159
|
error: e.value.error || e.value.type === "error",
|
|
163
160
|
active: e.value.active
|
|
164
161
|
}]),
|
|
165
|
-
|
|
166
|
-
style: c(r.value)
|
|
162
|
+
style: c(i.value)
|
|
167
163
|
},
|
|
168
164
|
[
|
|
169
|
-
|
|
165
|
+
l.value === "iksig" ? (n(), s(
|
|
170
166
|
"i",
|
|
171
167
|
{
|
|
172
168
|
key: 0,
|
|
173
|
-
class:
|
|
174
|
-
style: c(
|
|
169
|
+
class: v(`iksig ${e.value.name}`),
|
|
170
|
+
style: c(i.value)
|
|
175
171
|
},
|
|
176
172
|
null,
|
|
177
173
|
6
|
|
178
174
|
/* CLASS, STYLE */
|
|
179
|
-
)) :
|
|
175
|
+
)) : l.value === "svg" ? (n(), s("svg", G, [
|
|
180
176
|
u("use", {
|
|
181
177
|
"xlink:href": `#${e.value.name}`
|
|
182
|
-
}, null, 8,
|
|
183
|
-
])) :
|
|
178
|
+
}, null, 8, O)
|
|
179
|
+
])) : l.value === "img" ? (n(), s("img", {
|
|
184
180
|
key: 2,
|
|
185
181
|
src: e.value.name,
|
|
186
182
|
class: "h-[1em] w-[1em]"
|
|
187
|
-
}, null, 8,
|
|
183
|
+
}, null, 8, U)) : (n(), s(
|
|
188
184
|
"i",
|
|
189
185
|
{
|
|
190
186
|
key: 3,
|
|
191
|
-
class:
|
|
192
|
-
style: c(
|
|
187
|
+
class: v(e.value.name),
|
|
188
|
+
style: c(i.value)
|
|
193
189
|
},
|
|
194
190
|
null,
|
|
195
191
|
6
|
|
@@ -203,14 +199,13 @@ const $ = (t, n) => {
|
|
|
203
199
|
_: 1
|
|
204
200
|
/* STABLE */
|
|
205
201
|
}, 8, ["content"]))
|
|
206
|
-
])) : (
|
|
202
|
+
])) : (n(), g(h, {
|
|
207
203
|
key: 1,
|
|
208
|
-
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
209
|
-
onClick: w(m, ["stop"])
|
|
204
|
+
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
210
205
|
}, {
|
|
211
|
-
default:
|
|
212
|
-
|
|
213
|
-
|
|
206
|
+
default: m(() => [
|
|
207
|
+
x(
|
|
208
|
+
y(e.value.title),
|
|
214
209
|
1
|
|
215
210
|
/* TEXT */
|
|
216
211
|
)
|
|
@@ -221,12 +216,12 @@ const $ = (t, n) => {
|
|
|
221
216
|
};
|
|
222
217
|
}
|
|
223
218
|
});
|
|
224
|
-
const
|
|
225
|
-
getLinearGradient: (
|
|
226
|
-
const
|
|
227
|
-
return `linear-gradient(to top, ${
|
|
219
|
+
const F = /* @__PURE__ */ _(W, [["__scopeId", "data-v-52806adf"]]), X = S(F), Y = () => ({
|
|
220
|
+
getLinearGradient: (o) => {
|
|
221
|
+
const e = z.hexToRGB(o).replace(/[^\d,]/g, "").split(",").map(Number);
|
|
222
|
+
return `linear-gradient(to top, ${o} 4%, rgb(${e[0]},${e[1] + 50},${e[2]}) 88%)`;
|
|
228
223
|
}
|
|
229
|
-
}),
|
|
224
|
+
}), q = /* @__PURE__ */ k({
|
|
230
225
|
__name: "IkLinearIcon",
|
|
231
226
|
props: {
|
|
232
227
|
icon: {
|
|
@@ -243,21 +238,21 @@ const Y = /* @__PURE__ */ I(X, [["__scopeId", "data-v-4a1004b9"]]), q = $(Y), D
|
|
|
243
238
|
}
|
|
244
239
|
},
|
|
245
240
|
setup(t) {
|
|
246
|
-
|
|
247
|
-
"435077c3":
|
|
241
|
+
$((i) => ({
|
|
242
|
+
"435077c3": l.value
|
|
248
243
|
}));
|
|
249
|
-
const
|
|
250
|
-
return (
|
|
244
|
+
const o = t, { getLinearGradient: e } = Y(), l = p(() => `${o.size}px`);
|
|
245
|
+
return (i, a) => (n(), s(
|
|
251
246
|
"div",
|
|
252
247
|
{
|
|
253
248
|
class: "form-icon",
|
|
254
|
-
style: c({ backgroundImage:
|
|
249
|
+
style: c({ backgroundImage: I(e)(t.backgroundColor || "#28b8a4") })
|
|
255
250
|
},
|
|
256
251
|
[
|
|
257
252
|
u(
|
|
258
253
|
"i",
|
|
259
254
|
{
|
|
260
|
-
class:
|
|
255
|
+
class: v(`ikflow ${t.icon}`)
|
|
261
256
|
},
|
|
262
257
|
null,
|
|
263
258
|
2
|
|
@@ -269,7 +264,7 @@ const Y = /* @__PURE__ */ I(X, [["__scopeId", "data-v-4a1004b9"]]), q = $(Y), D
|
|
|
269
264
|
));
|
|
270
265
|
}
|
|
271
266
|
});
|
|
272
|
-
const
|
|
267
|
+
const D = /* @__PURE__ */ _(q, [["__scopeId", "data-v-0bc5a180"]]), R = { class: "side-text items-center" }, A = { class: "side-left flex items-center" }, H = { class: "side-right" }, J = { class: "text-over-line" }, K = { class: "text-over-line" }, M = /* @__PURE__ */ k({
|
|
273
268
|
__name: "IkSideText",
|
|
274
269
|
props: {
|
|
275
270
|
// 名称
|
|
@@ -327,30 +322,30 @@ const R = /* @__PURE__ */ I(M, [["__scopeId", "data-v-0bc5a180"]]), A = { class:
|
|
|
327
322
|
}
|
|
328
323
|
},
|
|
329
324
|
setup(t) {
|
|
330
|
-
const
|
|
331
|
-
|
|
325
|
+
const o = t, e = (r) => r ? r.startsWith("http") ? r : `${o.loadUrl}${r}` : "", l = p(() => e(o.avatar)), i = T(!!o.avatar), a = () => {
|
|
326
|
+
i.value = !1;
|
|
332
327
|
};
|
|
333
|
-
return (
|
|
334
|
-
var
|
|
335
|
-
const
|
|
336
|
-
return
|
|
337
|
-
u("div",
|
|
338
|
-
t.avatarType === "url" ? (
|
|
328
|
+
return (r, b) => {
|
|
329
|
+
var w;
|
|
330
|
+
const h = f("el-avatar"), B = f("el-tooltip");
|
|
331
|
+
return n(), s("div", R, [
|
|
332
|
+
u("div", A, [
|
|
333
|
+
t.avatarType === "url" ? (n(), g(h, {
|
|
339
334
|
key: 0,
|
|
340
335
|
style: { "--el-avatar-bg-color": "var(--ik-color-primary)" },
|
|
341
336
|
size: t.size,
|
|
342
337
|
shape: t.shape,
|
|
343
|
-
src:
|
|
338
|
+
src: l.value,
|
|
344
339
|
fit: "contain",
|
|
345
|
-
onError:
|
|
340
|
+
onError: a
|
|
346
341
|
}, {
|
|
347
|
-
default:
|
|
348
|
-
|
|
349
|
-
|
|
342
|
+
default: m(() => [
|
|
343
|
+
i.value ? d("v-if", !0) : (n(), s(
|
|
344
|
+
C,
|
|
350
345
|
{ key: 0 },
|
|
351
346
|
[
|
|
352
|
-
|
|
353
|
-
|
|
347
|
+
x(
|
|
348
|
+
y(t.name.slice(-2)),
|
|
354
349
|
1
|
|
355
350
|
/* TEXT */
|
|
356
351
|
)
|
|
@@ -361,35 +356,35 @@ const R = /* @__PURE__ */ I(M, [["__scopeId", "data-v-0bc5a180"]]), A = { class:
|
|
|
361
356
|
]),
|
|
362
357
|
_: 1
|
|
363
358
|
/* STABLE */
|
|
364
|
-
}, 8, ["size", "shape", "src"])) :
|
|
365
|
-
t.avatarType === "icon" ? (
|
|
359
|
+
}, 8, ["size", "shape", "src"])) : d("v-if", !0),
|
|
360
|
+
t.avatarType === "icon" ? (n(), g(I(X), {
|
|
366
361
|
key: 1,
|
|
367
|
-
name: `iksvg_${(
|
|
362
|
+
name: `iksvg_${(w = t.avatar) == null ? void 0 : w.replace("iksvg_", "")}`,
|
|
368
363
|
"show-bg": t.showIconBg,
|
|
369
364
|
type: t.iconType,
|
|
370
365
|
style: c({ fontSize: t.showIconBg ? "34px" : "50px" }),
|
|
371
366
|
size: t.iconSize
|
|
372
|
-
}, null, 8, ["name", "show-bg", "type", "style", "size"])) :
|
|
373
|
-
t.avatarType === "linearIcon" ? (
|
|
367
|
+
}, null, 8, ["name", "show-bg", "type", "style", "size"])) : d("v-if", !0),
|
|
368
|
+
t.avatarType === "linearIcon" ? (n(), g(D, {
|
|
374
369
|
key: 2,
|
|
375
370
|
icon: t.avatar,
|
|
376
371
|
"background-color": t.iconBackgroundColor
|
|
377
|
-
}, null, 8, ["icon", "background-color"])) :
|
|
372
|
+
}, null, 8, ["icon", "background-color"])) : d("v-if", !0)
|
|
378
373
|
]),
|
|
379
|
-
u("div",
|
|
374
|
+
u("div", H, [
|
|
380
375
|
u(
|
|
381
376
|
"p",
|
|
382
|
-
|
|
383
|
-
|
|
377
|
+
J,
|
|
378
|
+
y(t.text),
|
|
384
379
|
1
|
|
385
380
|
/* TEXT */
|
|
386
381
|
),
|
|
387
|
-
|
|
388
|
-
default:
|
|
382
|
+
L(B, { content: t.subText }, {
|
|
383
|
+
default: m(() => [
|
|
389
384
|
u(
|
|
390
385
|
"p",
|
|
391
|
-
|
|
392
|
-
|
|
386
|
+
K,
|
|
387
|
+
y(t.subText),
|
|
393
388
|
1
|
|
394
389
|
/* TEXT */
|
|
395
390
|
)
|
|
@@ -402,8 +397,8 @@ const R = /* @__PURE__ */ I(M, [["__scopeId", "data-v-0bc5a180"]]), A = { class:
|
|
|
402
397
|
};
|
|
403
398
|
}
|
|
404
399
|
});
|
|
405
|
-
const
|
|
400
|
+
const P = /* @__PURE__ */ _(M, [["__scopeId", "data-v-75852e7e"]]), ee = S(P);
|
|
406
401
|
export {
|
|
407
|
-
|
|
408
|
-
|
|
402
|
+
ee as IkSideText,
|
|
403
|
+
ee as default
|
|
409
404
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(c,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):(c=typeof globalThis<"u"?globalThis:c||self,e(c.index={},c.vue,c["iking-utils-pro"]))})(this,function(c,e,u){"use strict";const p=(l,n)=>{if(l.install=t=>{for(const a of[l,...Object.values(n??{})])t.component(a.name,a)},n)for(const[t,a]of Object.entries(n))l[t]=a;return l},r=(l,n)=>{const t=l.__vccOpts||l;for(const[a,i]of n)t[a]=i;return t},g={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},k={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},h=["xlink:href"],v=["src"],_={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},B=["xlink:href"],b=["src"],x=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:{}},setup(l){const n=l,t=e.computed(()=>n),a=e.computed(()=>{const{name:o}=t.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"}),i=e.computed(()=>{const o=[];if(t.value.flip)switch(t.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}t.value.rotate&&o.push(`rotate(${t.value.rotate%360}deg)`);const s={pointerEvents:t.value.disabled?"none":"auto",...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...o.length&&{transform:o.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&a.value!=="iksig"?{"--ik-color-icon-dark":t.value.color,"--ik-color-icon-light":t.value.colorLight||u.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(s.width=s.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),s});return(o,s)=>{const y=e.resolveComponent("el-tooltip"),d=e.resolveComponent("el-button");return t.value.tableIconType==="icon"||!t.value.tableIconType?(e.openBlock(),e.createElementBlock("span",g,[t.value.notip||!t.value.title?(e.openBlock(),e.createElementBlock("i",{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]:a.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:t.value.primary||t.value.type==="primary",success:o.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active,disabled:t.value.disabled}]),style:e.normalizeStyle(i.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),a.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(i.value)},null,6)):a.value==="svg"?(e.openBlock(),e.createElementBlock("svg",k,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,h)])):a.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,v)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(i.value)},null,6))],6)):(e.openBlock(),e.createBlock(y,{key:1,content:t.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{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]:a.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:o.primary||t.value.type==="primary",success:o.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),style:e.normalizeStyle(i.value)},[a.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(i.value)},null,6)):a.value==="svg"?(e.openBlock(),e.createElementBlock("svg",_,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,B)])):a.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,b)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(i.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(d,{key:1,type:["warning","error"].includes(t.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),j="",z=p(r(x,[["__scopeId","data-v-52806adf"]])),S=()=>({getLinearGradient:n=>{const t=u.ikColor.hexToRGB(n).replace(/[^\d,]/g,"").split(",").map(Number);return`linear-gradient(to top, ${n} 4%, rgb(${t[0]},${t[1]+50},${t[2]}) 88%)`}}),w=e.defineComponent({__name:"IkLinearIcon",props:{icon:{type:String,default:""},backgroundColor:{type:String,default:""},size:{type:Number,default:40}},setup(l){e.useCssVars(i=>({"435077c3":a.value}));const n=l,{getLinearGradient:t}=S(),a=e.computed(()=>`${n.size}px`);return(i,o)=>(e.openBlock(),e.createElementBlock("div",{class:"form-icon",style:e.normalizeStyle({backgroundImage:e.unref(t)(l.backgroundColor||"#28b8a4")})},[e.createElementVNode("i",{class:e.normalizeClass(`ikflow ${l.icon}`)},null,2)],4))}}),D="",C=r(w,[["__scopeId","data-v-0bc5a180"]]),I={class:"side-text items-center"},T={class:"side-left flex items-center"},E={class:"side-right"},$={class:"text-over-line"},N={class:"text-over-line"},V=e.defineComponent({__name:"IkSideText",props:{name:{type:String,default:""},avatar:{type:String,default:""},avatarType:{type:String,default:"url"},showIconBg:{type:Boolean,default:!1},iconType:{type:String,default:"info"},iconBackgroundColor:{type:String,default:""},text:{type:String,default:""},subText:{type:String,default:""},shape:{type:String,default:"square"},size:{type:Number,default:50},iconSize:{type:String||Number,default:"small"},loadUrl:{type:String,default:""}},setup(l){const n=l,t=s=>s?s.startsWith("http")?s:`${n.loadUrl}${s}`:"",a=e.computed(()=>t(n.avatar)),i=e.ref(!!n.avatar),o=()=>{i.value=!1};return(s,y)=>{var f;const d=e.resolveComponent("el-avatar"),L=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",I,[e.createElementVNode("div",T,[l.avatarType==="url"?(e.openBlock(),e.createBlock(d,{key:0,style:{"--el-avatar-bg-color":"var(--ik-color-primary)"},size:l.size,shape:l.shape,src:a.value,fit:"contain",onError:o},{default:e.withCtx(()=>[i.value?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.name.slice(-2)),1)],64))]),_:1},8,["size","shape","src"])):e.createCommentVNode("v-if",!0),l.avatarType==="icon"?(e.openBlock(),e.createBlock(e.unref(z),{key:1,name:`iksvg_${(f=l.avatar)==null?void 0:f.replace("iksvg_","")}`,"show-bg":l.showIconBg,type:l.iconType,style:e.normalizeStyle({fontSize:l.showIconBg?"34px":"50px"}),size:l.iconSize},null,8,["name","show-bg","type","style","size"])):e.createCommentVNode("v-if",!0),l.avatarType==="linearIcon"?(e.openBlock(),e.createBlock(C,{key:2,icon:l.avatar,"background-color":l.iconBackgroundColor},null,8,["icon","background-color"])):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",E,[e.createElementVNode("p",$,e.toDisplayString(l.text),1),e.createVNode(L,{content:l.subText},{default:e.withCtx(()=>[e.createElementVNode("p",N,e.toDisplayString(l.subText),1)]),_:1},8,["content"])])])}}}),G="",m=p(r(V,[["__scopeId","data-v-75852e7e"]]));c.IkSideText=m,c.default=m,Object.defineProperties(c,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-52806adf]{display:flex}.ik-svg-icon.ik-icon-span[data-v-52806adf]:not(:first-child){margin-left:var(--ik-margin-s-12)}.form-icon[data-v-0bc5a180]{--ik-color-white: #fff;display:flex;align-items:center;justify-content:center;width:var(--435077c3);height:var(--435077c3);border-radius:4px}.form-icon i[data-v-0bc5a180]{font-size:27px;color:var(--ik-color-white)}.side-text[data-v-75852e7e]{display:flex}.side-text .side-left[data-v-75852e7e]{margin-right:12px}.side-text .side-right[data-v-75852e7e]{display:inline-flex;flex-direction:column;justify-content:center;overflow:hidden;text-overflow:ellipsis}.side-text .side-right p[data-v-75852e7e]{overflow:hidden;text-overflow:ellipsis}.side-text .side-right p[data-v-75852e7e]:last-child{color:#b5b5c3}
|