@nutui/nutui 4.3.1 → 4.3.2

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.
Files changed (67) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +4021 -4081
  4. package/dist/nutui.umd.js +1 -1
  5. package/dist/packages/actionsheet/ActionSheet.js +1 -1
  6. package/dist/packages/address/Address.js +1 -1
  7. package/dist/packages/animate/Animate.js +51 -44
  8. package/dist/packages/calendar/Calendar.js +1 -1
  9. package/dist/packages/card/Card.js +2 -2
  10. package/dist/packages/cascader/Cascader.js +1 -1
  11. package/dist/packages/checkbox/Checkbox.js +1 -1
  12. package/dist/packages/col/Col.js +41 -30
  13. package/dist/packages/{common-LvGbU-A3.js → common-FZL3qC99.js} +5 -2
  14. package/dist/packages/dialog/Dialog.js +1 -1
  15. package/dist/packages/form/Form.js +3 -1
  16. package/dist/packages/formitem/FormItem.js +1 -1
  17. package/dist/packages/imagepreview/ImagePreview.js +1 -1
  18. package/dist/packages/{index-wY4t0zYt.js → index-BqB5dTeo.js} +29 -17
  19. package/dist/packages/{index.vue_vue_type_script_lang-w2sgcysj.js → index.vue_vue_type_script_lang-n0HbjvfF.js} +1 -1
  20. package/dist/packages/input/Input.js +1 -1
  21. package/dist/packages/inputnumber/InputNumber.js +1 -1
  22. package/dist/packages/invoice/Invoice.js +1 -1
  23. package/dist/packages/layout/Layout.js +3 -0
  24. package/dist/packages/menuitem/MenuItem.js +1 -1
  25. package/dist/packages/notify/Notify.js +1 -1
  26. package/dist/packages/numberkeyboard/NumberKeyboard.js +1 -1
  27. package/dist/packages/popover/Popover.js +1 -1
  28. package/dist/packages/popup/Popup.js +1 -1
  29. package/dist/packages/price/Price.js +69 -77
  30. package/dist/packages/radio/Radio.js +1 -1
  31. package/dist/packages/range/Range.js +1 -1
  32. package/dist/packages/rate/Rate.js +1 -1
  33. package/dist/packages/row/Row.js +43 -39
  34. package/dist/packages/searchbar/Searchbar.js +1 -1
  35. package/dist/packages/shortpassword/ShortPassword.js +1 -1
  36. package/dist/packages/sku/Sku.js +3 -3
  37. package/dist/packages/switch/Switch.js +12 -4
  38. package/dist/packages/switch/index.css +1 -1
  39. package/dist/packages/switch/index.scss +1 -1
  40. package/dist/packages/textarea/Textarea.js +1 -1
  41. package/dist/packages/timeselect/TimeSelect.js +1 -1
  42. package/dist/packages/uploader/Uploader.js +1 -1
  43. package/dist/smartips/web-types.json +11 -2
  44. package/dist/style.css +1 -1
  45. package/dist/types/__VUE/animate/animate.vue.d.ts +75 -0
  46. package/dist/types/__VUE/animate/index.d.ts +6 -0
  47. package/dist/types/__VUE/col/col.vue.d.ts +53 -0
  48. package/dist/types/__VUE/col/index.d.ts +5 -0
  49. package/dist/types/__VUE/form/common.d.ts +2 -0
  50. package/dist/types/__VUE/form/types.d.ts +0 -1
  51. package/dist/types/__VUE/input/index.vue.d.ts +1 -1
  52. package/dist/types/__VUE/layout/index.d.ts +4 -0
  53. package/dist/types/__VUE/layout/layout.vue.d.ts +10 -0
  54. package/dist/types/__VUE/price/index.d.ts +6 -0
  55. package/dist/types/__VUE/price/price.vue.d.ts +83 -0
  56. package/dist/types/__VUE/row/index.d.ts +5 -0
  57. package/dist/types/__VUE/row/row.vue.d.ts +71 -0
  58. package/dist/types/__VUE/switch/index.vue.d.ts +9 -0
  59. package/dist/types/index.d.ts +11 -6
  60. package/package.json +1 -1
  61. package/dist/packages/types-Ynmct7na.js +0 -4
  62. package/dist/types/__VUE/animate/index.vue.d.ts +0 -71
  63. package/dist/types/__VUE/col/index.vue.d.ts +0 -42
  64. package/dist/types/__VUE/layout/index.vue.d.ts +0 -12
  65. package/dist/types/__VUE/price/index.vue.d.ts +0 -97
  66. package/dist/types/__VUE/row/index.vue.d.ts +0 -62
  67. /package/dist/types/__VUE/animate/{type.d.ts → types.d.ts} +0 -0
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { c as createComponent } from "../component-TCzwHGVq.js";
21
21
  import { useSlots, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeClass, normalizeStyle } from "vue";
