@mc-markets/ui 1.0.87 → 1.0.91
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/README.md +6 -31
- package/dist/components/TabCard/TabCardItem.vue.d.ts.map +1 -1
- package/dist/components/Tag/Tag.vue.d.ts +2 -0
- package/dist/components/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +111 -103
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -4
- package/packages/components/Form/Form.vue +1 -1
- package/packages/components/TabCard/TabCard.vue +0 -10
- package/packages/components/TabCard/TabCardItem.vue +0 -14
- package/packages/components/Tag/Tag.vue +50 -6
- package/packages/styles/colorfont/iconfont.css +1 -0
package/dist/index.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
var fe = Object.defineProperty, _e = Object.defineProperties;
|
|
2
2
|
var ge = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var F = Object.getOwnPropertySymbols;
|
|
4
4
|
var X = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var Q = (e, t, n) => t in e ? fe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, w = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
7
|
X.call(t, n) && Q(e, n, t[n]);
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
8
|
+
if (F)
|
|
9
|
+
for (var n of F(t))
|
|
10
10
|
Y.call(t, n) && Q(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, E = (e, t) => _e(e, ge(t));
|
|
13
|
-
var
|
|
13
|
+
var D = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var s in e)
|
|
16
16
|
X.call(e, s) && t.indexOf(s) < 0 && (n[s] = e[s]);
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var s of
|
|
17
|
+
if (e != null && F)
|
|
18
|
+
for (var s of F(e))
|
|
19
19
|
t.indexOf(s) < 0 && Y.call(e, s) && (n[s] = e[s]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
@@ -36,7 +36,7 @@ var H = (e, t, n) => new Promise((s, o) => {
|
|
|
36
36
|
l((n = n.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
38
|
import * as ee from "element-plus";
|
|
39
|
-
import { computed as
|
|
39
|
+
import { computed as h, createElementBlock as c, openBlock as i, mergeProps as $, renderSlot as m, createBlock as f, createSlots as v, renderList as _, withCtx as p, ref as O, useAttrs as R, unref as I, normalizeProps as U, guardReactiveProps as q, createCommentVNode as C, createElementVNode as y, Fragment as j, normalizeClass as T, mergeModels as K, useModel as be, createVNode as L, Teleport as te, TransitionGroup as se, resolveDynamicComponent as ne, toDisplayString as x, useSlots as ve, watch as V, normalizeStyle as oe, createTextVNode as ae, provide as re, onMounted as le, nextTick as he, withDirectives as ye, vShow as $e, inject as ie, onUnmounted as Me } from "vue";
|
|
40
40
|
import { ElButton as Ce, ElInput as ke, ElForm as we, ElFormItem as Se, ElTooltip as Te, ElSelect as Ie, ElOption as Be, ElOptionGroup as Oe, ElPagination as Ee, ElRadio as xe, ElRadioGroup as Pe, ElRadioButton as je, ElSwitch as Ae, ElTag as Ne, ElAlert as Le, ElDialog as Ve, ElNotification as Re, ElDatePicker as ze, ElEmpty as Fe, ElTable as De, ElTableColumn as Ge } from "element-plus/es";
|
|
41
41
|
import "element-plus/es/components/base/style/index";
|
|
42
42
|
import "element-plus/es/components/button/style/index";
|
|
@@ -105,16 +105,16 @@ const S = (e, t) => {
|
|
|
105
105
|
},
|
|
106
106
|
emits: ["click"],
|
|
107
107
|
setup(e, { emit: t }) {
|
|
108
|
-
const n = e, s = t, o =
|
|
108
|
+
const n = e, s = t, o = h(() => {
|
|
109
109
|
const l = ["iconfont"];
|
|
110
110
|
return n.name && l.push(`${n.prefix}-${n.name}`), n.spin && l.push("icon-spin"), n.pulse && l.push("icon-pulse"), n.flip && l.push(`icon-flip-${n.flip}`), l;
|
|
111
|
-
}), a =
|
|
111
|
+
}), a = h(() => {
|
|
112
112
|
const l = {};
|
|
113
113
|
return n.size && (typeof n.size == "number" ? l.fontSize = `${n.size}px` : l.fontSize = n.size), n.color && (l.color = n.color), n.rotate !== 0 && (l.transform = `rotate(${n.rotate}deg)`), l;
|
|
114
114
|
}), r = (l) => {
|
|
115
115
|
s("click", l);
|
|
116
116
|
};
|
|
117
|
-
return (l, d) => (i(), c("i",
|
|
117
|
+
return (l, d) => (i(), c("i", $({
|
|
118
118
|
class: o.value,
|
|
119
119
|
style: a.value
|
|
120
120
|
}, l.$attrs, { onClick: r }), [
|
|
@@ -128,7 +128,7 @@ const S = (e, t) => {
|
|
|
128
128
|
setup(e) {
|
|
129
129
|
return (t, n) => {
|
|
130
130
|
const s = Ce;
|
|
131
|
-
return i(), f(s,
|
|
131
|
+
return i(), f(s, $(t.$attrs, { class: "m-button" }), v({ _: 2 }, [
|
|
132
132
|
_(t.$slots, (o, a) => ({
|
|
133
133
|
name: a,
|
|
134
134
|
fn: p(() => [
|
|
@@ -145,7 +145,7 @@ const S = (e, t) => {
|
|
|
145
145
|
setup(e) {
|
|
146
146
|
return (t, n) => {
|
|
147
147
|
const s = ke;
|
|
148
|
-
return i(), f(s,
|
|
148
|
+
return i(), f(s, $(t.$attrs, {
|
|
149
149
|
class: ["m-input", { solid: t.$attrs.styleType === "solid" }]
|
|
150
150
|
}), v({ _: 2 }, [
|
|
151
151
|
_(t.$slots, (o, a) => ({
|
|
@@ -163,7 +163,7 @@ const S = (e, t) => {
|
|
|
163
163
|
__name: "Form",
|
|
164
164
|
setup(e, { expose: t }) {
|
|
165
165
|
const n = O();
|
|
166
|
-
return
|
|
166
|
+
return R(), t({
|
|
167
167
|
validate: (s) => {
|
|
168
168
|
var o;
|
|
169
169
|
return (o = n.value) == null ? void 0 : o.validate(s);
|
|
@@ -186,7 +186,7 @@ const S = (e, t) => {
|
|
|
186
186
|
}
|
|
187
187
|
}), (s, o) => {
|
|
188
188
|
const a = we;
|
|
189
|
-
return i(), f(a,
|
|
189
|
+
return i(), f(a, $({
|
|
190
190
|
ref_key: "formRef",
|
|
191
191
|
ref: n
|
|
192
192
|
}, s.$attrs, { class: "m-form" }), v({ _: 2 }, [
|
|
@@ -206,7 +206,7 @@ const S = (e, t) => {
|
|
|
206
206
|
setup(e) {
|
|
207
207
|
return (t, n) => {
|
|
208
208
|
const s = Se;
|
|
209
|
-
return i(), f(s,
|
|
209
|
+
return i(), f(s, $(t.$attrs, { class: "m-form-item" }), v({ _: 2 }, [
|
|
210
210
|
_(t.$slots, (o, a) => ({
|
|
211
211
|
name: a,
|
|
212
212
|
fn: p(() => [
|
|
@@ -223,7 +223,7 @@ const S = (e, t) => {
|
|
|
223
223
|
}), n;
|
|
224
224
|
};
|
|
225
225
|
function A(e, t = "popperClass") {
|
|
226
|
-
const n =
|
|
226
|
+
const n = R(), s = h(() => Xe(n, t)), o = h(() => Qe(e, n[t]));
|
|
227
227
|
return {
|
|
228
228
|
mergedAttrs: s,
|
|
229
229
|
className: o
|
|
@@ -243,7 +243,7 @@ const Ye = /* @__PURE__ */ Object.assign({
|
|
|
243
243
|
const { mergedAttrs: t, className: n } = A("mc-tooltip-popper");
|
|
244
244
|
return (s, o) => {
|
|
245
245
|
const a = Te;
|
|
246
|
-
return i(), f(a,
|
|
246
|
+
return i(), f(a, $(I(t), { "popper-class": I(n) }), v({ _: 2 }, [
|
|
247
247
|
_(s.$slots, (r, l) => ({
|
|
248
248
|
name: l,
|
|
249
249
|
fn: p(() => [
|
|
@@ -260,7 +260,7 @@ const Ye = /* @__PURE__ */ Object.assign({
|
|
|
260
260
|
setup(e) {
|
|
261
261
|
return (t, n) => {
|
|
262
262
|
const s = Ie;
|
|
263
|
-
return i(), f(s,
|
|
263
|
+
return i(), f(s, $({
|
|
264
264
|
class: ["m-select", { solid: t.$attrs.styleType === "solid" }],
|
|
265
265
|
"show-arrow": !1
|
|
266
266
|
}, t.$attrs), v({ _: 2 }, [
|
|
@@ -280,7 +280,7 @@ const Ye = /* @__PURE__ */ Object.assign({
|
|
|
280
280
|
setup(e) {
|
|
281
281
|
return (t, n) => {
|
|
282
282
|
const s = Be;
|
|
283
|
-
return i(), f(s,
|
|
283
|
+
return i(), f(s, U(q(t.$attrs)), v({ _: 2 }, [
|
|
284
284
|
_(t.$slots, (o, a) => ({
|
|
285
285
|
name: a,
|
|
286
286
|
fn: p(() => [
|
|
@@ -297,7 +297,7 @@ const Ye = /* @__PURE__ */ Object.assign({
|
|
|
297
297
|
setup(e) {
|
|
298
298
|
return (t, n) => {
|
|
299
299
|
const s = Oe;
|
|
300
|
-
return i(), f(s,
|
|
300
|
+
return i(), f(s, U(q(t.$attrs)), v({ _: 2 }, [
|
|
301
301
|
_(t.$slots, (o, a) => ({
|
|
302
302
|
name: a,
|
|
303
303
|
fn: p(() => [
|
|
@@ -314,7 +314,7 @@ const Ye = /* @__PURE__ */ Object.assign({
|
|
|
314
314
|
setup(e) {
|
|
315
315
|
return (t, n) => {
|
|
316
316
|
const s = Ee;
|
|
317
|
-
return i(), f(s,
|
|
317
|
+
return i(), f(s, $(t.$attrs, { class: "m-pagination" }), v({ _: 2 }, [
|
|
318
318
|
_(t.$slots, (o, a) => ({
|
|
319
319
|
name: a,
|
|
320
320
|
fn: p(() => [
|
|
@@ -338,7 +338,7 @@ const Ye = /* @__PURE__ */ Object.assign({
|
|
|
338
338
|
const { mergedAttrs: t } = A("mc-radio-popper");
|
|
339
339
|
return (n, s) => {
|
|
340
340
|
const o = xe;
|
|
341
|
-
return i(), f(o,
|
|
341
|
+
return i(), f(o, $(I(t), { class: "m-radio" }), v({ _: 2 }, [
|
|
342
342
|
_(n.$slots, (a, r) => ({
|
|
343
343
|
name: r,
|
|
344
344
|
fn: p(() => [
|
|
@@ -359,16 +359,16 @@ const Ye = /* @__PURE__ */ Object.assign({
|
|
|
359
359
|
}
|
|
360
360
|
},
|
|
361
361
|
setup(e) {
|
|
362
|
-
const t =
|
|
362
|
+
const t = R(), n = h(() => {
|
|
363
363
|
const o = "mc-radio-group-popper";
|
|
364
364
|
return t.popperClass ? `${o} ${t.popperClass}`.trim() : o;
|
|
365
|
-
}), s =
|
|
365
|
+
}), s = h(() => {
|
|
366
366
|
const r = t, { popperClass: o } = r;
|
|
367
|
-
return
|
|
367
|
+
return D(r, ["popperClass"]);
|
|
368
368
|
});
|
|
369
369
|
return (o, a) => {
|
|
370
370
|
const r = Pe;
|
|
371
|
-
return i(), f(r,
|
|
371
|
+
return i(), f(r, $(s.value, {
|
|
372
372
|
"popper-class": n.value,
|
|
373
373
|
class: "m-radio-group"
|
|
374
374
|
}), v({ _: 2 }, [
|
|
@@ -395,7 +395,7 @@ const Ye = /* @__PURE__ */ Object.assign({
|
|
|
395
395
|
const { mergedAttrs: t } = A("mc-radio-button-popper");
|
|
396
396
|
return (n, s) => {
|
|
397
397
|
const o = je;
|
|
398
|
-
return i(), f(o,
|
|
398
|
+
return i(), f(o, $(I(t), { class: "m-radio-button" }), v({ _: 2 }, [
|
|
399
399
|
_(n.$slots, (a, r) => ({
|
|
400
400
|
name: r,
|
|
401
401
|
fn: p(() => [
|
|
@@ -419,7 +419,7 @@ const Ye = /* @__PURE__ */ Object.assign({
|
|
|
419
419
|
const { mergedAttrs: t, className: n } = A("mc-switch-popper");
|
|
420
420
|
return (s, o) => {
|
|
421
421
|
const a = Ae;
|
|
422
|
-
return i(), f(a,
|
|
422
|
+
return i(), f(a, $(I(t), {
|
|
423
423
|
"popper-class": I(n),
|
|
424
424
|
class: "m-switch"
|
|
425
425
|
}), v({ _: 2 }, [
|
|
@@ -451,36 +451,44 @@ const Ye = /* @__PURE__ */ Object.assign({
|
|
|
451
451
|
loading: {
|
|
452
452
|
type: Boolean,
|
|
453
453
|
default: !1
|
|
454
|
+
},
|
|
455
|
+
status: {
|
|
456
|
+
type: String,
|
|
457
|
+
default: ""
|
|
454
458
|
}
|
|
455
459
|
},
|
|
456
460
|
setup(e) {
|
|
457
|
-
const t = e, n =
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
461
|
+
const t = e, n = h(() => {
|
|
462
|
+
if (t.status)
|
|
463
|
+
return t.status;
|
|
464
|
+
}), s = h(() => t.status === "warning" ? !0 : t.loading), o = h(() => t.prefixIcon ? t.prefixIcon : t.status === "success" ? "icon-circle-check-filled" : t.status === "danger" ? "icon-lucide_circle-x-filled" : ""), a = h(() => t.suffixIcon ? t.suffixIcon : "");
|
|
465
|
+
return (r, l) => {
|
|
466
|
+
const d = Ne;
|
|
467
|
+
return i(), f(d, $(r.$attrs, {
|
|
468
|
+
type: n.value,
|
|
469
|
+
class: ["m-tag", { "is-loading": s.value }]
|
|
462
470
|
}), v({ _: 2 }, [
|
|
463
|
-
_(
|
|
464
|
-
name:
|
|
471
|
+
_(r.$slots, (g, M) => ({
|
|
472
|
+
name: M,
|
|
465
473
|
fn: p(() => [
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
(i(), c(j, null, _(8, (
|
|
474
|
+
s.value && !o.value ? (i(), c("div", lt, [
|
|
475
|
+
y("div", it, [
|
|
476
|
+
(i(), c(j, null, _(8, (N) => y("div", { key: N })), 64))
|
|
469
477
|
])
|
|
470
|
-
])) :
|
|
478
|
+
])) : o.value ? (i(), c("i", {
|
|
471
479
|
key: 1,
|
|
472
|
-
class: T(["prefixIcon", ["iconfont",
|
|
480
|
+
class: T(["prefixIcon", ["iconfont", o.value]])
|
|
473
481
|
}, null, 2)) : C("", !0),
|
|
474
|
-
|
|
475
|
-
m(
|
|
482
|
+
y("div", null, [
|
|
483
|
+
m(r.$slots, M)
|
|
476
484
|
]),
|
|
477
|
-
|
|
485
|
+
a.value ? (i(), c("i", {
|
|
478
486
|
key: 2,
|
|
479
|
-
class: T(["suffixIcon", ["iconfont",
|
|
487
|
+
class: T(["suffixIcon", ["iconfont", a.value]])
|
|
480
488
|
}, null, 2)) : C("", !0)
|
|
481
489
|
])
|
|
482
490
|
}))
|
|
483
|
-
]), 1040, ["class"]);
|
|
491
|
+
]), 1040, ["type", "class"]);
|
|
484
492
|
};
|
|
485
493
|
}
|
|
486
494
|
}), ut = ["src", "alt"], dt = ["success", "warning", "error"], mt = {
|
|
@@ -498,20 +506,20 @@ const Ye = /* @__PURE__ */ Object.assign({
|
|
|
498
506
|
}
|
|
499
507
|
},
|
|
500
508
|
setup(e) {
|
|
501
|
-
const t = e, n =
|
|
502
|
-
const l = n, { useCustomIcon: a } = l, r =
|
|
509
|
+
const t = e, n = R(), s = h(() => {
|
|
510
|
+
const l = n, { useCustomIcon: a } = l, r = D(l, ["useCustomIcon"]);
|
|
503
511
|
return E(w({}, r), {
|
|
504
512
|
type: t.type
|
|
505
513
|
// 确保 type 属性正确传递给 el-alert
|
|
506
514
|
});
|
|
507
|
-
}), o =
|
|
515
|
+
}), o = h(() => t.useCustomIcon ? `https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-${t.type}.png` : null);
|
|
508
516
|
return (a, r) => {
|
|
509
517
|
const l = Le;
|
|
510
|
-
return i(), f(l,
|
|
518
|
+
return i(), f(l, $(s.value, { class: "mc-alert" }), v({ _: 2 }, [
|
|
511
519
|
o.value ? {
|
|
512
520
|
name: "icon",
|
|
513
521
|
fn: p(() => [
|
|
514
|
-
|
|
522
|
+
y("img", {
|
|
515
523
|
src: o.value,
|
|
516
524
|
alt: `${e.type} icon`,
|
|
517
525
|
class: "mc-alert-icon"
|
|
@@ -566,7 +574,7 @@ const Ye = /* @__PURE__ */ Object.assign({
|
|
|
566
574
|
return (s, o) => {
|
|
567
575
|
const a = Ve;
|
|
568
576
|
return i(), c("div", null, [
|
|
569
|
-
|
|
577
|
+
L(a, $({
|
|
570
578
|
modelValue: n.value,
|
|
571
579
|
"onUpdate:modelValue": o[0] || (o[0] = (r) => n.value = r),
|
|
572
580
|
width: e.width,
|
|
@@ -586,7 +594,7 @@ const Ye = /* @__PURE__ */ Object.assign({
|
|
|
586
594
|
s.$slots.header ? {
|
|
587
595
|
name: "header",
|
|
588
596
|
fn: p(({ close: r, titleId: l, titleClass: d }) => [
|
|
589
|
-
m(s.$slots, "header",
|
|
597
|
+
m(s.$slots, "header", U(q({ close: r, titleId: l, titleClass: d })))
|
|
590
598
|
]),
|
|
591
599
|
key: "0"
|
|
592
600
|
} : void 0,
|
|
@@ -606,7 +614,7 @@ const Ye = /* @__PURE__ */ Object.assign({
|
|
|
606
614
|
};
|
|
607
615
|
function gt(e, t, n, s, o, a) {
|
|
608
616
|
const r = Re;
|
|
609
|
-
return i(), f(r,
|
|
617
|
+
return i(), f(r, $(e.$attrs, { class: "mc-notification" }), v({ _: 2 }, [
|
|
610
618
|
_(e.$slots, (l, d) => ({
|
|
611
619
|
name: d,
|
|
612
620
|
fn: p(() => [
|
|
@@ -711,7 +719,7 @@ const ht = {
|
|
|
711
719
|
}, Et = ["onClick"];
|
|
712
720
|
function xt(e, t, n, s, o, a) {
|
|
713
721
|
return i(), f(te, { to: "body" }, [
|
|
714
|
-
|
|
722
|
+
L(se, {
|
|
715
723
|
name: "message",
|
|
716
724
|
tag: "div",
|
|
717
725
|
class: "message-container"
|
|
@@ -734,7 +742,7 @@ function xt(e, t, n, s, o, a) {
|
|
|
734
742
|
class: "message-icon-img"
|
|
735
743
|
}, null, 8, Ct)) : r.type === "success" ? (i(), c("img", kt)) : r.type === "warning" ? (i(), c("img", wt)) : r.type === "error" ? (i(), c("img", St)) : C("", !0)
|
|
736
744
|
])) : C("", !0),
|
|
737
|
-
|
|
745
|
+
y("div", Tt, [
|
|
738
746
|
typeof r.message == "function" ? (i(), f(ne(r.message), { key: 0 })) : r.dangerouslyUseHTMLString ? (i(), c("div", {
|
|
739
747
|
key: 1,
|
|
740
748
|
innerHTML: r.message
|
|
@@ -811,7 +819,7 @@ const sn = {
|
|
|
811
819
|
}, zt = ["onClick"];
|
|
812
820
|
function Ft(e, t, n, s, o, a) {
|
|
813
821
|
return i(), f(te, { to: "body" }, [
|
|
814
|
-
|
|
822
|
+
L(se, {
|
|
815
823
|
name: "notification",
|
|
816
824
|
tag: "div",
|
|
817
825
|
class: "notification-container"
|
|
@@ -824,15 +832,15 @@ function Ft(e, t, n, s, o, a) {
|
|
|
824
832
|
`notification-${r.position}`
|
|
825
833
|
])
|
|
826
834
|
}, [
|
|
827
|
-
t[0] || (t[0] =
|
|
828
|
-
|
|
835
|
+
t[0] || (t[0] = y("div", { class: "notification-icon" }, [
|
|
836
|
+
y("img", {
|
|
829
837
|
src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/MCImages/userCenter/icon-quota-tip.png",
|
|
830
838
|
alt: "notification icon"
|
|
831
839
|
})
|
|
832
840
|
], -1)),
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
841
|
+
y("div", Nt, [
|
|
842
|
+
y("div", Lt, x(r.title), 1),
|
|
843
|
+
y("div", Vt, x(r.message), 1),
|
|
836
844
|
r.slotContent ? (i(), c("div", Rt, [
|
|
837
845
|
(i(), f(ne(r.slotContent)))
|
|
838
846
|
])) : C("", !0)
|
|
@@ -868,7 +876,7 @@ const ue = /* @__PURE__ */ S(At, [["render", Ft]]), Dt = /* @__PURE__ */ Object.
|
|
|
868
876
|
);
|
|
869
877
|
return (s, o) => {
|
|
870
878
|
const a = ze;
|
|
871
|
-
return i(), f(a,
|
|
879
|
+
return i(), f(a, $(I(t), {
|
|
872
880
|
class: ["m-datepicker", { "style-type-solid": e.styleType === "solid" }],
|
|
873
881
|
"popper-class": I(n)
|
|
874
882
|
}), v({ _: 2 }, [
|
|
@@ -909,16 +917,16 @@ const ue = /* @__PURE__ */ S(At, [["render", Ft]]), Dt = /* @__PURE__ */ Object.
|
|
|
909
917
|
}
|
|
910
918
|
},
|
|
911
919
|
setup(e) {
|
|
912
|
-
const t = e, n =
|
|
920
|
+
const t = e, n = R(), s = h(() => {
|
|
913
921
|
const l = n, { image: a } = l;
|
|
914
|
-
return
|
|
915
|
-
}), o =
|
|
922
|
+
return D(l, ["image"]);
|
|
923
|
+
}), o = h(() => {
|
|
916
924
|
const { image: a } = t;
|
|
917
925
|
return a.includes("/") || a.includes("http") ? a : `https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/empty/${a}.png`;
|
|
918
926
|
});
|
|
919
927
|
return (a, r) => {
|
|
920
928
|
const l = Fe;
|
|
921
|
-
return i(), f(l,
|
|
929
|
+
return i(), f(l, $(s.value, { image: o.value }), v({ _: 2 }, [
|
|
922
930
|
_(a.$slots, (d, g) => ({
|
|
923
931
|
name: g,
|
|
924
932
|
fn: p(() => [
|
|
@@ -935,7 +943,7 @@ const ue = /* @__PURE__ */ S(At, [["render", Ft]]), Dt = /* @__PURE__ */ Object.
|
|
|
935
943
|
setup(e) {
|
|
936
944
|
return (t, n) => {
|
|
937
945
|
const s = De;
|
|
938
|
-
return i(), f(s,
|
|
946
|
+
return i(), f(s, U(q(t.$attrs)), v({ _: 2 }, [
|
|
939
947
|
_(t.$slots, (o, a) => ({
|
|
940
948
|
name: a,
|
|
941
949
|
fn: p(() => [
|
|
@@ -952,7 +960,7 @@ const ue = /* @__PURE__ */ S(At, [["render", Ft]]), Dt = /* @__PURE__ */ Object.
|
|
|
952
960
|
setup(e) {
|
|
953
961
|
return (t, n) => {
|
|
954
962
|
const s = Ge;
|
|
955
|
-
return i(), f(s,
|
|
963
|
+
return i(), f(s, $(t.$attrs, { class: "m-table-column" }), v({ _: 2 }, [
|
|
956
964
|
_(t.$slots, (o, a) => ({
|
|
957
965
|
name: a,
|
|
958
966
|
fn: p(() => [
|
|
@@ -1030,10 +1038,10 @@ const ue = /* @__PURE__ */ S(At, [["render", Ft]]), Dt = /* @__PURE__ */ Object.
|
|
|
1030
1038
|
emits: ["close", "update:visible"],
|
|
1031
1039
|
setup(e, { expose: t, emit: n }) {
|
|
1032
1040
|
const s = ve(), o = e, a = n, r = O(o.visible);
|
|
1033
|
-
|
|
1041
|
+
V(() => o.visible, (M) => {
|
|
1034
1042
|
r.value = M;
|
|
1035
1043
|
});
|
|
1036
|
-
const l =
|
|
1044
|
+
const l = h(() => {
|
|
1037
1045
|
const M = {};
|
|
1038
1046
|
return o.backgroundColor && (M.backgroundColor = o.backgroundColor), o.textColor && (M.color = o.textColor), o.borderColor && (M.borderColor = o.borderColor), M;
|
|
1039
1047
|
}), d = {
|
|
@@ -1042,17 +1050,17 @@ const ue = /* @__PURE__ */ S(At, [["render", Ft]]), Dt = /* @__PURE__ */ Object.
|
|
|
1042
1050
|
warning: "warning",
|
|
1043
1051
|
error: "close-circle"
|
|
1044
1052
|
};
|
|
1045
|
-
|
|
1053
|
+
h(() => o.icon || d[o.type]);
|
|
1046
1054
|
const g = () => {
|
|
1047
1055
|
r.value = !1, a("update:visible", !1), a("close");
|
|
1048
1056
|
};
|
|
1049
|
-
return
|
|
1057
|
+
return V(r, (M) => {
|
|
1050
1058
|
M && o.duration > 0 && setTimeout(() => {
|
|
1051
1059
|
g();
|
|
1052
1060
|
}, o.duration);
|
|
1053
1061
|
}), t({
|
|
1054
1062
|
close: g
|
|
1055
|
-
}), (M,
|
|
1063
|
+
}), (M, N) => e.visible ? (i(), c("div", {
|
|
1056
1064
|
key: 0,
|
|
1057
1065
|
class: T(["m-banner", [
|
|
1058
1066
|
`m-banner--${e.type}`,
|
|
@@ -1063,16 +1071,16 @@ const ue = /* @__PURE__ */ S(At, [["render", Ft]]), Dt = /* @__PURE__ */ Object.
|
|
|
1063
1071
|
]]),
|
|
1064
1072
|
style: oe(l.value)
|
|
1065
1073
|
}, [
|
|
1066
|
-
|
|
1074
|
+
y("div", Zt, [
|
|
1067
1075
|
e.icon || I(s).icon ? (i(), c("div", Jt, [
|
|
1068
1076
|
m(M.$slots, "icon", {}, () => [
|
|
1069
|
-
|
|
1077
|
+
L(Z, {
|
|
1070
1078
|
name: e.icon,
|
|
1071
1079
|
size: e.iconSize
|
|
1072
1080
|
}, null, 8, ["name", "size"])
|
|
1073
1081
|
], !0)
|
|
1074
1082
|
])) : C("", !0),
|
|
1075
|
-
|
|
1083
|
+
y("div", Qt, [
|
|
1076
1084
|
m(M.$slots, "default", {}, () => [
|
|
1077
1085
|
ae(x(e.content), 1)
|
|
1078
1086
|
], !0)
|
|
@@ -1082,7 +1090,7 @@ const ue = /* @__PURE__ */ S(At, [["render", Ft]]), Dt = /* @__PURE__ */ Object.
|
|
|
1082
1090
|
class: "m-banner__close",
|
|
1083
1091
|
onClick: g
|
|
1084
1092
|
}, [
|
|
1085
|
-
|
|
1093
|
+
L(Z, {
|
|
1086
1094
|
name: "lucide-x",
|
|
1087
1095
|
size: e.closeIconSize
|
|
1088
1096
|
}, null, 8, ["size"])
|
|
@@ -1145,21 +1153,21 @@ const ue = /* @__PURE__ */ S(At, [["render", Ft]]), Dt = /* @__PURE__ */ Object.
|
|
|
1145
1153
|
}, g = () => {
|
|
1146
1154
|
t("tab-add"), t("edit", null, "add");
|
|
1147
1155
|
}, M = (b) => {
|
|
1148
|
-
const k = s.value.findIndex((
|
|
1156
|
+
const k = s.value.findIndex((z) => z.name === b.name);
|
|
1149
1157
|
k === -1 ? s.value.push(b) : s.value[k] = b;
|
|
1150
|
-
},
|
|
1151
|
-
const k = s.value.findIndex((
|
|
1158
|
+
}, N = (b) => {
|
|
1159
|
+
const k = s.value.findIndex((z) => z.name === b);
|
|
1152
1160
|
k > -1 && s.value.splice(k, 1);
|
|
1153
1161
|
};
|
|
1154
1162
|
return re("tabsContext", {
|
|
1155
1163
|
activeTab: o,
|
|
1156
1164
|
registerTab: M,
|
|
1157
|
-
unregisterTab:
|
|
1165
|
+
unregisterTab: N,
|
|
1158
1166
|
handleTabRemove: d,
|
|
1159
1167
|
handleTabAdd: g
|
|
1160
|
-
}),
|
|
1168
|
+
}), V(() => e.modelValue, (b, k) => {
|
|
1161
1169
|
b !== o.value && (o.value = b, t("tab-change", b, k), r());
|
|
1162
|
-
}),
|
|
1170
|
+
}), V(s, () => {
|
|
1163
1171
|
r();
|
|
1164
1172
|
}, { deep: !0 }), le(() => {
|
|
1165
1173
|
if (!o.value && s.value.length > 0) {
|
|
@@ -1176,7 +1184,7 @@ const ue = /* @__PURE__ */ S(At, [["render", Ft]]), Dt = /* @__PURE__ */ Object.
|
|
|
1176
1184
|
handleTabRemove: d,
|
|
1177
1185
|
handleTabAdd: g,
|
|
1178
1186
|
registerTab: M,
|
|
1179
|
-
unregisterTab:
|
|
1187
|
+
unregisterTab: N,
|
|
1180
1188
|
updateActiveBarPosition: r
|
|
1181
1189
|
};
|
|
1182
1190
|
}
|
|
@@ -1188,8 +1196,8 @@ function os(e, t, n, s, o, a) {
|
|
|
1188
1196
|
return i(), c("div", {
|
|
1189
1197
|
class: T(["m-tabs", { "style-solid": n.styleType === "solid" }])
|
|
1190
1198
|
}, [
|
|
1191
|
-
|
|
1192
|
-
|
|
1199
|
+
y("div", es, [
|
|
1200
|
+
y("div", ts, [
|
|
1193
1201
|
(i(!0), c(j, null, _(s.tabs, (r, l) => (i(), c("div", {
|
|
1194
1202
|
key: r.name,
|
|
1195
1203
|
class: T([
|
|
@@ -1205,7 +1213,7 @@ function os(e, t, n, s, o, a) {
|
|
|
1205
1213
|
}, null, 4)) : C("", !0)
|
|
1206
1214
|
], 512)
|
|
1207
1215
|
]),
|
|
1208
|
-
|
|
1216
|
+
y("div", ns, [
|
|
1209
1217
|
m(e.$slots, "default", {}, void 0, !0)
|
|
1210
1218
|
])
|
|
1211
1219
|
], 2);
|
|
@@ -1231,7 +1239,7 @@ const as = /* @__PURE__ */ S(Kt, [["render", os], ["__scopeId", "data-v-37dc138d
|
|
|
1231
1239
|
}
|
|
1232
1240
|
},
|
|
1233
1241
|
setup(e) {
|
|
1234
|
-
const t = ie("tabsContext"), n =
|
|
1242
|
+
const t = ie("tabsContext"), n = h(() => e.name || e.label), s = h(() => t.activeTab.value === n.value);
|
|
1235
1243
|
return le(() => {
|
|
1236
1244
|
const o = {
|
|
1237
1245
|
label: e.label,
|
|
@@ -1277,7 +1285,7 @@ const is = /* @__PURE__ */ S(rs, [["render", ls], ["__scopeId", "data-v-31f89b3b
|
|
|
1277
1285
|
},
|
|
1278
1286
|
emits: ["click"],
|
|
1279
1287
|
setup(e, { emit: t }) {
|
|
1280
|
-
const n = e, s = t, o = ie("tabCardContext"), a =
|
|
1288
|
+
const n = e, s = t, o = ie("tabCardContext"), a = h(() => o.activeTab.value === n.name), r = () => {
|
|
1281
1289
|
n.disabled || (o.handleTabClick(n.name, n.disabled), s("click", n.name));
|
|
1282
1290
|
};
|
|
1283
1291
|
return (l, d) => (i(), c("div", {
|
|
@@ -1290,14 +1298,14 @@ const is = /* @__PURE__ */ S(rs, [["render", ls], ["__scopeId", "data-v-31f89b3b
|
|
|
1290
1298
|
]),
|
|
1291
1299
|
onClick: r
|
|
1292
1300
|
}, [
|
|
1293
|
-
|
|
1301
|
+
y("span", cs, [
|
|
1294
1302
|
m(l.$slots, "default", {}, () => [
|
|
1295
1303
|
ae(x(e.label), 1)
|
|
1296
1304
|
], !0)
|
|
1297
1305
|
])
|
|
1298
1306
|
], 2));
|
|
1299
1307
|
}
|
|
1300
|
-
}), de = /* @__PURE__ */ S(us, [["__scopeId", "data-v-
|
|
1308
|
+
}), de = /* @__PURE__ */ S(us, [["__scopeId", "data-v-aa4c402c"]]), ds = { class: "m-tab-card__container" }, ms = /* @__PURE__ */ Object.assign({
|
|
1301
1309
|
name: "MTabCard"
|
|
1302
1310
|
}, {
|
|
1303
1311
|
__name: "TabCard",
|
|
@@ -1319,7 +1327,7 @@ const is = /* @__PURE__ */ S(rs, [["render", ls], ["__scopeId", "data-v-31f89b3b
|
|
|
1319
1327
|
setup(e, { emit: t }) {
|
|
1320
1328
|
const n = e, s = t;
|
|
1321
1329
|
A();
|
|
1322
|
-
const o = O(n.modelValue), a =
|
|
1330
|
+
const o = O(n.modelValue), a = h(() => n.options.map((l) => typeof l == "string" ? { label: l, name: l, disabled: !1 } : {
|
|
1323
1331
|
label: l.label || l.name || "",
|
|
1324
1332
|
name: l.name || l.label || "",
|
|
1325
1333
|
disabled: l.disabled || !1
|
|
@@ -1329,7 +1337,7 @@ const is = /* @__PURE__ */ S(rs, [["render", ls], ["__scopeId", "data-v-31f89b3b
|
|
|
1329
1337
|
const g = o.value;
|
|
1330
1338
|
o.value = l, s("update:modelValue", l), s("change", l, g), s("tab-click", l);
|
|
1331
1339
|
};
|
|
1332
|
-
return
|
|
1340
|
+
return V(() => n.modelValue, (l) => {
|
|
1333
1341
|
l !== o.value && (o.value = l);
|
|
1334
1342
|
}), re("tabCardContext", {
|
|
1335
1343
|
activeTab: o,
|
|
@@ -1337,7 +1345,7 @@ const is = /* @__PURE__ */ S(rs, [["render", ls], ["__scopeId", "data-v-31f89b3b
|
|
|
1337
1345
|
}), (l, d) => (i(), c("div", {
|
|
1338
1346
|
class: T(["m-tab-card", { "is-disabled": e.disabled }])
|
|
1339
1347
|
}, [
|
|
1340
|
-
|
|
1348
|
+
y("div", ds, [
|
|
1341
1349
|
(i(!0), c(j, null, _(a.value, (g, M) => (i(), f(de, {
|
|
1342
1350
|
key: g.name,
|
|
1343
1351
|
name: g.name,
|
|
@@ -1347,7 +1355,7 @@ const is = /* @__PURE__ */ S(rs, [["render", ls], ["__scopeId", "data-v-31f89b3b
|
|
|
1347
1355
|
])
|
|
1348
1356
|
], 2));
|
|
1349
1357
|
}
|
|
1350
|
-
}), ps = /* @__PURE__ */ S(ms, [["__scopeId", "data-v-
|
|
1358
|
+
}), ps = /* @__PURE__ */ S(ms, [["__scopeId", "data-v-098ad86f"]]), fs = {
|
|
1351
1359
|
class: "breadcrumb-separator-icon",
|
|
1352
1360
|
width: "6",
|
|
1353
1361
|
height: "10",
|
|
@@ -1360,7 +1368,7 @@ const is = /* @__PURE__ */ S(rs, [["render", ls], ["__scopeId", "data-v-31f89b3b
|
|
|
1360
1368
|
__name: "BreadcrumbSeparator",
|
|
1361
1369
|
setup(e) {
|
|
1362
1370
|
return (t, n) => (i(), c("svg", fs, [...n[0] || (n[0] = [
|
|
1363
|
-
|
|
1371
|
+
y("path", {
|
|
1364
1372
|
"fill-rule": "evenodd",
|
|
1365
1373
|
"clip-rule": "evenodd",
|
|
1366
1374
|
d: "M0.52827 0.529247C0.788619 0.268897 1.21073 0.268897 1.47108 0.529247L5.47108 4.52925C5.73143 4.7896 5.73143 5.21171 5.47108 5.47206L1.47108 9.47206C1.21073 9.73241 0.788619 9.73241 0.52827 9.47206C0.26792 9.21171 0.26792 8.7896 0.52827 8.52925L4.05687 5.00065L0.52827 1.47206C0.26792 1.21171 0.26792 0.789596 0.52827 0.529247Z",
|
|
@@ -1398,7 +1406,7 @@ const is = /* @__PURE__ */ S(rs, [["render", ls], ["__scopeId", "data-v-31f89b3b
|
|
|
1398
1406
|
};
|
|
1399
1407
|
return (o, a) => (i(), c("nav", bs, [
|
|
1400
1408
|
(i(!0), c(j, null, _(e.items, (r, l) => (i(), c(j, { key: l }, [
|
|
1401
|
-
|
|
1409
|
+
y("span", {
|
|
1402
1410
|
class: T(["m-breadcrumb__item", { "is-link": r.to }]),
|
|
1403
1411
|
onClick: (d) => s(r)
|
|
1404
1412
|
}, x(r.label), 11, vs),
|
|
@@ -1410,11 +1418,11 @@ const is = /* @__PURE__ */ S(rs, [["render", ls], ["__scopeId", "data-v-31f89b3b
|
|
|
1410
1418
|
]));
|
|
1411
1419
|
}
|
|
1412
1420
|
}), ys = /* @__PURE__ */ S(hs, [["__scopeId", "data-v-bfa840fa"]]);
|
|
1413
|
-
function
|
|
1421
|
+
function G(e) {
|
|
1414
1422
|
e && e.classList && e.classList.add("mc-ui-override");
|
|
1415
1423
|
}
|
|
1416
1424
|
function $s(e) {
|
|
1417
|
-
e && e.$el &&
|
|
1425
|
+
e && e.$el && G(e.$el);
|
|
1418
1426
|
}
|
|
1419
1427
|
function Ms() {
|
|
1420
1428
|
typeof document != "undefined" && (document.body.classList.add("mc-ui-override"), new MutationObserver((t) => {
|
|
@@ -1446,17 +1454,17 @@ function Cs(e = '[class*="el-"]') {
|
|
|
1446
1454
|
function ks(e) {
|
|
1447
1455
|
return E(w({}, e), {
|
|
1448
1456
|
mounted() {
|
|
1449
|
-
|
|
1457
|
+
G(this.$el), e.mounted && e.mounted.call(this);
|
|
1450
1458
|
},
|
|
1451
1459
|
updated() {
|
|
1452
|
-
|
|
1460
|
+
G(this.$el), e.updated && e.updated.call(this);
|
|
1453
1461
|
}
|
|
1454
1462
|
});
|
|
1455
1463
|
}
|
|
1456
1464
|
const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1457
1465
|
__proto__: null,
|
|
1458
1466
|
addComponentOverride: $s,
|
|
1459
|
-
addOverrideClass:
|
|
1467
|
+
addOverrideClass: G,
|
|
1460
1468
|
applyGlobalOverride: Ms,
|
|
1461
1469
|
createOverrideComponent: ks,
|
|
1462
1470
|
forceRefreshStyles: Cs
|
|
@@ -1621,7 +1629,7 @@ export {
|
|
|
1621
1629
|
ht as Message,
|
|
1622
1630
|
sn as NotifiMessage,
|
|
1623
1631
|
$s as addComponentOverride,
|
|
1624
|
-
|
|
1632
|
+
G as addOverrideClass,
|
|
1625
1633
|
Ms as applyGlobalOverride,
|
|
1626
1634
|
nn as checkComponentRegistration,
|
|
1627
1635
|
ks as createOverrideComponent,
|