@atooyu/uxto-ui 1.1.46 → 1.1.47
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 +64 -58
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +64 -58
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +21 -14
- package/package.json +1 -1
- package/src/components/u-tabbar/u-tabbar.vue +40 -27
package/dist/index.js
CHANGED
|
@@ -108,7 +108,7 @@ const _hoisted_5$c = {
|
|
|
108
108
|
key: 2,
|
|
109
109
|
class: "u-input__suffix"
|
|
110
110
|
};
|
|
111
|
-
const _hoisted_6$
|
|
111
|
+
const _hoisted_6$8 = { class: "u-input__icon" };
|
|
112
112
|
const __default__$M = {
|
|
113
113
|
options: {
|
|
114
114
|
virtualHost: true,
|
|
@@ -199,7 +199,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
199
199
|
])])) : vue.createCommentVNode("", true),
|
|
200
200
|
_ctx.$slots.suffix || __props.suffixIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$c, [
|
|
201
201
|
vue.renderSlot(_ctx.$slots, "suffix", {}, () => [
|
|
202
|
-
vue.createElementVNode("text", _hoisted_6$
|
|
202
|
+
vue.createElementVNode("text", _hoisted_6$8, vue.toDisplayString(__props.suffixIcon), 1)
|
|
203
203
|
], true)
|
|
204
204
|
])) : vue.createCommentVNode("", true)
|
|
205
205
|
], 2);
|
|
@@ -215,8 +215,8 @@ const _hoisted_2$u = {
|
|
|
215
215
|
const _hoisted_3$o = ["src"];
|
|
216
216
|
const _hoisted_4$f = { class: "u-cell__content" };
|
|
217
217
|
const _hoisted_5$b = { class: "u-cell__title" };
|
|
218
|
-
const _hoisted_6$
|
|
219
|
-
const _hoisted_7$
|
|
218
|
+
const _hoisted_6$7 = { class: "u-cell__title-text" };
|
|
219
|
+
const _hoisted_7$6 = {
|
|
220
220
|
key: 0,
|
|
221
221
|
class: "u-cell__label"
|
|
222
222
|
};
|
|
@@ -283,8 +283,8 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
|
|
|
283
283
|
])) : vue.createCommentVNode("", true),
|
|
284
284
|
vue.createElementVNode("view", _hoisted_4$f, [
|
|
285
285
|
vue.createElementVNode("view", _hoisted_5$b, [
|
|
286
|
-
vue.createElementVNode("text", _hoisted_6$
|
|
287
|
-
__props.label ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_7$
|
|
286
|
+
vue.createElementVNode("text", _hoisted_6$7, vue.toDisplayString(__props.title), 1),
|
|
287
|
+
__props.label ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_7$6, vue.toDisplayString(__props.label), 1)) : vue.createCommentVNode("", true)
|
|
288
288
|
]),
|
|
289
289
|
vue.createElementVNode("view", _hoisted_8$4, [
|
|
290
290
|
vue.renderSlot(_ctx.$slots, "value", {}, () => [
|
|
@@ -2086,7 +2086,7 @@ const _hoisted_4$c = {
|
|
|
2086
2086
|
class: "u-grid-item__badge"
|
|
2087
2087
|
};
|
|
2088
2088
|
const _hoisted_5$9 = { class: "u-grid-item__badge-text" };
|
|
2089
|
-
const _hoisted_6$
|
|
2089
|
+
const _hoisted_6$6 = {
|
|
2090
2090
|
key: 1,
|
|
2091
2091
|
class: "u-grid-item__text"
|
|
2092
2092
|
};
|
|
@@ -2158,7 +2158,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
2158
2158
|
vue.createElementVNode("text", _hoisted_5$9, vue.toDisplayString(__props.badge), 1)
|
|
2159
2159
|
])) : vue.createCommentVNode("", true)
|
|
2160
2160
|
])) : vue.createCommentVNode("", true),
|
|
2161
|
-
__props.text || _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$
|
|
2161
|
+
__props.text || _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$6, [
|
|
2162
2162
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2163
2163
|
vue.createTextVNode(vue.toDisplayString(__props.text), 1)
|
|
2164
2164
|
], true)
|
|
@@ -2687,8 +2687,8 @@ const _hoisted_4$9 = {
|
|
|
2687
2687
|
class: "u-upload__video"
|
|
2688
2688
|
};
|
|
2689
2689
|
const _hoisted_5$7 = ["src", "onClick"];
|
|
2690
|
-
const _hoisted_6$
|
|
2691
|
-
const _hoisted_7$
|
|
2690
|
+
const _hoisted_6$5 = ["onClick"];
|
|
2691
|
+
const _hoisted_7$5 = { class: "u-upload__file-name" };
|
|
2692
2692
|
const _hoisted_8$3 = {
|
|
2693
2693
|
key: 3,
|
|
2694
2694
|
class: "u-upload__progress"
|
|
@@ -2842,8 +2842,8 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
|
|
|
2842
2842
|
onClick: ($event) => handlePreview(file, index)
|
|
2843
2843
|
}, [
|
|
2844
2844
|
_cache[1] || (_cache[1] = vue.createElementVNode("text", { class: "u-upload__file-icon" }, "📄", -1)),
|
|
2845
|
-
vue.createElementVNode("text", _hoisted_7$
|
|
2846
|
-
], 8, _hoisted_6$
|
|
2845
|
+
vue.createElementVNode("text", _hoisted_7$5, vue.toDisplayString(getFileName(file)), 1)
|
|
2846
|
+
], 8, _hoisted_6$5)),
|
|
2847
2847
|
file.status === "uploading" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_8$3, [
|
|
2848
2848
|
vue.createElementVNode("view", {
|
|
2849
2849
|
class: "u-upload__progress-bar",
|
|
@@ -2997,8 +2997,8 @@ const _hoisted_5$6 = {
|
|
|
2997
2997
|
key: 0,
|
|
2998
2998
|
class: "u-slider__tooltip"
|
|
2999
2999
|
};
|
|
3000
|
-
const _hoisted_6$
|
|
3001
|
-
const _hoisted_7$
|
|
3000
|
+
const _hoisted_6$4 = { class: "u-slider__tooltip-text" };
|
|
3001
|
+
const _hoisted_7$4 = {
|
|
3002
3002
|
key: 0,
|
|
3003
3003
|
class: "u-slider__tooltip"
|
|
3004
3004
|
};
|
|
@@ -3268,7 +3268,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
3268
3268
|
onTouchend: vue.withModifiers(handleButtonTouchEnd, ["stop"])
|
|
3269
3269
|
}, [
|
|
3270
3270
|
__props.showValue ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$6, [
|
|
3271
|
-
vue.createElementVNode("text", _hoisted_6$
|
|
3271
|
+
vue.createElementVNode("text", _hoisted_6$4, vue.toDisplayString(startValue.value), 1)
|
|
3272
3272
|
])) : vue.createCommentVNode("", true)
|
|
3273
3273
|
], 36),
|
|
3274
3274
|
vue.createElementVNode("view", {
|
|
@@ -3278,7 +3278,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
|
3278
3278
|
onTouchmove: vue.withModifiers(handleEndButtonTouchMove, ["stop"]),
|
|
3279
3279
|
onTouchend: vue.withModifiers(handleButtonTouchEnd, ["stop"])
|
|
3280
3280
|
}, [
|
|
3281
|
-
__props.showValue ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$
|
|
3281
|
+
__props.showValue ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$4, [
|
|
3282
3282
|
vue.createElementVNode("text", _hoisted_8$2, vue.toDisplayString(endValue.value), 1)
|
|
3283
3283
|
])) : vue.createCommentVNode("", true)
|
|
3284
3284
|
], 36)
|
|
@@ -3313,11 +3313,11 @@ const _hoisted_4$7 = {
|
|
|
3313
3313
|
class: "u-list__loading"
|
|
3314
3314
|
};
|
|
3315
3315
|
const _hoisted_5$5 = { class: "u-list__loading-text" };
|
|
3316
|
-
const _hoisted_6$
|
|
3316
|
+
const _hoisted_6$3 = {
|
|
3317
3317
|
key: 2,
|
|
3318
3318
|
class: "u-list__finished"
|
|
3319
3319
|
};
|
|
3320
|
-
const _hoisted_7$
|
|
3320
|
+
const _hoisted_7$3 = { class: "u-list__finished-text" };
|
|
3321
3321
|
const _hoisted_8$1 = { class: "u-list__error-text" };
|
|
3322
3322
|
const _hoisted_9$1 = {
|
|
3323
3323
|
key: 4,
|
|
@@ -3366,8 +3366,8 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
|
3366
3366
|
_cache[0] || (_cache[0] = vue.createElementVNode("view", { class: "u-list__loading-icon" }, null, -1)),
|
|
3367
3367
|
vue.createElementVNode("text", _hoisted_5$5, vue.toDisplayString(__props.loadingText), 1)
|
|
3368
3368
|
])) : vue.createCommentVNode("", true),
|
|
3369
|
-
__props.finished && !__props.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$
|
|
3370
|
-
vue.createElementVNode("text", _hoisted_7$
|
|
3369
|
+
__props.finished && !__props.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$3, [
|
|
3370
|
+
vue.createElementVNode("text", _hoisted_7$3, vue.toDisplayString(__props.finishedText), 1)
|
|
3371
3371
|
])) : vue.createCommentVNode("", true),
|
|
3372
3372
|
__props.error && !__props.loading ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
3373
3373
|
key: 3,
|
|
@@ -3400,11 +3400,11 @@ const _hoisted_5$4 = {
|
|
|
3400
3400
|
key: 0,
|
|
3401
3401
|
class: "u-list-item__title"
|
|
3402
3402
|
};
|
|
3403
|
-
const _hoisted_6$
|
|
3403
|
+
const _hoisted_6$2 = {
|
|
3404
3404
|
key: 1,
|
|
3405
3405
|
class: "u-list-item__desc"
|
|
3406
3406
|
};
|
|
3407
|
-
const _hoisted_7$
|
|
3407
|
+
const _hoisted_7$2 = {
|
|
3408
3408
|
key: 2,
|
|
3409
3409
|
class: "u-list-item__content"
|
|
3410
3410
|
};
|
|
@@ -3476,12 +3476,12 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
|
3476
3476
|
vue.createTextVNode(vue.toDisplayString(__props.title), 1)
|
|
3477
3477
|
], true)
|
|
3478
3478
|
])) : vue.createCommentVNode("", true),
|
|
3479
|
-
__props.desc || _ctx.$slots.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$
|
|
3479
|
+
__props.desc || _ctx.$slots.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$2, [
|
|
3480
3480
|
vue.renderSlot(_ctx.$slots, "desc", {}, () => [
|
|
3481
3481
|
vue.createTextVNode(vue.toDisplayString(__props.desc), 1)
|
|
3482
3482
|
], true)
|
|
3483
3483
|
])) : vue.createCommentVNode("", true),
|
|
3484
|
-
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$
|
|
3484
|
+
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$2, [
|
|
3485
3485
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
3486
3486
|
])) : vue.createCommentVNode("", true)
|
|
3487
3487
|
]),
|
|
@@ -4512,11 +4512,11 @@ const _hoisted_5$1 = {
|
|
|
4512
4512
|
key: 2,
|
|
4513
4513
|
class: "u-code-input__placeholder"
|
|
4514
4514
|
};
|
|
4515
|
-
const _hoisted_6 = {
|
|
4515
|
+
const _hoisted_6$1 = {
|
|
4516
4516
|
key: 3,
|
|
4517
4517
|
class: "u-code-input__cursor"
|
|
4518
4518
|
};
|
|
4519
|
-
const _hoisted_7 = ["value", "maxlength", "disabled", "focus", "password"];
|
|
4519
|
+
const _hoisted_7$1 = ["value", "maxlength", "disabled", "focus", "password"];
|
|
4520
4520
|
const __default__$7 = {
|
|
4521
4521
|
options: {
|
|
4522
4522
|
virtualHost: true,
|
|
@@ -4606,7 +4606,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4606
4606
|
style: vue.normalizeStyle(itemStyle.value)
|
|
4607
4607
|
}, [
|
|
4608
4608
|
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)),
|
|
4609
|
-
__props.focus && i - 1 === currentIndex.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6)) : vue.createCommentVNode("", true)
|
|
4609
|
+
__props.focus && i - 1 === currentIndex.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$1)) : vue.createCommentVNode("", true)
|
|
4610
4610
|
], 6);
|
|
4611
4611
|
}), 128))
|
|
4612
4612
|
]),
|
|
@@ -4621,7 +4621,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4621
4621
|
onInput: handleInput,
|
|
4622
4622
|
onFocus: handleFocus,
|
|
4623
4623
|
onBlur: handleBlur
|
|
4624
|
-
}, null, 40, _hoisted_7)
|
|
4624
|
+
}, null, 40, _hoisted_7$1)
|
|
4625
4625
|
]);
|
|
4626
4626
|
};
|
|
4627
4627
|
}
|
|
@@ -4930,9 +4930,11 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4930
4930
|
const uReadMore = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-b31720eb"]]);
|
|
4931
4931
|
const _hoisted_1$1 = { class: "u-tabbar" };
|
|
4932
4932
|
const _hoisted_2$1 = { class: "u-tabbar__nav-wrap" };
|
|
4933
|
-
const _hoisted_3$1 = { class: "u-
|
|
4934
|
-
const _hoisted_4 = { class: "u-tabbar__center
|
|
4935
|
-
const _hoisted_5 = { class: "u-tabbar__center-
|
|
4933
|
+
const _hoisted_3$1 = { class: "u-tabbar__tab-content" };
|
|
4934
|
+
const _hoisted_4 = { class: "u-tabbar__center" };
|
|
4935
|
+
const _hoisted_5 = { class: "u-tabbar__center-brand" };
|
|
4936
|
+
const _hoisted_6 = { class: "u-tabbar__center-text" };
|
|
4937
|
+
const _hoisted_7 = { class: "u-tabbar__tab-content" };
|
|
4936
4938
|
const __default__$2 = {
|
|
4937
4939
|
options: {
|
|
4938
4940
|
virtualHost: false,
|
|
@@ -4964,52 +4966,56 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4964
4966
|
vue.createElementVNode("view", _hoisted_2$1, [
|
|
4965
4967
|
vue.createElementVNode("view", {
|
|
4966
4968
|
class: vue.normalizeClass(["u-tabbar__tab-btn", { "u-tabbar__tab-btn--active": __props.modelValue === __props.leftTab.value }]),
|
|
4967
|
-
onTap: _cache[0] || (_cache[0] = ($event) => switchTab(__props.leftTab.value))
|
|
4969
|
+
onTap: _cache[0] || (_cache[0] = vue.withModifiers(($event) => switchTab(__props.leftTab.value), ["stop"]))
|
|
4968
4970
|
}, [
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4971
|
+
vue.createElementVNode("view", _hoisted_3$1, [
|
|
4972
|
+
__props.leftTab.icon ? (vue.openBlock(), vue.createBlock(UIcon, {
|
|
4973
|
+
key: 0,
|
|
4974
|
+
name: __props.leftTab.icon,
|
|
4975
|
+
size: 16,
|
|
4976
|
+
color: __props.modelValue === __props.leftTab.value ? __props.activeColor : __props.inactiveColor
|
|
4977
|
+
}, null, 8, ["name", "color"])) : vue.createCommentVNode("", true),
|
|
4978
|
+
vue.createElementVNode("text", {
|
|
4979
|
+
class: "u-tabbar__tab-text",
|
|
4980
|
+
style: vue.normalizeStyle({ color: __props.modelValue === __props.leftTab.value ? __props.activeColor : __props.inactiveColor })
|
|
4981
|
+
}, vue.toDisplayString(__props.leftTab.label), 5)
|
|
4982
|
+
])
|
|
4979
4983
|
], 34),
|
|
4980
|
-
vue.createElementVNode("view",
|
|
4984
|
+
vue.createElementVNode("view", _hoisted_4, [
|
|
4981
4985
|
vue.createElementVNode("view", {
|
|
4982
4986
|
class: vue.normalizeClass(["u-tabbar__center-btn", {
|
|
4983
4987
|
"u-tabbar__center-btn--active": __props.modelValue === __props.centerTab.value,
|
|
4984
4988
|
"u-tabbar__center-btn--side-active": __props.modelValue === __props.leftTab.value || __props.modelValue === __props.rightTab.value
|
|
4985
4989
|
}]),
|
|
4986
|
-
onTap: _cache[1] || (_cache[1] = ($event) => switchTab(__props.centerTab.value))
|
|
4990
|
+
onTap: _cache[1] || (_cache[1] = vue.withModifiers(($event) => switchTab(__props.centerTab.value), ["stop"]))
|
|
4987
4991
|
}, [
|
|
4988
|
-
vue.createElementVNode("text",
|
|
4989
|
-
vue.createElementVNode("text",
|
|
4992
|
+
vue.createElementVNode("text", _hoisted_5, vue.toDisplayString(__props.centerBrand), 1),
|
|
4993
|
+
vue.createElementVNode("text", _hoisted_6, vue.toDisplayString(__props.centerLabel), 1)
|
|
4990
4994
|
], 34)
|
|
4991
4995
|
]),
|
|
4992
4996
|
vue.createElementVNode("view", {
|
|
4993
4997
|
class: vue.normalizeClass(["u-tabbar__tab-btn", { "u-tabbar__tab-btn--active": __props.modelValue === __props.rightTab.value }]),
|
|
4994
|
-
onTap: _cache[2] || (_cache[2] = ($event) => switchTab(__props.rightTab.value))
|
|
4998
|
+
onTap: _cache[2] || (_cache[2] = vue.withModifiers(($event) => switchTab(__props.rightTab.value), ["stop"]))
|
|
4995
4999
|
}, [
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5000
|
+
vue.createElementVNode("view", _hoisted_7, [
|
|
5001
|
+
__props.rightTab.icon ? (vue.openBlock(), vue.createBlock(UIcon, {
|
|
5002
|
+
key: 0,
|
|
5003
|
+
name: __props.rightTab.icon,
|
|
5004
|
+
size: 16,
|
|
5005
|
+
color: __props.modelValue === __props.rightTab.value ? __props.activeColor : __props.inactiveColor
|
|
5006
|
+
}, null, 8, ["name", "color"])) : vue.createCommentVNode("", true),
|
|
5007
|
+
vue.createElementVNode("text", {
|
|
5008
|
+
class: "u-tabbar__tab-text",
|
|
5009
|
+
style: vue.normalizeStyle({ color: __props.modelValue === __props.rightTab.value ? __props.activeColor : __props.inactiveColor })
|
|
5010
|
+
}, vue.toDisplayString(__props.rightTab.label), 5)
|
|
5011
|
+
])
|
|
5006
5012
|
], 34)
|
|
5007
5013
|
])
|
|
5008
5014
|
]);
|
|
5009
5015
|
};
|
|
5010
5016
|
}
|
|
5011
5017
|
});
|
|
5012
|
-
const uTabbar = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
5018
|
+
const uTabbar = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-4e37a87c"]]);
|
|
5013
5019
|
const __default__$1 = {
|
|
5014
5020
|
options: {
|
|
5015
5021
|
virtualHost: true,
|