@mc-markets/ui 1.1.40 → 1.1.42
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/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Icon/Icon.vue.d.ts.map +1 -1
- package/dist/components/Picker/Picker.vue.d.ts +22 -0
- package/dist/components/Picker/Picker.vue.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1634 -870
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -1
- package/packages/components/Form/Form.vue +1 -0
- package/packages/components/Icon/Icon.vue +0 -11
- package/packages/components/Picker/Picker.vue +131 -0
- package/packages/styles/font/demo_index.html +26 -3
- package/packages/styles/font/iconfont.css +7 -3
- package/packages/styles/font/iconfont.js +1 -1
- package/packages/styles/font/iconfont.json +7 -0
- package/packages/styles/font/iconfont.ttf +0 -0
- package/packages/styles/font/iconfont.woff +0 -0
- package/packages/styles/font/iconfont.woff2 +0 -0
- package/packages/styles/vant.scss +23 -0
package/dist/index.mjs
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var n in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
1
|
+
var Qt = Object.defineProperty, en = Object.defineProperties;
|
|
2
|
+
var tn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var $e = Object.getOwnPropertySymbols;
|
|
4
|
+
var ot = Object.prototype.hasOwnProperty, st = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var nt = (e, t, n) => t in e ? Qt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, W = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
ot.call(t, n) && nt(e, n, t[n]);
|
|
8
|
+
if ($e)
|
|
9
|
+
for (var n of $e(t))
|
|
10
|
+
st.call(t, n) && nt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, Q = (e, t) => en(e, tn(t));
|
|
13
|
+
var Se = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var o in e)
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var o of
|
|
19
|
-
|
|
16
|
+
ot.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
|
|
17
|
+
if (e != null && $e)
|
|
18
|
+
for (var o of $e(e))
|
|
19
|
+
t.indexOf(o) < 0 && st.call(e, o) && (n[o] = e[o]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
var
|
|
22
|
+
var Ne = (e, t, n) => new Promise((o, a) => {
|
|
23
|
+
var l = (i) => {
|
|
24
24
|
try {
|
|
25
|
-
r(n.next(
|
|
26
|
-
} catch (
|
|
27
|
-
a(
|
|
25
|
+
r(n.next(i));
|
|
26
|
+
} catch (c) {
|
|
27
|
+
a(c);
|
|
28
28
|
}
|
|
29
|
-
},
|
|
29
|
+
}, s = (i) => {
|
|
30
30
|
try {
|
|
31
|
-
r(n.throw(
|
|
32
|
-
} catch (
|
|
33
|
-
a(
|
|
31
|
+
r(n.throw(i));
|
|
32
|
+
} catch (c) {
|
|
33
|
+
a(c);
|
|
34
34
|
}
|
|
35
|
-
}, r = (
|
|
36
|
-
r((n = n.apply(e,
|
|
35
|
+
}, r = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(l, s);
|
|
36
|
+
r((n = n.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
|
-
import * as
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
38
|
+
import * as pt from "element-plus";
|
|
39
|
+
import { ElForm as nn } from "element-plus";
|
|
40
|
+
import { computed as R, createElementBlock as m, openBlock as d, mergeProps as S, renderSlot as y, ref as _, createBlock as E, createSlots as O, renderList as M, withCtx as $, unref as z, useAttrs as Ie, createCommentVNode as N, createElementVNode as C, Fragment as H, normalizeClass as U, mergeModels as Re, useModel as ze, createVNode as x, normalizeProps as vt, guardReactiveProps as gt, Teleport as Te, TransitionGroup as _t, resolveDynamicComponent as ht, toDisplayString as K, useSlots as on, watch as V, normalizeStyle as bt, createTextVNode as Ue, provide as Oe, onMounted as ke, nextTick as le, onUnmounted as Ye, withDirectives as xe, vShow as Pe, inject as He, onDeactivated as Ae, isRef as sn, onActivated as Ke, reactive as an, getCurrentInstance as yt, defineComponent as ge, onBeforeUnmount as Ct, watchEffect as rn, Transition as $t } from "vue";
|
|
41
|
+
import { ElButton as ln, ElInput as cn, ElFormItem as un, ElTooltip as dn, ElSelect as fn, ElOption as mn, ElOptionGroup as pn, ElPagination as vn, ElRadio as gn, ElRadioGroup as _n, ElRadioButton as hn, ElSwitch as bn, ElTag as yn, ElAlert as Cn, ElDialog as $n, ElNotification as Sn, ElDatePicker as En, ElEmpty as Mn, ElTable as Rn, ElTableColumn as wn } from "element-plus/es";
|
|
41
42
|
import "element-plus/es/components/base/style/index";
|
|
42
43
|
import "element-plus/es/components/button/style/index";
|
|
43
44
|
import "element-plus/es/components/input/style/index";
|
|
44
|
-
import "element-plus/es/components/form/style/index";
|
|
45
45
|
import "element-plus/es/components/form-item/style/index";
|
|
46
46
|
import "element-plus/es/components/tooltip/style/index";
|
|
47
47
|
import "element-plus/es/components/select/style/index";
|
|
@@ -60,12 +60,12 @@ import "element-plus/es/components/date-picker/style/index";
|
|
|
60
60
|
import "element-plus/es/components/empty/style/index";
|
|
61
61
|
import "element-plus/es/components/table/style/index";
|
|
62
62
|
import "element-plus/es/components/table-column/style/index";
|
|
63
|
-
const
|
|
63
|
+
const G = (e, t) => {
|
|
64
64
|
const n = e.__vccOpts || e;
|
|
65
|
-
for (const [o, a] of
|
|
65
|
+
for (const [o, a] of t)
|
|
66
66
|
n[o] = a;
|
|
67
67
|
return n;
|
|
68
|
-
},
|
|
68
|
+
}, In = /* @__PURE__ */ Object.assign({
|
|
69
69
|
name: "MIcon"
|
|
70
70
|
}, {
|
|
71
71
|
__name: "Icon",
|
|
@@ -104,71 +104,71 @@ const B = (e, s) => {
|
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
emits: ["click"],
|
|
107
|
-
setup(e, { emit:
|
|
108
|
-
const n = e, o =
|
|
107
|
+
setup(e, { emit: t }) {
|
|
108
|
+
const n = e, o = t, a = R(() => {
|
|
109
109
|
const r = ["iconfont"];
|
|
110
110
|
return n.name && r.push(`${n.prefix}-${n.name}`), n.spin && r.push("icon-spin"), n.pulse && r.push("icon-pulse"), n.flip && r.push(`icon-flip-${n.flip}`), r;
|
|
111
|
-
}),
|
|
111
|
+
}), l = R(() => {
|
|
112
112
|
const r = {};
|
|
113
113
|
return n.size && (typeof n.size == "number" ? r.fontSize = `${n.size}px` : r.fontSize = n.size), n.color && (r.color = n.color), n.rotate !== 0 && (r.transform = `rotate(${n.rotate}deg)`), r;
|
|
114
|
-
}),
|
|
114
|
+
}), s = (r) => {
|
|
115
115
|
o("click", r);
|
|
116
116
|
};
|
|
117
|
-
return (r,
|
|
117
|
+
return (r, i) => (d(), m("i", S({
|
|
118
118
|
class: a.value,
|
|
119
|
-
style:
|
|
120
|
-
}, r.$attrs, { onClick:
|
|
121
|
-
|
|
119
|
+
style: l.value
|
|
120
|
+
}, r.$attrs, { onClick: s }), [
|
|
121
|
+
y(r.$slots, "default", {}, void 0, !0)
|
|
122
122
|
], 16));
|
|
123
123
|
}
|
|
124
|
-
}),
|
|
125
|
-
function
|
|
126
|
-
const { compatibilityKeys: n = {} } =
|
|
127
|
-
get(
|
|
128
|
-
if (
|
|
129
|
-
const
|
|
130
|
-
return typeof
|
|
124
|
+
}), je = /* @__PURE__ */ G(In, [["__scopeId", "data-v-74564eea"]]);
|
|
125
|
+
function L(e = "innerRef", t = {}) {
|
|
126
|
+
const { compatibilityKeys: n = {} } = t, o = _(), a = new Proxy({}, {
|
|
127
|
+
get(l, s) {
|
|
128
|
+
if (s in n) {
|
|
129
|
+
const u = n[s];
|
|
130
|
+
return typeof u == "function" ? u() : u;
|
|
131
131
|
}
|
|
132
|
-
if (
|
|
132
|
+
if (s === "elRef" || s === e)
|
|
133
133
|
return o;
|
|
134
134
|
const r = "get" + e.charAt(0).toUpperCase() + e.slice(1);
|
|
135
|
-
if (
|
|
135
|
+
if (s === "getElRef" || s === r)
|
|
136
136
|
return () => o.value;
|
|
137
|
-
if (
|
|
138
|
-
return (
|
|
139
|
-
var
|
|
140
|
-
return (
|
|
137
|
+
if (s === "call")
|
|
138
|
+
return (u, ...v) => {
|
|
139
|
+
var h, k;
|
|
140
|
+
return (k = (h = o.value) == null ? void 0 : h[u]) == null ? void 0 : k.call(h, ...v);
|
|
141
141
|
};
|
|
142
|
-
const
|
|
143
|
-
if (!
|
|
144
|
-
const
|
|
145
|
-
return typeof
|
|
142
|
+
const i = o.value;
|
|
143
|
+
if (!i) return;
|
|
144
|
+
const c = Reflect.get(i, s, i);
|
|
145
|
+
return typeof c == "function" ? c.bind(i) : c;
|
|
146
146
|
},
|
|
147
|
-
set(
|
|
148
|
-
const
|
|
149
|
-
return
|
|
147
|
+
set(l, s, r) {
|
|
148
|
+
const i = o.value;
|
|
149
|
+
return i && (i[s] = r), !0;
|
|
150
150
|
},
|
|
151
|
-
has(
|
|
151
|
+
has(l, s) {
|
|
152
152
|
const r = `get${e.charAt(0).toUpperCase() + e.slice(1)}`;
|
|
153
|
-
if (
|
|
153
|
+
if (s in n || s === "elRef" || s === e || s === "getElRef" || s === r || s === "call")
|
|
154
154
|
return !0;
|
|
155
|
-
const
|
|
156
|
-
return
|
|
155
|
+
const i = o.value;
|
|
156
|
+
return i ? Reflect.has(i, s) : !1;
|
|
157
157
|
},
|
|
158
|
-
ownKeys(
|
|
159
|
-
const
|
|
160
|
-
return
|
|
158
|
+
ownKeys(l) {
|
|
159
|
+
const s = o.value;
|
|
160
|
+
return s ? Reflect.ownKeys(s) : [];
|
|
161
161
|
},
|
|
162
|
-
getOwnPropertyDescriptor(
|
|
162
|
+
getOwnPropertyDescriptor(l, s) {
|
|
163
163
|
const r = `get${e.charAt(0).toUpperCase() + e.slice(1)}`;
|
|
164
|
-
if (
|
|
164
|
+
if (s in n || s === "elRef" || s === e || s === "getElRef" || s === r || s === "call")
|
|
165
165
|
return {
|
|
166
166
|
enumerable: !0,
|
|
167
167
|
configurable: !0
|
|
168
168
|
};
|
|
169
|
-
const
|
|
170
|
-
if (
|
|
171
|
-
return Reflect.getOwnPropertyDescriptor(
|
|
169
|
+
const i = o.value;
|
|
170
|
+
if (i && s in i)
|
|
171
|
+
return Reflect.getOwnPropertyDescriptor(i, s);
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
174
|
return {
|
|
@@ -176,107 +176,104 @@ function k(e = "innerRef", s = {}) {
|
|
|
176
176
|
exposedProxy: a
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
const
|
|
179
|
+
const Tn = /* @__PURE__ */ Object.assign({
|
|
180
180
|
name: "MButton"
|
|
181
181
|
}, {
|
|
182
182
|
__name: "Button",
|
|
183
|
-
setup(e, { expose:
|
|
184
|
-
const { innerRef: n, exposedProxy: o } =
|
|
185
|
-
return
|
|
186
|
-
const
|
|
187
|
-
return
|
|
183
|
+
setup(e, { expose: t }) {
|
|
184
|
+
const { innerRef: n, exposedProxy: o } = L("buttonRef");
|
|
185
|
+
return t(o), (a, l) => {
|
|
186
|
+
const s = ln;
|
|
187
|
+
return d(), E(s, S({
|
|
188
188
|
ref_key: "buttonRef",
|
|
189
189
|
ref: n
|
|
190
|
-
}, a.$attrs, { class: "m-button" }),
|
|
191
|
-
|
|
192
|
-
name:
|
|
193
|
-
fn:
|
|
194
|
-
|
|
190
|
+
}, a.$attrs, { class: "m-button" }), O({ _: 2 }, [
|
|
191
|
+
M(a.$slots, (r, i) => ({
|
|
192
|
+
name: i,
|
|
193
|
+
fn: $(() => [
|
|
194
|
+
y(a.$slots, i, {}, void 0, !0)
|
|
195
195
|
])
|
|
196
196
|
}))
|
|
197
197
|
]), 1040);
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
|
-
}),
|
|
200
|
+
}), On = /* @__PURE__ */ G(Tn, [["__scopeId", "data-v-550125d5"]]), kn = /* @__PURE__ */ Object.assign({
|
|
201
201
|
name: "MInput"
|
|
202
202
|
}, {
|
|
203
203
|
__name: "Input",
|
|
204
|
-
setup(e, { expose:
|
|
205
|
-
const { innerRef: n, exposedProxy: o } =
|
|
206
|
-
return
|
|
207
|
-
const
|
|
208
|
-
return
|
|
204
|
+
setup(e, { expose: t }) {
|
|
205
|
+
const { innerRef: n, exposedProxy: o } = L("inputRef");
|
|
206
|
+
return t(o), (a, l) => {
|
|
207
|
+
const s = cn;
|
|
208
|
+
return d(), E(s, S({
|
|
209
209
|
ref_key: "inputRef",
|
|
210
210
|
ref: n
|
|
211
211
|
}, a.$attrs, {
|
|
212
212
|
class: ["m-input", { solid: a.$attrs.styleType === "solid" }]
|
|
213
|
-
}),
|
|
214
|
-
|
|
215
|
-
name:
|
|
216
|
-
fn:
|
|
217
|
-
|
|
213
|
+
}), O({ _: 2 }, [
|
|
214
|
+
M(a.$slots, (r, i) => ({
|
|
215
|
+
name: i,
|
|
216
|
+
fn: $(() => [
|
|
217
|
+
y(a.$slots, i)
|
|
218
218
|
])
|
|
219
219
|
}))
|
|
220
220
|
]), 1040, ["class"]);
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
}),
|
|
223
|
+
}), xn = /* @__PURE__ */ Object.assign({
|
|
224
224
|
name: "MForm"
|
|
225
225
|
}, {
|
|
226
226
|
__name: "Form",
|
|
227
|
-
setup(e, { expose:
|
|
228
|
-
const { innerRef: n, exposedProxy: o } =
|
|
229
|
-
return
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}))
|
|
241
|
-
]), 1040);
|
|
242
|
-
};
|
|
227
|
+
setup(e, { expose: t }) {
|
|
228
|
+
const { innerRef: n, exposedProxy: o } = L("formRef");
|
|
229
|
+
return t(o), (a, l) => (d(), E(z(nn), S({
|
|
230
|
+
ref_key: "formRef",
|
|
231
|
+
ref: n
|
|
232
|
+
}, a.$attrs, { class: "m-form" }), O({ _: 2 }, [
|
|
233
|
+
M(a.$slots, (s, r) => ({
|
|
234
|
+
name: r,
|
|
235
|
+
fn: $(() => [
|
|
236
|
+
y(a.$slots, r)
|
|
237
|
+
])
|
|
238
|
+
}))
|
|
239
|
+
]), 1040));
|
|
243
240
|
}
|
|
244
|
-
}),
|
|
241
|
+
}), Pn = /* @__PURE__ */ Object.assign({
|
|
245
242
|
name: "MFormItem"
|
|
246
243
|
}, {
|
|
247
244
|
__name: "FormItem",
|
|
248
|
-
setup(e, { expose:
|
|
249
|
-
const { innerRef: n, exposedProxy: o } =
|
|
250
|
-
return
|
|
251
|
-
const
|
|
252
|
-
return
|
|
245
|
+
setup(e, { expose: t }) {
|
|
246
|
+
const { innerRef: n, exposedProxy: o } = L("formItemRef");
|
|
247
|
+
return t(o), (a, l) => {
|
|
248
|
+
const s = un;
|
|
249
|
+
return d(), E(s, S(a.$attrs, {
|
|
253
250
|
class: "m-form-item",
|
|
254
251
|
ref_key: "formItemRef",
|
|
255
252
|
ref: n
|
|
256
|
-
}),
|
|
257
|
-
|
|
258
|
-
name:
|
|
259
|
-
fn:
|
|
260
|
-
|
|
253
|
+
}), O({ _: 2 }, [
|
|
254
|
+
M(a.$slots, (r, i) => ({
|
|
255
|
+
name: i,
|
|
256
|
+
fn: $(() => [
|
|
257
|
+
y(a.$slots, i)
|
|
261
258
|
])
|
|
262
259
|
}))
|
|
263
260
|
]), 1040);
|
|
264
261
|
};
|
|
265
262
|
}
|
|
266
|
-
}),
|
|
267
|
-
const n =
|
|
268
|
-
return
|
|
263
|
+
}), An = (...e) => e.filter(Boolean).join(" "), Ln = (e, ...t) => {
|
|
264
|
+
const n = W({}, e);
|
|
265
|
+
return t.forEach((o) => {
|
|
269
266
|
delete n[o];
|
|
270
267
|
}), n;
|
|
271
268
|
};
|
|
272
|
-
function
|
|
273
|
-
const n =
|
|
269
|
+
function ce(e, t = "popperClass") {
|
|
270
|
+
const n = Ie(), o = R(() => Ln(n, t)), a = R(() => An(e, n[t]));
|
|
274
271
|
return {
|
|
275
272
|
mergedAttrs: o,
|
|
276
273
|
className: a
|
|
277
274
|
};
|
|
278
275
|
}
|
|
279
|
-
const
|
|
276
|
+
const Bn = /* @__PURE__ */ Object.assign({
|
|
280
277
|
name: "MTooltip"
|
|
281
278
|
}, {
|
|
282
279
|
__name: "Tooltip",
|
|
@@ -286,110 +283,110 @@ const Ft = /* @__PURE__ */ Object.assign({
|
|
|
286
283
|
default: ""
|
|
287
284
|
}
|
|
288
285
|
},
|
|
289
|
-
setup(e, { expose:
|
|
290
|
-
const { mergedAttrs: n, className: o } =
|
|
291
|
-
return
|
|
292
|
-
const
|
|
293
|
-
return
|
|
286
|
+
setup(e, { expose: t }) {
|
|
287
|
+
const { mergedAttrs: n, className: o } = ce("mc-tooltip-popper"), { innerRef: a, exposedProxy: l } = L("tooltipRef");
|
|
288
|
+
return t(l), (s, r) => {
|
|
289
|
+
const i = dn;
|
|
290
|
+
return d(), E(i, S({
|
|
294
291
|
ref_key: "tooltipRef",
|
|
295
292
|
ref: a
|
|
296
|
-
},
|
|
297
|
-
|
|
298
|
-
name:
|
|
299
|
-
fn:
|
|
300
|
-
|
|
293
|
+
}, z(n), { "popper-class": z(o) }), O({ _: 2 }, [
|
|
294
|
+
M(s.$slots, (c, u) => ({
|
|
295
|
+
name: u,
|
|
296
|
+
fn: $(() => [
|
|
297
|
+
y(s.$slots, u)
|
|
301
298
|
])
|
|
302
299
|
}))
|
|
303
300
|
]), 1040, ["popper-class"]);
|
|
304
301
|
};
|
|
305
302
|
}
|
|
306
|
-
}),
|
|
303
|
+
}), Dn = /* @__PURE__ */ Object.assign({
|
|
307
304
|
name: "MSelect"
|
|
308
305
|
}, {
|
|
309
306
|
__name: "Select",
|
|
310
|
-
setup(e, { expose:
|
|
311
|
-
const { innerRef: n, exposedProxy: o } =
|
|
312
|
-
return
|
|
313
|
-
const
|
|
314
|
-
return
|
|
307
|
+
setup(e, { expose: t }) {
|
|
308
|
+
const { innerRef: n, exposedProxy: o } = L("selectRef");
|
|
309
|
+
return t(o), (a, l) => {
|
|
310
|
+
const s = fn;
|
|
311
|
+
return d(), E(s, S({
|
|
315
312
|
ref_key: "selectRef",
|
|
316
313
|
ref: n,
|
|
317
314
|
class: ["m-select", { solid: a.$attrs.styleType === "solid" }],
|
|
318
315
|
"show-arrow": !1
|
|
319
|
-
}, a.$attrs),
|
|
320
|
-
|
|
321
|
-
name:
|
|
322
|
-
fn:
|
|
323
|
-
|
|
316
|
+
}, a.$attrs), O({ _: 2 }, [
|
|
317
|
+
M(a.$slots, (r, i) => ({
|
|
318
|
+
name: i,
|
|
319
|
+
fn: $(() => [
|
|
320
|
+
y(a.$slots, i)
|
|
324
321
|
])
|
|
325
322
|
}))
|
|
326
323
|
]), 1040, ["class"]);
|
|
327
324
|
};
|
|
328
325
|
}
|
|
329
|
-
}),
|
|
326
|
+
}), Nn = /* @__PURE__ */ Object.assign({
|
|
330
327
|
name: "MOption"
|
|
331
328
|
}, {
|
|
332
329
|
__name: "Option",
|
|
333
|
-
setup(e, { expose:
|
|
334
|
-
const { innerRef: n, exposedProxy: o } =
|
|
335
|
-
return
|
|
336
|
-
const
|
|
337
|
-
return
|
|
330
|
+
setup(e, { expose: t }) {
|
|
331
|
+
const { innerRef: n, exposedProxy: o } = L("optionRef");
|
|
332
|
+
return t(o), (a, l) => {
|
|
333
|
+
const s = mn;
|
|
334
|
+
return d(), E(s, S({
|
|
338
335
|
ref_key: "optionRef",
|
|
339
336
|
ref: n
|
|
340
|
-
}, a.$attrs),
|
|
341
|
-
|
|
342
|
-
name:
|
|
343
|
-
fn:
|
|
344
|
-
|
|
337
|
+
}, a.$attrs), O({ _: 2 }, [
|
|
338
|
+
M(a.$slots, (r, i) => ({
|
|
339
|
+
name: i,
|
|
340
|
+
fn: $(() => [
|
|
341
|
+
y(a.$slots, i)
|
|
345
342
|
])
|
|
346
343
|
}))
|
|
347
344
|
]), 1040);
|
|
348
345
|
};
|
|
349
346
|
}
|
|
350
|
-
}),
|
|
347
|
+
}), Fn = /* @__PURE__ */ Object.assign({
|
|
351
348
|
name: "MOptionGroup"
|
|
352
349
|
}, {
|
|
353
350
|
__name: "OptionGroup",
|
|
354
|
-
setup(e, { expose:
|
|
355
|
-
const { innerRef: n, exposedProxy: o } =
|
|
356
|
-
return
|
|
357
|
-
const
|
|
358
|
-
return
|
|
351
|
+
setup(e, { expose: t }) {
|
|
352
|
+
const { innerRef: n, exposedProxy: o } = L("optionGroupRef");
|
|
353
|
+
return t(o), (a, l) => {
|
|
354
|
+
const s = pn;
|
|
355
|
+
return d(), E(s, S({
|
|
359
356
|
ref_key: "optionGroupRef",
|
|
360
357
|
ref: n
|
|
361
|
-
}, a.$attrs),
|
|
362
|
-
|
|
363
|
-
name:
|
|
364
|
-
fn:
|
|
365
|
-
|
|
358
|
+
}, a.$attrs), O({ _: 2 }, [
|
|
359
|
+
M(a.$slots, (r, i) => ({
|
|
360
|
+
name: i,
|
|
361
|
+
fn: $(() => [
|
|
362
|
+
y(a.$slots, i)
|
|
366
363
|
])
|
|
367
364
|
}))
|
|
368
365
|
]), 1040);
|
|
369
366
|
};
|
|
370
367
|
}
|
|
371
|
-
}),
|
|
368
|
+
}), zn = /* @__PURE__ */ Object.assign({
|
|
372
369
|
name: "MPagination"
|
|
373
370
|
}, {
|
|
374
371
|
__name: "Pagination",
|
|
375
|
-
setup(e, { expose:
|
|
376
|
-
const { innerRef: n, exposedProxy: o } =
|
|
377
|
-
return
|
|
378
|
-
const
|
|
379
|
-
return
|
|
372
|
+
setup(e, { expose: t }) {
|
|
373
|
+
const { innerRef: n, exposedProxy: o } = L("paginationRef");
|
|
374
|
+
return t(o), (a, l) => {
|
|
375
|
+
const s = vn;
|
|
376
|
+
return d(), E(s, S({
|
|
380
377
|
ref_key: "paginationRef",
|
|
381
378
|
ref: n
|
|
382
|
-
}, a.$attrs, { class: "m-pagination" }),
|
|
383
|
-
|
|
384
|
-
name:
|
|
385
|
-
fn:
|
|
386
|
-
|
|
379
|
+
}, a.$attrs, { class: "m-pagination" }), O({ _: 2 }, [
|
|
380
|
+
M(a.$slots, (r, i) => ({
|
|
381
|
+
name: i,
|
|
382
|
+
fn: $(() => [
|
|
383
|
+
y(a.$slots, i)
|
|
387
384
|
])
|
|
388
385
|
}))
|
|
389
386
|
]), 1040);
|
|
390
387
|
};
|
|
391
388
|
}
|
|
392
|
-
}),
|
|
389
|
+
}), jn = /* @__PURE__ */ Object.assign({
|
|
393
390
|
name: "MRadio"
|
|
394
391
|
}, {
|
|
395
392
|
__name: "Radio",
|
|
@@ -399,24 +396,24 @@ const Ft = /* @__PURE__ */ Object.assign({
|
|
|
399
396
|
default: ""
|
|
400
397
|
}
|
|
401
398
|
},
|
|
402
|
-
setup(e, { expose:
|
|
403
|
-
const { mergedAttrs: n } =
|
|
404
|
-
return
|
|
405
|
-
const r =
|
|
406
|
-
return
|
|
399
|
+
setup(e, { expose: t }) {
|
|
400
|
+
const { mergedAttrs: n } = ce("mc-radio-popper"), { innerRef: o, exposedProxy: a } = L("radioRef");
|
|
401
|
+
return t(a), (l, s) => {
|
|
402
|
+
const r = gn;
|
|
403
|
+
return d(), E(r, S({
|
|
407
404
|
ref_key: "radioRef",
|
|
408
405
|
ref: o
|
|
409
|
-
},
|
|
410
|
-
|
|
411
|
-
name:
|
|
412
|
-
fn:
|
|
413
|
-
|
|
406
|
+
}, z(n), { class: "m-radio" }), O({ _: 2 }, [
|
|
407
|
+
M(l.$slots, (i, c) => ({
|
|
408
|
+
name: c,
|
|
409
|
+
fn: $(() => [
|
|
410
|
+
y(l.$slots, c)
|
|
414
411
|
])
|
|
415
412
|
}))
|
|
416
413
|
]), 1040);
|
|
417
414
|
};
|
|
418
415
|
}
|
|
419
|
-
}),
|
|
416
|
+
}), Vn = /* @__PURE__ */ Object.assign({
|
|
420
417
|
name: "MRadioGroup"
|
|
421
418
|
}, {
|
|
422
419
|
__name: "RadioGroup",
|
|
@@ -426,33 +423,33 @@ const Ft = /* @__PURE__ */ Object.assign({
|
|
|
426
423
|
default: ""
|
|
427
424
|
}
|
|
428
425
|
},
|
|
429
|
-
setup(e, { expose:
|
|
430
|
-
const n =
|
|
426
|
+
setup(e, { expose: t }) {
|
|
427
|
+
const n = Ie(), o = R(() => {
|
|
431
428
|
const r = "mc-radio-group-popper";
|
|
432
429
|
return n.popperClass ? `${r} ${n.popperClass}`.trim() : r;
|
|
433
|
-
}), a =
|
|
434
|
-
const
|
|
435
|
-
return
|
|
436
|
-
}), { innerRef:
|
|
437
|
-
return s
|
|
438
|
-
const
|
|
439
|
-
return
|
|
430
|
+
}), a = R(() => {
|
|
431
|
+
const c = n, { popperClass: r } = c;
|
|
432
|
+
return Se(c, ["popperClass"]);
|
|
433
|
+
}), { innerRef: l, exposedProxy: s } = L("radioGroupRef");
|
|
434
|
+
return t(s), (r, i) => {
|
|
435
|
+
const c = _n;
|
|
436
|
+
return d(), E(c, S({
|
|
440
437
|
ref_key: "radioGroupRef",
|
|
441
|
-
ref:
|
|
438
|
+
ref: l
|
|
442
439
|
}, a.value, {
|
|
443
440
|
"popper-class": o.value,
|
|
444
441
|
class: "m-radio-group"
|
|
445
|
-
}),
|
|
446
|
-
|
|
447
|
-
name:
|
|
448
|
-
fn:
|
|
449
|
-
|
|
442
|
+
}), O({ _: 2 }, [
|
|
443
|
+
M(r.$slots, (u, v) => ({
|
|
444
|
+
name: v,
|
|
445
|
+
fn: $(() => [
|
|
446
|
+
y(r.$slots, v)
|
|
450
447
|
])
|
|
451
448
|
}))
|
|
452
449
|
]), 1040, ["popper-class"]);
|
|
453
450
|
};
|
|
454
451
|
}
|
|
455
|
-
}),
|
|
452
|
+
}), Gn = /* @__PURE__ */ Object.assign({
|
|
456
453
|
name: "MRadioButton"
|
|
457
454
|
}, {
|
|
458
455
|
__name: "RadioButton",
|
|
@@ -462,24 +459,24 @@ const Ft = /* @__PURE__ */ Object.assign({
|
|
|
462
459
|
default: ""
|
|
463
460
|
}
|
|
464
461
|
},
|
|
465
|
-
setup(e, { expose:
|
|
466
|
-
const { mergedAttrs: n } =
|
|
467
|
-
return
|
|
468
|
-
const r =
|
|
469
|
-
return
|
|
462
|
+
setup(e, { expose: t }) {
|
|
463
|
+
const { mergedAttrs: n } = ce("mc-radio-button-popper"), { innerRef: o, exposedProxy: a } = L("radioButtonRef");
|
|
464
|
+
return t(a), (l, s) => {
|
|
465
|
+
const r = hn;
|
|
466
|
+
return d(), E(r, S({
|
|
470
467
|
ref_key: "radioButtonRef",
|
|
471
468
|
ref: o
|
|
472
|
-
},
|
|
473
|
-
|
|
474
|
-
name:
|
|
475
|
-
fn:
|
|
476
|
-
|
|
469
|
+
}, z(n), { class: "m-radio-button" }), O({ _: 2 }, [
|
|
470
|
+
M(l.$slots, (i, c) => ({
|
|
471
|
+
name: c,
|
|
472
|
+
fn: $(() => [
|
|
473
|
+
y(l.$slots, c)
|
|
477
474
|
])
|
|
478
475
|
}))
|
|
479
476
|
]), 1040);
|
|
480
477
|
};
|
|
481
478
|
}
|
|
482
|
-
}),
|
|
479
|
+
}), Wn = /* @__PURE__ */ Object.assign({
|
|
483
480
|
name: "MSwitch"
|
|
484
481
|
}, {
|
|
485
482
|
__name: "Switch",
|
|
@@ -489,30 +486,30 @@ const Ft = /* @__PURE__ */ Object.assign({
|
|
|
489
486
|
default: ""
|
|
490
487
|
}
|
|
491
488
|
},
|
|
492
|
-
setup(e, { expose:
|
|
493
|
-
const { mergedAttrs: n, className: o } =
|
|
494
|
-
return
|
|
495
|
-
const
|
|
496
|
-
return
|
|
489
|
+
setup(e, { expose: t }) {
|
|
490
|
+
const { mergedAttrs: n, className: o } = ce("mc-switch-popper"), { innerRef: a, exposedProxy: l } = L("switchRef");
|
|
491
|
+
return t(l), (s, r) => {
|
|
492
|
+
const i = bn;
|
|
493
|
+
return d(), E(i, S({
|
|
497
494
|
ref_key: "switchRef",
|
|
498
495
|
ref: a
|
|
499
|
-
},
|
|
500
|
-
"popper-class":
|
|
496
|
+
}, z(n), {
|
|
497
|
+
"popper-class": z(o),
|
|
501
498
|
class: "m-switch"
|
|
502
|
-
}),
|
|
503
|
-
|
|
504
|
-
name:
|
|
505
|
-
fn:
|
|
506
|
-
|
|
499
|
+
}), O({ _: 2 }, [
|
|
500
|
+
M(s.$slots, (c, u) => ({
|
|
501
|
+
name: u,
|
|
502
|
+
fn: $(() => [
|
|
503
|
+
y(s.$slots, u)
|
|
507
504
|
])
|
|
508
505
|
}))
|
|
509
506
|
]), 1040, ["popper-class"]);
|
|
510
507
|
};
|
|
511
508
|
}
|
|
512
|
-
}),
|
|
509
|
+
}), Un = {
|
|
513
510
|
key: 0,
|
|
514
511
|
class: "custom-spinner"
|
|
515
|
-
},
|
|
512
|
+
}, Yn = { class: "ldio-spinner" }, Hn = /* @__PURE__ */ Object.assign({
|
|
516
513
|
name: "MTag"
|
|
517
514
|
}, {
|
|
518
515
|
__name: "Tag",
|
|
@@ -534,51 +531,51 @@ const Ft = /* @__PURE__ */ Object.assign({
|
|
|
534
531
|
default: ""
|
|
535
532
|
}
|
|
536
533
|
},
|
|
537
|
-
setup(e, { expose:
|
|
538
|
-
const n = e, o =
|
|
534
|
+
setup(e, { expose: t }) {
|
|
535
|
+
const n = e, o = R(() => {
|
|
539
536
|
if (n.status)
|
|
540
537
|
return n.status;
|
|
541
|
-
}), a =
|
|
542
|
-
return
|
|
543
|
-
const
|
|
544
|
-
return
|
|
538
|
+
}), a = R(() => n.status === "warning" ? !0 : n.loading), l = R(() => n.prefixIcon ? n.prefixIcon : n.status === "success" ? "icon-circle-check-filled" : n.status === "danger" ? "icon-lucide_circle-x-filled" : ""), s = R(() => n.suffixIcon ? n.suffixIcon : ""), { innerRef: r, exposedProxy: i } = L("tagRef");
|
|
539
|
+
return t(i), (c, u) => {
|
|
540
|
+
const v = yn;
|
|
541
|
+
return d(), E(v, S({
|
|
545
542
|
ref_key: "tagRef",
|
|
546
543
|
ref: r
|
|
547
|
-
},
|
|
544
|
+
}, c.$attrs, {
|
|
548
545
|
type: o.value,
|
|
549
546
|
class: ["m-tag", { "is-loading": a.value }]
|
|
550
|
-
}),
|
|
551
|
-
|
|
552
|
-
name:
|
|
553
|
-
fn:
|
|
554
|
-
a.value && !
|
|
555
|
-
|
|
556
|
-
(
|
|
547
|
+
}), O({ _: 2 }, [
|
|
548
|
+
M(c.$slots, (h, k) => ({
|
|
549
|
+
name: k,
|
|
550
|
+
fn: $(() => [
|
|
551
|
+
a.value && !l.value ? (d(), m("div", Un, [
|
|
552
|
+
C("div", Yn, [
|
|
553
|
+
(d(), m(H, null, M(8, (B) => C("div", { key: B })), 64))
|
|
557
554
|
])
|
|
558
|
-
])) :
|
|
555
|
+
])) : l.value ? (d(), m("i", {
|
|
559
556
|
key: 1,
|
|
560
|
-
class:
|
|
561
|
-
}, null, 2)) :
|
|
562
|
-
|
|
563
|
-
|
|
557
|
+
class: U(["prefixIcon", ["iconfont", l.value]])
|
|
558
|
+
}, null, 2)) : N("", !0),
|
|
559
|
+
C("div", null, [
|
|
560
|
+
y(c.$slots, k)
|
|
564
561
|
]),
|
|
565
|
-
|
|
562
|
+
s.value ? (d(), m("i", {
|
|
566
563
|
key: 2,
|
|
567
|
-
class:
|
|
568
|
-
}, null, 2)) :
|
|
564
|
+
class: U(["suffixIcon", ["iconfont", s.value]])
|
|
565
|
+
}, null, 2)) : N("", !0)
|
|
569
566
|
])
|
|
570
567
|
}))
|
|
571
568
|
]), 1040, ["type", "class"]);
|
|
572
569
|
};
|
|
573
570
|
}
|
|
574
|
-
}),
|
|
571
|
+
}), Kn = ["src", "alt"], qn = ["success", "warning", "error"], Zn = {
|
|
575
572
|
name: "MAlert"
|
|
576
|
-
},
|
|
573
|
+
}, Xn = /* @__PURE__ */ Object.assign(Zn, {
|
|
577
574
|
props: {
|
|
578
575
|
type: {
|
|
579
576
|
type: String,
|
|
580
577
|
default: "success",
|
|
581
|
-
validator: (e) =>
|
|
578
|
+
validator: (e) => qn.includes(e)
|
|
582
579
|
},
|
|
583
580
|
useCustomIcon: {
|
|
584
581
|
type: Boolean,
|
|
@@ -586,41 +583,41 @@ const Ft = /* @__PURE__ */ Object.assign({
|
|
|
586
583
|
}
|
|
587
584
|
},
|
|
588
585
|
setup(e) {
|
|
589
|
-
const
|
|
590
|
-
const r = n, { useCustomIcon:
|
|
591
|
-
return W(
|
|
592
|
-
type:
|
|
586
|
+
const t = e, n = Ie(), o = R(() => {
|
|
587
|
+
const r = n, { useCustomIcon: l } = r, s = Se(r, ["useCustomIcon"]);
|
|
588
|
+
return Q(W({}, s), {
|
|
589
|
+
type: t.type
|
|
593
590
|
// 确保 type 属性正确传递给 el-alert
|
|
594
591
|
});
|
|
595
|
-
}), a =
|
|
596
|
-
return (
|
|
597
|
-
const r =
|
|
598
|
-
return
|
|
592
|
+
}), a = R(() => t.useCustomIcon ? `https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-${t.type}.png` : null);
|
|
593
|
+
return (l, s) => {
|
|
594
|
+
const r = Cn;
|
|
595
|
+
return d(), E(r, S(o.value, { class: "mc-alert" }), O({ _: 2 }, [
|
|
599
596
|
a.value ? {
|
|
600
597
|
name: "icon",
|
|
601
|
-
fn:
|
|
602
|
-
|
|
598
|
+
fn: $(() => [
|
|
599
|
+
C("img", {
|
|
603
600
|
src: a.value,
|
|
604
601
|
alt: `${e.type} icon`,
|
|
605
602
|
class: "mc-alert-icon"
|
|
606
|
-
}, null, 8,
|
|
603
|
+
}, null, 8, Kn)
|
|
607
604
|
]),
|
|
608
605
|
key: "0"
|
|
609
606
|
} : void 0,
|
|
610
|
-
|
|
611
|
-
name:
|
|
612
|
-
fn:
|
|
613
|
-
|
|
607
|
+
M(l.$slots, (i, c) => ({
|
|
608
|
+
name: c,
|
|
609
|
+
fn: $(() => [
|
|
610
|
+
y(l.$slots, c)
|
|
614
611
|
])
|
|
615
612
|
}))
|
|
616
613
|
]), 1040);
|
|
617
614
|
};
|
|
618
615
|
}
|
|
619
|
-
}),
|
|
616
|
+
}), Jn = /* @__PURE__ */ Object.assign({
|
|
620
617
|
name: "MDialog"
|
|
621
618
|
}, {
|
|
622
619
|
__name: "Dialog",
|
|
623
|
-
props: /* @__PURE__ */
|
|
620
|
+
props: /* @__PURE__ */ Re({
|
|
624
621
|
width: {
|
|
625
622
|
type: String,
|
|
626
623
|
default: "440px"
|
|
@@ -648,43 +645,43 @@ const Ft = /* @__PURE__ */ Object.assign({
|
|
|
648
645
|
},
|
|
649
646
|
modelModifiers: {}
|
|
650
647
|
}),
|
|
651
|
-
emits: /* @__PURE__ */
|
|
652
|
-
setup(e, { expose:
|
|
653
|
-
const o =
|
|
654
|
-
return
|
|
655
|
-
const
|
|
656
|
-
return
|
|
657
|
-
|
|
648
|
+
emits: /* @__PURE__ */ Re(["close"], ["update:modelValue"]),
|
|
649
|
+
setup(e, { expose: t, emit: n }) {
|
|
650
|
+
const o = ze(e, "modelValue"), { innerRef: a, exposedProxy: l } = L("dialogRef");
|
|
651
|
+
return t(l), (s, r) => {
|
|
652
|
+
const i = $n;
|
|
653
|
+
return d(), m("div", null, [
|
|
654
|
+
x(i, S({
|
|
658
655
|
ref_key: "dialogRef",
|
|
659
656
|
ref: a,
|
|
660
657
|
modelValue: o.value,
|
|
661
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
658
|
+
"onUpdate:modelValue": r[0] || (r[0] = (c) => o.value = c),
|
|
662
659
|
width: e.width,
|
|
663
660
|
title: e.title,
|
|
664
661
|
draggable: e.draggable,
|
|
665
662
|
"close-on-click-modal": e.closeOnClickModal,
|
|
666
663
|
center: e.center,
|
|
667
664
|
"align-center": ""
|
|
668
|
-
},
|
|
665
|
+
}, s.$attrs, {
|
|
669
666
|
class: "m-dialog",
|
|
670
667
|
"header-class": "m-header"
|
|
671
|
-
}),
|
|
672
|
-
default:
|
|
673
|
-
|
|
668
|
+
}), O({
|
|
669
|
+
default: $(() => [
|
|
670
|
+
y(s.$slots, "default")
|
|
674
671
|
]),
|
|
675
672
|
_: 2
|
|
676
673
|
}, [
|
|
677
|
-
|
|
674
|
+
s.$slots.header ? {
|
|
678
675
|
name: "header",
|
|
679
|
-
fn:
|
|
680
|
-
|
|
676
|
+
fn: $(({ close: c, titleId: u, titleClass: v }) => [
|
|
677
|
+
y(s.$slots, "header", vt(gt({ close: c, titleId: u, titleClass: v })))
|
|
681
678
|
]),
|
|
682
679
|
key: "0"
|
|
683
680
|
} : void 0,
|
|
684
|
-
|
|
681
|
+
s.$slots.footer ? {
|
|
685
682
|
name: "footer",
|
|
686
|
-
fn:
|
|
687
|
-
|
|
683
|
+
fn: $(() => [
|
|
684
|
+
y(s.$slots, "footer")
|
|
688
685
|
]),
|
|
689
686
|
key: "1"
|
|
690
687
|
} : void 0
|
|
@@ -692,23 +689,23 @@ const Ft = /* @__PURE__ */ Object.assign({
|
|
|
692
689
|
]);
|
|
693
690
|
};
|
|
694
691
|
}
|
|
695
|
-
}),
|
|
692
|
+
}), Qn = {
|
|
696
693
|
name: "MNotification"
|
|
697
694
|
};
|
|
698
|
-
function
|
|
699
|
-
const
|
|
700
|
-
return
|
|
701
|
-
|
|
702
|
-
name:
|
|
703
|
-
fn:
|
|
704
|
-
|
|
695
|
+
function eo(e, t, n, o, a, l) {
|
|
696
|
+
const s = Sn;
|
|
697
|
+
return d(), E(s, S(e.$attrs, { class: "mc-notification" }), O({ _: 2 }, [
|
|
698
|
+
M(e.$slots, (r, i) => ({
|
|
699
|
+
name: i,
|
|
700
|
+
fn: $(() => [
|
|
701
|
+
y(e.$slots, i)
|
|
705
702
|
])
|
|
706
703
|
}))
|
|
707
704
|
]), 1040);
|
|
708
705
|
}
|
|
709
|
-
const
|
|
710
|
-
let
|
|
711
|
-
const
|
|
706
|
+
const to = /* @__PURE__ */ G(Qn, [["render", eo]]), q = _([]);
|
|
707
|
+
let no = 0;
|
|
708
|
+
const oo = {
|
|
712
709
|
// 默认配置
|
|
713
710
|
defaultOptions: {
|
|
714
711
|
message: "",
|
|
@@ -730,122 +727,122 @@ const dn = {
|
|
|
730
727
|
// 显示消息
|
|
731
728
|
show(e = {}) {
|
|
732
729
|
typeof e == "string" && (e = { message: e });
|
|
733
|
-
const
|
|
734
|
-
id: ++
|
|
730
|
+
const t = Q(W(W({}, this.defaultOptions), e), {
|
|
731
|
+
id: ++no
|
|
735
732
|
});
|
|
736
|
-
if (
|
|
737
|
-
const n =
|
|
738
|
-
(o) => o.message ===
|
|
733
|
+
if (t.grouping) {
|
|
734
|
+
const n = q.value.findIndex(
|
|
735
|
+
(o) => o.message === t.message && o.type === t.type && o.grouping
|
|
739
736
|
);
|
|
740
737
|
if (n > -1)
|
|
741
|
-
return
|
|
738
|
+
return q.value[n].repeatNum++, { close: () => this.close(q.value[n].id) };
|
|
742
739
|
}
|
|
743
|
-
return
|
|
744
|
-
this.close(
|
|
745
|
-
},
|
|
746
|
-
close: () => this.close(
|
|
740
|
+
return q.value.push(t), t.duration > 0 && setTimeout(() => {
|
|
741
|
+
this.close(t.id);
|
|
742
|
+
}, t.duration), {
|
|
743
|
+
close: () => this.close(t.id)
|
|
747
744
|
};
|
|
748
745
|
},
|
|
749
746
|
// 关闭指定消息
|
|
750
747
|
close(e) {
|
|
751
|
-
const
|
|
752
|
-
if (
|
|
753
|
-
const n =
|
|
754
|
-
n.onClose && n.onClose(n),
|
|
748
|
+
const t = q.value.findIndex((n) => n.id === e);
|
|
749
|
+
if (t > -1) {
|
|
750
|
+
const n = q.value[t];
|
|
751
|
+
n.onClose && n.onClose(n), q.value.splice(t, 1);
|
|
755
752
|
}
|
|
756
753
|
},
|
|
757
754
|
// 关闭所有消息
|
|
758
755
|
closeAll() {
|
|
759
|
-
|
|
756
|
+
q.value = [];
|
|
760
757
|
},
|
|
761
758
|
// 便捷方法
|
|
762
759
|
success(e = {}) {
|
|
763
|
-
return typeof e == "string" && (e = { message: e }), this.show(W(
|
|
760
|
+
return typeof e == "string" && (e = { message: e }), this.show(Q(W({}, e), { type: "success" }));
|
|
764
761
|
},
|
|
765
762
|
warning(e = {}) {
|
|
766
|
-
return typeof e == "string" && (e = { message: e }), this.show(W(
|
|
763
|
+
return typeof e == "string" && (e = { message: e }), this.show(Q(W({}, e), { type: "warning" }));
|
|
767
764
|
},
|
|
768
765
|
error(e = {}) {
|
|
769
|
-
return typeof e == "string" && (e = { message: e }), this.show(W(
|
|
766
|
+
return typeof e == "string" && (e = { message: e }), this.show(Q(W({}, e), { type: "error" }));
|
|
770
767
|
}
|
|
771
|
-
},
|
|
772
|
-
|
|
773
|
-
},
|
|
768
|
+
}, so = (e) => {
|
|
769
|
+
oo.close(e);
|
|
770
|
+
}, ao = {
|
|
774
771
|
name: "MMessage",
|
|
775
772
|
setup() {
|
|
776
773
|
return {
|
|
777
|
-
messages:
|
|
778
|
-
closeMessage:
|
|
774
|
+
messages: q,
|
|
775
|
+
closeMessage: so
|
|
779
776
|
};
|
|
780
777
|
}
|
|
781
|
-
},
|
|
778
|
+
}, ro = {
|
|
782
779
|
key: 0,
|
|
783
780
|
class: "message-icon"
|
|
784
|
-
},
|
|
781
|
+
}, lo = ["src"], io = {
|
|
785
782
|
key: 1,
|
|
786
783
|
src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-success.png",
|
|
787
784
|
alt: "success icon",
|
|
788
785
|
class: "message-icon-img"
|
|
789
|
-
},
|
|
786
|
+
}, co = {
|
|
790
787
|
key: 2,
|
|
791
788
|
src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-warning.png",
|
|
792
789
|
alt: "warning icon",
|
|
793
790
|
class: "message-icon-img"
|
|
794
|
-
},
|
|
791
|
+
}, uo = {
|
|
795
792
|
key: 3,
|
|
796
793
|
src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/alert/alert-error.png",
|
|
797
794
|
alt: "error icon",
|
|
798
795
|
class: "message-icon-img"
|
|
799
|
-
},
|
|
796
|
+
}, fo = { class: "message-content" }, mo = ["innerHTML"], po = { key: 2 }, vo = {
|
|
800
797
|
key: 3,
|
|
801
798
|
class: "message-repeat"
|
|
802
|
-
},
|
|
803
|
-
function
|
|
804
|
-
return
|
|
805
|
-
|
|
799
|
+
}, go = ["onClick"];
|
|
800
|
+
function _o(e, t, n, o, a, l) {
|
|
801
|
+
return d(), E(Te, { to: "body" }, [
|
|
802
|
+
x(_t, {
|
|
806
803
|
name: "message",
|
|
807
804
|
tag: "div",
|
|
808
805
|
class: "message-container"
|
|
809
806
|
}, {
|
|
810
|
-
default:
|
|
811
|
-
(
|
|
812
|
-
key:
|
|
813
|
-
class:
|
|
807
|
+
default: $(() => [
|
|
808
|
+
(d(!0), m(H, null, M(o.messages, (s) => (d(), m("div", {
|
|
809
|
+
key: s.id,
|
|
810
|
+
class: U([
|
|
814
811
|
"custom-message",
|
|
815
|
-
`message-${
|
|
816
|
-
`message-${
|
|
817
|
-
{ "message-plain":
|
|
812
|
+
`message-${s.type}`,
|
|
813
|
+
`message-${s.placement}`,
|
|
814
|
+
{ "message-plain": s.plain }
|
|
818
815
|
])
|
|
819
816
|
}, [
|
|
820
|
-
|
|
821
|
-
|
|
817
|
+
s.showIcon ? (d(), m("div", ro, [
|
|
818
|
+
s.customIcon ? (d(), m("img", {
|
|
822
819
|
key: 0,
|
|
823
|
-
src:
|
|
820
|
+
src: s.customIcon,
|
|
824
821
|
alt: "custom icon",
|
|
825
822
|
class: "message-icon-img"
|
|
826
|
-
}, null, 8,
|
|
827
|
-
])) :
|
|
828
|
-
|
|
829
|
-
typeof
|
|
823
|
+
}, null, 8, lo)) : s.type === "success" ? (d(), m("img", io)) : s.type === "warning" ? (d(), m("img", co)) : s.type === "error" ? (d(), m("img", uo)) : N("", !0)
|
|
824
|
+
])) : N("", !0),
|
|
825
|
+
C("div", fo, [
|
|
826
|
+
typeof s.message == "function" ? (d(), E(ht(s.message), { key: 0 })) : s.dangerouslyUseHTMLString ? (d(), m("div", {
|
|
830
827
|
key: 1,
|
|
831
|
-
innerHTML:
|
|
832
|
-
}, null, 8,
|
|
833
|
-
|
|
828
|
+
innerHTML: s.message
|
|
829
|
+
}, null, 8, mo)) : (d(), m("span", po, K(s.message), 1)),
|
|
830
|
+
s.repeatNum > 1 ? (d(), m("span", vo, K(s.repeatNum), 1)) : N("", !0)
|
|
834
831
|
]),
|
|
835
|
-
|
|
832
|
+
s.showClose ? (d(), m("button", {
|
|
836
833
|
key: 1,
|
|
837
834
|
class: "message-close",
|
|
838
|
-
onClick: (r) => o.closeMessage(
|
|
839
|
-
}, " × ", 8,
|
|
835
|
+
onClick: (r) => o.closeMessage(s.id)
|
|
836
|
+
}, " × ", 8, go)) : N("", !0)
|
|
840
837
|
], 2))), 128))
|
|
841
838
|
]),
|
|
842
839
|
_: 1
|
|
843
840
|
})
|
|
844
841
|
]);
|
|
845
842
|
}
|
|
846
|
-
const
|
|
847
|
-
let
|
|
848
|
-
const
|
|
843
|
+
const St = /* @__PURE__ */ G(ao, [["render", _o]]), se = _([]);
|
|
844
|
+
let ho = 0;
|
|
845
|
+
const Ya = {
|
|
849
846
|
// 默认配置
|
|
850
847
|
defaultOptions: {
|
|
851
848
|
title: "",
|
|
@@ -857,23 +854,23 @@ const Ks = {
|
|
|
857
854
|
},
|
|
858
855
|
// 显示通知
|
|
859
856
|
show(e = {}) {
|
|
860
|
-
const
|
|
861
|
-
id:
|
|
857
|
+
const t = Q(W(W({}, this.defaultOptions), e), {
|
|
858
|
+
id: ++ho
|
|
862
859
|
});
|
|
863
|
-
return
|
|
864
|
-
this.close(
|
|
865
|
-
},
|
|
866
|
-
close: () => this.close(
|
|
860
|
+
return se.value.push(t), t.duration > 0 && setTimeout(() => {
|
|
861
|
+
this.close(t.id);
|
|
862
|
+
}, t.duration), {
|
|
863
|
+
close: () => this.close(t.id)
|
|
867
864
|
};
|
|
868
865
|
},
|
|
869
866
|
// 关闭指定通知
|
|
870
867
|
close(e) {
|
|
871
|
-
const
|
|
872
|
-
|
|
868
|
+
const t = se.value.findIndex((n) => n.id === e);
|
|
869
|
+
t > -1 && se.value.splice(t, 1);
|
|
873
870
|
},
|
|
874
871
|
// 关闭所有通知
|
|
875
872
|
closeAll() {
|
|
876
|
-
|
|
873
|
+
se.value = [];
|
|
877
874
|
},
|
|
878
875
|
// 便捷方法
|
|
879
876
|
success(e = {}) {
|
|
@@ -885,61 +882,61 @@ const Ks = {
|
|
|
885
882
|
error(e = {}) {
|
|
886
883
|
return this.show(e);
|
|
887
884
|
}
|
|
888
|
-
},
|
|
889
|
-
const
|
|
890
|
-
|
|
891
|
-
},
|
|
885
|
+
}, bo = (e) => {
|
|
886
|
+
const t = se.value.findIndex((n) => n.id === e);
|
|
887
|
+
t > -1 && se.value.splice(t, 1);
|
|
888
|
+
}, yo = {
|
|
892
889
|
name: "MNotifiMessage",
|
|
893
890
|
setup() {
|
|
894
891
|
return {
|
|
895
|
-
notifications:
|
|
896
|
-
closeNotification:
|
|
892
|
+
notifications: se,
|
|
893
|
+
closeNotification: bo
|
|
897
894
|
};
|
|
898
895
|
}
|
|
899
|
-
},
|
|
896
|
+
}, Co = { class: "notification-content" }, $o = { class: "notification-title" }, So = { class: "notification-message" }, Eo = {
|
|
900
897
|
key: 0,
|
|
901
898
|
class: "notification-action"
|
|
902
|
-
},
|
|
903
|
-
function
|
|
904
|
-
return
|
|
905
|
-
|
|
899
|
+
}, Mo = ["onClick"];
|
|
900
|
+
function Ro(e, t, n, o, a, l) {
|
|
901
|
+
return d(), E(Te, { to: "body" }, [
|
|
902
|
+
x(_t, {
|
|
906
903
|
name: "notification",
|
|
907
904
|
tag: "div",
|
|
908
905
|
class: "notification-container"
|
|
909
906
|
}, {
|
|
910
|
-
default:
|
|
911
|
-
(
|
|
912
|
-
key:
|
|
913
|
-
class:
|
|
907
|
+
default: $(() => [
|
|
908
|
+
(d(!0), m(H, null, M(o.notifications, (s) => (d(), m("div", {
|
|
909
|
+
key: s.id,
|
|
910
|
+
class: U([
|
|
914
911
|
"custom-notification",
|
|
915
|
-
`notification-${
|
|
912
|
+
`notification-${s.position}`
|
|
916
913
|
])
|
|
917
914
|
}, [
|
|
918
|
-
|
|
919
|
-
|
|
915
|
+
t[0] || (t[0] = C("div", { class: "notification-icon" }, [
|
|
916
|
+
C("img", {
|
|
920
917
|
src: "https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/MCImages/userCenter/icon-quota-tip.png",
|
|
921
918
|
alt: "notification icon"
|
|
922
919
|
})
|
|
923
920
|
], -1)),
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
(
|
|
929
|
-
])) :
|
|
921
|
+
C("div", Co, [
|
|
922
|
+
C("div", $o, K(s.title), 1),
|
|
923
|
+
C("div", So, K(s.message), 1),
|
|
924
|
+
s.slotContent ? (d(), m("div", Eo, [
|
|
925
|
+
(d(), E(ht(s.slotContent)))
|
|
926
|
+
])) : N("", !0)
|
|
930
927
|
]),
|
|
931
|
-
|
|
928
|
+
s.showClose ? (d(), m("button", {
|
|
932
929
|
key: 0,
|
|
933
930
|
class: "notification-close",
|
|
934
|
-
onClick: (r) => o.closeNotification(
|
|
935
|
-
}, " × ", 8,
|
|
931
|
+
onClick: (r) => o.closeNotification(s.id)
|
|
932
|
+
}, " × ", 8, Mo)) : N("", !0)
|
|
936
933
|
], 2))), 128))
|
|
937
934
|
]),
|
|
938
935
|
_: 1
|
|
939
936
|
})
|
|
940
937
|
]);
|
|
941
938
|
}
|
|
942
|
-
const
|
|
939
|
+
const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.assign({
|
|
943
940
|
name: "MDatePicker"
|
|
944
941
|
}, {
|
|
945
942
|
__name: "DatePicker",
|
|
@@ -952,30 +949,30 @@ const Ve = /* @__PURE__ */ B(wn, [["render", Ln]]), An = /* @__PURE__ */ Object.
|
|
|
952
949
|
type: String
|
|
953
950
|
}
|
|
954
951
|
},
|
|
955
|
-
setup(e, { expose:
|
|
956
|
-
const { mergedAttrs: n, className: o } =
|
|
952
|
+
setup(e, { expose: t }) {
|
|
953
|
+
const { mergedAttrs: n, className: o } = ce(
|
|
957
954
|
"mc-datepicker-popper",
|
|
958
955
|
"popperClass"
|
|
959
|
-
), { innerRef: a, exposedProxy:
|
|
960
|
-
return
|
|
961
|
-
const
|
|
962
|
-
return
|
|
956
|
+
), { innerRef: a, exposedProxy: l } = L("datePickerRef");
|
|
957
|
+
return t(l), (s, r) => {
|
|
958
|
+
const i = En;
|
|
959
|
+
return d(), E(i, S({
|
|
963
960
|
ref_key: "datePickerRef",
|
|
964
961
|
ref: a
|
|
965
|
-
},
|
|
962
|
+
}, z(n), {
|
|
966
963
|
class: ["m-datepicker", { "style-type-solid": e.styleType === "solid" }],
|
|
967
|
-
"popper-class":
|
|
968
|
-
}),
|
|
969
|
-
|
|
970
|
-
name:
|
|
971
|
-
fn:
|
|
972
|
-
|
|
964
|
+
"popper-class": z(o)
|
|
965
|
+
}), O({ _: 2 }, [
|
|
966
|
+
M(s.$slots, (c, u) => ({
|
|
967
|
+
name: u,
|
|
968
|
+
fn: $(() => [
|
|
969
|
+
y(s.$slots, u)
|
|
973
970
|
])
|
|
974
971
|
}))
|
|
975
972
|
]), 1040, ["popper-class", "class"]);
|
|
976
973
|
};
|
|
977
974
|
}
|
|
978
|
-
}),
|
|
975
|
+
}), Io = [
|
|
979
976
|
"404",
|
|
980
977
|
"billing",
|
|
981
978
|
"cart",
|
|
@@ -992,81 +989,81 @@ const Ve = /* @__PURE__ */ B(wn, [["render", Ln]]), An = /* @__PURE__ */ Object.
|
|
|
992
989
|
"subscription",
|
|
993
990
|
"todo",
|
|
994
991
|
"wishlist"
|
|
995
|
-
],
|
|
992
|
+
], To = {
|
|
996
993
|
name: "MEmpty"
|
|
997
|
-
},
|
|
994
|
+
}, Oo = /* @__PURE__ */ Object.assign(To, {
|
|
998
995
|
props: {
|
|
999
996
|
image: {
|
|
1000
997
|
type: String,
|
|
1001
998
|
default: "orders",
|
|
1002
|
-
validator: (e) => e.includes("/") || e.includes("http") ? !0 :
|
|
999
|
+
validator: (e) => e.includes("/") || e.includes("http") ? !0 : Io.includes(e)
|
|
1003
1000
|
}
|
|
1004
1001
|
},
|
|
1005
|
-
setup(e, { expose:
|
|
1006
|
-
const n = e, o =
|
|
1007
|
-
const
|
|
1008
|
-
return
|
|
1009
|
-
}),
|
|
1010
|
-
const { image:
|
|
1011
|
-
return
|
|
1012
|
-
}), { innerRef:
|
|
1013
|
-
return
|
|
1014
|
-
const
|
|
1015
|
-
return
|
|
1002
|
+
setup(e, { expose: t }) {
|
|
1003
|
+
const n = e, o = Ie(), a = R(() => {
|
|
1004
|
+
const u = o, { image: i } = u;
|
|
1005
|
+
return Se(u, ["image"]);
|
|
1006
|
+
}), l = R(() => {
|
|
1007
|
+
const { image: i } = n;
|
|
1008
|
+
return i.includes("/") || i.includes("http") ? i : `https://cfdsaas-pre.oss-cn-hongkong.aliyuncs.com/mc-assets/mc-ui/empty/${i}.png`;
|
|
1009
|
+
}), { innerRef: s, exposedProxy: r } = L("emptyRef");
|
|
1010
|
+
return t(r), (i, c) => {
|
|
1011
|
+
const u = Mn;
|
|
1012
|
+
return d(), E(u, S({
|
|
1016
1013
|
ref_key: "emptyRef",
|
|
1017
|
-
ref:
|
|
1018
|
-
}, a.value, { image:
|
|
1019
|
-
|
|
1020
|
-
name:
|
|
1021
|
-
fn:
|
|
1022
|
-
|
|
1014
|
+
ref: s
|
|
1015
|
+
}, a.value, { image: l.value }), O({ _: 2 }, [
|
|
1016
|
+
M(i.$slots, (v, h) => ({
|
|
1017
|
+
name: h,
|
|
1018
|
+
fn: $(() => [
|
|
1019
|
+
y(i.$slots, h)
|
|
1023
1020
|
])
|
|
1024
1021
|
}))
|
|
1025
1022
|
]), 1040, ["image"]);
|
|
1026
1023
|
};
|
|
1027
1024
|
}
|
|
1028
|
-
}),
|
|
1025
|
+
}), ko = /* @__PURE__ */ Object.assign({
|
|
1029
1026
|
name: "MTable"
|
|
1030
1027
|
}, {
|
|
1031
1028
|
__name: "Table",
|
|
1032
|
-
setup(e, { expose:
|
|
1033
|
-
const { innerRef: n, exposedProxy: o } =
|
|
1034
|
-
return
|
|
1035
|
-
const
|
|
1036
|
-
return
|
|
1029
|
+
setup(e, { expose: t }) {
|
|
1030
|
+
const { innerRef: n, exposedProxy: o } = L("innerTableRef");
|
|
1031
|
+
return t(o), (a, l) => {
|
|
1032
|
+
const s = Rn;
|
|
1033
|
+
return d(), E(s, S(a.$attrs, {
|
|
1037
1034
|
ref_key: "innerTableRef",
|
|
1038
1035
|
ref: n
|
|
1039
|
-
}),
|
|
1040
|
-
|
|
1041
|
-
name:
|
|
1042
|
-
fn:
|
|
1043
|
-
|
|
1036
|
+
}), O({ _: 2 }, [
|
|
1037
|
+
M(a.$slots, (r, i) => ({
|
|
1038
|
+
name: i,
|
|
1039
|
+
fn: $(() => [
|
|
1040
|
+
y(a.$slots, i)
|
|
1044
1041
|
])
|
|
1045
1042
|
}))
|
|
1046
1043
|
]), 1040);
|
|
1047
1044
|
};
|
|
1048
1045
|
}
|
|
1049
|
-
}),
|
|
1046
|
+
}), xo = /* @__PURE__ */ Object.assign({
|
|
1050
1047
|
name: "MTableColumn"
|
|
1051
1048
|
}, {
|
|
1052
1049
|
__name: "TableColumn",
|
|
1053
1050
|
setup(e) {
|
|
1054
|
-
return (
|
|
1055
|
-
const o =
|
|
1056
|
-
return
|
|
1057
|
-
|
|
1058
|
-
name:
|
|
1059
|
-
fn:
|
|
1060
|
-
|
|
1051
|
+
return (t, n) => {
|
|
1052
|
+
const o = wn;
|
|
1053
|
+
return d(), E(o, S(t.$attrs, { class: "m-table-column" }), O({ _: 2 }, [
|
|
1054
|
+
M(t.$slots, (a, l) => ({
|
|
1055
|
+
name: l,
|
|
1056
|
+
fn: $((s) => [
|
|
1057
|
+
y(t.$slots, l, vt(gt(s || {})))
|
|
1061
1058
|
])
|
|
1062
1059
|
}))
|
|
1063
1060
|
]), 1040);
|
|
1064
1061
|
};
|
|
1065
1062
|
}
|
|
1066
|
-
}),
|
|
1063
|
+
}), Po = { class: "m-banner__content" }, Ao = {
|
|
1067
1064
|
key: 0,
|
|
1068
1065
|
class: "m-banner__icon"
|
|
1069
|
-
},
|
|
1066
|
+
}, Lo = { class: "m-banner__text" }, Bo = /* @__PURE__ */ Object.assign({
|
|
1070
1067
|
name: "MBanner"
|
|
1071
1068
|
}, {
|
|
1072
1069
|
__name: "Banner",
|
|
@@ -1129,87 +1126,87 @@ const Ve = /* @__PURE__ */ B(wn, [["render", Ln]]), An = /* @__PURE__ */ Object.
|
|
|
1129
1126
|
}
|
|
1130
1127
|
},
|
|
1131
1128
|
emits: ["close", "update:visible"],
|
|
1132
|
-
setup(e, { expose:
|
|
1133
|
-
const o =
|
|
1134
|
-
|
|
1135
|
-
|
|
1129
|
+
setup(e, { expose: t, emit: n }) {
|
|
1130
|
+
const o = on(), a = e, l = n, s = _(a.visible);
|
|
1131
|
+
V(() => a.visible, (u) => {
|
|
1132
|
+
s.value = u;
|
|
1136
1133
|
});
|
|
1137
|
-
const r =
|
|
1138
|
-
const
|
|
1139
|
-
return a.backgroundColor && (
|
|
1140
|
-
}),
|
|
1134
|
+
const r = R(() => {
|
|
1135
|
+
const u = {};
|
|
1136
|
+
return a.backgroundColor && (u.backgroundColor = a.backgroundColor), a.textColor && (u.color = a.textColor), a.borderColor && (u.borderColor = a.borderColor), u;
|
|
1137
|
+
}), i = {
|
|
1141
1138
|
info: "info",
|
|
1142
1139
|
success: "check-circle",
|
|
1143
1140
|
warning: "warning",
|
|
1144
1141
|
error: "close-circle"
|
|
1145
1142
|
};
|
|
1146
|
-
|
|
1147
|
-
const
|
|
1148
|
-
|
|
1143
|
+
R(() => a.icon || i[a.type]);
|
|
1144
|
+
const c = () => {
|
|
1145
|
+
s.value = !1, l("update:visible", !1), l("close");
|
|
1149
1146
|
};
|
|
1150
|
-
return
|
|
1151
|
-
|
|
1152
|
-
|
|
1147
|
+
return V(s, (u) => {
|
|
1148
|
+
u && a.duration > 0 && setTimeout(() => {
|
|
1149
|
+
c();
|
|
1153
1150
|
}, a.duration);
|
|
1154
|
-
}),
|
|
1155
|
-
close:
|
|
1156
|
-
}), (
|
|
1151
|
+
}), t({
|
|
1152
|
+
close: c
|
|
1153
|
+
}), (u, v) => e.visible ? (d(), m("div", {
|
|
1157
1154
|
key: 0,
|
|
1158
|
-
class:
|
|
1155
|
+
class: U(["m-banner", [
|
|
1159
1156
|
`m-banner--${e.type}`,
|
|
1160
1157
|
{
|
|
1161
1158
|
"m-banner--closable": e.closable,
|
|
1162
|
-
"m-banner--with-icon": e.icon ||
|
|
1159
|
+
"m-banner--with-icon": e.icon || z(o).icon
|
|
1163
1160
|
}
|
|
1164
1161
|
]]),
|
|
1165
|
-
style:
|
|
1162
|
+
style: bt(r.value)
|
|
1166
1163
|
}, [
|
|
1167
|
-
|
|
1168
|
-
e.icon ||
|
|
1169
|
-
|
|
1170
|
-
|
|
1164
|
+
C("div", Po, [
|
|
1165
|
+
e.icon || z(o).icon ? (d(), m("div", Ao, [
|
|
1166
|
+
y(u.$slots, "icon", {}, () => [
|
|
1167
|
+
x(je, {
|
|
1171
1168
|
name: e.icon,
|
|
1172
1169
|
size: e.iconSize
|
|
1173
1170
|
}, null, 8, ["name", "size"])
|
|
1174
1171
|
], !0)
|
|
1175
|
-
])) :
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1172
|
+
])) : N("", !0),
|
|
1173
|
+
C("div", Lo, [
|
|
1174
|
+
y(u.$slots, "default", {}, () => [
|
|
1175
|
+
Ue(K(e.content), 1)
|
|
1179
1176
|
], !0)
|
|
1180
1177
|
]),
|
|
1181
|
-
e.closable ? (
|
|
1178
|
+
e.closable ? (d(), m("div", {
|
|
1182
1179
|
key: 1,
|
|
1183
1180
|
class: "m-banner__close",
|
|
1184
|
-
onClick:
|
|
1181
|
+
onClick: c
|
|
1185
1182
|
}, [
|
|
1186
|
-
|
|
1183
|
+
x(je, {
|
|
1187
1184
|
name: "lucide-x",
|
|
1188
1185
|
size: e.closeIconSize
|
|
1189
1186
|
}, null, 8, ["size"])
|
|
1190
|
-
])) :
|
|
1187
|
+
])) : N("", !0)
|
|
1191
1188
|
])
|
|
1192
|
-
], 6)) :
|
|
1189
|
+
], 6)) : N("", !0);
|
|
1193
1190
|
}
|
|
1194
|
-
}),
|
|
1195
|
-
function
|
|
1191
|
+
}), Do = /* @__PURE__ */ G(Bo, [["__scopeId", "data-v-00c80323"]]);
|
|
1192
|
+
function we(e) {
|
|
1196
1193
|
e && e.classList && e.classList.add("mc-ui-override");
|
|
1197
1194
|
}
|
|
1198
|
-
function
|
|
1199
|
-
e && e.$el &&
|
|
1195
|
+
function No(e) {
|
|
1196
|
+
e && e.$el && we(e.$el);
|
|
1200
1197
|
}
|
|
1201
|
-
function
|
|
1202
|
-
typeof document != "undefined" && (document.body.classList.add("mc-ui-override"), new MutationObserver((
|
|
1203
|
-
|
|
1198
|
+
function Fo() {
|
|
1199
|
+
typeof document != "undefined" && (document.body.classList.add("mc-ui-override"), new MutationObserver((t) => {
|
|
1200
|
+
t.forEach((n) => {
|
|
1204
1201
|
n.addedNodes.forEach((o) => {
|
|
1205
1202
|
if (o.nodeType === 1 && o.classList) {
|
|
1206
1203
|
if (o.className && typeof o.className == "string" && o.className.includes("el-")) {
|
|
1207
|
-
const
|
|
1208
|
-
|
|
1204
|
+
const l = o.closest(".mc-ui-override") || o.parentElement;
|
|
1205
|
+
l && !l.classList.contains("mc-ui-override") && l.classList.add("mc-ui-override");
|
|
1209
1206
|
}
|
|
1210
|
-
o.querySelectorAll('[class*="el-"]').forEach((
|
|
1211
|
-
const
|
|
1212
|
-
|
|
1207
|
+
o.querySelectorAll('[class*="el-"]').forEach((l) => {
|
|
1208
|
+
const s = l.closest(".mc-ui-override") || l.parentElement;
|
|
1209
|
+
s && !s.classList.contains("mc-ui-override") && s.classList.add("mc-ui-override");
|
|
1213
1210
|
});
|
|
1214
1211
|
}
|
|
1215
1212
|
});
|
|
@@ -1219,36 +1216,36 @@ function Hn() {
|
|
|
1219
1216
|
subtree: !0
|
|
1220
1217
|
}));
|
|
1221
1218
|
}
|
|
1222
|
-
function
|
|
1219
|
+
function zo(e = {}) {
|
|
1223
1220
|
if (typeof window == "undefined" || typeof document == "undefined") return () => {
|
|
1224
1221
|
};
|
|
1225
1222
|
const {
|
|
1226
|
-
mode:
|
|
1223
|
+
mode: t = "auto",
|
|
1227
1224
|
breakpoint: n = 768
|
|
1228
|
-
} = e, o = document.documentElement, a = () => /Mobi|Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent),
|
|
1229
|
-
|
|
1225
|
+
} = e, o = document.documentElement, a = () => /Mobi|Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent), l = () => window.innerWidth <= n, s = (c) => {
|
|
1226
|
+
c ? o.classList.add("mc-h5") : o.classList.remove("mc-h5");
|
|
1230
1227
|
};
|
|
1231
|
-
if (
|
|
1232
|
-
return
|
|
1228
|
+
if (t === "on")
|
|
1229
|
+
return s(!0), () => {
|
|
1233
1230
|
o.classList.remove("mc-h5");
|
|
1234
1231
|
};
|
|
1235
|
-
if (
|
|
1236
|
-
return
|
|
1232
|
+
if (t === "off")
|
|
1233
|
+
return s(!1), () => {
|
|
1237
1234
|
};
|
|
1238
|
-
const r = () =>
|
|
1235
|
+
const r = () => s(a() || l());
|
|
1239
1236
|
r();
|
|
1240
|
-
const
|
|
1241
|
-
return window.addEventListener("resize",
|
|
1242
|
-
window.removeEventListener("resize",
|
|
1237
|
+
const i = () => r();
|
|
1238
|
+
return window.addEventListener("resize", i, { passive: !0 }), () => {
|
|
1239
|
+
window.removeEventListener("resize", i);
|
|
1243
1240
|
};
|
|
1244
1241
|
}
|
|
1245
|
-
function
|
|
1242
|
+
function jo(e = '[class*="el-"]') {
|
|
1246
1243
|
typeof document != "undefined" && document.querySelectorAll(e).forEach((n) => {
|
|
1247
1244
|
const o = n.closest(".mc-ui-override") || n.parentElement;
|
|
1248
1245
|
o && !o.classList.contains("mc-ui-override") && o.classList.add("mc-ui-override");
|
|
1249
1246
|
});
|
|
1250
1247
|
}
|
|
1251
|
-
function
|
|
1248
|
+
function Ve(e = 768) {
|
|
1252
1249
|
if (typeof window == "undefined" || typeof document == "undefined")
|
|
1253
1250
|
return !1;
|
|
1254
1251
|
if (document.documentElement.classList.contains("mc-h5"))
|
|
@@ -1256,26 +1253,26 @@ function _e(e = 768) {
|
|
|
1256
1253
|
const n = /Mobi|Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent), o = window.innerWidth <= e;
|
|
1257
1254
|
return n || o;
|
|
1258
1255
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return W(
|
|
1256
|
+
function Vo(e) {
|
|
1257
|
+
return Q(W({}, e), {
|
|
1261
1258
|
mounted() {
|
|
1262
|
-
|
|
1259
|
+
we(this.$el), e.mounted && e.mounted.call(this);
|
|
1263
1260
|
},
|
|
1264
1261
|
updated() {
|
|
1265
|
-
|
|
1262
|
+
we(this.$el), e.updated && e.updated.call(this);
|
|
1266
1263
|
}
|
|
1267
1264
|
});
|
|
1268
1265
|
}
|
|
1269
|
-
const
|
|
1266
|
+
const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1270
1267
|
__proto__: null,
|
|
1271
|
-
addComponentOverride:
|
|
1272
|
-
addOverrideClass:
|
|
1273
|
-
applyGlobalOverride:
|
|
1274
|
-
createOverrideComponent:
|
|
1275
|
-
enableH5Override:
|
|
1276
|
-
forceRefreshStyles:
|
|
1277
|
-
isH5:
|
|
1278
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1268
|
+
addComponentOverride: No,
|
|
1269
|
+
addOverrideClass: we,
|
|
1270
|
+
applyGlobalOverride: Fo,
|
|
1271
|
+
createOverrideComponent: Vo,
|
|
1272
|
+
enableH5Override: zo,
|
|
1273
|
+
forceRefreshStyles: jo,
|
|
1274
|
+
isH5: Ve
|
|
1275
|
+
}, Symbol.toStringTag, { value: "Module" })), D = {
|
|
1279
1276
|
// 滚动相关
|
|
1280
1277
|
SCROLL_RATIO: 0.8,
|
|
1281
1278
|
// 滚动比例
|
|
@@ -1305,7 +1302,7 @@ const Zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1305
1302
|
// 活动条偏移量
|
|
1306
1303
|
H5_POSITION_TOLERANCE: 1
|
|
1307
1304
|
// H5 位置容差
|
|
1308
|
-
},
|
|
1305
|
+
}, Wo = {
|
|
1309
1306
|
name: "MTabs",
|
|
1310
1307
|
props: {
|
|
1311
1308
|
modelValue: {
|
|
@@ -1323,253 +1320,253 @@ const Zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1323
1320
|
}
|
|
1324
1321
|
},
|
|
1325
1322
|
emits: ["update:modelValue", "tab-click", "tab-remove", "tab-change", "tab-add", "edit"],
|
|
1326
|
-
setup(e, { emit:
|
|
1327
|
-
const o =
|
|
1328
|
-
let
|
|
1329
|
-
const
|
|
1330
|
-
|
|
1331
|
-
},
|
|
1332
|
-
let p =
|
|
1333
|
-
if (
|
|
1334
|
-
const
|
|
1335
|
-
if (Math.abs(p -
|
|
1336
|
-
const
|
|
1337
|
-
p =
|
|
1323
|
+
setup(e, { emit: t, slots: n }) {
|
|
1324
|
+
const o = _(null), a = _(null), l = _(null), s = _([]), r = _(e.modelValue), i = _(0), c = _(0), u = _([]), v = _(!1), h = _(!1), k = _({ width: "0px", left: "0px" });
|
|
1325
|
+
let B = null, j = null, F = null, te = !1, ue = !1, X = null;
|
|
1326
|
+
const de = () => {
|
|
1327
|
+
k.value = { width: "0px", left: "0px" };
|
|
1328
|
+
}, be = (f) => {
|
|
1329
|
+
let p = f.offsetLeft;
|
|
1330
|
+
if (Ve()) {
|
|
1331
|
+
const w = window.getComputedStyle(o.value), P = parseFloat(w.paddingLeft) || 0;
|
|
1332
|
+
if (Math.abs(p - P) > D.H5_POSITION_TOLERANCE) {
|
|
1333
|
+
const I = o.value.getBoundingClientRect();
|
|
1334
|
+
p = f.getBoundingClientRect().left - I.left;
|
|
1338
1335
|
}
|
|
1339
1336
|
}
|
|
1340
1337
|
return p;
|
|
1341
|
-
},
|
|
1342
|
-
|
|
1343
|
-
if (!o.value ||
|
|
1344
|
-
|
|
1338
|
+
}, b = (f = !0) => {
|
|
1339
|
+
le(() => {
|
|
1340
|
+
if (!o.value || s.value.length === 0 || !r.value) {
|
|
1341
|
+
de();
|
|
1345
1342
|
return;
|
|
1346
1343
|
}
|
|
1347
|
-
const p =
|
|
1344
|
+
const p = s.value.findIndex((A) => A.name === r.value);
|
|
1348
1345
|
if (p === -1) {
|
|
1349
|
-
|
|
1346
|
+
de();
|
|
1350
1347
|
return;
|
|
1351
1348
|
}
|
|
1352
|
-
const
|
|
1353
|
-
if (!
|
|
1354
|
-
|
|
1349
|
+
const P = o.value.querySelectorAll(".m-tabs__item")[p];
|
|
1350
|
+
if (!P) {
|
|
1351
|
+
de();
|
|
1355
1352
|
return;
|
|
1356
1353
|
}
|
|
1357
|
-
const
|
|
1358
|
-
|
|
1359
|
-
width: `${
|
|
1360
|
-
left: `${
|
|
1361
|
-
},
|
|
1354
|
+
const T = be(P) + P.offsetWidth / 2 - D.ACTIVE_BAR_OFFSET;
|
|
1355
|
+
k.value = {
|
|
1356
|
+
width: `${D.ACTIVE_BAR_WIDTH}px`,
|
|
1357
|
+
left: `${T}px`
|
|
1358
|
+
}, f && Y(P);
|
|
1362
1359
|
});
|
|
1363
|
-
},
|
|
1364
|
-
if (!a.value || !
|
|
1365
|
-
const p = a.value,
|
|
1366
|
-
if (
|
|
1367
|
-
const
|
|
1368
|
-
let
|
|
1369
|
-
|
|
1370
|
-
const
|
|
1371
|
-
|
|
1360
|
+
}, Y = (f) => {
|
|
1361
|
+
if (!a.value || !f) return;
|
|
1362
|
+
const p = a.value, w = p.clientWidth, P = p.scrollLeft, I = f.offsetLeft, T = f.offsetWidth, A = I + T;
|
|
1363
|
+
if (Ve()) {
|
|
1364
|
+
const re = I + T / 2, Yt = o.value.scrollWidth, Ht = Math.max(0, Yt - w);
|
|
1365
|
+
let Ce = re - w / 2;
|
|
1366
|
+
Ce = Math.max(0, Math.min(Ce, Ht));
|
|
1367
|
+
const Be = I - P, De = A - P, Kt = Be >= 0 && De <= w, tt = w * D.EDGE_THRESHOLD_RATIO, qt = Be >= 0 && Be < tt, Zt = De > w - tt && De <= w, Xt = !Kt || qt || Zt, Jt = Math.abs(P - Ce);
|
|
1368
|
+
Xt && Jt > D.SCROLL_MIN_DIFF && p.scrollTo({ left: Ce, behavior: "smooth" });
|
|
1372
1369
|
} else
|
|
1373
|
-
|
|
1374
|
-
left:
|
|
1370
|
+
I < P ? p.scrollTo({
|
|
1371
|
+
left: I - D.SCROLL_MARGIN,
|
|
1375
1372
|
behavior: "smooth"
|
|
1376
|
-
}) :
|
|
1377
|
-
left:
|
|
1373
|
+
}) : A > P + w && p.scrollTo({
|
|
1374
|
+
left: A - w + D.SCROLL_MARGIN,
|
|
1378
1375
|
behavior: "smooth"
|
|
1379
1376
|
});
|
|
1380
|
-
},
|
|
1381
|
-
if (
|
|
1377
|
+
}, fe = (f) => {
|
|
1378
|
+
if (f === r.value) return;
|
|
1382
1379
|
const p = r.value;
|
|
1383
|
-
r.value =
|
|
1384
|
-
},
|
|
1385
|
-
|
|
1386
|
-
},
|
|
1387
|
-
|
|
1388
|
-
},
|
|
1389
|
-
|
|
1390
|
-
},
|
|
1391
|
-
const p =
|
|
1392
|
-
p === -1 ?
|
|
1393
|
-
|
|
1394
|
-
|
|
1380
|
+
r.value = f, t("update:modelValue", f), t("tab-click", f), t("tab-change", f, p), b();
|
|
1381
|
+
}, ne = (f) => {
|
|
1382
|
+
t("tab-remove", f), t("edit", f, "remove");
|
|
1383
|
+
}, ye = () => {
|
|
1384
|
+
t("tab-add"), t("edit", null, "add");
|
|
1385
|
+
}, me = () => {
|
|
1386
|
+
s.value.length > 0 && (r.value && b(), J());
|
|
1387
|
+
}, pe = (f) => {
|
|
1388
|
+
const p = s.value.findIndex((w) => w.name === f.name);
|
|
1389
|
+
p === -1 ? s.value.push(f) : s.value[p] = f, B && clearTimeout(B), B = setTimeout(() => {
|
|
1390
|
+
le(() => {
|
|
1391
|
+
Xe(), me();
|
|
1395
1392
|
});
|
|
1396
|
-
},
|
|
1397
|
-
},
|
|
1398
|
-
if (!
|
|
1399
|
-
const
|
|
1400
|
-
if (
|
|
1393
|
+
}, D.SORT_DELAY);
|
|
1394
|
+
}, Xe = () => {
|
|
1395
|
+
if (!l.value || s.value.length === 0) return;
|
|
1396
|
+
const f = l.value.querySelectorAll(".m-tab-pane");
|
|
1397
|
+
if (f.length === 0 || f.length !== s.value.length) return;
|
|
1401
1398
|
const p = [];
|
|
1402
|
-
if (
|
|
1403
|
-
const
|
|
1404
|
-
|
|
1405
|
-
}), p.length === 0 || p.length !==
|
|
1406
|
-
const
|
|
1407
|
-
if (!(
|
|
1408
|
-
const
|
|
1409
|
-
p.forEach((
|
|
1410
|
-
const
|
|
1411
|
-
|
|
1412
|
-
}),
|
|
1413
|
-
|
|
1414
|
-
}),
|
|
1399
|
+
if (f.forEach((I) => {
|
|
1400
|
+
const T = I.getAttribute("data-tab-name");
|
|
1401
|
+
T && p.push(T);
|
|
1402
|
+
}), p.length === 0 || p.length !== s.value.length) return;
|
|
1403
|
+
const w = s.value.map((I) => String(I.name));
|
|
1404
|
+
if (!(w.length === p.length && w.every((I, T) => I === String(p[T])))) {
|
|
1405
|
+
const I = new Map(s.value.map((A) => [String(A.name), A])), T = [];
|
|
1406
|
+
p.forEach((A) => {
|
|
1407
|
+
const re = I.get(String(A));
|
|
1408
|
+
re && T.push(re);
|
|
1409
|
+
}), s.value.forEach((A) => {
|
|
1410
|
+
T.find((re) => re.name === A.name) || T.push(A);
|
|
1411
|
+
}), T.length === s.value.length && (s.value.splice(0, s.value.length, ...T), b());
|
|
1415
1412
|
}
|
|
1416
|
-
},
|
|
1417
|
-
const p =
|
|
1418
|
-
p > -1 &&
|
|
1413
|
+
}, Je = (f) => {
|
|
1414
|
+
const p = s.value.findIndex((w) => w.name === f);
|
|
1415
|
+
p > -1 && s.value.splice(p, 1);
|
|
1419
1416
|
};
|
|
1420
|
-
|
|
1417
|
+
Oe("tabsContext", {
|
|
1421
1418
|
activeTab: r,
|
|
1422
|
-
registerTab:
|
|
1423
|
-
unregisterTab:
|
|
1424
|
-
handleTabRemove:
|
|
1425
|
-
handleTabAdd:
|
|
1426
|
-
}),
|
|
1427
|
-
|
|
1419
|
+
registerTab: pe,
|
|
1420
|
+
unregisterTab: Je,
|
|
1421
|
+
handleTabRemove: ne,
|
|
1422
|
+
handleTabAdd: ye
|
|
1423
|
+
}), V(() => e.modelValue, (f, p) => {
|
|
1424
|
+
f !== r.value && (r.value = f, t("tab-change", f, p), b());
|
|
1428
1425
|
});
|
|
1429
|
-
const
|
|
1430
|
-
if (
|
|
1431
|
-
const p =
|
|
1432
|
-
return
|
|
1433
|
-
},
|
|
1434
|
-
|
|
1426
|
+
const zt = (f) => {
|
|
1427
|
+
if (c.value === 0) return !1;
|
|
1428
|
+
const p = f.length, w = f.map((T) => String(T.name)), P = p !== c.value, I = p === c.value && w.some((T, A) => A >= u.value.length || T !== u.value[A]);
|
|
1429
|
+
return P || I;
|
|
1430
|
+
}, jt = () => {
|
|
1431
|
+
i.value++, ue = !0, le(() => {
|
|
1435
1432
|
setTimeout(() => {
|
|
1436
|
-
|
|
1437
|
-
},
|
|
1433
|
+
Xe(), s.value.length > 0 && (c.value = s.value.length, u.value = s.value.map((f) => String(f.name)), me()), ue = !1;
|
|
1434
|
+
}, D.RESET_DELAY);
|
|
1438
1435
|
});
|
|
1439
1436
|
};
|
|
1440
|
-
|
|
1441
|
-
if (!(
|
|
1442
|
-
if (
|
|
1443
|
-
|
|
1437
|
+
V(s, (f) => {
|
|
1438
|
+
if (!(ue || f.length === 0)) {
|
|
1439
|
+
if (zt(f)) {
|
|
1440
|
+
jt();
|
|
1444
1441
|
return;
|
|
1445
1442
|
}
|
|
1446
|
-
|
|
1443
|
+
c.value = f.length, u.value = f.map((p) => String(p.name)), me();
|
|
1447
1444
|
}
|
|
1448
1445
|
}, { deep: !0 });
|
|
1449
|
-
const
|
|
1446
|
+
const J = () => {
|
|
1450
1447
|
if (!a.value || !o.value) return;
|
|
1451
|
-
const
|
|
1452
|
-
if (!(
|
|
1453
|
-
|
|
1448
|
+
const f = a.value, p = o.value, w = f.scrollLeft, P = p.scrollWidth, I = f.clientWidth;
|
|
1449
|
+
if (!(P > I)) {
|
|
1450
|
+
v.value = !1, h.value = !1;
|
|
1454
1451
|
return;
|
|
1455
1452
|
}
|
|
1456
|
-
const
|
|
1457
|
-
|
|
1458
|
-
},
|
|
1459
|
-
|
|
1460
|
-
},
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
}),
|
|
1464
|
-
|
|
1465
|
-
},
|
|
1466
|
-
},
|
|
1453
|
+
const A = Math.max(0, P - I);
|
|
1454
|
+
v.value = w > D.SCROLL_PRECISION, h.value = w < A - D.SCROLL_PRECISION;
|
|
1455
|
+
}, Qe = () => {
|
|
1456
|
+
j && (cancelAnimationFrame(j), j = null), F && (clearTimeout(F), F = null);
|
|
1457
|
+
}, Vt = () => {
|
|
1458
|
+
J(), te || b(!1), Qe(), j = requestAnimationFrame(() => {
|
|
1459
|
+
J(), j = null;
|
|
1460
|
+
}), F = setTimeout(() => {
|
|
1461
|
+
J(), te && (te = !1), F = null;
|
|
1462
|
+
}, D.SCROLL_DEBOUNCE);
|
|
1463
|
+
}, et = (f) => {
|
|
1467
1464
|
if (!a.value) return;
|
|
1468
|
-
|
|
1469
|
-
const p = a.value.clientWidth *
|
|
1465
|
+
te = !0;
|
|
1466
|
+
const p = a.value.clientWidth * D.SCROLL_RATIO;
|
|
1470
1467
|
a.value.scrollBy({
|
|
1471
|
-
left:
|
|
1468
|
+
left: f === "left" ? -p : p,
|
|
1472
1469
|
behavior: "smooth"
|
|
1473
1470
|
}), setTimeout(() => {
|
|
1474
|
-
|
|
1475
|
-
},
|
|
1476
|
-
},
|
|
1477
|
-
|
|
1478
|
-
},
|
|
1479
|
-
|
|
1480
|
-
},
|
|
1481
|
-
if (!r.value &&
|
|
1482
|
-
const
|
|
1483
|
-
r.value =
|
|
1471
|
+
J(), te = !1;
|
|
1472
|
+
}, D.SCROLL_ANIMATION);
|
|
1473
|
+
}, Gt = () => {
|
|
1474
|
+
et("left");
|
|
1475
|
+
}, Wt = () => {
|
|
1476
|
+
et("right");
|
|
1477
|
+
}, Ut = () => {
|
|
1478
|
+
if (!r.value && s.value.length > 0) {
|
|
1479
|
+
const f = s.value[0];
|
|
1480
|
+
r.value = f.name, t("update:modelValue", r.value);
|
|
1484
1481
|
}
|
|
1485
1482
|
};
|
|
1486
|
-
return
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
},
|
|
1483
|
+
return ke(() => {
|
|
1484
|
+
c.value = s.value.length, u.value = s.value.map((f) => String(f.name)), Ut(), b(), setTimeout(() => {
|
|
1485
|
+
b();
|
|
1486
|
+
}, D.INIT_DELAY), requestAnimationFrame(() => {
|
|
1490
1487
|
setTimeout(() => {
|
|
1491
|
-
|
|
1492
|
-
},
|
|
1493
|
-
}),
|
|
1494
|
-
|
|
1495
|
-
}), a.value && o.value && (
|
|
1496
|
-
|
|
1497
|
-
}),
|
|
1498
|
-
}),
|
|
1499
|
-
|
|
1488
|
+
b();
|
|
1489
|
+
}, D.INIT_DELAY);
|
|
1490
|
+
}), le(() => {
|
|
1491
|
+
J();
|
|
1492
|
+
}), a.value && o.value && (X = new ResizeObserver(() => {
|
|
1493
|
+
J(), b(!1);
|
|
1494
|
+
}), X.observe(a.value), X.observe(o.value));
|
|
1495
|
+
}), Ye(() => {
|
|
1496
|
+
B && (clearTimeout(B), B = null), Qe(), X && (X.disconnect(), X = null);
|
|
1500
1497
|
}), {
|
|
1501
1498
|
navRef: o,
|
|
1502
1499
|
headerRef: a,
|
|
1503
|
-
contentRef:
|
|
1504
|
-
tabs:
|
|
1500
|
+
contentRef: l,
|
|
1501
|
+
tabs: s,
|
|
1505
1502
|
activeTab: r,
|
|
1506
|
-
activeBarStyle:
|
|
1507
|
-
showLeftArrow:
|
|
1508
|
-
showRightArrow:
|
|
1509
|
-
internalKey:
|
|
1510
|
-
handleTabClick:
|
|
1511
|
-
handleTabRemove:
|
|
1512
|
-
handleTabAdd:
|
|
1513
|
-
registerTab:
|
|
1514
|
-
unregisterTab:
|
|
1515
|
-
updateActiveBarPosition:
|
|
1516
|
-
updateArrowVisibility:
|
|
1517
|
-
handleScroll:
|
|
1518
|
-
handleScrollLeft:
|
|
1519
|
-
handleScrollRight:
|
|
1503
|
+
activeBarStyle: k,
|
|
1504
|
+
showLeftArrow: v,
|
|
1505
|
+
showRightArrow: h,
|
|
1506
|
+
internalKey: i,
|
|
1507
|
+
handleTabClick: fe,
|
|
1508
|
+
handleTabRemove: ne,
|
|
1509
|
+
handleTabAdd: ye,
|
|
1510
|
+
registerTab: pe,
|
|
1511
|
+
unregisterTab: Je,
|
|
1512
|
+
updateActiveBarPosition: b,
|
|
1513
|
+
updateArrowVisibility: J,
|
|
1514
|
+
handleScroll: Vt,
|
|
1515
|
+
handleScrollLeft: Gt,
|
|
1516
|
+
handleScrollRight: Wt
|
|
1520
1517
|
};
|
|
1521
1518
|
}
|
|
1522
|
-
},
|
|
1519
|
+
}, Uo = { class: "m-tabs__header-wrapper" }, Yo = {
|
|
1523
1520
|
class: "m-tabs__nav",
|
|
1524
1521
|
ref: "navRef"
|
|
1525
|
-
},
|
|
1526
|
-
function
|
|
1527
|
-
return
|
|
1528
|
-
class:
|
|
1522
|
+
}, Ho = ["onClick"];
|
|
1523
|
+
function Ko(e, t, n, o, a, l) {
|
|
1524
|
+
return d(), m("div", {
|
|
1525
|
+
class: U(["m-tabs", { "style-solid": n.styleType === "solid" }])
|
|
1529
1526
|
}, [
|
|
1530
|
-
|
|
1531
|
-
o.showLeftArrow ? (
|
|
1527
|
+
C("div", Uo, [
|
|
1528
|
+
o.showLeftArrow ? (d(), m("i", {
|
|
1532
1529
|
key: 0,
|
|
1533
1530
|
class: "m-tabs__arrow m-tabs__arrow--left iconfont icon-chevron-left",
|
|
1534
|
-
onClick:
|
|
1535
|
-
})) :
|
|
1536
|
-
|
|
1531
|
+
onClick: t[0] || (t[0] = (...s) => o.handleScrollLeft && o.handleScrollLeft(...s))
|
|
1532
|
+
})) : N("", !0),
|
|
1533
|
+
C("div", {
|
|
1537
1534
|
class: "m-tabs__header",
|
|
1538
1535
|
ref: "headerRef",
|
|
1539
|
-
onScroll:
|
|
1536
|
+
onScroll: t[1] || (t[1] = (...s) => o.handleScroll && o.handleScroll(...s))
|
|
1540
1537
|
}, [
|
|
1541
|
-
|
|
1542
|
-
(
|
|
1543
|
-
key:
|
|
1544
|
-
class:
|
|
1538
|
+
C("div", Yo, [
|
|
1539
|
+
(d(!0), m(H, null, M(o.tabs, (s, r) => (d(), m("div", {
|
|
1540
|
+
key: s.name,
|
|
1541
|
+
class: U([
|
|
1545
1542
|
"m-tabs__item",
|
|
1546
|
-
{ "is-active": o.activeTab ===
|
|
1543
|
+
{ "is-active": o.activeTab === s.name }
|
|
1547
1544
|
]),
|
|
1548
|
-
onClick: (
|
|
1549
|
-
},
|
|
1550
|
-
n.styleType !== "solid" ? (
|
|
1545
|
+
onClick: (i) => o.handleTabClick(s.name)
|
|
1546
|
+
}, K(s.label), 11, Ho))), 128)),
|
|
1547
|
+
n.styleType !== "solid" ? (d(), m("div", {
|
|
1551
1548
|
key: 0,
|
|
1552
1549
|
class: "m-tabs__active-bar",
|
|
1553
|
-
style:
|
|
1554
|
-
}, null, 4)) :
|
|
1550
|
+
style: bt(o.activeBarStyle)
|
|
1551
|
+
}, null, 4)) : N("", !0)
|
|
1555
1552
|
], 512)
|
|
1556
1553
|
], 544),
|
|
1557
|
-
o.showRightArrow ? (
|
|
1554
|
+
o.showRightArrow ? (d(), m("i", {
|
|
1558
1555
|
key: 1,
|
|
1559
1556
|
class: "m-tabs__arrow m-tabs__arrow--right iconfont icon-chevron-right",
|
|
1560
|
-
onClick:
|
|
1561
|
-
})) :
|
|
1557
|
+
onClick: t[2] || (t[2] = (...s) => o.handleScrollRight && o.handleScrollRight(...s))
|
|
1558
|
+
})) : N("", !0)
|
|
1562
1559
|
]),
|
|
1563
|
-
(
|
|
1560
|
+
(d(), m("div", {
|
|
1564
1561
|
class: "m-tabs__content",
|
|
1565
1562
|
ref: "contentRef",
|
|
1566
1563
|
key: o.internalKey
|
|
1567
1564
|
}, [
|
|
1568
|
-
|
|
1565
|
+
y(e.$slots, "default", {}, void 0, !0)
|
|
1569
1566
|
]))
|
|
1570
1567
|
], 2);
|
|
1571
1568
|
}
|
|
1572
|
-
const
|
|
1569
|
+
const qo = /* @__PURE__ */ G(Wo, [["render", Ko], ["__scopeId", "data-v-ff86167b"]]), Zo = {
|
|
1573
1570
|
name: "MTabPane",
|
|
1574
1571
|
props: {
|
|
1575
1572
|
label: {
|
|
@@ -1590,38 +1587,38 @@ const ns = /* @__PURE__ */ B(Jn, [["render", ts], ["__scopeId", "data-v-ff86167b
|
|
|
1590
1587
|
}
|
|
1591
1588
|
},
|
|
1592
1589
|
setup(e) {
|
|
1593
|
-
const
|
|
1594
|
-
const
|
|
1590
|
+
const t = He("tabsContext"), n = R(() => e.name || e.label), o = R(() => t.activeTab.value === n.value), a = () => {
|
|
1591
|
+
const l = {
|
|
1595
1592
|
label: e.label,
|
|
1596
1593
|
name: n.value,
|
|
1597
1594
|
disabled: e.disabled,
|
|
1598
1595
|
closable: e.closable
|
|
1599
1596
|
};
|
|
1600
|
-
|
|
1597
|
+
t.registerTab(l);
|
|
1601
1598
|
};
|
|
1602
|
-
return
|
|
1599
|
+
return ke(() => {
|
|
1603
1600
|
a();
|
|
1604
|
-
}),
|
|
1605
|
-
(!
|
|
1606
|
-
}, { immediate: !1 }),
|
|
1607
|
-
|
|
1601
|
+
}), V(() => [e.label, e.name, e.disabled, e.closable], (l, s) => {
|
|
1602
|
+
(!s || l[0] !== s[0] || l[1] !== s[1] || l[2] !== s[2] || l[3] !== s[3]) && a();
|
|
1603
|
+
}, { immediate: !1 }), Ye(() => {
|
|
1604
|
+
t.unregisterTab(n.value);
|
|
1608
1605
|
}), {
|
|
1609
1606
|
isActive: o,
|
|
1610
1607
|
tabName: n
|
|
1611
1608
|
};
|
|
1612
1609
|
}
|
|
1613
|
-
},
|
|
1614
|
-
function
|
|
1615
|
-
return
|
|
1616
|
-
class:
|
|
1610
|
+
}, Xo = ["data-tab-name"];
|
|
1611
|
+
function Jo(e, t, n, o, a, l) {
|
|
1612
|
+
return xe((d(), m("div", {
|
|
1613
|
+
class: U(["m-tab-pane", { "is-active": o.isActive }]),
|
|
1617
1614
|
"data-tab-name": o.tabName
|
|
1618
1615
|
}, [
|
|
1619
|
-
|
|
1620
|
-
], 10,
|
|
1621
|
-
[
|
|
1616
|
+
y(e.$slots, "default", {}, void 0, !0)
|
|
1617
|
+
], 10, Xo)), [
|
|
1618
|
+
[Pe, o.isActive]
|
|
1622
1619
|
]);
|
|
1623
1620
|
}
|
|
1624
|
-
const
|
|
1621
|
+
const Qo = /* @__PURE__ */ G(Zo, [["render", Jo], ["__scopeId", "data-v-f1c56283"]]), es = { class: "m-tab-card-item__text" }, ts = /* @__PURE__ */ Object.assign({
|
|
1625
1622
|
name: "MTabCardItem"
|
|
1626
1623
|
}, {
|
|
1627
1624
|
__name: "TabCardItem",
|
|
@@ -1640,28 +1637,28 @@ const rs = /* @__PURE__ */ B(ss, [["render", as], ["__scopeId", "data-v-f1c56283
|
|
|
1640
1637
|
}
|
|
1641
1638
|
},
|
|
1642
1639
|
emits: ["click"],
|
|
1643
|
-
setup(e, { emit:
|
|
1644
|
-
const n = e, o =
|
|
1640
|
+
setup(e, { emit: t }) {
|
|
1641
|
+
const n = e, o = t, a = He("tabCardContext"), l = R(() => a.activeTab.value === n.name), s = () => {
|
|
1645
1642
|
n.disabled || (a.handleTabClick(n.name, n.disabled), o("click", n.name));
|
|
1646
1643
|
};
|
|
1647
|
-
return (r,
|
|
1648
|
-
class:
|
|
1644
|
+
return (r, i) => (d(), m("div", {
|
|
1645
|
+
class: U([
|
|
1649
1646
|
"m-tab-card-item",
|
|
1650
1647
|
{
|
|
1651
|
-
"is-active":
|
|
1648
|
+
"is-active": l.value,
|
|
1652
1649
|
"is-disabled": e.disabled
|
|
1653
1650
|
}
|
|
1654
1651
|
]),
|
|
1655
|
-
onClick:
|
|
1652
|
+
onClick: s
|
|
1656
1653
|
}, [
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1654
|
+
C("span", es, [
|
|
1655
|
+
y(r.$slots, "default", {}, () => [
|
|
1656
|
+
Ue(K(e.label), 1)
|
|
1660
1657
|
], !0)
|
|
1661
1658
|
])
|
|
1662
1659
|
], 2));
|
|
1663
1660
|
}
|
|
1664
|
-
}),
|
|
1661
|
+
}), Mt = /* @__PURE__ */ G(ts, [["__scopeId", "data-v-c3f7de9a"]]), ns = { class: "m-tab-card__container" }, os = /* @__PURE__ */ Object.assign({
|
|
1665
1662
|
name: "MTabCard"
|
|
1666
1663
|
}, {
|
|
1667
1664
|
__name: "TabCard",
|
|
@@ -1680,51 +1677,51 @@ const rs = /* @__PURE__ */ B(ss, [["render", as], ["__scopeId", "data-v-f1c56283
|
|
|
1680
1677
|
}
|
|
1681
1678
|
},
|
|
1682
1679
|
emits: ["update:modelValue", "change", "tab-click"],
|
|
1683
|
-
setup(e, { emit:
|
|
1684
|
-
const n = e, o =
|
|
1685
|
-
|
|
1686
|
-
const a =
|
|
1680
|
+
setup(e, { emit: t }) {
|
|
1681
|
+
const n = e, o = t;
|
|
1682
|
+
ce();
|
|
1683
|
+
const a = _(n.modelValue), l = R(() => n.options.map((r) => typeof r == "string" ? { label: r, name: r, disabled: !1 } : {
|
|
1687
1684
|
label: r.label || r.name || "",
|
|
1688
1685
|
name: r.name || r.label || "",
|
|
1689
1686
|
disabled: r.disabled || !1
|
|
1690
|
-
})),
|
|
1691
|
-
if (
|
|
1687
|
+
})), s = (r, i) => {
|
|
1688
|
+
if (i || n.disabled || r === a.value)
|
|
1692
1689
|
return;
|
|
1693
|
-
const
|
|
1694
|
-
a.value = r, o("update:modelValue", r), o("change", r,
|
|
1690
|
+
const c = a.value;
|
|
1691
|
+
a.value = r, o("update:modelValue", r), o("change", r, c), o("tab-click", r);
|
|
1695
1692
|
};
|
|
1696
|
-
return
|
|
1693
|
+
return V(() => n.modelValue, (r) => {
|
|
1697
1694
|
r !== a.value && (a.value = r);
|
|
1698
|
-
}),
|
|
1695
|
+
}), Oe("tabCardContext", {
|
|
1699
1696
|
activeTab: a,
|
|
1700
|
-
handleTabClick:
|
|
1701
|
-
}), (r,
|
|
1702
|
-
class:
|
|
1697
|
+
handleTabClick: s
|
|
1698
|
+
}), (r, i) => (d(), m("div", {
|
|
1699
|
+
class: U(["m-tab-card", { "is-disabled": e.disabled }])
|
|
1703
1700
|
}, [
|
|
1704
|
-
|
|
1705
|
-
(
|
|
1706
|
-
key:
|
|
1707
|
-
name:
|
|
1708
|
-
label:
|
|
1709
|
-
disabled:
|
|
1701
|
+
C("div", ns, [
|
|
1702
|
+
(d(!0), m(H, null, M(l.value, (c, u) => (d(), E(Mt, {
|
|
1703
|
+
key: c.name,
|
|
1704
|
+
name: c.name,
|
|
1705
|
+
label: c.label,
|
|
1706
|
+
disabled: c.disabled
|
|
1710
1707
|
}, null, 8, ["name", "label", "disabled"]))), 128))
|
|
1711
1708
|
])
|
|
1712
1709
|
], 2));
|
|
1713
1710
|
}
|
|
1714
|
-
}),
|
|
1711
|
+
}), ss = /* @__PURE__ */ G(os, [["__scopeId", "data-v-098ad86f"]]), as = {
|
|
1715
1712
|
class: "breadcrumb-separator-icon",
|
|
1716
1713
|
width: "6",
|
|
1717
1714
|
height: "10",
|
|
1718
1715
|
viewBox: "0 0 6 10",
|
|
1719
1716
|
fill: "none",
|
|
1720
1717
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1721
|
-
},
|
|
1718
|
+
}, rs = /* @__PURE__ */ Object.assign({
|
|
1722
1719
|
name: "BreadcrumbSeparator"
|
|
1723
1720
|
}, {
|
|
1724
1721
|
__name: "BreadcrumbSeparator",
|
|
1725
1722
|
setup(e) {
|
|
1726
|
-
return (
|
|
1727
|
-
|
|
1723
|
+
return (t, n) => (d(), m("svg", as, [...n[0] || (n[0] = [
|
|
1724
|
+
C("path", {
|
|
1728
1725
|
"fill-rule": "evenodd",
|
|
1729
1726
|
"clip-rule": "evenodd",
|
|
1730
1727
|
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",
|
|
@@ -1732,10 +1729,10 @@ const rs = /* @__PURE__ */ B(ss, [["render", as], ["__scopeId", "data-v-f1c56283
|
|
|
1732
1729
|
}, null, -1)
|
|
1733
1730
|
])]));
|
|
1734
1731
|
}
|
|
1735
|
-
}),
|
|
1732
|
+
}), ls = /* @__PURE__ */ G(rs, [["__scopeId", "data-v-dd1ad62c"]]), is = {
|
|
1736
1733
|
class: "m-breadcrumb",
|
|
1737
1734
|
"aria-label": "Breadcrumb"
|
|
1738
|
-
},
|
|
1735
|
+
}, cs = ["onClick"], us = /* @__PURE__ */ Object.assign({
|
|
1739
1736
|
name: "MBreadcrumb"
|
|
1740
1737
|
}, {
|
|
1741
1738
|
__name: "Breadcrumb",
|
|
@@ -1744,154 +1741,921 @@ const rs = /* @__PURE__ */ B(ss, [["render", as], ["__scopeId", "data-v-f1c56283
|
|
|
1744
1741
|
type: Array,
|
|
1745
1742
|
default: () => [],
|
|
1746
1743
|
validator: (e) => e.every(
|
|
1747
|
-
(
|
|
1744
|
+
(t) => typeof t == "object" && t.label !== void 0
|
|
1748
1745
|
)
|
|
1749
1746
|
}
|
|
1750
1747
|
},
|
|
1751
1748
|
emits: ["click"],
|
|
1752
|
-
setup(e, { emit:
|
|
1753
|
-
const n =
|
|
1749
|
+
setup(e, { emit: t }) {
|
|
1750
|
+
const n = t, o = (a) => {
|
|
1754
1751
|
if (a.to) {
|
|
1755
1752
|
if (n("click", a), typeof a.to == "string")
|
|
1756
1753
|
a.to.startsWith("http://") || a.to.startsWith("https://") ? window.location.href = a.to : (a.replace ? window.history.replaceState({}, "", a.to) : window.history.pushState({}, "", a.to), window.dispatchEvent(new PopStateEvent("popstate")));
|
|
1757
1754
|
else if (typeof a.to == "object" && a.to.path) {
|
|
1758
|
-
const
|
|
1759
|
-
a.replace ? window.history.replaceState({}, "",
|
|
1755
|
+
const l = a.to.path;
|
|
1756
|
+
a.replace ? window.history.replaceState({}, "", l) : window.history.pushState({}, "", l), window.dispatchEvent(new PopStateEvent("popstate"));
|
|
1760
1757
|
}
|
|
1761
1758
|
}
|
|
1762
1759
|
};
|
|
1763
|
-
return (a,
|
|
1764
|
-
(
|
|
1765
|
-
|
|
1766
|
-
class:
|
|
1767
|
-
onClick: (
|
|
1768
|
-
},
|
|
1769
|
-
r < e.items.length - 1 ? (
|
|
1760
|
+
return (a, l) => (d(), m("nav", is, [
|
|
1761
|
+
(d(!0), m(H, null, M(e.items, (s, r) => (d(), m(H, { key: r }, [
|
|
1762
|
+
C("span", {
|
|
1763
|
+
class: U(["m-breadcrumb__item", { "is-link": s.to }]),
|
|
1764
|
+
onClick: (i) => o(s)
|
|
1765
|
+
}, K(s.label), 11, cs),
|
|
1766
|
+
r < e.items.length - 1 ? (d(), E(ls, {
|
|
1770
1767
|
key: 0,
|
|
1771
1768
|
class: "m-breadcrumb__separator"
|
|
1772
|
-
})) :
|
|
1769
|
+
})) : N("", !0)
|
|
1773
1770
|
], 64))), 128))
|
|
1774
1771
|
]));
|
|
1775
1772
|
}
|
|
1776
|
-
}),
|
|
1777
|
-
function
|
|
1773
|
+
}), ds = /* @__PURE__ */ G(us, [["__scopeId", "data-v-8b9e8867"]]);
|
|
1774
|
+
function fs() {
|
|
1775
|
+
}
|
|
1776
|
+
const _e = Object.assign, Rt = typeof window != "undefined", qe = (e) => e !== null && typeof e == "object", ie = (e) => e != null, Ge = (e) => typeof e == "function", ms = (e) => qe(e) && Ge(e.then) && Ge(e.catch), wt = (e) => typeof e == "number" || /^\d+(\.\d+)?$/.test(e), ps = () => Rt ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : !1;
|
|
1777
|
+
function at(e, t) {
|
|
1778
|
+
const n = t.split(".");
|
|
1779
|
+
let o = e;
|
|
1780
|
+
return n.forEach((a) => {
|
|
1781
|
+
var l;
|
|
1782
|
+
o = qe(o) && (l = o[a]) != null ? l : "";
|
|
1783
|
+
}), o;
|
|
1784
|
+
}
|
|
1785
|
+
const It = null, ee = [Number, String], ae = {
|
|
1786
|
+
type: Boolean,
|
|
1787
|
+
default: !0
|
|
1788
|
+
}, Z = (e) => ({
|
|
1789
|
+
type: String,
|
|
1790
|
+
default: e
|
|
1791
|
+
});
|
|
1792
|
+
var Ze = typeof window != "undefined";
|
|
1793
|
+
function Tt(e) {
|
|
1794
|
+
let t;
|
|
1795
|
+
ke(() => {
|
|
1796
|
+
e(), le(() => {
|
|
1797
|
+
t = !0;
|
|
1798
|
+
});
|
|
1799
|
+
}), Ke(() => {
|
|
1800
|
+
t && e();
|
|
1801
|
+
});
|
|
1802
|
+
}
|
|
1803
|
+
function Ot(e, t, n = {}) {
|
|
1804
|
+
if (!Ze)
|
|
1805
|
+
return;
|
|
1806
|
+
const { target: o = window, passive: a = !1, capture: l = !1 } = n;
|
|
1807
|
+
let s = !1, r;
|
|
1808
|
+
const i = (v) => {
|
|
1809
|
+
if (s)
|
|
1810
|
+
return;
|
|
1811
|
+
const h = z(v);
|
|
1812
|
+
h && !r && (h.addEventListener(e, t, {
|
|
1813
|
+
capture: l,
|
|
1814
|
+
passive: a
|
|
1815
|
+
}), r = !0);
|
|
1816
|
+
}, c = (v) => {
|
|
1817
|
+
if (s)
|
|
1818
|
+
return;
|
|
1819
|
+
const h = z(v);
|
|
1820
|
+
h && r && (h.removeEventListener(e, t, l), r = !1);
|
|
1821
|
+
};
|
|
1822
|
+
Ye(() => c(o)), Ae(() => c(o)), Tt(() => i(o));
|
|
1823
|
+
let u;
|
|
1824
|
+
return sn(o) && (u = V(o, (v, h) => {
|
|
1825
|
+
c(h), i(v);
|
|
1826
|
+
})), () => {
|
|
1827
|
+
u == null || u(), c(o), s = !0;
|
|
1828
|
+
};
|
|
1829
|
+
}
|
|
1830
|
+
var Ee, Fe;
|
|
1831
|
+
function vs() {
|
|
1832
|
+
if (!Ee && (Ee = _(0), Fe = _(0), Ze)) {
|
|
1833
|
+
const e = () => {
|
|
1834
|
+
Ee.value = window.innerWidth, Fe.value = window.innerHeight;
|
|
1835
|
+
};
|
|
1836
|
+
e(), window.addEventListener("resize", e, { passive: !0 }), window.addEventListener("orientationchange", e, { passive: !0 });
|
|
1837
|
+
}
|
|
1838
|
+
return { width: Ee, height: Fe };
|
|
1839
|
+
}
|
|
1840
|
+
var gs = /scroll|auto|overlay/i, _s = Ze ? window : void 0;
|
|
1841
|
+
function hs(e) {
|
|
1842
|
+
return e.tagName !== "HTML" && e.tagName !== "BODY" && e.nodeType === 1;
|
|
1843
|
+
}
|
|
1844
|
+
function bs(e, t = _s) {
|
|
1845
|
+
let n = e;
|
|
1846
|
+
for (; n && n !== t && hs(n); ) {
|
|
1847
|
+
const { overflowY: o } = window.getComputedStyle(n);
|
|
1848
|
+
if (gs.test(o))
|
|
1849
|
+
return n;
|
|
1850
|
+
n = n.parentNode;
|
|
1851
|
+
}
|
|
1852
|
+
return t;
|
|
1853
|
+
}
|
|
1854
|
+
ps();
|
|
1855
|
+
const ys = (e) => e.stopPropagation();
|
|
1856
|
+
function kt(e, t) {
|
|
1857
|
+
(typeof e.cancelable != "boolean" || e.cancelable) && e.preventDefault(), ys(e);
|
|
1858
|
+
}
|
|
1859
|
+
vs();
|
|
1860
|
+
function oe(e) {
|
|
1861
|
+
if (ie(e))
|
|
1862
|
+
return wt(e) ? `${e}px` : String(e);
|
|
1863
|
+
}
|
|
1864
|
+
function Cs(e) {
|
|
1865
|
+
const t = {};
|
|
1866
|
+
return e !== void 0 && (t.zIndex = +e), t;
|
|
1867
|
+
}
|
|
1868
|
+
const $s = /-(\w)/g, xt = (e) => e.replace($s, (t, n) => n.toUpperCase()), Ss = (e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, ""), { hasOwnProperty: Es } = Object.prototype;
|
|
1869
|
+
function Ms(e, t, n) {
|
|
1870
|
+
const o = t[n];
|
|
1871
|
+
ie(o) && (!Es.call(e, n) || !qe(o) ? e[n] = o : e[n] = Pt(Object(e[n]), o));
|
|
1872
|
+
}
|
|
1873
|
+
function Pt(e, t) {
|
|
1874
|
+
return Object.keys(t).forEach((n) => {
|
|
1875
|
+
Ms(e, t, n);
|
|
1876
|
+
}), e;
|
|
1877
|
+
}
|
|
1878
|
+
var Rs = {
|
|
1879
|
+
name: "姓名",
|
|
1880
|
+
tel: "电话",
|
|
1881
|
+
save: "保存",
|
|
1882
|
+
clear: "清空",
|
|
1883
|
+
cancel: "取消",
|
|
1884
|
+
confirm: "确认",
|
|
1885
|
+
delete: "删除",
|
|
1886
|
+
loading: "加载中...",
|
|
1887
|
+
noCoupon: "暂无优惠券",
|
|
1888
|
+
nameEmpty: "请填写姓名",
|
|
1889
|
+
addContact: "添加联系人",
|
|
1890
|
+
telInvalid: "请填写正确的电话",
|
|
1891
|
+
vanCalendar: {
|
|
1892
|
+
end: "结束",
|
|
1893
|
+
start: "开始",
|
|
1894
|
+
title: "日期选择",
|
|
1895
|
+
weekdays: ["日", "一", "二", "三", "四", "五", "六"],
|
|
1896
|
+
monthTitle: (e, t) => `${e}年${t}月`,
|
|
1897
|
+
rangePrompt: (e) => `最多选择 ${e} 天`
|
|
1898
|
+
},
|
|
1899
|
+
vanCascader: {
|
|
1900
|
+
select: "请选择"
|
|
1901
|
+
},
|
|
1902
|
+
vanPagination: {
|
|
1903
|
+
prev: "上一页",
|
|
1904
|
+
next: "下一页"
|
|
1905
|
+
},
|
|
1906
|
+
vanPullRefresh: {
|
|
1907
|
+
pulling: "下拉即可刷新...",
|
|
1908
|
+
loosing: "释放即可刷新..."
|
|
1909
|
+
},
|
|
1910
|
+
vanSubmitBar: {
|
|
1911
|
+
label: "合计:"
|
|
1912
|
+
},
|
|
1913
|
+
vanCoupon: {
|
|
1914
|
+
unlimited: "无门槛",
|
|
1915
|
+
discount: (e) => `${e}折`,
|
|
1916
|
+
condition: (e) => `满${e}元可用`
|
|
1917
|
+
},
|
|
1918
|
+
vanCouponCell: {
|
|
1919
|
+
title: "优惠券",
|
|
1920
|
+
count: (e) => `${e}张可用`
|
|
1921
|
+
},
|
|
1922
|
+
vanCouponList: {
|
|
1923
|
+
exchange: "兑换",
|
|
1924
|
+
close: "不使用",
|
|
1925
|
+
enable: "可用",
|
|
1926
|
+
disabled: "不可用",
|
|
1927
|
+
placeholder: "输入优惠码"
|
|
1928
|
+
},
|
|
1929
|
+
vanAddressEdit: {
|
|
1930
|
+
area: "地区",
|
|
1931
|
+
areaEmpty: "请选择地区",
|
|
1932
|
+
addressEmpty: "请填写详细地址",
|
|
1933
|
+
addressDetail: "详细地址",
|
|
1934
|
+
defaultAddress: "设为默认收货地址"
|
|
1935
|
+
},
|
|
1936
|
+
vanAddressList: {
|
|
1937
|
+
add: "新增地址"
|
|
1938
|
+
}
|
|
1939
|
+
};
|
|
1940
|
+
const rt = _("zh-CN"), lt = an({
|
|
1941
|
+
"zh-CN": Rs
|
|
1942
|
+
}), ws = {
|
|
1943
|
+
messages() {
|
|
1944
|
+
return lt[rt.value];
|
|
1945
|
+
},
|
|
1946
|
+
use(e, t) {
|
|
1947
|
+
rt.value = e, this.add({ [e]: t });
|
|
1948
|
+
},
|
|
1949
|
+
add(e = {}) {
|
|
1950
|
+
Pt(lt, e);
|
|
1951
|
+
}
|
|
1952
|
+
};
|
|
1953
|
+
var Is = ws;
|
|
1954
|
+
function Ts(e) {
|
|
1955
|
+
const t = xt(e) + ".";
|
|
1956
|
+
return (n, ...o) => {
|
|
1957
|
+
const a = Is.messages(), l = at(a, t + n) || at(a, n);
|
|
1958
|
+
return Ge(l) ? l(...o) : l;
|
|
1959
|
+
};
|
|
1960
|
+
}
|
|
1961
|
+
function We(e, t) {
|
|
1962
|
+
return t ? typeof t == "string" ? ` ${e}--${t}` : Array.isArray(t) ? t.reduce(
|
|
1963
|
+
(n, o) => n + We(e, o),
|
|
1964
|
+
""
|
|
1965
|
+
) : Object.keys(t).reduce(
|
|
1966
|
+
(n, o) => n + (t[o] ? We(e, o) : ""),
|
|
1967
|
+
""
|
|
1968
|
+
) : "";
|
|
1969
|
+
}
|
|
1970
|
+
function Os(e) {
|
|
1971
|
+
return (t, n) => (t && typeof t != "string" && (n = t, t = ""), t = t ? `${e}__${t}` : e, `${t}${We(t, n)}`);
|
|
1972
|
+
}
|
|
1973
|
+
function he(e) {
|
|
1974
|
+
const t = `van-${e}`;
|
|
1975
|
+
return [
|
|
1976
|
+
t,
|
|
1977
|
+
Os(t),
|
|
1978
|
+
Ts(t)
|
|
1979
|
+
];
|
|
1980
|
+
}
|
|
1981
|
+
const ks = "van-haptics-feedback", it = 5;
|
|
1982
|
+
function xs(e, {
|
|
1983
|
+
args: t = [],
|
|
1984
|
+
done: n,
|
|
1985
|
+
canceled: o,
|
|
1986
|
+
error: a
|
|
1987
|
+
}) {
|
|
1988
|
+
if (e) {
|
|
1989
|
+
const l = e.apply(null, t);
|
|
1990
|
+
ms(l) ? l.then((s) => {
|
|
1991
|
+
s ? n() : o && o();
|
|
1992
|
+
}).catch(a || fs) : l ? n() : o && o();
|
|
1993
|
+
} else
|
|
1994
|
+
n();
|
|
1995
|
+
}
|
|
1996
|
+
function Le(e) {
|
|
1997
|
+
return e.install = (t) => {
|
|
1998
|
+
const { name: n } = e;
|
|
1999
|
+
n && (t.component(n, e), t.component(xt(`-${n}`), e));
|
|
2000
|
+
}, e;
|
|
2001
|
+
}
|
|
2002
|
+
const Ps = Symbol();
|
|
2003
|
+
function As(e) {
|
|
2004
|
+
const t = yt();
|
|
2005
|
+
t && _e(t.proxy, e);
|
|
2006
|
+
}
|
|
2007
|
+
const [Ls, ct] = he("badge"), Bs = {
|
|
2008
|
+
dot: Boolean,
|
|
2009
|
+
max: ee,
|
|
2010
|
+
tag: Z("div"),
|
|
2011
|
+
color: String,
|
|
2012
|
+
offset: Array,
|
|
2013
|
+
content: ee,
|
|
2014
|
+
showZero: ae,
|
|
2015
|
+
position: Z("top-right")
|
|
2016
|
+
};
|
|
2017
|
+
var Ds = ge({
|
|
2018
|
+
name: Ls,
|
|
2019
|
+
props: Bs,
|
|
2020
|
+
setup(e, {
|
|
2021
|
+
slots: t
|
|
2022
|
+
}) {
|
|
2023
|
+
const n = () => {
|
|
2024
|
+
if (t.content)
|
|
2025
|
+
return !0;
|
|
2026
|
+
const {
|
|
2027
|
+
content: r,
|
|
2028
|
+
showZero: i
|
|
2029
|
+
} = e;
|
|
2030
|
+
return ie(r) && r !== "" && (i || r !== 0 && r !== "0");
|
|
2031
|
+
}, o = () => {
|
|
2032
|
+
const {
|
|
2033
|
+
dot: r,
|
|
2034
|
+
max: i,
|
|
2035
|
+
content: c
|
|
2036
|
+
} = e;
|
|
2037
|
+
if (!r && n())
|
|
2038
|
+
return t.content ? t.content() : ie(i) && wt(c) && +c > +i ? `${i}+` : c;
|
|
2039
|
+
}, a = (r) => r.startsWith("-") ? r.replace("-", "") : `-${r}`, l = R(() => {
|
|
2040
|
+
const r = {
|
|
2041
|
+
background: e.color
|
|
2042
|
+
};
|
|
2043
|
+
if (e.offset) {
|
|
2044
|
+
const [i, c] = e.offset, {
|
|
2045
|
+
position: u
|
|
2046
|
+
} = e, [v, h] = u.split("-");
|
|
2047
|
+
t.default ? (typeof c == "number" ? r[v] = oe(v === "top" ? c : -c) : r[v] = v === "top" ? oe(c) : a(c), typeof i == "number" ? r[h] = oe(h === "left" ? i : -i) : r[h] = h === "left" ? oe(i) : a(i)) : (r.marginTop = oe(c), r.marginLeft = oe(i));
|
|
2048
|
+
}
|
|
2049
|
+
return r;
|
|
2050
|
+
}), s = () => {
|
|
2051
|
+
if (n() || e.dot)
|
|
2052
|
+
return x("div", {
|
|
2053
|
+
class: ct([e.position, {
|
|
2054
|
+
dot: e.dot,
|
|
2055
|
+
fixed: !!t.default
|
|
2056
|
+
}]),
|
|
2057
|
+
style: l.value
|
|
2058
|
+
}, [o()]);
|
|
2059
|
+
};
|
|
2060
|
+
return () => {
|
|
2061
|
+
if (t.default) {
|
|
2062
|
+
const {
|
|
2063
|
+
tag: r
|
|
2064
|
+
} = e;
|
|
2065
|
+
return x(r, {
|
|
2066
|
+
class: ct("wrapper")
|
|
2067
|
+
}, {
|
|
2068
|
+
default: () => [t.default(), s()]
|
|
2069
|
+
});
|
|
2070
|
+
}
|
|
2071
|
+
return s();
|
|
2072
|
+
};
|
|
2073
|
+
}
|
|
2074
|
+
});
|
|
2075
|
+
const Ns = Le(Ds);
|
|
2076
|
+
let At = 2e3;
|
|
2077
|
+
const Fs = () => ++At, zs = (e) => {
|
|
2078
|
+
At = e;
|
|
2079
|
+
}, [Lt, js] = he("config-provider"), Bt = Symbol(Lt), Vs = {
|
|
2080
|
+
tag: Z("div"),
|
|
2081
|
+
theme: Z("light"),
|
|
2082
|
+
zIndex: Number,
|
|
2083
|
+
themeVars: Object,
|
|
2084
|
+
themeVarsDark: Object,
|
|
2085
|
+
themeVarsLight: Object,
|
|
2086
|
+
themeVarsScope: Z("local"),
|
|
2087
|
+
iconPrefix: String
|
|
2088
|
+
};
|
|
2089
|
+
function Gs(e) {
|
|
2090
|
+
return e.replace(/([a-zA-Z])(\d)/g, "$1-$2");
|
|
2091
|
+
}
|
|
2092
|
+
function Ws(e) {
|
|
2093
|
+
const t = {};
|
|
2094
|
+
return Object.keys(e).forEach((n) => {
|
|
2095
|
+
const o = Gs(Ss(n));
|
|
2096
|
+
t[`--van-${o}`] = e[n];
|
|
2097
|
+
}), t;
|
|
2098
|
+
}
|
|
2099
|
+
function Me(e = {}, t = {}) {
|
|
2100
|
+
Object.keys(e).forEach((n) => {
|
|
2101
|
+
e[n] !== t[n] && document.documentElement.style.setProperty(n, e[n]);
|
|
2102
|
+
}), Object.keys(t).forEach((n) => {
|
|
2103
|
+
e[n] || document.documentElement.style.removeProperty(n);
|
|
2104
|
+
});
|
|
2105
|
+
}
|
|
2106
|
+
ge({
|
|
2107
|
+
name: Lt,
|
|
2108
|
+
props: Vs,
|
|
2109
|
+
setup(e, {
|
|
2110
|
+
slots: t
|
|
2111
|
+
}) {
|
|
2112
|
+
const n = R(() => Ws(_e({}, e.themeVars, e.theme === "dark" ? e.themeVarsDark : e.themeVarsLight)));
|
|
2113
|
+
if (Rt) {
|
|
2114
|
+
const o = () => {
|
|
2115
|
+
document.documentElement.classList.add(`van-theme-${e.theme}`);
|
|
2116
|
+
}, a = (l = e.theme) => {
|
|
2117
|
+
document.documentElement.classList.remove(`van-theme-${l}`);
|
|
2118
|
+
};
|
|
2119
|
+
V(() => e.theme, (l, s) => {
|
|
2120
|
+
s && a(s), o();
|
|
2121
|
+
}, {
|
|
2122
|
+
immediate: !0
|
|
2123
|
+
}), Ke(o), Ae(a), Ct(a), V(n, (l, s) => {
|
|
2124
|
+
e.themeVarsScope === "global" && Me(l, s);
|
|
2125
|
+
}), V(() => e.themeVarsScope, (l, s) => {
|
|
2126
|
+
s === "global" && Me({}, n.value), l === "global" && Me(n.value, {});
|
|
2127
|
+
}), e.themeVarsScope === "global" && Me(n.value, {});
|
|
2128
|
+
}
|
|
2129
|
+
return Oe(Bt, e), rn(() => {
|
|
2130
|
+
e.zIndex !== void 0 && zs(e.zIndex);
|
|
2131
|
+
}), () => x(e.tag, {
|
|
2132
|
+
class: js(),
|
|
2133
|
+
style: e.themeVarsScope === "local" ? n.value : void 0
|
|
2134
|
+
}, {
|
|
2135
|
+
default: () => {
|
|
2136
|
+
var o;
|
|
2137
|
+
return [(o = t.default) == null ? void 0 : o.call(t)];
|
|
2138
|
+
}
|
|
2139
|
+
});
|
|
2140
|
+
}
|
|
2141
|
+
});
|
|
2142
|
+
const [Us, ut] = he("icon"), Ys = (e) => e == null ? void 0 : e.includes("/"), Hs = {
|
|
2143
|
+
dot: Boolean,
|
|
2144
|
+
tag: Z("i"),
|
|
2145
|
+
name: String,
|
|
2146
|
+
size: ee,
|
|
2147
|
+
badge: ee,
|
|
2148
|
+
color: String,
|
|
2149
|
+
badgeProps: Object,
|
|
2150
|
+
classPrefix: String
|
|
2151
|
+
};
|
|
2152
|
+
var Ks = ge({
|
|
2153
|
+
name: Us,
|
|
2154
|
+
props: Hs,
|
|
2155
|
+
setup(e, {
|
|
2156
|
+
slots: t
|
|
2157
|
+
}) {
|
|
2158
|
+
const n = He(Bt, null), o = R(() => e.classPrefix || (n == null ? void 0 : n.iconPrefix) || ut());
|
|
2159
|
+
return () => {
|
|
2160
|
+
const {
|
|
2161
|
+
tag: a,
|
|
2162
|
+
dot: l,
|
|
2163
|
+
name: s,
|
|
2164
|
+
size: r,
|
|
2165
|
+
badge: i,
|
|
2166
|
+
color: c
|
|
2167
|
+
} = e, u = Ys(s);
|
|
2168
|
+
return x(Ns, S({
|
|
2169
|
+
dot: l,
|
|
2170
|
+
tag: a,
|
|
2171
|
+
class: [o.value, u ? "" : `${o.value}-${s}`],
|
|
2172
|
+
style: {
|
|
2173
|
+
color: c,
|
|
2174
|
+
fontSize: oe(r)
|
|
2175
|
+
},
|
|
2176
|
+
content: i
|
|
2177
|
+
}, e.badgeProps), {
|
|
2178
|
+
default: () => {
|
|
2179
|
+
var v;
|
|
2180
|
+
return [(v = t.default) == null ? void 0 : v.call(t), u && x("img", {
|
|
2181
|
+
class: ut("image"),
|
|
2182
|
+
src: s
|
|
2183
|
+
}, null)];
|
|
2184
|
+
}
|
|
2185
|
+
});
|
|
2186
|
+
};
|
|
2187
|
+
}
|
|
2188
|
+
});
|
|
2189
|
+
const qs = Le(Ks), Zs = {
|
|
2190
|
+
// whether to show popup
|
|
2191
|
+
show: Boolean,
|
|
2192
|
+
// z-index
|
|
2193
|
+
zIndex: ee,
|
|
2194
|
+
// whether to show overlay
|
|
2195
|
+
overlay: ae,
|
|
2196
|
+
// transition duration
|
|
2197
|
+
duration: ee,
|
|
2198
|
+
// teleport
|
|
2199
|
+
teleport: [String, Object],
|
|
2200
|
+
// prevent body scroll
|
|
2201
|
+
lockScroll: ae,
|
|
2202
|
+
// whether to lazy render
|
|
2203
|
+
lazyRender: ae,
|
|
2204
|
+
// callback function before close
|
|
2205
|
+
beforeClose: Function,
|
|
2206
|
+
// overlay props
|
|
2207
|
+
overlayProps: Object,
|
|
2208
|
+
// overlay custom style
|
|
2209
|
+
overlayStyle: Object,
|
|
2210
|
+
// overlay custom class name
|
|
2211
|
+
overlayClass: It,
|
|
2212
|
+
// Initial rendering animation
|
|
2213
|
+
transitionAppear: Boolean,
|
|
2214
|
+
// whether to close popup when overlay is clicked
|
|
2215
|
+
closeOnClickOverlay: ae
|
|
2216
|
+
};
|
|
2217
|
+
function Xs(e, t) {
|
|
2218
|
+
return e > t ? "horizontal" : t > e ? "vertical" : "";
|
|
2219
|
+
}
|
|
2220
|
+
function Js() {
|
|
2221
|
+
const e = _(0), t = _(0), n = _(0), o = _(0), a = _(0), l = _(0), s = _(""), r = _(!0), i = () => s.value === "vertical", c = () => s.value === "horizontal", u = () => {
|
|
2222
|
+
n.value = 0, o.value = 0, a.value = 0, l.value = 0, s.value = "", r.value = !0;
|
|
2223
|
+
};
|
|
2224
|
+
return {
|
|
2225
|
+
move: (k) => {
|
|
2226
|
+
const B = k.touches[0];
|
|
2227
|
+
n.value = (B.clientX < 0 ? 0 : B.clientX) - e.value, o.value = B.clientY - t.value, a.value = Math.abs(n.value), l.value = Math.abs(o.value);
|
|
2228
|
+
const j = 10;
|
|
2229
|
+
(!s.value || a.value < j && l.value < j) && (s.value = Xs(a.value, l.value)), r.value && (a.value > it || l.value > it) && (r.value = !1);
|
|
2230
|
+
},
|
|
2231
|
+
start: (k) => {
|
|
2232
|
+
u(), e.value = k.touches[0].clientX, t.value = k.touches[0].clientY;
|
|
2233
|
+
},
|
|
2234
|
+
reset: u,
|
|
2235
|
+
startX: e,
|
|
2236
|
+
startY: t,
|
|
2237
|
+
deltaX: n,
|
|
2238
|
+
deltaY: o,
|
|
2239
|
+
offsetX: a,
|
|
2240
|
+
offsetY: l,
|
|
2241
|
+
direction: s,
|
|
2242
|
+
isVertical: i,
|
|
2243
|
+
isHorizontal: c,
|
|
2244
|
+
isTap: r
|
|
2245
|
+
};
|
|
2246
|
+
}
|
|
2247
|
+
let ve = 0;
|
|
2248
|
+
const dt = "van-overflow-hidden";
|
|
2249
|
+
function Qs(e, t) {
|
|
2250
|
+
const n = Js(), o = "01", a = "10", l = (u) => {
|
|
2251
|
+
n.move(u);
|
|
2252
|
+
const v = n.deltaY.value > 0 ? a : o, h = bs(
|
|
2253
|
+
u.target,
|
|
2254
|
+
e.value
|
|
2255
|
+
), { scrollHeight: k, offsetHeight: B, scrollTop: j } = h;
|
|
2256
|
+
let F = "11";
|
|
2257
|
+
j === 0 ? F = B >= k ? "00" : "01" : j + B >= k && (F = "10"), F !== "11" && n.isVertical() && !(parseInt(F, 2) & parseInt(v, 2)) && kt(u);
|
|
2258
|
+
}, s = () => {
|
|
2259
|
+
document.addEventListener("touchstart", n.start), document.addEventListener("touchmove", l, { passive: !1 }), ve || document.body.classList.add(dt), ve++;
|
|
2260
|
+
}, r = () => {
|
|
2261
|
+
ve && (document.removeEventListener("touchstart", n.start), document.removeEventListener("touchmove", l), ve--, ve || document.body.classList.remove(dt));
|
|
2262
|
+
}, i = () => t() && s(), c = () => t() && r();
|
|
2263
|
+
Tt(i), Ae(c), Ct(c), V(t, (u) => {
|
|
2264
|
+
u ? s() : r();
|
|
2265
|
+
});
|
|
2266
|
+
}
|
|
2267
|
+
function Dt(e) {
|
|
2268
|
+
const t = _(!1);
|
|
2269
|
+
return V(
|
|
2270
|
+
e,
|
|
2271
|
+
(n) => {
|
|
2272
|
+
n && (t.value = n);
|
|
2273
|
+
},
|
|
2274
|
+
{ immediate: !0 }
|
|
2275
|
+
), (n) => () => t.value ? n() : null;
|
|
2276
|
+
}
|
|
2277
|
+
const ft = () => {
|
|
2278
|
+
var e;
|
|
2279
|
+
const { scopeId: t } = ((e = yt()) == null ? void 0 : e.vnode) || {};
|
|
2280
|
+
return t ? { [t]: "" } : null;
|
|
2281
|
+
}, [ea, ta] = he("overlay"), na = {
|
|
2282
|
+
show: Boolean,
|
|
2283
|
+
zIndex: ee,
|
|
2284
|
+
duration: ee,
|
|
2285
|
+
className: It,
|
|
2286
|
+
lockScroll: ae,
|
|
2287
|
+
lazyRender: ae,
|
|
2288
|
+
customStyle: Object,
|
|
2289
|
+
teleport: [String, Object]
|
|
2290
|
+
};
|
|
2291
|
+
var oa = ge({
|
|
2292
|
+
name: ea,
|
|
2293
|
+
inheritAttrs: !1,
|
|
2294
|
+
props: na,
|
|
2295
|
+
setup(e, {
|
|
2296
|
+
attrs: t,
|
|
2297
|
+
slots: n
|
|
2298
|
+
}) {
|
|
2299
|
+
const o = _(), a = Dt(() => e.show || !e.lazyRender), l = (r) => {
|
|
2300
|
+
e.lockScroll && kt(r);
|
|
2301
|
+
}, s = a(() => {
|
|
2302
|
+
var r;
|
|
2303
|
+
const i = _e(Cs(e.zIndex), e.customStyle);
|
|
2304
|
+
return ie(e.duration) && (i.animationDuration = `${e.duration}s`), xe(x("div", S({
|
|
2305
|
+
ref: o,
|
|
2306
|
+
style: i,
|
|
2307
|
+
class: [ta(), e.className]
|
|
2308
|
+
}, t), [(r = n.default) == null ? void 0 : r.call(n)]), [[Pe, e.show]]);
|
|
2309
|
+
});
|
|
2310
|
+
return Ot("touchmove", l, {
|
|
2311
|
+
target: o
|
|
2312
|
+
}), () => {
|
|
2313
|
+
const r = x($t, {
|
|
2314
|
+
name: "van-fade",
|
|
2315
|
+
appear: !0
|
|
2316
|
+
}, {
|
|
2317
|
+
default: s
|
|
2318
|
+
});
|
|
2319
|
+
return e.teleport ? x(Te, {
|
|
2320
|
+
to: e.teleport
|
|
2321
|
+
}, {
|
|
2322
|
+
default: () => [r]
|
|
2323
|
+
}) : r;
|
|
2324
|
+
};
|
|
2325
|
+
}
|
|
2326
|
+
});
|
|
2327
|
+
const sa = Le(oa), aa = _e({}, Zs, {
|
|
2328
|
+
round: Boolean,
|
|
2329
|
+
position: Z("center"),
|
|
2330
|
+
closeIcon: Z("cross"),
|
|
2331
|
+
closeable: Boolean,
|
|
2332
|
+
transition: String,
|
|
2333
|
+
iconPrefix: String,
|
|
2334
|
+
closeOnPopstate: Boolean,
|
|
2335
|
+
closeIconPosition: Z("top-right"),
|
|
2336
|
+
destroyOnClose: Boolean,
|
|
2337
|
+
safeAreaInsetTop: Boolean,
|
|
2338
|
+
safeAreaInsetBottom: Boolean
|
|
2339
|
+
}), [ra, mt] = he("popup");
|
|
2340
|
+
var la = ge({
|
|
2341
|
+
name: ra,
|
|
2342
|
+
inheritAttrs: !1,
|
|
2343
|
+
props: aa,
|
|
2344
|
+
emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
|
|
2345
|
+
setup(e, {
|
|
2346
|
+
emit: t,
|
|
2347
|
+
attrs: n,
|
|
2348
|
+
slots: o
|
|
2349
|
+
}) {
|
|
2350
|
+
let a, l;
|
|
2351
|
+
const s = _(), r = _(), i = Dt(() => e.show || !e.lazyRender), c = R(() => {
|
|
2352
|
+
const b = {
|
|
2353
|
+
zIndex: s.value
|
|
2354
|
+
};
|
|
2355
|
+
if (ie(e.duration)) {
|
|
2356
|
+
const Y = e.position === "center" ? "animationDuration" : "transitionDuration";
|
|
2357
|
+
b[Y] = `${e.duration}s`;
|
|
2358
|
+
}
|
|
2359
|
+
return b;
|
|
2360
|
+
}), u = () => {
|
|
2361
|
+
a || (a = !0, s.value = e.zIndex !== void 0 ? +e.zIndex : Fs(), t("open"));
|
|
2362
|
+
}, v = () => {
|
|
2363
|
+
a && xs(e.beforeClose, {
|
|
2364
|
+
done() {
|
|
2365
|
+
a = !1, t("close"), t("update:show", !1);
|
|
2366
|
+
}
|
|
2367
|
+
});
|
|
2368
|
+
}, h = (b) => {
|
|
2369
|
+
t("clickOverlay", b), e.closeOnClickOverlay && v();
|
|
2370
|
+
}, k = () => {
|
|
2371
|
+
if (e.overlay) {
|
|
2372
|
+
const b = _e({
|
|
2373
|
+
show: e.show,
|
|
2374
|
+
class: e.overlayClass,
|
|
2375
|
+
zIndex: s.value,
|
|
2376
|
+
duration: e.duration,
|
|
2377
|
+
customStyle: e.overlayStyle,
|
|
2378
|
+
role: e.closeOnClickOverlay ? "button" : void 0,
|
|
2379
|
+
tabindex: e.closeOnClickOverlay ? 0 : void 0
|
|
2380
|
+
}, e.overlayProps);
|
|
2381
|
+
return x(sa, S(b, ft(), {
|
|
2382
|
+
onClick: h
|
|
2383
|
+
}), {
|
|
2384
|
+
default: o["overlay-content"]
|
|
2385
|
+
});
|
|
2386
|
+
}
|
|
2387
|
+
}, B = (b) => {
|
|
2388
|
+
t("clickCloseIcon", b), v();
|
|
2389
|
+
}, j = () => {
|
|
2390
|
+
if (e.closeable)
|
|
2391
|
+
return x(qs, {
|
|
2392
|
+
role: "button",
|
|
2393
|
+
tabindex: 0,
|
|
2394
|
+
name: e.closeIcon,
|
|
2395
|
+
class: [mt("close-icon", e.closeIconPosition), ks],
|
|
2396
|
+
classPrefix: e.iconPrefix,
|
|
2397
|
+
onClick: B
|
|
2398
|
+
}, null);
|
|
2399
|
+
};
|
|
2400
|
+
let F;
|
|
2401
|
+
const te = () => {
|
|
2402
|
+
F && clearTimeout(F), F = setTimeout(() => {
|
|
2403
|
+
t("opened");
|
|
2404
|
+
});
|
|
2405
|
+
}, ue = () => t("closed"), X = (b) => t("keydown", b), de = i(() => {
|
|
2406
|
+
var b;
|
|
2407
|
+
const {
|
|
2408
|
+
destroyOnClose: Y,
|
|
2409
|
+
round: fe,
|
|
2410
|
+
position: ne,
|
|
2411
|
+
safeAreaInsetTop: ye,
|
|
2412
|
+
safeAreaInsetBottom: me,
|
|
2413
|
+
show: pe
|
|
2414
|
+
} = e;
|
|
2415
|
+
if (!(!pe && Y))
|
|
2416
|
+
return xe(x("div", S({
|
|
2417
|
+
ref: r,
|
|
2418
|
+
style: c.value,
|
|
2419
|
+
role: "dialog",
|
|
2420
|
+
tabindex: 0,
|
|
2421
|
+
class: [mt({
|
|
2422
|
+
round: fe,
|
|
2423
|
+
[ne]: ne
|
|
2424
|
+
}), {
|
|
2425
|
+
"van-safe-area-top": ye,
|
|
2426
|
+
"van-safe-area-bottom": me
|
|
2427
|
+
}],
|
|
2428
|
+
onKeydown: X
|
|
2429
|
+
}, n, ft()), [(b = o.default) == null ? void 0 : b.call(o), j()]), [[Pe, pe]]);
|
|
2430
|
+
}), be = () => {
|
|
2431
|
+
const {
|
|
2432
|
+
position: b,
|
|
2433
|
+
transition: Y,
|
|
2434
|
+
transitionAppear: fe
|
|
2435
|
+
} = e, ne = b === "center" ? "van-fade" : `van-popup-slide-${b}`;
|
|
2436
|
+
return x($t, {
|
|
2437
|
+
name: Y || ne,
|
|
2438
|
+
appear: fe,
|
|
2439
|
+
onAfterEnter: te,
|
|
2440
|
+
onAfterLeave: ue
|
|
2441
|
+
}, {
|
|
2442
|
+
default: de
|
|
2443
|
+
});
|
|
2444
|
+
};
|
|
2445
|
+
return V(() => e.show, (b) => {
|
|
2446
|
+
b && !a && (u(), n.tabindex === 0 && le(() => {
|
|
2447
|
+
var Y;
|
|
2448
|
+
(Y = r.value) == null || Y.focus();
|
|
2449
|
+
})), !b && a && (a = !1, t("close"));
|
|
2450
|
+
}), As({
|
|
2451
|
+
popupRef: r
|
|
2452
|
+
}), Qs(r, () => e.show && e.lockScroll), Ot("popstate", () => {
|
|
2453
|
+
e.closeOnPopstate && (v(), l = !1);
|
|
2454
|
+
}), ke(() => {
|
|
2455
|
+
e.show && u();
|
|
2456
|
+
}), Ke(() => {
|
|
2457
|
+
l && (t("update:show", !0), l = !1);
|
|
2458
|
+
}), Ae(() => {
|
|
2459
|
+
e.show && e.teleport && (v(), l = !0);
|
|
2460
|
+
}), Oe(Ps, () => e.show), () => e.teleport ? x(Te, {
|
|
2461
|
+
to: e.teleport
|
|
2462
|
+
}, {
|
|
2463
|
+
default: () => [k(), be()]
|
|
2464
|
+
}) : x(H, null, [k(), be()]);
|
|
2465
|
+
}
|
|
2466
|
+
});
|
|
2467
|
+
const ia = Le(la), ca = { class: "header" }, ua = { class: "title" }, da = { class: "list-container" }, fa = ["onClick"], ma = { class: "label" }, pa = { class: "active-icon" }, va = {
|
|
2468
|
+
__name: "Picker",
|
|
2469
|
+
props: /* @__PURE__ */ Re({
|
|
2470
|
+
title: {
|
|
2471
|
+
type: String,
|
|
2472
|
+
default: ""
|
|
2473
|
+
},
|
|
2474
|
+
columns: {
|
|
2475
|
+
type: Array,
|
|
2476
|
+
default: []
|
|
2477
|
+
},
|
|
2478
|
+
columnsFieldNames: {
|
|
2479
|
+
type: Object,
|
|
2480
|
+
default: () => ({ label: "label", value: "value" })
|
|
2481
|
+
}
|
|
2482
|
+
}, {
|
|
2483
|
+
modelValue: {},
|
|
2484
|
+
modelModifiers: {},
|
|
2485
|
+
show: {
|
|
2486
|
+
type: Boolean,
|
|
2487
|
+
default: !1
|
|
2488
|
+
},
|
|
2489
|
+
showModifiers: {}
|
|
2490
|
+
}),
|
|
2491
|
+
emits: /* @__PURE__ */ Re(["confirm"], ["update:modelValue", "update:show"]),
|
|
2492
|
+
setup(e, { emit: t }) {
|
|
2493
|
+
const n = t, o = e, a = ze(e, "modelValue"), l = ze(e, "show"), s = (i) => {
|
|
2494
|
+
a.value = i[o.columnsFieldNames.value], n("confirm", i), r();
|
|
2495
|
+
}, r = () => {
|
|
2496
|
+
l.value = !1;
|
|
2497
|
+
};
|
|
2498
|
+
return (i, c) => (d(), E(z(ia), S({
|
|
2499
|
+
show: l.value,
|
|
2500
|
+
"onUpdate:show": c[0] || (c[0] = (u) => l.value = u),
|
|
2501
|
+
round: "",
|
|
2502
|
+
position: "bottom"
|
|
2503
|
+
}, i.$attrs), {
|
|
2504
|
+
default: $(() => [
|
|
2505
|
+
C("div", ca, [
|
|
2506
|
+
C("div", ua, K(e.title), 1),
|
|
2507
|
+
C("div", {
|
|
2508
|
+
class: "close",
|
|
2509
|
+
onClick: r
|
|
2510
|
+
}, [...c[1] || (c[1] = [
|
|
2511
|
+
C("i", { class: "iconfont icon-lucide-x" }, null, -1)
|
|
2512
|
+
])])
|
|
2513
|
+
]),
|
|
2514
|
+
C("div", da, [
|
|
2515
|
+
(d(!0), m(H, null, M(e.columns, (u) => (d(), m("div", {
|
|
2516
|
+
class: U(["list-item", { active: a.value === u[e.columnsFieldNames.value] }]),
|
|
2517
|
+
key: u[e.columnsFieldNames.value],
|
|
2518
|
+
onClick: (v) => s(u)
|
|
2519
|
+
}, [
|
|
2520
|
+
C("div", ma, [
|
|
2521
|
+
i.$slots.label ? y(i.$slots, "label", {
|
|
2522
|
+
key: 0,
|
|
2523
|
+
item: u
|
|
2524
|
+
}, void 0, !0) : (d(), m(H, { key: 1 }, [
|
|
2525
|
+
Ue(K(u[e.columnsFieldNames.label]), 1)
|
|
2526
|
+
], 64))
|
|
2527
|
+
]),
|
|
2528
|
+
xe(C("div", pa, [...c[2] || (c[2] = [
|
|
2529
|
+
C("i", { class: "iconfont icon-check" }, null, -1)
|
|
2530
|
+
])], 512), [
|
|
2531
|
+
[Pe, a.value === u[e.columnsFieldNames.value]]
|
|
2532
|
+
])
|
|
2533
|
+
], 10, fa))), 128))
|
|
2534
|
+
])
|
|
2535
|
+
]),
|
|
2536
|
+
_: 3
|
|
2537
|
+
}, 16, ["show"]));
|
|
2538
|
+
}
|
|
2539
|
+
}, Ha = /* @__PURE__ */ G(va, [["__scopeId", "data-v-5ca52427"]]), Nt = [je, On, kn, xn, Pn, Bn, Dn, Nn, Fn, zn, jn, Vn, Gn, Wn, Hn, Xn, Jn, to, St, Et, wo, Oo, ko, xo, Do, qo, Qo, ss, Mt, ds];
|
|
2540
|
+
function Ft(e) {
|
|
1778
2541
|
return !e || typeof e != "string" || !e.startsWith("M") ? null : "m-" + e.slice(1).replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
1779
2542
|
}
|
|
1780
|
-
const
|
|
1781
|
-
{ id: "global-message-container", component:
|
|
1782
|
-
{ id: "global-notification-container", component:
|
|
2543
|
+
const ga = [
|
|
2544
|
+
{ id: "global-message-container", component: St },
|
|
2545
|
+
{ id: "global-notification-container", component: Et }
|
|
1783
2546
|
];
|
|
1784
|
-
function
|
|
1785
|
-
return
|
|
2547
|
+
function _a(n) {
|
|
2548
|
+
return Ne(this, arguments, function* ({ id: e, component: t }) {
|
|
1786
2549
|
try {
|
|
1787
2550
|
if (document.getElementById(e)) return;
|
|
1788
|
-
const { createApp: o, h: a } = yield import("vue"),
|
|
1789
|
-
|
|
1790
|
-
render: () => a(
|
|
2551
|
+
const { createApp: o, h: a } = yield import("vue"), l = document.createElement("div");
|
|
2552
|
+
l.id = e, document.body.appendChild(l), o({
|
|
2553
|
+
render: () => a(t)
|
|
1791
2554
|
}).mount(`#${e}`);
|
|
1792
2555
|
} catch (o) {
|
|
1793
2556
|
console.warn(`Failed to create global component ${e}:`, o);
|
|
1794
2557
|
}
|
|
1795
2558
|
});
|
|
1796
2559
|
}
|
|
1797
|
-
function
|
|
1798
|
-
return
|
|
1799
|
-
const e =
|
|
2560
|
+
function ha() {
|
|
2561
|
+
return Ne(this, null, function* () {
|
|
2562
|
+
const e = ga.map(_a);
|
|
1800
2563
|
yield Promise.all(e);
|
|
1801
2564
|
});
|
|
1802
2565
|
}
|
|
1803
|
-
const
|
|
1804
|
-
function
|
|
1805
|
-
const
|
|
1806
|
-
Object.entries(
|
|
2566
|
+
const g = {};
|
|
2567
|
+
function ba(e) {
|
|
2568
|
+
const t = Nt.map((n) => Ft(n == null ? void 0 : n.name)).filter(Boolean);
|
|
2569
|
+
Object.entries(pt).forEach(([n, o]) => {
|
|
1807
2570
|
if (o && o.name && typeof o.name == "string" && o.name.startsWith("El")) {
|
|
1808
2571
|
const a = "m-" + o.name.slice(2).replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
|
|
1809
|
-
|
|
1810
|
-
const
|
|
1811
|
-
|
|
2572
|
+
t.includes(a) || e._context.components[a] || e.component(a, o);
|
|
2573
|
+
const l = "M" + o.name.slice(2);
|
|
2574
|
+
g[l] = o;
|
|
1812
2575
|
}
|
|
1813
2576
|
});
|
|
1814
2577
|
}
|
|
1815
|
-
const
|
|
1816
|
-
typeof window != "undefined" && Promise.resolve().then(() =>
|
|
1817
|
-
|
|
1818
|
-
}), console.log("🚀 开始安装 @mc-markets/ui 组件库..."),
|
|
1819
|
-
const n =
|
|
1820
|
-
n && e.component(n,
|
|
1821
|
-
}),
|
|
1822
|
-
},
|
|
2578
|
+
const ya = (e) => {
|
|
2579
|
+
typeof window != "undefined" && Promise.resolve().then(() => Go).then(({ applyGlobalOverride: t, enableH5Override: n }) => {
|
|
2580
|
+
t(), n({ mode: "auto", breakpoint: 768 });
|
|
2581
|
+
}), console.log("🚀 开始安装 @mc-markets/ui 组件库..."), Nt.forEach((t) => {
|
|
2582
|
+
const n = Ft(t == null ? void 0 : t.name);
|
|
2583
|
+
n && e.component(n, t);
|
|
2584
|
+
}), ba(e), typeof window != "undefined" && ha();
|
|
2585
|
+
}, Ka = { install: ya }, qa = pt.ElMessageBox, Za = W({}, g), Xa = g.MButtonGroup, Ja = g.MCarousel, Qa = g.MCarouselItem, er = g.MCascader, tr = g.MCascaderPanel, nr = g.MCheckTag, or = g.MCalendar, sr = g.MTimePicker, ar = g.MDateTimePicker, rr = g.MColorPicker, lr = g.MTransfer, ir = g.MTree, cr = g.MTreeSelect, ur = g.MUpload, dr = g.MImage, fr = g.MImageViewer, mr = g.MBacktop, pr = g.MInfiniteScroll, vr = g.MAffix, gr = g.MScrollbar, _r = g.MResult, hr = g.MSkeleton, br = g.MLoading, yr = g.MSpinner, Cr = g.MProgress, $r = g.MBadge, Sr = g.MAvatar, Er = g.MImagePreview, Mr = g.MTeleport, Rr = g.MConfigProvider;
|
|
1823
2586
|
export {
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
$
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
2587
|
+
vr as MAffix,
|
|
2588
|
+
Xn as MAlert,
|
|
2589
|
+
Sr as MAvatar,
|
|
2590
|
+
mr as MBacktop,
|
|
2591
|
+
$r as MBadge,
|
|
2592
|
+
Do as MBanner,
|
|
2593
|
+
ds as MBreadcrumb,
|
|
2594
|
+
On as MButton,
|
|
2595
|
+
Xa as MButtonGroup,
|
|
2596
|
+
or as MCalendar,
|
|
2597
|
+
Ja as MCarousel,
|
|
2598
|
+
Qa as MCarouselItem,
|
|
2599
|
+
er as MCascader,
|
|
2600
|
+
tr as MCascaderPanel,
|
|
2601
|
+
nr as MCheckTag,
|
|
2602
|
+
rr as MColorPicker,
|
|
2603
|
+
Rr as MConfigProvider,
|
|
2604
|
+
wo as MDatePicker,
|
|
2605
|
+
ar as MDateTimePicker,
|
|
2606
|
+
Jn as MDialog,
|
|
2607
|
+
Oo as MEmpty,
|
|
2608
|
+
xn as MForm,
|
|
2609
|
+
Pn as MFormItem,
|
|
2610
|
+
je as MIcon,
|
|
2611
|
+
dr as MImage,
|
|
2612
|
+
Er as MImagePreview,
|
|
2613
|
+
fr as MImageViewer,
|
|
2614
|
+
pr as MInfiniteScroll,
|
|
2615
|
+
kn as MInput,
|
|
2616
|
+
br as MLoading,
|
|
2617
|
+
St as MMessage,
|
|
2618
|
+
qa as MMessageBox,
|
|
2619
|
+
Et as MNotifiMessage,
|
|
2620
|
+
to as MNotification,
|
|
2621
|
+
Nn as MOption,
|
|
2622
|
+
Fn as MOptionGroup,
|
|
2623
|
+
zn as MPagination,
|
|
2624
|
+
Ha as MPicker,
|
|
2625
|
+
Cr as MProgress,
|
|
2626
|
+
jn as MRadio,
|
|
2627
|
+
Gn as MRadioButton,
|
|
2628
|
+
Vn as MRadioGroup,
|
|
2629
|
+
_r as MResult,
|
|
2630
|
+
gr as MScrollbar,
|
|
2631
|
+
Dn as MSelect,
|
|
2632
|
+
hr as MSkeleton,
|
|
2633
|
+
yr as MSpinner,
|
|
2634
|
+
Wn as MSwitch,
|
|
2635
|
+
ss as MTabCard,
|
|
2636
|
+
Mt as MTabCardItem,
|
|
2637
|
+
Qo as MTabPane,
|
|
2638
|
+
ko as MTable,
|
|
2639
|
+
xo as MTableColumn,
|
|
2640
|
+
qo as MTabs,
|
|
2641
|
+
Hn as MTag,
|
|
2642
|
+
Mr as MTeleport,
|
|
2643
|
+
sr as MTimePicker,
|
|
2644
|
+
Bn as MTooltip,
|
|
2645
|
+
lr as MTransfer,
|
|
2646
|
+
ir as MTree,
|
|
2647
|
+
cr as MTreeSelect,
|
|
2648
|
+
ur as MUpload,
|
|
2649
|
+
oo as Message,
|
|
2650
|
+
Ya as NotifiMessage,
|
|
2651
|
+
No as addComponentOverride,
|
|
2652
|
+
we as addOverrideClass,
|
|
2653
|
+
Fo as applyGlobalOverride,
|
|
2654
|
+
Vo as createOverrideComponent,
|
|
2655
|
+
Ka as default,
|
|
2656
|
+
zo as enableH5Override,
|
|
2657
|
+
jo as forceRefreshStyles,
|
|
2658
|
+
Ve as isH5,
|
|
2659
|
+
Za as mComponents
|
|
1896
2660
|
};
|
|
1897
2661
|
//# sourceMappingURL=index.mjs.map
|