@atooyu/uxto-ui 1.1.22 → 1.1.23
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/index.js +282 -296
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +282 -296
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +35 -34
- package/package.json +1 -1
- package/src/components/u-popup/u-popup.vue +9 -6
- package/src/components/u-qrcode/u-qrcode.vue +74 -112
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
const _hoisted_1$
|
|
5
|
-
const _hoisted_2$
|
|
4
|
+
const _hoisted_1$G = ["disabled", "hover-class"];
|
|
5
|
+
const _hoisted_2$w = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "u-button__loading"
|
|
8
8
|
};
|
|
9
|
-
const _hoisted_3$
|
|
9
|
+
const _hoisted_3$q = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "u-button__content"
|
|
12
12
|
};
|
|
@@ -74,15 +74,15 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
|
|
|
74
74
|
"hover-class": __props.disabled || __props.loading ? "" : "u-button--active",
|
|
75
75
|
onClick: handleClick
|
|
76
76
|
}, [
|
|
77
|
-
__props.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
77
|
+
__props.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$w, [..._cache[0] || (_cache[0] = [
|
|
78
78
|
vue.createElementVNode("view", { class: "u-button__loading-icon" }, null, -1)
|
|
79
|
-
])])) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
79
|
+
])])) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$q, [
|
|
80
80
|
__props.icon ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_4$h, vue.toDisplayString(__props.icon), 1)) : vue.createCommentVNode("", true),
|
|
81
81
|
vue.createElementVNode("text", _hoisted_5$d, [
|
|
82
82
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
83
83
|
])
|
|
84
84
|
]))
|
|
85
|
-
], 14, _hoisted_1$
|
|
85
|
+
], 14, _hoisted_1$G);
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
});
|
|
@@ -94,12 +94,12 @@ const _export_sfc = (sfc, props) => {
|
|
|
94
94
|
return target;
|
|
95
95
|
};
|
|
96
96
|
const uButton = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-a51cb0bf"]]);
|
|
97
|
-
const _hoisted_1$
|
|
97
|
+
const _hoisted_1$F = {
|
|
98
98
|
key: 0,
|
|
99
99
|
class: "u-input__prefix"
|
|
100
100
|
};
|
|
101
|
-
const _hoisted_2$
|
|
102
|
-
const _hoisted_3$
|
|
101
|
+
const _hoisted_2$v = { class: "u-input__icon" };
|
|
102
|
+
const _hoisted_3$p = { class: "u-input__body" };
|
|
103
103
|
const _hoisted_4$g = ["type", "value", "placeholder", "placeholder-style", "disabled", "maxlength", "focus", "confirm-type", "adjust-position"];
|
|
104
104
|
const _hoisted_5$c = {
|
|
105
105
|
key: 2,
|
|
@@ -163,12 +163,12 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
163
163
|
"u-input--focus": isFocus.value
|
|
164
164
|
}])
|
|
165
165
|
}, [
|
|
166
|
-
_ctx.$slots.prefix || __props.prefixIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
166
|
+
_ctx.$slots.prefix || __props.prefixIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$F, [
|
|
167
167
|
vue.renderSlot(_ctx.$slots, "prefix", {}, () => [
|
|
168
|
-
vue.createElementVNode("text", _hoisted_2$
|
|
168
|
+
vue.createElementVNode("text", _hoisted_2$v, vue.toDisplayString(__props.prefixIcon), 1)
|
|
169
169
|
], true)
|
|
170
170
|
])) : vue.createCommentVNode("", true),
|
|
171
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
171
|
+
vue.createElementVNode("view", _hoisted_3$p, [
|
|
172
172
|
vue.createElementVNode("input", {
|
|
173
173
|
class: "u-input__control",
|
|
174
174
|
type: __props.type,
|
|
@@ -204,12 +204,12 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
204
204
|
}
|
|
205
205
|
});
|
|
206
206
|
const uInput = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-2f635824"]]);
|
|
207
|
-
const _hoisted_1$
|
|
208
|
-
const _hoisted_2$
|
|
207
|
+
const _hoisted_1$E = ["hover-class"];
|
|
208
|
+
const _hoisted_2$u = {
|
|
209
209
|
key: 0,
|
|
210
210
|
class: "u-cell__icon"
|
|
211
211
|
};
|
|
212
|
-
const _hoisted_3$
|
|
212
|
+
const _hoisted_3$o = ["src"];
|
|
213
213
|
const _hoisted_4$f = { class: "u-cell__content" };
|
|
214
214
|
const _hoisted_5$b = { class: "u-cell__title" };
|
|
215
215
|
const _hoisted_6$6 = { class: "u-cell__title-text" };
|
|
@@ -268,14 +268,14 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
268
268
|
"hover-class": isClickable.value && !__props.disabled ? "u-cell--active" : "",
|
|
269
269
|
onClick: handleClick
|
|
270
270
|
}, [
|
|
271
|
-
_ctx.$slots.icon || __props.icon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
271
|
+
_ctx.$slots.icon || __props.icon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$u, [
|
|
272
272
|
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
273
273
|
__props.icon ? (vue.openBlock(), vue.createElementBlock("image", {
|
|
274
274
|
key: 0,
|
|
275
275
|
class: "u-cell__icon-img",
|
|
276
276
|
src: __props.icon,
|
|
277
277
|
mode: "aspectFit"
|
|
278
|
-
}, null, 8, _hoisted_3$
|
|
278
|
+
}, null, 8, _hoisted_3$o)) : vue.createCommentVNode("", true)
|
|
279
279
|
], true)
|
|
280
280
|
])) : vue.createCommentVNode("", true),
|
|
281
281
|
vue.createElementVNode("view", _hoisted_4$f, [
|
|
@@ -293,17 +293,17 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
293
293
|
vue.createElementVNode("text", { class: "u-cell__arrow-icon" }, "›", -1)
|
|
294
294
|
])])) : vue.createCommentVNode("", true),
|
|
295
295
|
vue.renderSlot(_ctx.$slots, "right-icon", {}, void 0, true)
|
|
296
|
-
], 10, _hoisted_1$
|
|
296
|
+
], 10, _hoisted_1$E);
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
299
|
});
|
|
300
300
|
const uCell = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-c3a35a65"]]);
|
|
301
|
-
const _hoisted_1$
|
|
302
|
-
const _hoisted_2$
|
|
301
|
+
const _hoisted_1$D = { class: "u-cell-group" };
|
|
302
|
+
const _hoisted_2$t = {
|
|
303
303
|
key: 0,
|
|
304
304
|
class: "u-cell-group__title"
|
|
305
305
|
};
|
|
306
|
-
const _hoisted_3$
|
|
306
|
+
const _hoisted_3$n = { class: "u-cell-group__body" };
|
|
307
307
|
const __default__$K = {
|
|
308
308
|
options: {
|
|
309
309
|
virtualHost: true,
|
|
@@ -318,13 +318,13 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
318
318
|
},
|
|
319
319
|
setup(__props) {
|
|
320
320
|
return (_ctx, _cache) => {
|
|
321
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
322
|
-
__props.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
321
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$D, [
|
|
322
|
+
__props.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$t, [
|
|
323
323
|
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
324
324
|
vue.createTextVNode(vue.toDisplayString(__props.title), 1)
|
|
325
325
|
], true)
|
|
326
326
|
])) : vue.createCommentVNode("", true),
|
|
327
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
327
|
+
vue.createElementVNode("view", _hoisted_3$n, [
|
|
328
328
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
329
329
|
])
|
|
330
330
|
]);
|
|
@@ -332,12 +332,12 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
|
|
|
332
332
|
}
|
|
333
333
|
});
|
|
334
334
|
const uCellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-f529bc69"]]);
|
|
335
|
-
const _hoisted_1$
|
|
335
|
+
const _hoisted_1$C = {
|
|
336
336
|
key: 0,
|
|
337
337
|
class: "u-modal__header"
|
|
338
338
|
};
|
|
339
|
-
const _hoisted_2$
|
|
340
|
-
const _hoisted_3$
|
|
339
|
+
const _hoisted_2$s = { class: "u-modal__title" };
|
|
340
|
+
const _hoisted_3$m = { class: "u-modal__body" };
|
|
341
341
|
const _hoisted_4$e = { class: "u-modal__message" };
|
|
342
342
|
const _hoisted_5$a = { class: "u-modal__footer" };
|
|
343
343
|
const __default__$J = {
|
|
@@ -386,10 +386,10 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
|
|
|
386
386
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
387
387
|
}, ["stop"]))
|
|
388
388
|
}, [
|
|
389
|
-
__props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
390
|
-
vue.createElementVNode("text", _hoisted_2$
|
|
389
|
+
__props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$C, [
|
|
390
|
+
vue.createElementVNode("text", _hoisted_2$s, vue.toDisplayString(__props.title), 1)
|
|
391
391
|
])) : vue.createCommentVNode("", true),
|
|
392
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
392
|
+
vue.createElementVNode("view", _hoisted_3$m, [
|
|
393
393
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
394
394
|
vue.createElementVNode("text", _hoisted_4$e, vue.toDisplayString(__props.message), 1)
|
|
395
395
|
], true)
|
|
@@ -628,8 +628,8 @@ function getIconNames() {
|
|
|
628
628
|
function addIcon(name, svg) {
|
|
629
629
|
icons[name] = svg;
|
|
630
630
|
}
|
|
631
|
-
const _hoisted_1$
|
|
632
|
-
const _hoisted_2$
|
|
631
|
+
const _hoisted_1$B = ["src"];
|
|
632
|
+
const _hoisted_2$r = {
|
|
633
633
|
key: 1,
|
|
634
634
|
class: "u-icon__inner"
|
|
635
635
|
};
|
|
@@ -719,7 +719,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
719
719
|
src: iconSrc.value,
|
|
720
720
|
style: vue.normalizeStyle(svgStyle.value),
|
|
721
721
|
mode: "aspectFit"
|
|
722
|
-
}, null, 12, _hoisted_1$
|
|
722
|
+
}, null, 12, _hoisted_1$B)) : (vue.openBlock(), vue.createElementBlock("text", _hoisted_2$r, vue.toDisplayString(__props.name), 1))
|
|
723
723
|
], 6);
|
|
724
724
|
};
|
|
725
725
|
}
|
|
@@ -771,7 +771,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
|
771
771
|
}
|
|
772
772
|
});
|
|
773
773
|
const uLoading = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-ce769006"]]);
|
|
774
|
-
const _hoisted_1$
|
|
774
|
+
const _hoisted_1$A = { class: "u-tag__text" };
|
|
775
775
|
const __default__$G = {
|
|
776
776
|
options: {
|
|
777
777
|
virtualHost: true,
|
|
@@ -811,7 +811,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
|
811
811
|
class: vue.normalizeClass(["u-tag", [`u-tag--${__props.type}`, `u-tag--${__props.size}`, { "u-tag--plain": __props.plain, "u-tag--round": __props.round }]]),
|
|
812
812
|
style: vue.normalizeStyle(tagStyle.value)
|
|
813
813
|
}, [
|
|
814
|
-
vue.createElementVNode("text", _hoisted_1$
|
|
814
|
+
vue.createElementVNode("text", _hoisted_1$A, [
|
|
815
815
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
816
816
|
]),
|
|
817
817
|
__props.closable ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -892,12 +892,12 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
|
892
892
|
}
|
|
893
893
|
});
|
|
894
894
|
const uSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-8922fa66"]]);
|
|
895
|
-
const _hoisted_1$
|
|
896
|
-
const _hoisted_2$
|
|
895
|
+
const _hoisted_1$z = ["src", "mode", "lazy-load", "fade"];
|
|
896
|
+
const _hoisted_2$q = {
|
|
897
897
|
key: 0,
|
|
898
898
|
class: "u-image__loading"
|
|
899
899
|
};
|
|
900
|
-
const _hoisted_3$
|
|
900
|
+
const _hoisted_3$l = {
|
|
901
901
|
key: 1,
|
|
902
902
|
class: "u-image__error"
|
|
903
903
|
};
|
|
@@ -946,13 +946,13 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
946
946
|
fade: __props.fade,
|
|
947
947
|
onLoad: handleLoad,
|
|
948
948
|
onError: handleError
|
|
949
|
-
}, null, 40, _hoisted_1$
|
|
950
|
-
__props.loading && !loaded.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
949
|
+
}, null, 40, _hoisted_1$z),
|
|
950
|
+
__props.loading && !loaded.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$q, [
|
|
951
951
|
vue.renderSlot(_ctx.$slots, "loading", {}, () => [
|
|
952
952
|
vue.createVNode(_component_u_loading, { size: 20 })
|
|
953
953
|
], true)
|
|
954
954
|
])) : vue.createCommentVNode("", true),
|
|
955
|
-
__props.error && !loaded.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
955
|
+
__props.error && !loaded.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$l, [
|
|
956
956
|
vue.renderSlot(_ctx.$slots, "error", {}, () => [
|
|
957
957
|
_cache[0] || (_cache[0] = vue.createElementVNode("text", { class: "u-image__error-text" }, "加载失败", -1))
|
|
958
958
|
], true)
|
|
@@ -962,7 +962,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
|
962
962
|
}
|
|
963
963
|
});
|
|
964
964
|
const uImage = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-55a4498e"]]);
|
|
965
|
-
const _hoisted_1$
|
|
965
|
+
const _hoisted_1$y = {
|
|
966
966
|
key: 0,
|
|
967
967
|
class: "u-divider__text"
|
|
968
968
|
};
|
|
@@ -985,7 +985,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
985
985
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
986
986
|
class: vue.normalizeClass(["u-divider", { "u-divider--hairline": __props.hairline, "u-divider--dashed": __props.dashed }])
|
|
987
987
|
}, [
|
|
988
|
-
_ctx.$slots.default || __props.content ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
988
|
+
_ctx.$slots.default || __props.content ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$y, [
|
|
989
989
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
990
990
|
vue.createTextVNode(vue.toDisplayString(__props.content), 1)
|
|
991
991
|
], true)
|
|
@@ -995,12 +995,12 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
995
995
|
}
|
|
996
996
|
});
|
|
997
997
|
const uDivider = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-7f88d163"]]);
|
|
998
|
-
const _hoisted_1$
|
|
998
|
+
const _hoisted_1$x = {
|
|
999
999
|
key: 0,
|
|
1000
1000
|
class: "u-notice-bar__left-icon"
|
|
1001
1001
|
};
|
|
1002
|
-
const _hoisted_2$
|
|
1003
|
-
const _hoisted_3$
|
|
1002
|
+
const _hoisted_2$p = { class: "u-notice-bar__text-item" };
|
|
1003
|
+
const _hoisted_3$k = { class: "u-notice-bar__text-item" };
|
|
1004
1004
|
const _hoisted_4$d = {
|
|
1005
1005
|
key: 1,
|
|
1006
1006
|
class: "u-notice-bar__text"
|
|
@@ -1035,7 +1035,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
1035
1035
|
class: vue.normalizeClass(["u-notice-bar", { "u-notice-bar--wrapable": __props.wrapable }]),
|
|
1036
1036
|
style: vue.normalizeStyle({ color: __props.color, background: __props.background })
|
|
1037
1037
|
}, [
|
|
1038
|
-
_ctx.$slots.leftIcon || __props.leftIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
1038
|
+
_ctx.$slots.leftIcon || __props.leftIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$x, [
|
|
1039
1039
|
vue.renderSlot(_ctx.$slots, "leftIcon", {}, () => [
|
|
1040
1040
|
vue.createElementVNode("text", null, vue.toDisplayString(__props.leftIcon), 1)
|
|
1041
1041
|
], true)
|
|
@@ -1048,8 +1048,8 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
1048
1048
|
class: "u-notice-bar__text",
|
|
1049
1049
|
style: vue.normalizeStyle({ animationDuration: __props.speed + "s" })
|
|
1050
1050
|
}, [
|
|
1051
|
-
vue.createElementVNode("text", _hoisted_2$
|
|
1052
|
-
vue.createElementVNode("text", _hoisted_3$
|
|
1051
|
+
vue.createElementVNode("text", _hoisted_2$p, vue.toDisplayString(__props.text), 1),
|
|
1052
|
+
vue.createElementVNode("text", _hoisted_3$k, vue.toDisplayString(__props.text), 1)
|
|
1053
1053
|
], 4)) : (vue.openBlock(), vue.createElementBlock("text", _hoisted_4$d, vue.toDisplayString(__props.text), 1))
|
|
1054
1054
|
], 2),
|
|
1055
1055
|
_ctx.$slots.rightIcon || __props.rightIcon ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -1066,12 +1066,12 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
|
1066
1066
|
}
|
|
1067
1067
|
});
|
|
1068
1068
|
const uNoticeBar = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-f80a744d"]]);
|
|
1069
|
-
const _hoisted_1$
|
|
1069
|
+
const _hoisted_1$w = {
|
|
1070
1070
|
key: 0,
|
|
1071
1071
|
class: "u-layout__header"
|
|
1072
1072
|
};
|
|
1073
|
-
const _hoisted_2$
|
|
1074
|
-
const _hoisted_3$
|
|
1073
|
+
const _hoisted_2$o = { class: "u-layout__content" };
|
|
1074
|
+
const _hoisted_3$j = {
|
|
1075
1075
|
key: 1,
|
|
1076
1076
|
class: "u-layout__footer"
|
|
1077
1077
|
};
|
|
@@ -1091,13 +1091,13 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
1091
1091
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
1092
1092
|
class: vue.normalizeClass(["u-layout", { "u-layout--has-footer": hasFooter.value }])
|
|
1093
1093
|
}, [
|
|
1094
|
-
_ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
1094
|
+
_ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$w, [
|
|
1095
1095
|
vue.renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
1096
1096
|
])) : vue.createCommentVNode("", true),
|
|
1097
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
1097
|
+
vue.createElementVNode("view", _hoisted_2$o, [
|
|
1098
1098
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1099
1099
|
]),
|
|
1100
|
-
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
1100
|
+
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$j, [
|
|
1101
1101
|
vue.renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
1102
1102
|
])) : vue.createCommentVNode("", true)
|
|
1103
1103
|
], 2);
|
|
@@ -1105,7 +1105,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
|
1105
1105
|
}
|
|
1106
1106
|
});
|
|
1107
1107
|
const uLayout = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-1682e77a"]]);
|
|
1108
|
-
const _hoisted_1$
|
|
1108
|
+
const _hoisted_1$v = {
|
|
1109
1109
|
key: 0,
|
|
1110
1110
|
class: "u-badge__text"
|
|
1111
1111
|
};
|
|
@@ -1161,18 +1161,18 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
|
1161
1161
|
class: vue.normalizeClass(["u-badge__content", [`u-badge__content--${__props.type}`, { "u-badge__content--dot": __props.dot, "u-badge__content--alone": !_ctx.$slots.default }]]),
|
|
1162
1162
|
style: vue.normalizeStyle(badgeStyle.value)
|
|
1163
1163
|
}, [
|
|
1164
|
-
!__props.dot && displayValue.value ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_1$
|
|
1164
|
+
!__props.dot && displayValue.value ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_1$v, vue.toDisplayString(displayValue.value), 1)) : vue.createCommentVNode("", true)
|
|
1165
1165
|
], 6)) : vue.createCommentVNode("", true)
|
|
1166
1166
|
], 2);
|
|
1167
1167
|
};
|
|
1168
1168
|
}
|
|
1169
1169
|
});
|
|
1170
1170
|
const uBadge = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-56dd42ed"]]);
|
|
1171
|
-
const _hoisted_1$
|
|
1171
|
+
const _hoisted_1$u = {
|
|
1172
1172
|
key: 0,
|
|
1173
1173
|
class: "u-loading-page"
|
|
1174
1174
|
};
|
|
1175
|
-
const _hoisted_2$
|
|
1175
|
+
const _hoisted_2$n = { class: "u-loading-page__content" };
|
|
1176
1176
|
const __default__$z = {
|
|
1177
1177
|
options: {
|
|
1178
1178
|
virtualHost: true,
|
|
@@ -1191,8 +1191,8 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
1191
1191
|
},
|
|
1192
1192
|
setup(__props) {
|
|
1193
1193
|
return (_ctx, _cache) => {
|
|
1194
|
-
return __props.visible ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
1195
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
1194
|
+
return __props.visible ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$u, [
|
|
1195
|
+
vue.createElementVNode("view", _hoisted_2$n, [
|
|
1196
1196
|
vue.createElementVNode("view", {
|
|
1197
1197
|
class: "u-loading-page__spinner",
|
|
1198
1198
|
style: vue.normalizeStyle({ width: __props.size + "px", height: __props.size + "px" })
|
|
@@ -1219,7 +1219,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
|
1219
1219
|
}
|
|
1220
1220
|
});
|
|
1221
1221
|
const uLoadingPage = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-ddf92cf6"]]);
|
|
1222
|
-
const _hoisted_1$
|
|
1222
|
+
const _hoisted_1$t = { class: "u-parse" };
|
|
1223
1223
|
const __default__$y = {
|
|
1224
1224
|
options: {
|
|
1225
1225
|
virtualHost: true,
|
|
@@ -1325,7 +1325,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
1325
1325
|
};
|
|
1326
1326
|
return (_ctx, _cache) => {
|
|
1327
1327
|
const _component_rich_text = vue.resolveComponent("rich-text");
|
|
1328
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
1328
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$t, [
|
|
1329
1329
|
vue.createVNode(_component_rich_text, {
|
|
1330
1330
|
nodes: parsedNodes.value,
|
|
1331
1331
|
selectable: __props.selectable,
|
|
@@ -1337,9 +1337,9 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
|
1337
1337
|
}
|
|
1338
1338
|
});
|
|
1339
1339
|
const uParse = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-5361245b"]]);
|
|
1340
|
-
const _hoisted_1$
|
|
1341
|
-
const _hoisted_2$
|
|
1342
|
-
const _hoisted_3$
|
|
1340
|
+
const _hoisted_1$s = { class: "u-keyboard__header" };
|
|
1341
|
+
const _hoisted_2$m = { class: "u-keyboard__title" };
|
|
1342
|
+
const _hoisted_3$i = ["onClick"];
|
|
1343
1343
|
const __default__$x = {
|
|
1344
1344
|
options: {
|
|
1345
1345
|
virtualHost: true,
|
|
@@ -1469,8 +1469,8 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
1469
1469
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
1470
1470
|
}, ["stop"]))
|
|
1471
1471
|
}, [
|
|
1472
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
1473
|
-
vue.createElementVNode("text", _hoisted_2$
|
|
1472
|
+
vue.createElementVNode("view", _hoisted_1$s, [
|
|
1473
|
+
vue.createElementVNode("text", _hoisted_2$m, vue.toDisplayString(__props.title), 1),
|
|
1474
1474
|
vue.createElementVNode("text", {
|
|
1475
1475
|
class: "u-keyboard__close",
|
|
1476
1476
|
onClick: handleClose
|
|
@@ -1489,7 +1489,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
1489
1489
|
onClick: ($event) => handleKeyClick(key)
|
|
1490
1490
|
}, [
|
|
1491
1491
|
vue.createElementVNode("text", null, vue.toDisplayString(key), 1)
|
|
1492
|
-
], 10, _hoisted_3$
|
|
1492
|
+
], 10, _hoisted_3$i);
|
|
1493
1493
|
}), 128))
|
|
1494
1494
|
], 2)
|
|
1495
1495
|
])
|
|
@@ -1498,9 +1498,9 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
|
1498
1498
|
}
|
|
1499
1499
|
});
|
|
1500
1500
|
const uKeyboard = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-b318be29"]]);
|
|
1501
|
-
const _hoisted_1$
|
|
1502
|
-
const _hoisted_2$
|
|
1503
|
-
const _hoisted_3$
|
|
1501
|
+
const _hoisted_1$r = { class: "u-picker__toolbar" };
|
|
1502
|
+
const _hoisted_2$l = { class: "u-picker__title" };
|
|
1503
|
+
const _hoisted_3$h = {
|
|
1504
1504
|
key: 0,
|
|
1505
1505
|
class: "u-picker__loading"
|
|
1506
1506
|
};
|
|
@@ -1596,18 +1596,18 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
1596
1596
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
1597
1597
|
}, ["stop"]))
|
|
1598
1598
|
}, [
|
|
1599
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
1599
|
+
vue.createElementVNode("view", _hoisted_1$r, [
|
|
1600
1600
|
vue.createElementVNode("text", {
|
|
1601
1601
|
class: "u-picker__action",
|
|
1602
1602
|
onClick: handleCancel
|
|
1603
1603
|
}, "取消"),
|
|
1604
|
-
vue.createElementVNode("text", _hoisted_2$
|
|
1604
|
+
vue.createElementVNode("text", _hoisted_2$l, vue.toDisplayString(__props.title), 1),
|
|
1605
1605
|
vue.createElementVNode("text", {
|
|
1606
1606
|
class: "u-picker__action u-picker__action--confirm",
|
|
1607
1607
|
onClick: handleConfirm
|
|
1608
1608
|
}, "确定")
|
|
1609
1609
|
]),
|
|
1610
|
-
__props.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
1610
|
+
__props.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$h, [..._cache[1] || (_cache[1] = [
|
|
1611
1611
|
vue.createElementVNode("text", null, "加载中...", -1)
|
|
1612
1612
|
])])) : (vue.openBlock(), vue.createBlock(_component_picker_view, {
|
|
1613
1613
|
key: 1,
|
|
@@ -1641,8 +1641,8 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
1641
1641
|
}
|
|
1642
1642
|
});
|
|
1643
1643
|
const uPicker = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-54bd44d7"]]);
|
|
1644
|
-
const _hoisted_1$
|
|
1645
|
-
const _hoisted_2$
|
|
1644
|
+
const _hoisted_1$q = { class: "u-datetime-picker__toolbar" };
|
|
1645
|
+
const _hoisted_2$k = { class: "u-datetime-picker__title" };
|
|
1646
1646
|
const __default__$v = {
|
|
1647
1647
|
options: {
|
|
1648
1648
|
virtualHost: true,
|
|
@@ -1870,12 +1870,12 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
1870
1870
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
1871
1871
|
}, ["stop"]))
|
|
1872
1872
|
}, [
|
|
1873
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
1873
|
+
vue.createElementVNode("view", _hoisted_1$q, [
|
|
1874
1874
|
vue.createElementVNode("text", {
|
|
1875
1875
|
class: "u-datetime-picker__action",
|
|
1876
1876
|
onClick: handleCancel
|
|
1877
1877
|
}, "取消"),
|
|
1878
|
-
vue.createElementVNode("text", _hoisted_2$
|
|
1878
|
+
vue.createElementVNode("text", _hoisted_2$k, vue.toDisplayString(__props.title), 1),
|
|
1879
1879
|
vue.createElementVNode("text", {
|
|
1880
1880
|
class: "u-datetime-picker__action u-datetime-picker__action--confirm",
|
|
1881
1881
|
onClick: handleConfirm
|
|
@@ -1912,7 +1912,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
1912
1912
|
}
|
|
1913
1913
|
});
|
|
1914
1914
|
const uDatetimePicker = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-45acbf1d"]]);
|
|
1915
|
-
const _hoisted_1$
|
|
1915
|
+
const _hoisted_1$p = ["onClick"];
|
|
1916
1916
|
const __default__$u = {
|
|
1917
1917
|
options: {
|
|
1918
1918
|
virtualHost: true,
|
|
@@ -2018,14 +2018,14 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
2018
2018
|
style: vue.normalizeStyle(activeStyle.value)
|
|
2019
2019
|
}, "★", 4)
|
|
2020
2020
|
], 4)
|
|
2021
|
-
], 12, _hoisted_1$
|
|
2021
|
+
], 12, _hoisted_1$p);
|
|
2022
2022
|
}), 128))
|
|
2023
2023
|
], 2);
|
|
2024
2024
|
};
|
|
2025
2025
|
}
|
|
2026
2026
|
});
|
|
2027
2027
|
const uRate = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-62d85215"]]);
|
|
2028
|
-
const _hoisted_1$
|
|
2028
|
+
const _hoisted_1$o = { class: "u-grid" };
|
|
2029
2029
|
const __default__$t = {
|
|
2030
2030
|
options: {
|
|
2031
2031
|
virtualHost: true,
|
|
@@ -2062,19 +2062,19 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
2062
2062
|
onItemClick
|
|
2063
2063
|
});
|
|
2064
2064
|
return (_ctx, _cache) => {
|
|
2065
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
2065
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$o, [
|
|
2066
2066
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
2067
2067
|
]);
|
|
2068
2068
|
};
|
|
2069
2069
|
}
|
|
2070
2070
|
});
|
|
2071
2071
|
const uGrid = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-d005bea6"]]);
|
|
2072
|
-
const _hoisted_1$
|
|
2072
|
+
const _hoisted_1$n = {
|
|
2073
2073
|
key: 0,
|
|
2074
2074
|
class: "u-grid-item__icon"
|
|
2075
2075
|
};
|
|
2076
|
-
const _hoisted_2$
|
|
2077
|
-
const _hoisted_3$
|
|
2076
|
+
const _hoisted_2$j = ["src"];
|
|
2077
|
+
const _hoisted_3$g = {
|
|
2078
2078
|
key: 1,
|
|
2079
2079
|
class: "u-grid-item__icon-text"
|
|
2080
2080
|
};
|
|
@@ -2142,14 +2142,14 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
2142
2142
|
style: vue.normalizeStyle(itemStyle.value),
|
|
2143
2143
|
onClick: handleClick
|
|
2144
2144
|
}, [
|
|
2145
|
-
_ctx.$slots.icon || __props.icon || __props.iconUrl ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
2145
|
+
_ctx.$slots.icon || __props.icon || __props.iconUrl ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$n, [
|
|
2146
2146
|
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2147
2147
|
__props.iconUrl ? (vue.openBlock(), vue.createElementBlock("image", {
|
|
2148
2148
|
key: 0,
|
|
2149
2149
|
class: "u-grid-item__icon-image",
|
|
2150
2150
|
src: __props.iconUrl,
|
|
2151
2151
|
mode: "aspectFit"
|
|
2152
|
-
}, null, 8, _hoisted_2$
|
|
2152
|
+
}, null, 8, _hoisted_2$j)) : __props.icon ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_3$g, vue.toDisplayString(__props.icon), 1)) : vue.createCommentVNode("", true)
|
|
2153
2153
|
], true),
|
|
2154
2154
|
__props.badge !== void 0 && __props.badge !== null && __props.badge !== "" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$c, [
|
|
2155
2155
|
vue.createElementVNode("text", _hoisted_5$9, vue.toDisplayString(__props.badge), 1)
|
|
@@ -2165,12 +2165,12 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
2165
2165
|
}
|
|
2166
2166
|
});
|
|
2167
2167
|
const uGridItem = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-de6f40c1"]]);
|
|
2168
|
-
const _hoisted_1$
|
|
2169
|
-
const _hoisted_2$
|
|
2168
|
+
const _hoisted_1$m = { class: "u-swiper" };
|
|
2169
|
+
const _hoisted_2$i = {
|
|
2170
2170
|
key: 0,
|
|
2171
2171
|
class: "u-swiper__loading"
|
|
2172
2172
|
};
|
|
2173
|
-
const _hoisted_3$
|
|
2173
|
+
const _hoisted_3$f = {
|
|
2174
2174
|
key: 1,
|
|
2175
2175
|
class: "u-swiper__title"
|
|
2176
2176
|
};
|
|
@@ -2278,7 +2278,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
2278
2278
|
});
|
|
2279
2279
|
return (_ctx, _cache) => {
|
|
2280
2280
|
const _component_swiper = vue.resolveComponent("swiper");
|
|
2281
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
2281
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$m, [
|
|
2282
2282
|
vue.createVNode(_component_swiper, {
|
|
2283
2283
|
class: "u-swiper__wrapper",
|
|
2284
2284
|
style: vue.normalizeStyle({ height: swiperHeight.value }),
|
|
@@ -2297,10 +2297,10 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
2297
2297
|
]),
|
|
2298
2298
|
_: 3
|
|
2299
2299
|
}, 8, ["style", "autoplay", "interval", "duration", "circular", "vertical", "current"]),
|
|
2300
|
-
__props.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
2300
|
+
__props.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$i, [..._cache[0] || (_cache[0] = [
|
|
2301
2301
|
vue.createElementVNode("view", { class: "u-swiper__loading-icon" }, null, -1)
|
|
2302
2302
|
])])) : vue.createCommentVNode("", true),
|
|
2303
|
-
__props.showTitle && currentTitle.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
2303
|
+
__props.showTitle && currentTitle.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$f, [
|
|
2304
2304
|
vue.createElementVNode("text", _hoisted_4$b, vue.toDisplayString(currentTitle.value), 1)
|
|
2305
2305
|
])) : vue.createCommentVNode("", true),
|
|
2306
2306
|
showIndicator.value && indicatorSlot.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$8, [
|
|
@@ -2380,12 +2380,12 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
|
2380
2380
|
}
|
|
2381
2381
|
});
|
|
2382
2382
|
const uSwiperItem = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-ef481687"]]);
|
|
2383
|
-
const _hoisted_1$
|
|
2383
|
+
const _hoisted_1$l = {
|
|
2384
2384
|
key: 0,
|
|
2385
2385
|
class: "u-search__icon"
|
|
2386
2386
|
};
|
|
2387
|
-
const _hoisted_2$
|
|
2388
|
-
const _hoisted_3$
|
|
2387
|
+
const _hoisted_2$h = { class: "u-search__body" };
|
|
2388
|
+
const _hoisted_3$e = ["type", "value", "placeholder", "placeholder-style", "disabled", "maxlength", "focus", "confirm-type", "adjust-position"];
|
|
2389
2389
|
const _hoisted_4$a = { class: "u-search__action-text" };
|
|
2390
2390
|
const __default__$p = {
|
|
2391
2391
|
options: {
|
|
@@ -2466,10 +2466,10 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
2466
2466
|
class: "u-search__content",
|
|
2467
2467
|
style: vue.normalizeStyle(contentStyle.value)
|
|
2468
2468
|
}, [
|
|
2469
|
-
__props.showSearchIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
2469
|
+
__props.showSearchIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$l, [..._cache[0] || (_cache[0] = [
|
|
2470
2470
|
vue.createElementVNode("text", { class: "u-search__icon-text" }, "🔍", -1)
|
|
2471
2471
|
])])) : vue.createCommentVNode("", true),
|
|
2472
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
2472
|
+
vue.createElementVNode("view", _hoisted_2$h, [
|
|
2473
2473
|
vue.createElementVNode("input", {
|
|
2474
2474
|
class: "u-search__control",
|
|
2475
2475
|
type: __props.type,
|
|
@@ -2486,7 +2486,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
2486
2486
|
onFocus: handleFocus,
|
|
2487
2487
|
onBlur: handleBlur,
|
|
2488
2488
|
onConfirm: handleSearch
|
|
2489
|
-
}, null, 40, _hoisted_3$
|
|
2489
|
+
}, null, 40, _hoisted_3$e)
|
|
2490
2490
|
]),
|
|
2491
2491
|
__props.clearable && __props.modelValue ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
2492
2492
|
key: 1,
|
|
@@ -2510,7 +2510,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
2510
2510
|
}
|
|
2511
2511
|
});
|
|
2512
2512
|
const uSearch = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-223b845c"]]);
|
|
2513
|
-
const _hoisted_1$
|
|
2513
|
+
const _hoisted_1$k = ["type", "value", "disabled"];
|
|
2514
2514
|
const __default__$o = {
|
|
2515
2515
|
options: {
|
|
2516
2516
|
virtualHost: true,
|
|
@@ -2658,7 +2658,7 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
2658
2658
|
onInput: handleInput,
|
|
2659
2659
|
onBlur: handleBlur,
|
|
2660
2660
|
onFocus: handleFocus
|
|
2661
|
-
}, null, 46, _hoisted_1$
|
|
2661
|
+
}, null, 46, _hoisted_1$k),
|
|
2662
2662
|
vue.createElementVNode("view", {
|
|
2663
2663
|
class: vue.normalizeClass(["u-number-box__btn u-number-box__btn--plus", {
|
|
2664
2664
|
"u-number-box__btn--disabled": plusDisabled.value
|
|
@@ -2676,9 +2676,9 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
|
|
|
2676
2676
|
}
|
|
2677
2677
|
});
|
|
2678
2678
|
const uNumberBox = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-86153bb8"]]);
|
|
2679
|
-
const _hoisted_1$
|
|
2680
|
-
const _hoisted_2$
|
|
2681
|
-
const _hoisted_3$
|
|
2679
|
+
const _hoisted_1$j = { class: "u-upload" };
|
|
2680
|
+
const _hoisted_2$g = { class: "u-upload__list" };
|
|
2681
|
+
const _hoisted_3$d = ["src", "onClick"];
|
|
2682
2682
|
const _hoisted_4$9 = {
|
|
2683
2683
|
key: 1,
|
|
2684
2684
|
class: "u-upload__video"
|
|
@@ -2807,8 +2807,8 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
2807
2807
|
fileList
|
|
2808
2808
|
});
|
|
2809
2809
|
return (_ctx, _cache) => {
|
|
2810
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
2811
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
2810
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$j, [
|
|
2811
|
+
vue.createElementVNode("view", _hoisted_2$g, [
|
|
2812
2812
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(fileList.value, (file, index) => {
|
|
2813
2813
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
2814
2814
|
key: index,
|
|
@@ -2823,7 +2823,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
2823
2823
|
src: file.url || file.thumb,
|
|
2824
2824
|
mode: "aspectFill",
|
|
2825
2825
|
onClick: ($event) => handlePreview(file, index)
|
|
2826
|
-
}, null, 8, _hoisted_3$
|
|
2826
|
+
}, null, 8, _hoisted_3$d)) : isVideo(file) ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$9, [
|
|
2827
2827
|
vue.createElementVNode("image", {
|
|
2828
2828
|
class: "u-upload__preview",
|
|
2829
2829
|
src: file.thumb || defaultVideoThumb,
|
|
@@ -2879,12 +2879,12 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
2879
2879
|
}
|
|
2880
2880
|
});
|
|
2881
2881
|
const uUpload = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-172bcb23"]]);
|
|
2882
|
-
const _hoisted_1$
|
|
2883
|
-
const _hoisted_2$
|
|
2882
|
+
const _hoisted_1$i = ["value", "placeholder", "placeholder-style", "disabled", "maxlength", "focus", "auto-height", "fixed", "cursor-spacing", "show-confirm-bar", "adjust-position"];
|
|
2883
|
+
const _hoisted_2$f = {
|
|
2884
2884
|
key: 0,
|
|
2885
2885
|
class: "u-textarea__limit"
|
|
2886
2886
|
};
|
|
2887
|
-
const _hoisted_3$
|
|
2887
|
+
const _hoisted_3$c = { class: "u-textarea__limit-text" };
|
|
2888
2888
|
const __default__$m = {
|
|
2889
2889
|
options: {
|
|
2890
2890
|
virtualHost: true,
|
|
@@ -2971,21 +2971,21 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
|
2971
2971
|
onBlur: handleBlur,
|
|
2972
2972
|
onConfirm: handleConfirm,
|
|
2973
2973
|
onLinechange: handleLineChange
|
|
2974
|
-
}, null, 44, _hoisted_1$
|
|
2975
|
-
__props.showWordLimit && __props.maxlength ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
2976
|
-
vue.createElementVNode("text", _hoisted_3$
|
|
2974
|
+
}, null, 44, _hoisted_1$i),
|
|
2975
|
+
__props.showWordLimit && __props.maxlength ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$f, [
|
|
2976
|
+
vue.createElementVNode("text", _hoisted_3$c, vue.toDisplayString(currentLength.value) + "/" + vue.toDisplayString(__props.maxlength), 1)
|
|
2977
2977
|
])) : vue.createCommentVNode("", true)
|
|
2978
2978
|
], 2);
|
|
2979
2979
|
};
|
|
2980
2980
|
}
|
|
2981
2981
|
});
|
|
2982
2982
|
const uTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-82478b77"]]);
|
|
2983
|
-
const _hoisted_1$
|
|
2983
|
+
const _hoisted_1$h = {
|
|
2984
2984
|
key: 0,
|
|
2985
2985
|
class: "u-slider__min"
|
|
2986
2986
|
};
|
|
2987
|
-
const _hoisted_2$
|
|
2988
|
-
const _hoisted_3$
|
|
2987
|
+
const _hoisted_2$e = { class: "u-slider__label" };
|
|
2988
|
+
const _hoisted_3$b = {
|
|
2989
2989
|
key: 0,
|
|
2990
2990
|
class: "u-slider__tooltip"
|
|
2991
2991
|
};
|
|
@@ -3229,8 +3229,8 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
3229
3229
|
"u-slider--disabled": __props.disabled
|
|
3230
3230
|
}])
|
|
3231
3231
|
}, [
|
|
3232
|
-
__props.showMinMax ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
3233
|
-
vue.createElementVNode("text", _hoisted_2$
|
|
3232
|
+
__props.showMinMax ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$h, [
|
|
3233
|
+
vue.createElementVNode("text", _hoisted_2$e, vue.toDisplayString(__props.min), 1)
|
|
3234
3234
|
])) : vue.createCommentVNode("", true),
|
|
3235
3235
|
vue.createElementVNode("view", {
|
|
3236
3236
|
class: "u-slider__track",
|
|
@@ -3253,7 +3253,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
3253
3253
|
onTouchmove: vue.withModifiers(handleButtonTouchMove, ["stop"]),
|
|
3254
3254
|
onTouchend: vue.withModifiers(handleButtonTouchEnd, ["stop"])
|
|
3255
3255
|
}, [
|
|
3256
|
-
__props.showValue ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$
|
|
3256
|
+
__props.showValue ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$b, [
|
|
3257
3257
|
vue.createElementVNode("text", _hoisted_4$8, vue.toDisplayString(currentValue.value), 1)
|
|
3258
3258
|
])) : vue.createCommentVNode("", true)
|
|
3259
3259
|
], 36)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
@@ -3299,12 +3299,12 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
3299
3299
|
}
|
|
3300
3300
|
});
|
|
3301
3301
|
const uSlider = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-c099c413"]]);
|
|
3302
|
-
const _hoisted_1$
|
|
3303
|
-
const _hoisted_2$
|
|
3302
|
+
const _hoisted_1$g = { class: "u-list" };
|
|
3303
|
+
const _hoisted_2$d = {
|
|
3304
3304
|
key: 0,
|
|
3305
3305
|
class: "u-list__header"
|
|
3306
3306
|
};
|
|
3307
|
-
const _hoisted_3$
|
|
3307
|
+
const _hoisted_3$a = { class: "u-list__content" };
|
|
3308
3308
|
const _hoisted_4$7 = {
|
|
3309
3309
|
key: 1,
|
|
3310
3310
|
class: "u-list__loading"
|
|
@@ -3350,13 +3350,13 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
3350
3350
|
emit("load");
|
|
3351
3351
|
};
|
|
3352
3352
|
return (_ctx, _cache) => {
|
|
3353
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
3354
|
-
_ctx.$slots.header || __props.header ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
3353
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$g, [
|
|
3354
|
+
_ctx.$slots.header || __props.header ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$d, [
|
|
3355
3355
|
vue.renderSlot(_ctx.$slots, "header", {}, () => [
|
|
3356
3356
|
vue.createTextVNode(vue.toDisplayString(__props.header), 1)
|
|
3357
3357
|
], true)
|
|
3358
3358
|
])) : vue.createCommentVNode("", true),
|
|
3359
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
3359
|
+
vue.createElementVNode("view", _hoisted_3$a, [
|
|
3360
3360
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3361
3361
|
]),
|
|
3362
3362
|
__props.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$7, [
|
|
@@ -3383,12 +3383,12 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
3383
3383
|
}
|
|
3384
3384
|
});
|
|
3385
3385
|
const uList = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-6d331927"]]);
|
|
3386
|
-
const _hoisted_1$
|
|
3386
|
+
const _hoisted_1$f = {
|
|
3387
3387
|
key: 0,
|
|
3388
3388
|
class: "u-list-item__icon"
|
|
3389
3389
|
};
|
|
3390
|
-
const _hoisted_2$
|
|
3391
|
-
const _hoisted_3$
|
|
3390
|
+
const _hoisted_2$c = ["src"];
|
|
3391
|
+
const _hoisted_3$9 = {
|
|
3392
3392
|
key: 1,
|
|
3393
3393
|
class: "u-list-item__icon-text"
|
|
3394
3394
|
};
|
|
@@ -3457,14 +3457,14 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
3457
3457
|
}]),
|
|
3458
3458
|
onClick: handleClick
|
|
3459
3459
|
}, [
|
|
3460
|
-
_ctx.$slots.icon || __props.icon || __props.thumb ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
3460
|
+
_ctx.$slots.icon || __props.icon || __props.thumb ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$f, [
|
|
3461
3461
|
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
3462
3462
|
__props.thumb ? (vue.openBlock(), vue.createElementBlock("image", {
|
|
3463
3463
|
key: 0,
|
|
3464
3464
|
class: "u-list-item__thumb",
|
|
3465
3465
|
src: __props.thumb,
|
|
3466
3466
|
mode: "aspectFill"
|
|
3467
|
-
}, null, 8, _hoisted_2$
|
|
3467
|
+
}, null, 8, _hoisted_2$c)) : __props.icon ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_3$9, vue.toDisplayString(__props.icon), 1)) : vue.createCommentVNode("", true)
|
|
3468
3468
|
], true)
|
|
3469
3469
|
])) : vue.createCommentVNode("", true),
|
|
3470
3470
|
vue.createElementVNode("view", _hoisted_4$6, [
|
|
@@ -3496,11 +3496,11 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
3496
3496
|
}
|
|
3497
3497
|
});
|
|
3498
3498
|
const uListItem = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-8c31b17c"]]);
|
|
3499
|
-
const _hoisted_1$
|
|
3499
|
+
const _hoisted_1$e = {
|
|
3500
3500
|
key: 0,
|
|
3501
3501
|
class: "u-line-progress__text u-line-progress__text--inside"
|
|
3502
3502
|
};
|
|
3503
|
-
const _hoisted_2$
|
|
3503
|
+
const _hoisted_2$b = {
|
|
3504
3504
|
key: 0,
|
|
3505
3505
|
class: "u-line-progress__text"
|
|
3506
3506
|
};
|
|
@@ -3569,16 +3569,16 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
3569
3569
|
}]),
|
|
3570
3570
|
style: vue.normalizeStyle(barStyle.value)
|
|
3571
3571
|
}, [
|
|
3572
|
-
__props.showText && __props.textInside && __props.percentage <= 100 ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_1$
|
|
3572
|
+
__props.showText && __props.textInside && __props.percentage <= 100 ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_1$e, vue.toDisplayString(textContent.value), 1)) : vue.createCommentVNode("", true)
|
|
3573
3573
|
], 6)
|
|
3574
3574
|
], 4),
|
|
3575
|
-
__props.showText && !__props.textInside ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_2$
|
|
3575
|
+
__props.showText && !__props.textInside ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_2$b, vue.toDisplayString(textContent.value), 1)) : vue.createCommentVNode("", true)
|
|
3576
3576
|
], 4);
|
|
3577
3577
|
};
|
|
3578
3578
|
}
|
|
3579
3579
|
});
|
|
3580
3580
|
const uLineProgress = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-99121563"]]);
|
|
3581
|
-
const _hoisted_1$
|
|
3581
|
+
const _hoisted_1$d = { class: "u-count-down" };
|
|
3582
3582
|
const __default__$h = {
|
|
3583
3583
|
options: {
|
|
3584
3584
|
virtualHost: true,
|
|
@@ -3701,7 +3701,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
3701
3701
|
timeData
|
|
3702
3702
|
});
|
|
3703
3703
|
return (_ctx, _cache) => {
|
|
3704
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
3704
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$d, [
|
|
3705
3705
|
vue.renderSlot(_ctx.$slots, "default", {
|
|
3706
3706
|
time: timeData.value,
|
|
3707
3707
|
current: current.value
|
|
@@ -3716,12 +3716,12 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
3716
3716
|
}
|
|
3717
3717
|
});
|
|
3718
3718
|
const uCountDown = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-da70e500"]]);
|
|
3719
|
-
const _hoisted_1$
|
|
3720
|
-
const _hoisted_2$
|
|
3719
|
+
const _hoisted_1$c = { class: "u-tooltip__content" };
|
|
3720
|
+
const _hoisted_2$a = {
|
|
3721
3721
|
key: 0,
|
|
3722
3722
|
class: "u-tooltip__actions"
|
|
3723
3723
|
};
|
|
3724
|
-
const _hoisted_3$
|
|
3724
|
+
const _hoisted_3$8 = ["onClick"];
|
|
3725
3725
|
const _hoisted_4$5 = { class: "u-tooltip__action-text" };
|
|
3726
3726
|
const _hoisted_5$3 = { class: "u-tooltip__text" };
|
|
3727
3727
|
const __default__$g = {
|
|
@@ -3894,8 +3894,8 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
3894
3894
|
vue.createElementVNode("view", {
|
|
3895
3895
|
class: vue.normalizeClass(["u-tooltip__arrow", `u-tooltip__arrow--${actualPlacement.value}`])
|
|
3896
3896
|
}, null, 2),
|
|
3897
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
3898
|
-
__props.actions.length ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
3897
|
+
vue.createElementVNode("view", _hoisted_1$c, [
|
|
3898
|
+
__props.actions.length ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$a, [
|
|
3899
3899
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.actions, (action, index) => {
|
|
3900
3900
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
3901
3901
|
key: index,
|
|
@@ -3903,7 +3903,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
3903
3903
|
onClick: vue.withModifiers(($event) => handleActionClick(action, index), ["stop"])
|
|
3904
3904
|
}, [
|
|
3905
3905
|
vue.createElementVNode("text", _hoisted_4$5, vue.toDisplayString(action.text), 1)
|
|
3906
|
-
], 10, _hoisted_3$
|
|
3906
|
+
], 10, _hoisted_3$8);
|
|
3907
3907
|
}), 128))
|
|
3908
3908
|
])) : vue.renderSlot(_ctx.$slots, "content", { key: 1 }, () => [
|
|
3909
3909
|
vue.createElementVNode("text", _hoisted_5$3, vue.toDisplayString(__props.content), 1)
|
|
@@ -3915,12 +3915,12 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
|
3915
3915
|
}
|
|
3916
3916
|
});
|
|
3917
3917
|
const uTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-dd1bff02"]]);
|
|
3918
|
-
const _hoisted_1$
|
|
3919
|
-
const _hoisted_2$
|
|
3918
|
+
const _hoisted_1$b = ["src"];
|
|
3919
|
+
const _hoisted_2$9 = {
|
|
3920
3920
|
key: 1,
|
|
3921
3921
|
class: "u-avatar__text"
|
|
3922
3922
|
};
|
|
3923
|
-
const _hoisted_3$
|
|
3923
|
+
const _hoisted_3$7 = {
|
|
3924
3924
|
key: 2,
|
|
3925
3925
|
class: "u-avatar__icon"
|
|
3926
3926
|
};
|
|
@@ -4014,7 +4014,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
4014
4014
|
src: __props.src,
|
|
4015
4015
|
mode: "aspectFill",
|
|
4016
4016
|
onError: handleError
|
|
4017
|
-
}, null, 40, _hoisted_1$
|
|
4017
|
+
}, null, 40, _hoisted_1$b)) : __props.text ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_2$9, vue.toDisplayString(displayText.value), 1)) : (vue.openBlock(), vue.createElementBlock("text", _hoisted_3$7, vue.toDisplayString(__props.icon || "👤"), 1))
|
|
4018
4018
|
], true),
|
|
4019
4019
|
__props.badge && !badgeSlot.value ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
4020
4020
|
key: 0,
|
|
@@ -4028,9 +4028,9 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
4028
4028
|
}
|
|
4029
4029
|
});
|
|
4030
4030
|
const uAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-10f478fe"]]);
|
|
4031
|
-
const _hoisted_1$
|
|
4032
|
-
const _hoisted_2$
|
|
4033
|
-
const _hoisted_3$
|
|
4031
|
+
const _hoisted_1$a = { class: "u-empty__image" };
|
|
4032
|
+
const _hoisted_2$8 = ["src"];
|
|
4033
|
+
const _hoisted_3$6 = {
|
|
4034
4034
|
key: 1,
|
|
4035
4035
|
class: "u-empty__image-default"
|
|
4036
4036
|
};
|
|
@@ -4061,14 +4061,14 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
4061
4061
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
4062
4062
|
class: vue.normalizeClass(["u-empty", { "u-empty--inline": __props.inline }])
|
|
4063
4063
|
}, [
|
|
4064
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
4064
|
+
vue.createElementVNode("view", _hoisted_1$a, [
|
|
4065
4065
|
vue.renderSlot(_ctx.$slots, "image", {}, () => [
|
|
4066
4066
|
__props.image ? (vue.openBlock(), vue.createElementBlock("image", {
|
|
4067
4067
|
key: 0,
|
|
4068
4068
|
class: "u-empty__image-src",
|
|
4069
4069
|
src: __props.image,
|
|
4070
4070
|
mode: "aspectFit"
|
|
4071
|
-
}, null, 8, _hoisted_2$
|
|
4071
|
+
}, null, 8, _hoisted_2$8)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$6, [..._cache[0] || (_cache[0] = [
|
|
4072
4072
|
vue.createElementVNode("text", { class: "u-empty__icon" }, "📭", -1)
|
|
4073
4073
|
])]))
|
|
4074
4074
|
], true)
|
|
@@ -4086,11 +4086,11 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
4086
4086
|
}
|
|
4087
4087
|
});
|
|
4088
4088
|
const uEmpty = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-853e089d"]]);
|
|
4089
|
-
const _hoisted_1$
|
|
4089
|
+
const _hoisted_1$9 = {
|
|
4090
4090
|
key: 0,
|
|
4091
4091
|
class: "u-checkbox__check"
|
|
4092
4092
|
};
|
|
4093
|
-
const _hoisted_2$
|
|
4093
|
+
const _hoisted_2$7 = {
|
|
4094
4094
|
key: 0,
|
|
4095
4095
|
class: "u-checkbox__label"
|
|
4096
4096
|
};
|
|
@@ -4169,9 +4169,9 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
4169
4169
|
class: vue.normalizeClass(["u-checkbox__icon", iconClass.value]),
|
|
4170
4170
|
style: vue.normalizeStyle(iconStyle.value)
|
|
4171
4171
|
}, [
|
|
4172
|
-
checked.value ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_1$
|
|
4172
|
+
checked.value ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_1$9, "✓")) : vue.createCommentVNode("", true)
|
|
4173
4173
|
], 6),
|
|
4174
|
-
__props.label || _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
4174
|
+
__props.label || _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$7, [
|
|
4175
4175
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4176
4176
|
vue.createTextVNode(vue.toDisplayString(__props.label), 1)
|
|
4177
4177
|
], true)
|
|
@@ -4181,7 +4181,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
4181
4181
|
}
|
|
4182
4182
|
});
|
|
4183
4183
|
const uCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-6f3ea0c6"]]);
|
|
4184
|
-
const _hoisted_1$
|
|
4184
|
+
const _hoisted_1$8 = { class: "u-checkbox-group" };
|
|
4185
4185
|
const __default__$c = {
|
|
4186
4186
|
options: {
|
|
4187
4187
|
virtualHost: true,
|
|
@@ -4224,18 +4224,18 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
|
4224
4224
|
toggle
|
|
4225
4225
|
});
|
|
4226
4226
|
return (_ctx, _cache) => {
|
|
4227
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
4227
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$8, [
|
|
4228
4228
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4229
4229
|
]);
|
|
4230
4230
|
};
|
|
4231
4231
|
}
|
|
4232
4232
|
});
|
|
4233
4233
|
const uCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-4e51c49e"]]);
|
|
4234
|
-
const _hoisted_1$
|
|
4234
|
+
const _hoisted_1$7 = {
|
|
4235
4235
|
key: 0,
|
|
4236
4236
|
class: "u-radio__dot"
|
|
4237
4237
|
};
|
|
4238
|
-
const _hoisted_2$
|
|
4238
|
+
const _hoisted_2$6 = {
|
|
4239
4239
|
key: 0,
|
|
4240
4240
|
class: "u-radio__label"
|
|
4241
4241
|
};
|
|
@@ -4311,9 +4311,9 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
4311
4311
|
class: vue.normalizeClass(["u-radio__icon", iconClass.value]),
|
|
4312
4312
|
style: vue.normalizeStyle(iconStyle.value)
|
|
4313
4313
|
}, [
|
|
4314
|
-
checked.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
4314
|
+
checked.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$7)) : vue.createCommentVNode("", true)
|
|
4315
4315
|
], 6),
|
|
4316
|
-
__props.label || _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
4316
|
+
__props.label || _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$6, [
|
|
4317
4317
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4318
4318
|
vue.createTextVNode(vue.toDisplayString(__props.label), 1)
|
|
4319
4319
|
], true)
|
|
@@ -4323,7 +4323,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
4323
4323
|
}
|
|
4324
4324
|
});
|
|
4325
4325
|
const uRadio = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-3b4f8627"]]);
|
|
4326
|
-
const _hoisted_1$
|
|
4326
|
+
const _hoisted_1$6 = { class: "u-radio-group" };
|
|
4327
4327
|
const __default__$a = {
|
|
4328
4328
|
options: {
|
|
4329
4329
|
virtualHost: true,
|
|
@@ -4357,19 +4357,19 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
|
4357
4357
|
select
|
|
4358
4358
|
});
|
|
4359
4359
|
return (_ctx, _cache) => {
|
|
4360
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
4360
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$6, [
|
|
4361
4361
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4362
4362
|
]);
|
|
4363
4363
|
};
|
|
4364
4364
|
}
|
|
4365
4365
|
});
|
|
4366
4366
|
const uRadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-04ea4949"]]);
|
|
4367
|
-
const _hoisted_1$
|
|
4368
|
-
const _hoisted_2$
|
|
4367
|
+
const _hoisted_1$5 = { class: "u-toast__content" };
|
|
4368
|
+
const _hoisted_2$5 = {
|
|
4369
4369
|
key: 0,
|
|
4370
4370
|
class: "u-toast__loading"
|
|
4371
4371
|
};
|
|
4372
|
-
const _hoisted_3$
|
|
4372
|
+
const _hoisted_3$5 = {
|
|
4373
4373
|
key: 1,
|
|
4374
4374
|
class: "u-toast__icon"
|
|
4375
4375
|
};
|
|
@@ -4448,10 +4448,10 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4448
4448
|
class: vue.normalizeClass(["u-toast", toastClass.value]),
|
|
4449
4449
|
style: vue.normalizeStyle(toastStyle.value)
|
|
4450
4450
|
}, [
|
|
4451
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
4452
|
-
__props.type === "loading" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
4451
|
+
vue.createElementVNode("view", _hoisted_1$5, [
|
|
4452
|
+
__props.type === "loading" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$5, [..._cache[0] || (_cache[0] = [
|
|
4453
4453
|
vue.createElementVNode("view", { class: "u-toast__loading-icon" }, null, -1)
|
|
4454
|
-
])])) : __props.icon ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_3$
|
|
4454
|
+
])])) : __props.icon ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_3$5, vue.toDisplayString(__props.icon), 1)) : vue.createCommentVNode("", true),
|
|
4455
4455
|
__props.message ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_4$2, vue.toDisplayString(__props.message), 1)) : vue.createCommentVNode("", true)
|
|
4456
4456
|
])
|
|
4457
4457
|
], 6)) : vue.createCommentVNode("", true);
|
|
@@ -4558,10 +4558,10 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4558
4558
|
};
|
|
4559
4559
|
}
|
|
4560
4560
|
});
|
|
4561
|
-
const uPopup = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
4562
|
-
const _hoisted_1$
|
|
4563
|
-
const _hoisted_2$
|
|
4564
|
-
const _hoisted_3$
|
|
4561
|
+
const uPopup = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-428f822b"]]);
|
|
4562
|
+
const _hoisted_1$4 = { class: "u-code-input" };
|
|
4563
|
+
const _hoisted_2$4 = { class: "u-code-input__wrapper" };
|
|
4564
|
+
const _hoisted_3$4 = {
|
|
4565
4565
|
key: 0,
|
|
4566
4566
|
class: "u-code-input__char"
|
|
4567
4567
|
};
|
|
@@ -4658,15 +4658,15 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4658
4658
|
emit("blur");
|
|
4659
4659
|
};
|
|
4660
4660
|
return (_ctx, _cache) => {
|
|
4661
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
4662
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
4661
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$4, [
|
|
4662
|
+
vue.createElementVNode("view", _hoisted_2$4, [
|
|
4663
4663
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.length, (i) => {
|
|
4664
4664
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
4665
4665
|
key: i,
|
|
4666
4666
|
class: vue.normalizeClass(["u-code-input__item", itemClass(i)]),
|
|
4667
4667
|
style: vue.normalizeStyle(itemStyle.value)
|
|
4668
4668
|
}, [
|
|
4669
|
-
values.value[i - 1] && !__props.password ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_3$
|
|
4669
|
+
values.value[i - 1] && !__props.password ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_3$4, vue.toDisplayString(values.value[i - 1]), 1)) : values.value[i - 1] && __props.password ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$1)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$1, vue.toDisplayString(__props.placeholderChar), 1)),
|
|
4670
4670
|
__props.focus && i - 1 === currentIndex.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6)) : vue.createCommentVNode("", true)
|
|
4671
4671
|
], 6);
|
|
4672
4672
|
}), 128))
|
|
@@ -4688,12 +4688,12 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4688
4688
|
}
|
|
4689
4689
|
});
|
|
4690
4690
|
const uCodeInput = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-9fffa23f"]]);
|
|
4691
|
-
const _hoisted_1$
|
|
4691
|
+
const _hoisted_1$3 = {
|
|
4692
4692
|
key: 0,
|
|
4693
4693
|
class: "u-skeleton__content"
|
|
4694
4694
|
};
|
|
4695
|
-
const _hoisted_2$
|
|
4696
|
-
const _hoisted_3$
|
|
4695
|
+
const _hoisted_2$3 = { class: "u-skeleton__content" };
|
|
4696
|
+
const _hoisted_3$3 = { class: "u-skeleton__paragraphs" };
|
|
4697
4697
|
const __default__$6 = {
|
|
4698
4698
|
options: {
|
|
4699
4699
|
virtualHost: true,
|
|
@@ -4754,7 +4754,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4754
4754
|
return style;
|
|
4755
4755
|
};
|
|
4756
4756
|
return (_ctx, _cache) => {
|
|
4757
|
-
return !__props.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
4757
|
+
return !__props.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$3, [
|
|
4758
4758
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4759
4759
|
])) : (vue.openBlock(), vue.createElementBlock("view", {
|
|
4760
4760
|
key: 1,
|
|
@@ -4765,13 +4765,13 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4765
4765
|
class: vue.normalizeClass(["u-skeleton__avatar", `u-skeleton__avatar--${__props.avatarShape}`]),
|
|
4766
4766
|
style: vue.normalizeStyle(avatarStyle.value)
|
|
4767
4767
|
}, null, 6)) : vue.createCommentVNode("", true),
|
|
4768
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
4768
|
+
vue.createElementVNode("view", _hoisted_2$3, [
|
|
4769
4769
|
__props.title ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
4770
4770
|
key: 0,
|
|
4771
4771
|
class: "u-skeleton__title",
|
|
4772
4772
|
style: vue.normalizeStyle(titleStyle.value)
|
|
4773
4773
|
}, null, 4)) : vue.createCommentVNode("", true),
|
|
4774
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
4774
|
+
vue.createElementVNode("view", _hoisted_3$3, [
|
|
4775
4775
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(rowList.value, (row, index) => {
|
|
4776
4776
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
4777
4777
|
key: index,
|
|
@@ -4919,9 +4919,9 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4919
4919
|
}
|
|
4920
4920
|
});
|
|
4921
4921
|
const uLink = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-f60d6c27"]]);
|
|
4922
|
-
const _hoisted_1$
|
|
4923
|
-
const _hoisted_2$
|
|
4924
|
-
const _hoisted_3$
|
|
4922
|
+
const _hoisted_1$2 = { class: "u-read-more" };
|
|
4923
|
+
const _hoisted_2$2 = { class: "u-read-more__toggle-text" };
|
|
4924
|
+
const _hoisted_3$2 = { class: "u-read-more__toggle-icon" };
|
|
4925
4925
|
const __default__$3 = {
|
|
4926
4926
|
options: {
|
|
4927
4927
|
virtualHost: true,
|
|
@@ -4968,7 +4968,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4968
4968
|
}
|
|
4969
4969
|
};
|
|
4970
4970
|
return (_ctx, _cache) => {
|
|
4971
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
4971
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$2, [
|
|
4972
4972
|
vue.createElementVNode("view", {
|
|
4973
4973
|
class: "u-read-more__content",
|
|
4974
4974
|
style: vue.normalizeStyle(contentStyle.value)
|
|
@@ -4980,17 +4980,17 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4980
4980
|
class: "u-read-more__toggle",
|
|
4981
4981
|
onClick: handleToggle
|
|
4982
4982
|
}, [
|
|
4983
|
-
vue.createElementVNode("text", _hoisted_2$
|
|
4984
|
-
vue.createElementVNode("text", _hoisted_3$
|
|
4983
|
+
vue.createElementVNode("text", _hoisted_2$2, vue.toDisplayString(toggleText.value), 1),
|
|
4984
|
+
vue.createElementVNode("text", _hoisted_3$2, vue.toDisplayString(expanded.value ? "↑" : "↓"), 1)
|
|
4985
4985
|
])) : vue.createCommentVNode("", true)
|
|
4986
4986
|
]);
|
|
4987
4987
|
};
|
|
4988
4988
|
}
|
|
4989
4989
|
});
|
|
4990
4990
|
const uReadMore = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-b31720eb"]]);
|
|
4991
|
-
const _hoisted_1$
|
|
4992
|
-
const _hoisted_2$
|
|
4993
|
-
const _hoisted_3$
|
|
4991
|
+
const _hoisted_1$1 = { class: "u-tabbar" };
|
|
4992
|
+
const _hoisted_2$1 = { class: "u-tabbar__nav-wrap" };
|
|
4993
|
+
const _hoisted_3$1 = { class: "u-tabbar__center" };
|
|
4994
4994
|
const _hoisted_4 = { class: "u-tabbar__center-brand" };
|
|
4995
4995
|
const _hoisted_5 = { class: "u-tabbar__center-text" };
|
|
4996
4996
|
const __default__$2 = {
|
|
@@ -5020,8 +5020,8 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5020
5020
|
emit("tab-change", tab);
|
|
5021
5021
|
};
|
|
5022
5022
|
return (_ctx, _cache) => {
|
|
5023
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
5024
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
5023
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1, [
|
|
5024
|
+
vue.createElementVNode("view", _hoisted_2$1, [
|
|
5025
5025
|
vue.createElementVNode("view", {
|
|
5026
5026
|
class: vue.normalizeClass(["u-tabbar__tab-btn", { "u-tabbar__tab-btn--active": __props.modelValue === __props.leftTab.value }]),
|
|
5027
5027
|
onClick: _cache[0] || (_cache[0] = ($event) => switchTab(__props.leftTab.value))
|
|
@@ -5037,7 +5037,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5037
5037
|
style: vue.normalizeStyle({ color: __props.modelValue === __props.leftTab.value ? __props.activeColor : __props.inactiveColor })
|
|
5038
5038
|
}, vue.toDisplayString(__props.leftTab.label), 5)
|
|
5039
5039
|
], 2),
|
|
5040
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
5040
|
+
vue.createElementVNode("view", _hoisted_3$1, [
|
|
5041
5041
|
vue.createElementVNode("view", {
|
|
5042
5042
|
class: vue.normalizeClass(["u-tabbar__center-btn", {
|
|
5043
5043
|
"u-tabbar__center-btn--active": __props.modelValue === __props.centerTab.value,
|
|
@@ -5070,9 +5070,6 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5070
5070
|
}
|
|
5071
5071
|
});
|
|
5072
5072
|
const uTabbar = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-10cb84bc"]]);
|
|
5073
|
-
const _hoisted_1$1 = { class: "u-qrcode" };
|
|
5074
|
-
const _hoisted_2$1 = ["canvas-id"];
|
|
5075
|
-
const _hoisted_3$1 = ["src"];
|
|
5076
5073
|
const __default__$1 = {
|
|
5077
5074
|
options: {
|
|
5078
5075
|
virtualHost: true,
|
|
@@ -5091,9 +5088,16 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5091
5088
|
},
|
|
5092
5089
|
setup(__props) {
|
|
5093
5090
|
const props = __props;
|
|
5094
|
-
const
|
|
5095
|
-
const
|
|
5096
|
-
|
|
5091
|
+
const matrix = vue.ref([]);
|
|
5092
|
+
const cellSize = vue.computed(() => {
|
|
5093
|
+
if (matrix.value.length === 0) return 0;
|
|
5094
|
+
return props.size / matrix.value.length;
|
|
5095
|
+
});
|
|
5096
|
+
const matrixStyle = vue.computed(() => ({
|
|
5097
|
+
width: `${props.size}px`,
|
|
5098
|
+
height: `${props.size}px`,
|
|
5099
|
+
backgroundColor: props.bgColor
|
|
5100
|
+
}));
|
|
5097
5101
|
const QRCode = {
|
|
5098
5102
|
// 错误纠正级别
|
|
5099
5103
|
ECL: { L: 1, M: 0, Q: 3, H: 2 },
|
|
@@ -5156,50 +5160,50 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5156
5160
|
const level = this.ECL[ecl] || 0;
|
|
5157
5161
|
const version = this.getVersion(data.length, level);
|
|
5158
5162
|
const size = version * 4 + 17;
|
|
5159
|
-
const
|
|
5163
|
+
const result = [];
|
|
5160
5164
|
for (let i = 0; i < size; i++) {
|
|
5161
|
-
|
|
5165
|
+
result[i] = new Array(size).fill(-1);
|
|
5162
5166
|
}
|
|
5163
|
-
this.addFinderPattern(
|
|
5164
|
-
this.addFinderPattern(
|
|
5165
|
-
this.addFinderPattern(
|
|
5166
|
-
this.addSeparator(
|
|
5167
|
-
this.addAlignmentPattern(
|
|
5168
|
-
this.addTimingPattern(
|
|
5169
|
-
this.addFormatInfo(
|
|
5170
|
-
this.fillData(
|
|
5171
|
-
return
|
|
5167
|
+
this.addFinderPattern(result, 0, 0);
|
|
5168
|
+
this.addFinderPattern(result, size - 7, 0);
|
|
5169
|
+
this.addFinderPattern(result, 0, size - 7);
|
|
5170
|
+
this.addSeparator(result, size);
|
|
5171
|
+
this.addAlignmentPattern(result, version);
|
|
5172
|
+
this.addTimingPattern(result, size);
|
|
5173
|
+
this.addFormatInfo(result, size);
|
|
5174
|
+
this.fillData(result, data, version, size);
|
|
5175
|
+
return result;
|
|
5172
5176
|
},
|
|
5173
|
-
addFinderPattern(
|
|
5177
|
+
addFinderPattern(matrix2, row, col) {
|
|
5174
5178
|
for (let r = 0; r < 7; r++) {
|
|
5175
5179
|
for (let c = 0; c < 7; c++) {
|
|
5176
|
-
if (row + r <
|
|
5180
|
+
if (row + r < matrix2.length && col + c < matrix2.length) {
|
|
5177
5181
|
if (r === 0 || r === 6 || c === 0 || c === 6 || r >= 2 && r <= 4 && c >= 2 && c <= 4) {
|
|
5178
|
-
|
|
5182
|
+
matrix2[row + r][col + c] = 1;
|
|
5179
5183
|
} else {
|
|
5180
|
-
|
|
5184
|
+
matrix2[row + r][col + c] = 0;
|
|
5181
5185
|
}
|
|
5182
5186
|
}
|
|
5183
5187
|
}
|
|
5184
5188
|
}
|
|
5185
5189
|
},
|
|
5186
|
-
addSeparator(
|
|
5190
|
+
addSeparator(matrix2, size) {
|
|
5187
5191
|
for (let i = 0; i < 8; i++) {
|
|
5188
|
-
if (i < size &&
|
|
5189
|
-
if (i < size &&
|
|
5190
|
-
if (size - 8 + i < size &&
|
|
5191
|
-
if (i < size &&
|
|
5192
|
-
if (i < size &&
|
|
5193
|
-
if (size - 8 + i < size &&
|
|
5192
|
+
if (i < size && matrix2[7]) matrix2[7][i] = 0;
|
|
5193
|
+
if (i < size && matrix2[i]) matrix2[i][7] = 0;
|
|
5194
|
+
if (size - 8 + i < size && matrix2[7]) matrix2[7][size - 8 + i] = 0;
|
|
5195
|
+
if (i < size && matrix2[i]) matrix2[i][size - 8] = 0;
|
|
5196
|
+
if (i < size && matrix2[size - 8]) matrix2[size - 8][i] = 0;
|
|
5197
|
+
if (size - 8 + i < size && matrix2[size - 1 - i]) matrix2[size - 1 - i][7] = 0;
|
|
5194
5198
|
}
|
|
5195
5199
|
},
|
|
5196
|
-
addAlignmentPattern(
|
|
5200
|
+
addAlignmentPattern(matrix2, version) {
|
|
5197
5201
|
if (version < 2) return;
|
|
5198
5202
|
const positions = this.getAlignmentPositions(version);
|
|
5199
5203
|
for (const row of positions) {
|
|
5200
5204
|
for (const col of positions) {
|
|
5201
|
-
if (
|
|
5202
|
-
this.addAlignmentPatternAt(
|
|
5205
|
+
if (matrix2[row] && matrix2[row][col] === -1) {
|
|
5206
|
+
this.addAlignmentPatternAt(matrix2, row, col);
|
|
5203
5207
|
}
|
|
5204
5208
|
}
|
|
5205
5209
|
}
|
|
@@ -5215,36 +5219,36 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5215
5219
|
}
|
|
5216
5220
|
return [...new Set(positions)].sort((a, b) => a - b);
|
|
5217
5221
|
},
|
|
5218
|
-
addAlignmentPatternAt(
|
|
5222
|
+
addAlignmentPatternAt(matrix2, row, col) {
|
|
5219
5223
|
for (let r = -2; r <= 2; r++) {
|
|
5220
5224
|
for (let c = -2; c <= 2; c++) {
|
|
5221
|
-
if (row + r >= 0 && row + r <
|
|
5225
|
+
if (row + r >= 0 && row + r < matrix2.length && col + c >= 0 && col + c < matrix2.length) {
|
|
5222
5226
|
if (Math.abs(r) === 2 || Math.abs(c) === 2 || r === 0 && c === 0) {
|
|
5223
|
-
|
|
5227
|
+
matrix2[row + r][col + c] = 1;
|
|
5224
5228
|
} else {
|
|
5225
|
-
|
|
5229
|
+
matrix2[row + r][col + c] = 0;
|
|
5226
5230
|
}
|
|
5227
5231
|
}
|
|
5228
5232
|
}
|
|
5229
5233
|
}
|
|
5230
5234
|
},
|
|
5231
|
-
addTimingPattern(
|
|
5235
|
+
addTimingPattern(matrix2, size) {
|
|
5232
5236
|
for (let i = 8; i < size - 8; i++) {
|
|
5233
|
-
if (
|
|
5234
|
-
if (
|
|
5237
|
+
if (matrix2[6] && matrix2[6][i] === -1) matrix2[6][i] = i % 2 === 0 ? 1 : 0;
|
|
5238
|
+
if (matrix2[i] && matrix2[i][6] === -1) matrix2[i][6] = i % 2 === 0 ? 1 : 0;
|
|
5235
5239
|
}
|
|
5236
5240
|
},
|
|
5237
|
-
addFormatInfo(
|
|
5241
|
+
addFormatInfo(matrix2, size) {
|
|
5238
5242
|
for (let i = 0; i < 9; i++) {
|
|
5239
|
-
if (
|
|
5240
|
-
if (
|
|
5243
|
+
if (matrix2[8] && matrix2[8][i] === -1) matrix2[8][i] = 0;
|
|
5244
|
+
if (matrix2[i] && matrix2[i][8] === -1) matrix2[i][8] = 0;
|
|
5241
5245
|
}
|
|
5242
5246
|
for (let i = 0; i < 8; i++) {
|
|
5243
|
-
if (
|
|
5244
|
-
if (
|
|
5247
|
+
if (matrix2[8] && matrix2[8][size - 1 - i] === -1) matrix2[8][size - 1 - i] = 0;
|
|
5248
|
+
if (matrix2[size - 1 - i] && matrix2[size - 1 - i][8] === -1) matrix2[size - 1 - i][8] = 0;
|
|
5245
5249
|
}
|
|
5246
5250
|
},
|
|
5247
|
-
fillData(
|
|
5251
|
+
fillData(matrix2, data, version, size) {
|
|
5248
5252
|
const bytes = this.encodeData(data);
|
|
5249
5253
|
let bitIndex = 0;
|
|
5250
5254
|
let upward = true;
|
|
@@ -5253,9 +5257,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5253
5257
|
for (let row = upward ? size - 1 : 0; upward ? row >= 0 : row < size; upward ? row-- : row++) {
|
|
5254
5258
|
for (let c = 0; c < 2; c++) {
|
|
5255
5259
|
const currentCol = col - c;
|
|
5256
|
-
if (
|
|
5260
|
+
if (matrix2[row] && matrix2[row][currentCol] === -1) {
|
|
5257
5261
|
const bit = bitIndex < bytes.length * 8 ? bytes[Math.floor(bitIndex / 8)] >> 7 - bitIndex % 8 & 1 : bitIndex % 2 === 0 ? 1 : 0;
|
|
5258
|
-
|
|
5262
|
+
matrix2[row][currentCol] = bit;
|
|
5259
5263
|
bitIndex++;
|
|
5260
5264
|
}
|
|
5261
5265
|
}
|
|
@@ -5273,75 +5277,57 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5273
5277
|
for (let i = 0; i < data.length; i++) {
|
|
5274
5278
|
bytes.push(data.charCodeAt(i));
|
|
5275
5279
|
}
|
|
5276
|
-
bytes.push(0);
|
|
5277
|
-
bytes.push(0);
|
|
5278
|
-
bytes.push(0);
|
|
5279
|
-
bytes.push(0);
|
|
5280
|
+
bytes.push(0, 0, 0, 0);
|
|
5280
5281
|
return bytes;
|
|
5281
5282
|
}
|
|
5282
5283
|
};
|
|
5283
|
-
const generateQRCode =
|
|
5284
|
-
if (!props.value)
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
await vue.nextTick();
|
|
5288
|
-
const matrix = QRCode.generate(props.value, props.errorCorrectLevel);
|
|
5289
|
-
const size = matrix.length;
|
|
5290
|
-
const cellSize = canvasWidth.value / size;
|
|
5291
|
-
const ctx = uni.createCanvasContext(canvasId.value);
|
|
5292
|
-
ctx.setFillStyle(props.bgColor);
|
|
5293
|
-
ctx.fillRect(0, 0, canvasWidth.value, canvasWidth.value);
|
|
5294
|
-
ctx.setFillStyle(props.color);
|
|
5295
|
-
for (let row = 0; row < size; row++) {
|
|
5296
|
-
for (let col = 0; col < size; col++) {
|
|
5297
|
-
if (matrix[row][col] === 1) {
|
|
5298
|
-
ctx.fillRect(col * cellSize, row * cellSize, cellSize, cellSize);
|
|
5299
|
-
}
|
|
5300
|
-
}
|
|
5284
|
+
const generateQRCode = () => {
|
|
5285
|
+
if (!props.value) {
|
|
5286
|
+
matrix.value = [];
|
|
5287
|
+
return;
|
|
5301
5288
|
}
|
|
5302
|
-
|
|
5303
|
-
setTimeout(() => {
|
|
5304
|
-
uni.canvasToTempFilePath({
|
|
5305
|
-
canvasId: canvasId.value,
|
|
5306
|
-
width: canvasWidth.value,
|
|
5307
|
-
height: canvasWidth.value,
|
|
5308
|
-
success: (res) => {
|
|
5309
|
-
imageUrl.value = res.tempFilePath;
|
|
5310
|
-
},
|
|
5311
|
-
fail: (err) => {
|
|
5312
|
-
console.error("生成二维码失败:", err);
|
|
5313
|
-
}
|
|
5314
|
-
});
|
|
5315
|
-
}, 100);
|
|
5316
|
-
});
|
|
5289
|
+
matrix.value = QRCode.generate(props.value, props.errorCorrectLevel);
|
|
5317
5290
|
};
|
|
5318
5291
|
vue.watch(() => props.value, generateQRCode);
|
|
5319
|
-
vue.watch(() => props.
|
|
5320
|
-
vue.watch(() => props.color, generateQRCode);
|
|
5321
|
-
vue.watch(() => props.bgColor, generateQRCode);
|
|
5292
|
+
vue.watch(() => props.errorCorrectLevel, generateQRCode);
|
|
5322
5293
|
vue.onMounted(() => {
|
|
5323
5294
|
generateQRCode();
|
|
5324
5295
|
});
|
|
5325
5296
|
return (_ctx, _cache) => {
|
|
5326
|
-
return vue.openBlock(), vue.createElementBlock("view",
|
|
5327
|
-
|
|
5297
|
+
return vue.openBlock(), vue.createElementBlock("view", {
|
|
5298
|
+
class: "u-qrcode",
|
|
5299
|
+
style: vue.normalizeStyle({ width: `${__props.size}px`, height: `${__props.size}px` })
|
|
5300
|
+
}, [
|
|
5301
|
+
matrix.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
5328
5302
|
key: 0,
|
|
5329
|
-
"
|
|
5330
|
-
style: vue.normalizeStyle(
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5303
|
+
class: "u-qrcode__matrix",
|
|
5304
|
+
style: vue.normalizeStyle(matrixStyle.value)
|
|
5305
|
+
}, [
|
|
5306
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(matrix.value, (row, rowIndex) => {
|
|
5307
|
+
return vue.openBlock(), vue.createElementBlock("view", {
|
|
5308
|
+
key: rowIndex,
|
|
5309
|
+
class: "u-qrcode__row",
|
|
5310
|
+
style: vue.normalizeStyle({ height: `${cellSize.value}px` })
|
|
5311
|
+
}, [
|
|
5312
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(row, (cell, colIndex) => {
|
|
5313
|
+
return vue.openBlock(), vue.createElementBlock("view", {
|
|
5314
|
+
key: colIndex,
|
|
5315
|
+
class: "u-qrcode__cell",
|
|
5316
|
+
style: vue.normalizeStyle({
|
|
5317
|
+
width: `${cellSize.value}px`,
|
|
5318
|
+
height: `${cellSize.value}px`,
|
|
5319
|
+
backgroundColor: cell === 1 ? __props.color : __props.bgColor
|
|
5320
|
+
})
|
|
5321
|
+
}, null, 4);
|
|
5322
|
+
}), 128))
|
|
5323
|
+
], 4);
|
|
5324
|
+
}), 128))
|
|
5325
|
+
], 4)) : vue.createCommentVNode("", true)
|
|
5326
|
+
], 4);
|
|
5341
5327
|
};
|
|
5342
5328
|
}
|
|
5343
5329
|
});
|
|
5344
|
-
const uQrcode = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
5330
|
+
const uQrcode = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-ba96b937"]]);
|
|
5345
5331
|
const _hoisted_1 = { class: "u-barcode" };
|
|
5346
5332
|
const _hoisted_2 = ["canvas-id"];
|
|
5347
5333
|
const _hoisted_3 = ["src"];
|