@atooyu/uxto-ui 1.1.39 → 1.1.41

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.mjs CHANGED
@@ -4474,28 +4474,35 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
4474
4474
  ...__default__$8,
4475
4475
  __name: "u-popup",
4476
4476
  props: {
4477
- visible: { type: Boolean, default: false },
4477
+ show: { type: Boolean, default: void 0 },
4478
+ visible: { type: Boolean, default: void 0 },
4478
4479
  position: { default: "bottom" },
4479
4480
  closeable: { type: Boolean, default: false },
4480
4481
  closeOnClickOverlay: { type: Boolean, default: true },
4481
4482
  round: { type: Boolean, default: false },
4482
4483
  zIndex: { default: 1e3 }
4483
4484
  },
4484
- emits: ["update:visible", "close"],
4485
+ emits: ["update:show", "update:visible", "close"],
4485
4486
  setup(__props, { emit: __emit }) {
4486
4487
  const props = __props;
4487
4488
  const emit = __emit;
4489
+ const isOpen = computed(() => {
4490
+ if (props.show !== void 0) return props.show;
4491
+ if (props.visible !== void 0) return props.visible;
4492
+ return false;
4493
+ });
4488
4494
  const handleOverlayClick = () => {
4489
4495
  if (props.closeOnClickOverlay) {
4490
4496
  handleClose();
4491
4497
  }
4492
4498
  };
4493
4499
  const handleClose = () => {
4500
+ emit("update:show", false);
4494
4501
  emit("update:visible", false);
4495
4502
  emit("close");
4496
4503
  };
4497
4504
  return (_ctx, _cache) => {
4498
- return __props.visible ? (openBlock(), createElementBlock("view", _hoisted_1$5, [
4505
+ return isOpen.value ? (openBlock(), createElementBlock("view", _hoisted_1$5, [
4499
4506
  createElementVNode("view", {
4500
4507
  class: "u-popup__overlay",
4501
4508
  onClick: handleOverlayClick
@@ -4516,7 +4523,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
4516
4523
  };
4517
4524
  }
4518
4525
  });
4519
- const uPopup = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-dc430e12"]]);
4526
+ const uPopup = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-1c6a1eb0"]]);
4520
4527
  const _hoisted_1$4 = { class: "u-code-input" };
4521
4528
  const _hoisted_2$4 = { class: "u-code-input__wrapper" };
4522
4529
  const _hoisted_3$4 = {