@atooyu/uxto-ui 1.1.38 → 1.1.40
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 +13 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -6
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +25 -25
- package/package.json +1 -1
- package/src/components/u-popup/u-popup.vue +14 -2
- package/src/components/u-tabbar/u-tabbar.vue +3 -3
package/dist/index.js
CHANGED
|
@@ -4476,28 +4476,35 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4476
4476
|
...__default__$8,
|
|
4477
4477
|
__name: "u-popup",
|
|
4478
4478
|
props: {
|
|
4479
|
-
|
|
4479
|
+
show: { type: Boolean, default: void 0 },
|
|
4480
|
+
visible: { type: Boolean, default: void 0 },
|
|
4480
4481
|
position: { default: "bottom" },
|
|
4481
4482
|
closeable: { type: Boolean, default: false },
|
|
4482
4483
|
closeOnClickOverlay: { type: Boolean, default: true },
|
|
4483
4484
|
round: { type: Boolean, default: false },
|
|
4484
4485
|
zIndex: { default: 1e3 }
|
|
4485
4486
|
},
|
|
4486
|
-
emits: ["update:visible", "close"],
|
|
4487
|
+
emits: ["update:show", "update:visible", "close"],
|
|
4487
4488
|
setup(__props, { emit: __emit }) {
|
|
4488
4489
|
const props = __props;
|
|
4489
4490
|
const emit = __emit;
|
|
4491
|
+
vue.computed(() => {
|
|
4492
|
+
if (props.show !== void 0) return props.show;
|
|
4493
|
+
if (props.visible !== void 0) return props.visible;
|
|
4494
|
+
return false;
|
|
4495
|
+
});
|
|
4490
4496
|
const handleOverlayClick = () => {
|
|
4491
4497
|
if (props.closeOnClickOverlay) {
|
|
4492
4498
|
handleClose();
|
|
4493
4499
|
}
|
|
4494
4500
|
};
|
|
4495
4501
|
const handleClose = () => {
|
|
4502
|
+
emit("update:show", false);
|
|
4496
4503
|
emit("update:visible", false);
|
|
4497
4504
|
emit("close");
|
|
4498
4505
|
};
|
|
4499
4506
|
return (_ctx, _cache) => {
|
|
4500
|
-
return __props.
|
|
4507
|
+
return __props.show ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$5, [
|
|
4501
4508
|
vue.createElementVNode("view", {
|
|
4502
4509
|
class: "u-popup__overlay",
|
|
4503
4510
|
onClick: handleOverlayClick
|
|
@@ -4518,7 +4525,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
|
4518
4525
|
};
|
|
4519
4526
|
}
|
|
4520
4527
|
});
|
|
4521
|
-
const uPopup = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
4528
|
+
const uPopup = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-7b84ec59"]]);
|
|
4522
4529
|
const _hoisted_1$4 = { class: "u-code-input" };
|
|
4523
4530
|
const _hoisted_2$4 = { class: "u-code-input__wrapper" };
|
|
4524
4531
|
const _hoisted_3$4 = {
|
|
@@ -5001,7 +5008,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5001
5008
|
vue.createElementVNode("view", {
|
|
5002
5009
|
class: vue.normalizeClass(["u-tabbar__center-btn", {
|
|
5003
5010
|
"u-tabbar__center-btn--active": __props.modelValue === __props.centerTab.value,
|
|
5004
|
-
"u-tabbar__center-btn--
|
|
5011
|
+
"u-tabbar__center-btn--side-active": __props.modelValue === __props.leftTab.value || __props.modelValue === __props.rightTab.value
|
|
5005
5012
|
}]),
|
|
5006
5013
|
onClick: _cache[1] || (_cache[1] = ($event) => switchTab(__props.centerTab.value))
|
|
5007
5014
|
}, [
|
|
@@ -5029,7 +5036,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
5029
5036
|
};
|
|
5030
5037
|
}
|
|
5031
5038
|
});
|
|
5032
|
-
const uTabbar = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
5039
|
+
const uTabbar = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-a344a18d"]]);
|
|
5033
5040
|
const __default__$1 = {
|
|
5034
5041
|
options: {
|
|
5035
5042
|
virtualHost: true,
|