22
- import { N as NutPopup, p as popupProps } from "../index-wY4t0zYt.js";
22
+ import { N as NutPopup, p as popupProps } from "../index-BqB5dTeo.js";
23
23
  import { Loading } from "@nutui/icons-vue";
24
24
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
25
25
  const { create } = createComponent("action-sheet");
@@ -20,7 +20,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { ref, reactive, computed, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, renderSlot, withDirectives, createVNode, vShow, toDisplayString, createElementBlock, Fragment, renderList, normalizeClass, createCommentVNode, normalizeStyle, createTextVNode } from "vue";
21
21
  import { Location, Location2, Check, Close, Left } from "@nutui/icons-vue";
22
22
  import { c as createComponent } from "../component-TCzwHGVq.js";
23
- import { N as NutPopup, p as popupProps } from "../index-wY4t0zYt.js";
23
+ import { N as NutPopup, p as popupProps } from "../index-BqB5dTeo.js";
24
24
  import NutElevator from "../elevator/Elevator.js";
25
25
  import { u as useLocale } from "../index-s3RgMhc7.js";
26
26
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
@@ -1,32 +1,40 @@
1
- import { ref, computed, watch, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, renderSlot } from "vue";
2
- import { c as createComponent } from "../component-TCzwHGVq.js";
3
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
4
- const { create } = createComponent("animate");
5
- const _sfc_main = create({
6
- props: {
7
- type: {
8
- type: String,
9
- default: ""
10
- },
11
- show: {
12
- type: Boolean,
13
- defualt: false
14
- },
15
- action: {
16
- type: String,
17
- default: ""
18
- },
19
- loop: {
20
- type: Boolean,
21
- default: false
22
- },
23
- duration: {
24
- type: [String, Number],
25
- defualt: 500
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
26
16
  }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ import { defineComponent, ref, computed, watch, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, renderSlot } from "vue";
21
+ import { w as withInstall } from "../with-install-p59gYYU_.js";
22
+ const _hoisted_1 = { class: "nut-animate" };
23
+ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
24
+ name: "NutAnimate"
25
+ }), {
26
+ __name: "animate",
27
+ props: {
28
+ type: {},
29
+ show: { type: Boolean, default: false },
30
+ action: { default: "" },
31
+ loop: { type: Boolean, default: false },
32
+ duration: { default: 500 }
27
33
  },
28
34
  emits: ["click", "animate"],
29
- setup(props, { emit }) {
35
+ setup(__props, { emit: __emit }) {
36
+ const props = __props;
37
+ const emit = __emit;
30
38
  const animated = ref(props.action === "initial" || props.show === true || props.loop);
31
39
  const classes = computed(() => {
32
40
  const prefixCls = "nut-animate";
@@ -60,24 +68,23 @@ const _sfc_main = create({
60
68
  }
61
69
  }
62
70
  );
63
- return { classes, handleClick };
71
+ return (_ctx, _cache) => {
72
+ return openBlock(), createElementBlock("view", _hoisted_1, [
73
+ createElementVNode("view", {
74
+ class: normalizeClass(classes.value),
75
+ style: normalizeStyle({
76
+ animationDuration: _ctx.duration ? `${_ctx.duration}ms` : void 0
77
+ }),
78
+ onClick: handleClick
79
+ }, [
80
+ renderSlot(_ctx.$slots, "default")
81
+ ], 6)
82
+ ]);
83
+ };
64
84
  }
65
- });
66
- const _hoisted_1 = { class: "nut-animate" };
67
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
68
- return openBlock(), createElementBlock("view", _hoisted_1, [
69
- createElementVNode("view", {
70
- class: normalizeClass(_ctx.classes),
71
- style: normalizeStyle({
72
- animationDuration: _ctx.duration ? `${_ctx.duration}ms` : void 0
73
- }),
74
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
75
- }, [
76
- renderSlot(_ctx.$slots, "default")
77
- ], 6)
78
- ]);
79
- }
80
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
85
+ }));
86
+ withInstall(_sfc_main);
81
87
  export {
82
- index as default
88
+ _sfc_main as Animate,
89
+ _sfc_main as default
83
90
  };
