iking-web-ui-pro 0.2.21 → 0.2.22
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 +79 -73
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +302 -296
- package/dist/IKPreviewFile/ik.index.umd.js +16 -16
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +130 -124
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +306 -300
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +117 -111
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +242 -236
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +83 -77
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +434 -428
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +308 -302
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +140 -134
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +383 -377
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1135 -1129
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +588 -582
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +2960 -2954
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +111 -105
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +74 -68
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +720 -714
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +223 -217
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +5502 -5496
- package/dist/index.umd.js +78 -78
- package/dist/src/components/IkSvgIcon/index.d.ts +6 -2
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +6 -2
- 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-4a1004b9]{display:flex}.ik-svg-icon.ik-icon-span[data-v-4a1004b9]: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 x, computed as y, resolveComponent as _, openBlock as l, createElementBlock as s, withModifiers as w, normalizeClass as d, normalizeStyle as c, createCommentVNode as g, createElementVNode as u, createBlock as f, withCtx as b, createTextVNode as z, toDisplayString as k, useCssVars as C, unref as S, ref as L, Fragment as N, createVNode as j } from "vue";
|
|
2
|
+
import { ikColor as B } from "iking-utils-pro";
|
|
3
|
+
const $ = (t, n) => {
|
|
4
|
+
if (t.install = (i) => {
|
|
5
|
+
for (const e of [t, ...Object.values(n ?? {})])
|
|
6
|
+
i.component(e.name, e);
|
|
7
|
+
}, n)
|
|
8
|
+
for (const [i, e] of Object.entries(n))
|
|
9
|
+
t[i] = e;
|
|
10
10
|
return t;
|
|
11
|
-
},
|
|
12
|
-
const
|
|
13
|
-
for (const [
|
|
14
|
-
e
|
|
15
|
-
return
|
|
16
|
-
},
|
|
11
|
+
}, I = (t, n) => {
|
|
12
|
+
const i = t.__vccOpts || t;
|
|
13
|
+
for (const [e, o] of n)
|
|
14
|
+
i[e] = o;
|
|
15
|
+
return i;
|
|
16
|
+
}, V = {
|
|
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
|
+
}, E = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "h-[1em] w-[1em]",
|
|
22
22
|
"aria-hidden": "true"
|
|
23
|
-
},
|
|
23
|
+
}, G = ["xlink:href"], O = ["src"], U = {
|
|
24
24
|
key: 1,
|
|
25
25
|
class: "h-[1em] w-[1em]",
|
|
26
26
|
"aria-hidden": "true"
|
|
27
|
-
},
|
|
27
|
+
}, W = ["xlink:href"], F = ["src"], X = /* @__PURE__ */ x({
|
|
28
28
|
name: "IkSvgIcon",
|
|
29
29
|
__name: "index",
|
|
30
30
|
props: {
|
|
@@ -50,11 +50,12 @@ const S = (t, o) => {
|
|
|
50
50
|
warning: { type: Boolean },
|
|
51
51
|
width: {}
|
|
52
52
|
},
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
emits: ["click"],
|
|
54
|
+
setup(t, { emit: n }) {
|
|
55
|
+
const i = t, e = y(() => i), o = y(() => {
|
|
55
56
|
const { name: a } = e.value;
|
|
56
57
|
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";
|
|
57
|
-
}),
|
|
58
|
+
}), r = y(() => {
|
|
58
59
|
const a = [];
|
|
59
60
|
if (e.value.flip)
|
|
60
61
|
switch (e.value.flip) {
|
|
@@ -69,27 +70,30 @@ const S = (t, o) => {
|
|
|
69
70
|
break;
|
|
70
71
|
}
|
|
71
72
|
e.value.rotate && a.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
72
|
-
const
|
|
73
|
+
const p = {
|
|
73
74
|
...e.value.color && { color: e.value.color },
|
|
74
75
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
75
76
|
...a.length && { transform: a.join(" ") },
|
|
76
77
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
77
|
-
...e.value.color &&
|
|
78
|
+
...e.value.color && o.value !== "iksig" ? {
|
|
78
79
|
"--ik-color-icon-dark": e.value.color,
|
|
79
|
-
"--ik-color-icon-light": e.value.colorLight ||
|
|
80
|
+
"--ik-color-icon-light": e.value.colorLight || B.setOpacity(e.value.color, e.value.opacity)
|
|
80
81
|
} : {}
|
|
81
82
|
};
|
|
82
|
-
return e.value.width && (
|
|
83
|
-
})
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
return e.value.width && (p.width = p.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), p;
|
|
84
|
+
}), v = n, m = (a) => {
|
|
85
|
+
e.value.disabled || v("click", a);
|
|
86
|
+
};
|
|
87
|
+
return (a, p) => {
|
|
88
|
+
const h = _("el-tooltip"), T = _("el-button");
|
|
89
|
+
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (l(), s("span", V, [
|
|
90
|
+
e.value.notip || !e.value.title ? (l(), s(
|
|
88
91
|
"i",
|
|
89
92
|
{
|
|
90
93
|
key: 0,
|
|
91
|
-
|
|
92
|
-
|
|
94
|
+
onClick: w(m, ["stop"]),
|
|
95
|
+
class: d(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
96
|
+
[a.name]: o.value === "unocss",
|
|
93
97
|
"show-bg": e.value.showBg || e.value.bg,
|
|
94
98
|
default: e.value.size === "default",
|
|
95
99
|
small: e.value.size === "small",
|
|
@@ -101,34 +105,34 @@ const S = (t, o) => {
|
|
|
101
105
|
active: e.value.active,
|
|
102
106
|
disabled: e.value.disabled
|
|
103
107
|
}]),
|
|
104
|
-
style: c(
|
|
108
|
+
style: c(r.value)
|
|
105
109
|
},
|
|
106
110
|
[
|
|
107
|
-
|
|
108
|
-
|
|
111
|
+
g(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
112
|
+
o.value === "iksig" ? (l(), s(
|
|
109
113
|
"i",
|
|
110
114
|
{
|
|
111
115
|
key: 0,
|
|
112
|
-
class:
|
|
113
|
-
style: c(
|
|
116
|
+
class: d(`iksig ${e.value.name}`),
|
|
117
|
+
style: c(r.value)
|
|
114
118
|
},
|
|
115
119
|
null,
|
|
116
120
|
6
|
|
117
121
|
/* CLASS, STYLE */
|
|
118
|
-
)) :
|
|
122
|
+
)) : o.value === "svg" ? (l(), s("svg", E, [
|
|
119
123
|
u("use", {
|
|
120
124
|
"xlink:href": `#${e.value.name}`
|
|
121
|
-
}, null, 8,
|
|
122
|
-
])) :
|
|
125
|
+
}, null, 8, G)
|
|
126
|
+
])) : o.value === "img" ? (l(), s("img", {
|
|
123
127
|
key: 2,
|
|
124
128
|
src: e.value.name,
|
|
125
129
|
class: "h-[1em] w-[1em]"
|
|
126
|
-
}, null, 8,
|
|
130
|
+
}, null, 8, O)) : (l(), s(
|
|
127
131
|
"i",
|
|
128
132
|
{
|
|
129
133
|
key: 3,
|
|
130
|
-
class:
|
|
131
|
-
style: c(
|
|
134
|
+
class: d(e.value.name),
|
|
135
|
+
style: c(r.value)
|
|
132
136
|
},
|
|
133
137
|
null,
|
|
134
138
|
6
|
|
@@ -137,17 +141,17 @@ const S = (t, o) => {
|
|
|
137
141
|
],
|
|
138
142
|
6
|
|
139
143
|
/* CLASS, STYLE */
|
|
140
|
-
)) : (
|
|
144
|
+
)) : (l(), f(h, {
|
|
141
145
|
key: 1,
|
|
142
146
|
content: e.value.title,
|
|
143
147
|
placement: "top"
|
|
144
148
|
}, {
|
|
145
|
-
default:
|
|
149
|
+
default: b(() => [
|
|
146
150
|
u(
|
|
147
151
|
"i",
|
|
148
152
|
{
|
|
149
|
-
class:
|
|
150
|
-
[a.name]:
|
|
153
|
+
class: d(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
154
|
+
[a.name]: o.value === "unocss",
|
|
151
155
|
"show-bg": e.value.showBg || e.value.bg,
|
|
152
156
|
default: e.value.size === "default",
|
|
153
157
|
small: e.value.size === "small",
|
|
@@ -158,33 +162,34 @@ const S = (t, o) => {
|
|
|
158
162
|
error: e.value.error || e.value.type === "error",
|
|
159
163
|
active: e.value.active
|
|
160
164
|
}]),
|
|
161
|
-
|
|
165
|
+
onClick: w(m, ["stop"]),
|
|
166
|
+
style: c(r.value)
|
|
162
167
|
},
|
|
163
168
|
[
|
|
164
|
-
|
|
169
|
+
o.value === "iksig" ? (l(), s(
|
|
165
170
|
"i",
|
|
166
171
|
{
|
|
167
172
|
key: 0,
|
|
168
|
-
class:
|
|
169
|
-
style: c(
|
|
173
|
+
class: d(`iksig ${e.value.name}`),
|
|
174
|
+
style: c(r.value)
|
|
170
175
|
},
|
|
171
176
|
null,
|
|
172
177
|
6
|
|
173
178
|
/* CLASS, STYLE */
|
|
174
|
-
)) :
|
|
179
|
+
)) : o.value === "svg" ? (l(), s("svg", U, [
|
|
175
180
|
u("use", {
|
|
176
181
|
"xlink:href": `#${e.value.name}`
|
|
177
|
-
}, null, 8,
|
|
178
|
-
])) :
|
|
182
|
+
}, null, 8, W)
|
|
183
|
+
])) : o.value === "img" ? (l(), s("img", {
|
|
179
184
|
key: 2,
|
|
180
185
|
src: e.value.name,
|
|
181
186
|
class: "h-[1em] w-[1em]"
|
|
182
|
-
}, null, 8,
|
|
187
|
+
}, null, 8, F)) : (l(), s(
|
|
183
188
|
"i",
|
|
184
189
|
{
|
|
185
190
|
key: 3,
|
|
186
|
-
class:
|
|
187
|
-
style: c(
|
|
191
|
+
class: d(e.value.name),
|
|
192
|
+
style: c(r.value)
|
|
188
193
|
},
|
|
189
194
|
null,
|
|
190
195
|
6
|
|
@@ -198,13 +203,14 @@ const S = (t, o) => {
|
|
|
198
203
|
_: 1
|
|
199
204
|
/* STABLE */
|
|
200
205
|
}, 8, ["content"]))
|
|
201
|
-
])) : (
|
|
206
|
+
])) : (l(), f(T, {
|
|
202
207
|
key: 1,
|
|
203
|
-
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
208
|
+
type: ["warning", "error"].includes(e.value.type) ? "danger" : "",
|
|
209
|
+
onClick: w(m, ["stop"])
|
|
204
210
|
}, {
|
|
205
|
-
default:
|
|
206
|
-
|
|
207
|
-
|
|
211
|
+
default: b(() => [
|
|
212
|
+
z(
|
|
213
|
+
k(e.value.title),
|
|
208
214
|
1
|
|
209
215
|
/* TEXT */
|
|
210
216
|
)
|
|
@@ -215,12 +221,12 @@ const S = (t, o) => {
|
|
|
215
221
|
};
|
|
216
222
|
}
|
|
217
223
|
});
|
|
218
|
-
const
|
|
219
|
-
getLinearGradient: (
|
|
220
|
-
const
|
|
221
|
-
return `linear-gradient(to top, ${
|
|
224
|
+
const Y = /* @__PURE__ */ I(X, [["__scopeId", "data-v-4a1004b9"]]), q = $(Y), D = () => ({
|
|
225
|
+
getLinearGradient: (n) => {
|
|
226
|
+
const i = B.hexToRGB(n).replace(/[^\d,]/g, "").split(",").map(Number);
|
|
227
|
+
return `linear-gradient(to top, ${n} 4%, rgb(${i[0]},${i[1] + 50},${i[2]}) 88%)`;
|
|
222
228
|
}
|
|
223
|
-
}),
|
|
229
|
+
}), M = /* @__PURE__ */ x({
|
|
224
230
|
__name: "IkLinearIcon",
|
|
225
231
|
props: {
|
|
226
232
|
icon: {
|
|
@@ -237,21 +243,21 @@ const F = /* @__PURE__ */ _(W, [["__scopeId", "data-v-a7ec508a"]]), X = S(F), Y
|
|
|
237
243
|
}
|
|
238
244
|
},
|
|
239
245
|
setup(t) {
|
|
240
|
-
|
|
241
|
-
"435077c3":
|
|
246
|
+
C((o) => ({
|
|
247
|
+
"435077c3": e.value
|
|
242
248
|
}));
|
|
243
|
-
const
|
|
244
|
-
return (
|
|
249
|
+
const n = t, { getLinearGradient: i } = D(), e = y(() => `${n.size}px`);
|
|
250
|
+
return (o, r) => (l(), s(
|
|
245
251
|
"div",
|
|
246
252
|
{
|
|
247
253
|
class: "form-icon",
|
|
248
|
-
style: c({ backgroundImage:
|
|
254
|
+
style: c({ backgroundImage: S(i)(t.backgroundColor || "#28b8a4") })
|
|
249
255
|
},
|
|
250
256
|
[
|
|
251
257
|
u(
|
|
252
258
|
"i",
|
|
253
259
|
{
|
|
254
|
-
class:
|
|
260
|
+
class: d(`ikflow ${t.icon}`)
|
|
255
261
|
},
|
|
256
262
|
null,
|
|
257
263
|
2
|
|
@@ -263,7 +269,7 @@ const F = /* @__PURE__ */ _(W, [["__scopeId", "data-v-a7ec508a"]]), X = S(F), Y
|
|
|
263
269
|
));
|
|
264
270
|
}
|
|
265
271
|
});
|
|
266
|
-
const
|
|
272
|
+
const R = /* @__PURE__ */ I(M, [["__scopeId", "data-v-0bc5a180"]]), A = { class: "side-text items-center" }, H = { class: "side-left flex items-center" }, J = { class: "side-right" }, K = { class: "text-over-line" }, P = { class: "text-over-line" }, Q = /* @__PURE__ */ x({
|
|
267
273
|
__name: "IkSideText",
|
|
268
274
|
props: {
|
|
269
275
|
// 名称
|
|
@@ -321,30 +327,30 @@ const D = /* @__PURE__ */ _(q, [["__scopeId", "data-v-0bc5a180"]]), R = { class:
|
|
|
321
327
|
}
|
|
322
328
|
},
|
|
323
329
|
setup(t) {
|
|
324
|
-
const
|
|
325
|
-
|
|
330
|
+
const n = t, i = (v) => v ? v.startsWith("http") ? v : `${n.loadUrl}${v}` : "", e = y(() => i(n.avatar)), o = L(!!n.avatar), r = () => {
|
|
331
|
+
o.value = !1;
|
|
326
332
|
};
|
|
327
|
-
return (
|
|
328
|
-
var
|
|
329
|
-
const
|
|
330
|
-
return
|
|
331
|
-
u("div",
|
|
332
|
-
t.avatarType === "url" ? (
|
|
333
|
+
return (v, m) => {
|
|
334
|
+
var h;
|
|
335
|
+
const a = _("el-avatar"), p = _("el-tooltip");
|
|
336
|
+
return l(), s("div", A, [
|
|
337
|
+
u("div", H, [
|
|
338
|
+
t.avatarType === "url" ? (l(), f(a, {
|
|
333
339
|
key: 0,
|
|
334
340
|
style: { "--el-avatar-bg-color": "var(--ik-color-primary)" },
|
|
335
341
|
size: t.size,
|
|
336
342
|
shape: t.shape,
|
|
337
|
-
src:
|
|
343
|
+
src: e.value,
|
|
338
344
|
fit: "contain",
|
|
339
|
-
onError:
|
|
345
|
+
onError: r
|
|
340
346
|
}, {
|
|
341
|
-
default:
|
|
342
|
-
|
|
343
|
-
|
|
347
|
+
default: b(() => [
|
|
348
|
+
o.value ? g("v-if", !0) : (l(), s(
|
|
349
|
+
N,
|
|
344
350
|
{ key: 0 },
|
|
345
351
|
[
|
|
346
|
-
|
|
347
|
-
|
|
352
|
+
z(
|
|
353
|
+
k(t.name.slice(-2)),
|
|
348
354
|
1
|
|
349
355
|
/* TEXT */
|
|
350
356
|
)
|
|
@@ -355,35 +361,35 @@ const D = /* @__PURE__ */ _(q, [["__scopeId", "data-v-0bc5a180"]]), R = { class:
|
|
|
355
361
|
]),
|
|
356
362
|
_: 1
|
|
357
363
|
/* STABLE */
|
|
358
|
-
}, 8, ["size", "shape", "src"])) :
|
|
359
|
-
t.avatarType === "icon" ? (
|
|
364
|
+
}, 8, ["size", "shape", "src"])) : g("v-if", !0),
|
|
365
|
+
t.avatarType === "icon" ? (l(), f(S(q), {
|
|
360
366
|
key: 1,
|
|
361
|
-
name: `iksvg_${(
|
|
367
|
+
name: `iksvg_${(h = t.avatar) == null ? void 0 : h.replace("iksvg_", "")}`,
|
|
362
368
|
"show-bg": t.showIconBg,
|
|
363
369
|
type: t.iconType,
|
|
364
370
|
style: c({ fontSize: t.showIconBg ? "34px" : "50px" }),
|
|
365
371
|
size: t.iconSize
|
|
366
|
-
}, null, 8, ["name", "show-bg", "type", "style", "size"])) :
|
|
367
|
-
t.avatarType === "linearIcon" ? (
|
|
372
|
+
}, null, 8, ["name", "show-bg", "type", "style", "size"])) : g("v-if", !0),
|
|
373
|
+
t.avatarType === "linearIcon" ? (l(), f(R, {
|
|
368
374
|
key: 2,
|
|
369
375
|
icon: t.avatar,
|
|
370
376
|
"background-color": t.iconBackgroundColor
|
|
371
|
-
}, null, 8, ["icon", "background-color"])) :
|
|
377
|
+
}, null, 8, ["icon", "background-color"])) : g("v-if", !0)
|
|
372
378
|
]),
|
|
373
|
-
u("div",
|
|
379
|
+
u("div", J, [
|
|
374
380
|
u(
|
|
375
381
|
"p",
|
|
376
|
-
|
|
377
|
-
|
|
382
|
+
K,
|
|
383
|
+
k(t.text),
|
|
378
384
|
1
|
|
379
385
|
/* TEXT */
|
|
380
386
|
),
|
|
381
|
-
|
|
382
|
-
default:
|
|
387
|
+
j(p, { content: t.subText }, {
|
|
388
|
+
default: b(() => [
|
|
383
389
|
u(
|
|
384
390
|
"p",
|
|
385
|
-
|
|
386
|
-
|
|
391
|
+
P,
|
|
392
|
+
k(t.subText),
|
|
387
393
|
1
|
|
388
394
|
/* TEXT */
|
|
389
395
|
)
|
|
@@ -396,8 +402,8 @@ const D = /* @__PURE__ */ _(q, [["__scopeId", "data-v-0bc5a180"]]), R = { class:
|
|
|
396
402
|
};
|
|
397
403
|
}
|
|
398
404
|
});
|
|
399
|
-
const
|
|
405
|
+
const Z = /* @__PURE__ */ I(Q, [["__scopeId", "data-v-75852e7e"]]), ae = $(Z);
|
|
400
406
|
export {
|
|
401
|
-
|
|
402
|
-
|
|
407
|
+
ae as IkSideText,
|
|
408
|
+
ae as default
|
|
403
409
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(s,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):(s=typeof globalThis<"u"?globalThis:s||self,e(s.index={},s.vue,s["iking-utils-pro"]))})(this,function(s,e,y){"use strict";const f=(l,a)=>{if(l.install=n=>{for(const t of[l,...Object.values(a??{})])n.component(t.name,t)},a)for(const[n,t]of Object.entries(a))l[n]=t;return l},m=(l,a)=>{const n=l.__vccOpts||l;for(const[t,i]of a)n[t]=i;return n},k={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},h={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},_=["xlink:href"],v=["src"],B={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},b=["xlink:href"],w=["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:{}},emits:["click"],setup(l,{emit:a}){const n=l,t=e.computed(()=>n),i=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"}),c=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 d={...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&&i.value!=="iksig"?{"--ik-color-icon-dark":t.value.color,"--ik-color-icon-light":t.value.colorLight||y.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(d.width=d.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),d}),r=a,p=o=>{t.value.disabled||r("click",o)};return(o,d)=>{const u=e.resolveComponent("el-tooltip"),j=e.resolveComponent("el-button");return t.value.tableIconType==="icon"||!t.value.tableIconType?(e.openBlock(),e.createElementBlock("span",k,[t.value.notip||!t.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,onClick:e.withModifiers(p,["stop"]),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]:i.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(c.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),i.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(c.value)},null,6)):i.value==="svg"?(e.openBlock(),e.createElementBlock("svg",h,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,_)])):i.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(c.value)},null,6))],6)):(e.openBlock(),e.createBlock(u,{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]:i.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}]),onClick:e.withModifiers(p,["stop"]),style:e.normalizeStyle(c.value)},[i.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(c.value)},null,6)):i.value==="svg"?(e.openBlock(),e.createElementBlock("svg",B,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,b)])):i.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,w)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(c.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(j,{key:1,type:["warning","error"].includes(t.value.type)?"danger":"",onClick:e.withModifiers(p,["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),M="",z=f(m(x,[["__scopeId","data-v-4a1004b9"]])),S=()=>({getLinearGradient:a=>{const n=y.ikColor.hexToRGB(a).replace(/[^\d,]/g,"").split(",").map(Number);return`linear-gradient(to top, ${a} 4%, rgb(${n[0]},${n[1]+50},${n[2]}) 88%)`}}),C=e.defineComponent({__name:"IkLinearIcon",props:{icon:{type:String,default:""},backgroundColor:{type:String,default:""},size:{type:Number,default:40}},setup(l){e.useCssVars(i=>({"435077c3":t.value}));const a=l,{getLinearGradient:n}=S(),t=e.computed(()=>`${a.size}px`);return(i,c)=>(e.openBlock(),e.createElementBlock("div",{class:"form-icon",style:e.normalizeStyle({backgroundImage:e.unref(n)(l.backgroundColor||"#28b8a4")})},[e.createElementVNode("i",{class:e.normalizeClass(`ikflow ${l.icon}`)},null,2)],4))}}),D="",I=m(C,[["__scopeId","data-v-0bc5a180"]]),T={class:"side-text items-center"},E={class:"side-left flex items-center"},$={class:"side-right"},N={class:"text-over-line"},V={class:"text-over-line"},L=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 a=l,n=r=>r?r.startsWith("http")?r:`${a.loadUrl}${r}`:"",t=e.computed(()=>n(a.avatar)),i=e.ref(!!a.avatar),c=()=>{i.value=!1};return(r,p)=>{var u;const o=e.resolveComponent("el-avatar"),d=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("div",E,[l.avatarType==="url"?(e.openBlock(),e.createBlock(o,{key:0,style:{"--el-avatar-bg-color":"var(--ik-color-primary)"},size:l.size,shape:l.shape,src:t.value,fit:"contain",onError:c},{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_${(u=l.avatar)==null?void 0:u.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(I,{key:2,icon:l.avatar,"background-color":l.iconBackgroundColor},null,8,["icon","background-color"])):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",$,[e.createElementVNode("p",N,e.toDisplayString(l.text),1),e.createVNode(d,{content:l.subText},{default:e.withCtx(()=>[e.createElementVNode("p",V,e.toDisplayString(l.subText),1)]),_:1},8,["content"])])])}}}),G="",g=f(m(L,[["__scopeId","data-v-75852e7e"]]));s.IkSideText=g,s.default=g,Object.defineProperties(s,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-4a1004b9]{display:flex}.ik-svg-icon.ik-icon-span[data-v-4a1004b9]: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}
|