@@ -1,7 +1,7 @@
1
1
  import { computed, ref, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, createSlots, renderSlot } from "vue";
2
2
  import { c as createComponent } from "../component-TCzwHGVq.js";
3
3
  import NutCalendarItem from "../calendaritem/CalendarItem.js";
4
- import { N as NutPopup } from "../index-wY4t0zYt.js";
4
+ import { N as NutPopup } from "../index-BqB5dTeo.js";
5
5
  import { U as Utils } from "../date-djiVNSnJ.js";
6
6
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
7
7
  const { create } = createComponent("calendar");
@@ -1,12 +1,12 @@
1
1
  import { c as createComponent } from "../component-TCzwHGVq.js";
2
2
  import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, renderSlot, createVNode, createCommentVNode, withCtx, createTextVNode } from "vue";
3
- import NutPrice from "../price/Price.js";
3
+ import { Price as _sfc_main$1 } from "../price/Price.js";
4
4
  import NutTag from "../tag/Tag.js";
5
5
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
6
6
  const { create } = createComponent("card");
7
7
  const _sfc_main = create({
8
8
  components: {
9
- NutPrice,
9
+ NutPrice: _sfc_main$1,
10
10
  NutTag
11
11
  },
12
12
  props: {
@@ -55,7 +55,7 @@ var __async = (__this, __arguments, generator) => {
55
55
  });
56
56
  };
57
57
  import { computed, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, createVNode } from "vue";
58
- import { N as NutPopup, p as popupProps } from "../index-wY4t0zYt.js";
58
+ import { N as NutPopup, p as popupProps } from "../index-BqB5dTeo.js";
59
59
  import { c as createComponent } from "../component-TCzwHGVq.js";
60
60
  import { Loading, Checklist } from "@nutui/icons-vue";
61
61
  import NutTabs from "../tabs/Tabs.js";
@@ -3,7 +3,7 @@ import { c as createComponent } from "../component-TCzwHGVq.js";
3
3
  import { CheckNormal, Checked, CheckDisabled } from "@nutui/icons-vue";
4
4
  import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
5
5
  import { C as CHECKBOX_KEY } from "../types-zeKkNDAq.js";
6
- import { u as useFormDisabled } from "../common-LvGbU-A3.js";
6
+ import { u as useFormDisabled } from "../common-FZL3qC99.js";
7
7
  const { create, componentName } = createComponent("checkbox");
8
8
  const _sfc_main = create({
9
9
  props: {
@@ -1,22 +1,36 @@
1
- import { inject, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
2
- import { c as createComponent } from "../component-TCzwHGVq.js";
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ import { defineComponent, inject, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
3
21
  import { L as LAYOUT_KEY } from "../types-Ww4ErYJT.js";
4
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
5
- const { create } = createComponent("col");
6
- const _sfc_main = create({
22
+ import { w as withInstall } from "../with-install-p59gYYU_.js";
23
+ const prefixCls = "nut-col";
24
+ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
25
+ name: "NutCol"
26
+ }), {
27
+ __name: "col",
7
28
  props: {
8
- span: {
9
- type: [String, Number],
10
- default: "24"
11
- },
12
- offset: {
13
- type: [String, Number],
14
- default: "0"
15
- }
29
+ span: { default: 24 },
30
+ offset: { default: 0 }
16
31
  },
17
- emits: [],
18
- setup(props) {
19
- const prefixCls = "nut-col";
32
+ setup(__props) {
33
+ const props = __props;
20
34
  const gutter = inject(LAYOUT_KEY);
21
35
  const classes = computed(() => {
22
36
  return {
@@ -32,21 +46,18 @@ const _sfc_main = create({
32
46
  paddingRight: gutter / 2 + "px"
33
47
  };
34
48
  });
35
- return {
36
- classes,
37
- style
49
+ return (_ctx, _cache) => {
50
+ return openBlock(), createElementBlock("view", {
51
+ class: normalizeClass(classes.value),
52
+ style: normalizeStyle(style.value)
53
+ }, [
54
+ renderSlot(_ctx.$slots, "default")
55
+ ], 6);
38
56
  };
39
57
  }
40
- });
41
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
42
- return openBlock(), createElementBlock("view", {
43
- class: normalizeClass(_ctx.classes),
44
- style: normalizeStyle(_ctx.style)
45
- }, [
46
- renderSlot(_ctx.$slots, "default")
47
- ], 6);
48
- }
49
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
58
+ }));
59
+ withInstall(_sfc_main);
50
60
  export {
51
- index as default
61
+ _sfc_main as Col,
62
+ _sfc_main as default
52
63
  };
@@ -1,13 +1,16 @@
1
1
  import { computed } from "vue";
2
2
  import { u as useParent } from "./useParent-KIxqkovs.js";
3
- import { F as FORM_KEY } from "./types-Ynmct7na.js";
3
+ const FORM_KEY = Symbol("nut-form");
4
+ const FORM_DISABLED_KEY = Symbol("nut-form-disabled");
4
5
  const useFormDisabled = (disabled) => {
5
- const { parent } = useParent(FORM_KEY);
6
+ const { parent } = useParent(FORM_DISABLED_KEY);
6
7
  return computed(() => {
7
8
  var _a;
8
9
  return disabled.value || ((_a = parent == null ? void 0 : parent.props) == null ? void 0 : _a.disabled) || false;
9
10
  });
10
11
  };
11
12
  export {
13
+ FORM_KEY as F,
14
+ FORM_DISABLED_KEY as a,
12
15
  useFormDisabled as u
13
16
  };
@@ -24,7 +24,7 @@ var __publicField = (obj, key, value) => {
24
24
  import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, resolveDynamicComponent, nextTick, h } from "vue";
25
25
  import { c as createComponent } from "../component-TCzwHGVq.js";
26
26
  import { f as funInterceptor } from "../Interceptor-WYVtGbGC.js";
27
- import { N as NutPopup, p as popupProps } from "../index-wY4t0zYt.js";
27
+ import { N as NutPopup, p as popupProps } from "../index-BqB5dTeo.js";
28
28
  import { Button as _sfc_main$1 } from "../button/Button.js";
29
29
  import { u as useLocale } from "../index-s3RgMhc7.js";
30
30
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
@@ -53,7 +53,7 @@ import { defineComponent, computed, reactive, provide, watch, openBlock, createE
53
53
  import { u as useChildren } from "../useChildren-GU_NVfD8.js";
54
54
  import { g as getPropByPath, f as isPromise } from "../util-4Jkyw4BJ.js";
55
55
  import NutCellGroup from "../cellgroup/CellGroup.js";
56
- import { F as FORM_KEY } from "../types-Ynmct7na.js";
56
+ import { F as FORM_KEY, a as FORM_DISABLED_KEY } from "../common-FZL3qC99.js";
57
57
  import { w as withInstall } from "../with-install-p59gYYU_.js";
58
58
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
59
59
  name: "NutForm"
@@ -72,6 +72,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
72
72
  const emit = __emit;
73
73
  const { children, linkChildren } = useChildren(FORM_KEY);
74
74
  linkChildren({ props });
75
+ const { linkChildren: linkChildren2 } = useChildren(FORM_DISABLED_KEY);
76
+ linkChildren2({ props });
75
77
  const formErrorTip = computed(() => reactive({}));
76
78
  provide("formErrorTip", formErrorTip);
77
79
  const clearErrorTips = () => {
@@ -20,7 +20,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { defineComponent, computed, inject, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from "vue";
21
21
  import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
22
22
  import NutCell from "../cell/Cell.js";
23
- import { F as FORM_KEY } from "../types-Ynmct7na.js";
23
+ import { F as FORM_KEY } from "../common-FZL3qC99.js";
24
24
  import { u as useParent } from "../useParent-KIxqkovs.js";
25
25
  import { w as withInstall } from "../with-install-p59gYYU_.js";
26
26
  const _hoisted_1 = { class: "nut-cell__value nut-form-item__body" };
@@ -31,7 +31,7 @@ import NutVideo from "../video/Video.js";
31
31
  import NutSwiperItem from "../swiperitem/SwiperItem.js";
32
32
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
33
33
  import { CircleClose } from "@nutui/icons-vue";
34
- import { N as NutPopup } from "../index-wY4t0zYt.js";
34
+ import { N as NutPopup } from "../index-BqB5dTeo.js";
35
35
  import NutSwiper from "../swiper/Swiper.js";
36
36
  import { f as funInterceptor } from "../Interceptor-WYVtGbGC.js";
37
37
  import { C as CreateComponent } from "../mountComponent-uInXoTMp.js";
@@ -111,6 +111,7 @@ const _sfc_main = create({
111
111
  props: popupProps,
112
112
  emits: ["clickPop", "clickCloseIcon", "open", "close", "opened", "closed", "clickOverlay", "update:visible"],
113
113
  setup(props, { emit }) {
114
+ let opened;
114
115
  const state = reactive({
115
116
  zIndex: props.zIndex,
116
117
  showSlot: true,
@@ -136,23 +137,29 @@ const _sfc_main = create({
136
137
  return props.transition ? props.transition : `nut-popup-slide-${props.position}`;
137
138
  });
138
139
  const open = () => {
139
- if (props.zIndex !== initIndex) {
140
- _zIndex = Number(props.zIndex);
140
+ if (!opened) {
141
+ opened = true;
142
+ if (props.zIndex !== initIndex) {
143
+ _zIndex = Number(props.zIndex);
144
+ }
145
+ emit("update:visible", true);
146
+ state.zIndex = ++_zIndex;
147
+ if (props.destroyOnClose) {
148
+ state.showSlot = true;
149
+ }
150
+ emit("open");
141
151
  }
142
- emit("update:visible", true);
143
- state.zIndex = ++_zIndex;
144
- if (props.destroyOnClose) {
145
- state.showSlot = true;
146
- }
147
- emit("open");
148
152
  };
149
153
  const close = () => {
150
- emit("update:visible", false);
151
- emit("close");
152
- if (props.destroyOnClose) {
153
- setTimeout(() => {
154
- state.showSlot = false;
155
- }, +props.duration * 1e3);
154
+ if (opened) {
155
+ opened = false;
156
+ emit("update:visible", false);
157
+ emit("close");
158
+ if (props.destroyOnClose) {
159
+ setTimeout(() => {
160
+ state.showSlot = false;
161
+ }, +props.duration * 1e3);
162
+ }
156
163
  }
157
164
  };
158
165
  const onClick = (e) => {
@@ -161,12 +168,12 @@ const _sfc_main = create({
161
168
  const onClickCloseIcon = (e) => {
162
169
  e.stopPropagation();
163
170
  emit("clickCloseIcon", e);
164
- emit("update:visible", false);
171
+ close();
165
172
  };
166
173
  const onClickOverlay = (e) => {
167
174
  emit("clickOverlay", e);
168
175
  if (props.closeOnClickOverlay) {
169
- emit("update:visible", false);
176
+ close();
170
177
  }
171
178
  };
172
179
  const onOpened = (el) => {
@@ -178,7 +185,12 @@ const _sfc_main = create({
178
185
  watch(
179
186
  () => props.visible,
180
187
  () => {
181
- props.visible ? open() : close();
188
+ if (props.visible && !opened) {
189
+ open();
190
+ }
191
+ if (!props.visible && opened) {
192
+ close();
193
+ }
182
194
  }
183
195
  );
184
196
  watchEffect(() => {
@@ -3,7 +3,7 @@ import { c as createComponent } from "./component-TCzwHGVq.js";
3
3
  import { CheckNormal, CheckChecked } from "@nutui/icons-vue";
4
4
  import { p as pxCheck } from "./pxCheck-OnXlN1NC.js";
5
5
  import { R as RADIO_KEY } from "./types-odSRziQJ.js";
6
- import { u as useFormDisabled } from "./common-LvGbU-A3.js";
6
+ import { u as useFormDisabled } from "./common-FZL3qC99.js";
7
7
  const { componentName, create } = createComponent("radio");
8
8
  const _sfc_main = create({
9
9
  components: {
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  import { toRef, ref, reactive, computed, watch, onMounted, h, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, normalizeStyle, toDisplayString, createTextVNode, withDirectives, createVNode, mergeProps, vShow } from "vue";
18
18
  import { MaskClose } from "@nutui/icons-vue";
19
19
  import { c as createComponent } from "../component-TCzwHGVq.js";
20
- import { u as useFormDisabled } from "../common-LvGbU-A3.js";
20
+ import { u as useFormDisabled } from "../common-FZL3qC99.js";
21
21
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
22
22
  function trimExtraChar(value, char, regExp) {
23
23
  const index2 = value.indexOf(char);
@@ -2,7 +2,7 @@ import { toRef, computed, watch, resolveComponent, openBlock, createElementBlock
2
2
  import { c as createComponent } from "../component-TCzwHGVq.js";
3
3
  import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
4
4
  import { Minus, Plus } from "@nutui/icons-vue";
5
- import { u as useFormDisabled } from "../common-LvGbU-A3.js";
5
+ import { u as useFormDisabled } from "../common-FZL3qC99.js";
6
6
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
7
7
  const { componentName, create } = createComponent("input-number");
8
8
  const _sfc_main = create({
@@ -21,7 +21,7 @@ import { ref, reactive, computed, onMounted, watch, toRefs, resolveComponent, op
21
21
  import { c as createComponent } from "../component-TCzwHGVq.js";
22
22
  import { Form as _sfc_main$1 } from "../form/Form.js";
23
23
  import { FormItem as _sfc_main$2 } from "../formitem/FormItem.js";
24
- import { _ as _sfc_main$3 } from "../index.vue_vue_type_script_lang-w2sgcysj.js";
24
+ import { _ as _sfc_main$3 } from "../index.vue_vue_type_script_lang-n0HbjvfF.js";
25
25
  import { _ as _sfc_main$4 } from "../index.vue_vue_type_script_lang-54PRh3YM.js";
26
26
  import { Button as _sfc_main$5 } from "../button/Button.js";
27
27
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
@@ -1,7 +1,10 @@
1
1
  import { c as createComponent } from "../component-TCzwHGVq.js";
2
2
  import "vue";
3
+ import { w as withInstall } from "../with-install-p59gYYU_.js";
3
4
  const { create } = createComponent("layout");
4
5
  const _sfc_main = create({});
6
+ withInstall(_sfc_main);
5
7
  export {
8
+ _sfc_main as Layout,
6
9
  _sfc_main as default
7
10
  };
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { reactive, computed, resolveComponent, withDirectives, openBlock, createElementBlock, normalizeStyle, createElementVNode, vShow, createVNode, mergeProps, withCtx, Fragment, renderList, normalizeClass, renderSlot, createCommentVNode, toDisplayString } from "vue";
21
21
  import { c as createComponent } from "../component-TCzwHGVq.js";
22
- import { N as NutPopup } from "../index-wY4t0zYt.js";
22
+ import { N as NutPopup } from "../index-BqB5dTeo.js";
23
23
  import { Check } from "@nutui/icons-vue";
24
24
  import { u as useParent } from "../useParent-KIxqkovs.js";
25
25
  import { M as MENU_KEY } from "../types-j71K23JP.js";
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, createVNode, render, onMounted, h } from "vue";
21
21
  import { c as createComponent } from "../component-TCzwHGVq.js";
22
- import { N as NutPopup } from "../index-wY4t0zYt.js";
22
+ import { N as NutPopup } from "../index-BqB5dTeo.js";
23
23
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
24
24
  const { create } = createComponent("notify");
25
25
  const _sfc_main = create({
@@ -1,6 +1,6 @@
1
1
  import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createTextVNode } from "vue";
2
2
  import { c as createComponent } from "../component-TCzwHGVq.js";
3
- import { N as NutPopup } from "../index-wY4t0zYt.js";
3
+ import { N as NutPopup } from "../index-BqB5dTeo.js";
4
4
  import { u as useLocale } from "../index-s3RgMhc7.js";
5
5
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
6
6
  const { create } = createComponent("number-keyboard");
@@ -2,7 +2,7 @@ import { ref, computed, onMounted, watch, nextTick, resolveComponent, openBlock,
2
2
  import { c as createComponent } from "../component-TCzwHGVq.js";
3
3
  import { r as renderIcon } from "../renderIcon--EgZu5_5.js";
4
4
  import { u as useRect } from "../index-cp6Ms_Qe.js";
5
- import { N as NutPopup } from "../index-wY4t0zYt.js";
5
+ import { N as NutPopup } from "../index-BqB5dTeo.js";
6
6
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
7
7
  const { create } = createComponent("popover");
8
8
  const _sfc_main = create({
@@ -1,4 +1,4 @@
1
- import { N } from "../index-wY4t0zYt.js";
1
+ import { N } from "../index-BqB5dTeo.js";
2
2
  import "vue";
3
3
  import "../_plugin-vue_export-helper-yVxbj29m.js";
4
4
  export {