@nutui/nutui 4.3.7 → 4.3.8

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 (62) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +4275 -4416
  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/badge/Badge.js +60 -72
  8. package/dist/packages/calendar/Calendar.js +1 -1
  9. package/dist/packages/cascader/Cascader.js +1 -1
  10. package/dist/packages/countdown/Countdown.js +2 -2
  11. package/dist/packages/dialog/Dialog.js +3 -3
  12. package/dist/packages/fixednav/FixedNav.js +2 -2
  13. package/dist/packages/imagepreview/ImagePreview.js +3 -3
  14. package/dist/packages/{index-uHBD4dfS.js → index-wLaOjIn1.js} +2 -2
  15. package/dist/packages/menuitem/MenuItem.js +1 -1
  16. package/dist/packages/notify/Notify.js +1 -1
  17. package/dist/packages/numberkeyboard/NumberKeyboard.js +1 -1
  18. package/dist/packages/overlay/Overlay.js +40 -54
  19. package/dist/packages/popover/Popover.js +1 -1
  20. package/dist/packages/popup/Popup.js +1 -1
  21. package/dist/packages/shortpassword/ShortPassword.js +1 -1
  22. package/dist/packages/sku/Sku.js +1 -1
  23. package/dist/packages/tabbaritem/TabbarItem.js +3 -3
  24. package/dist/packages/timeselect/TimeSelect.js +1 -1
  25. package/dist/packages/watermark/Watermark.js +69 -159
  26. package/dist/smartips/web-types.json +3 -3
  27. package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
  28. package/dist/types/__VUE/address/index.vue.d.ts +5 -5
  29. package/dist/types/__VUE/badge/badge.vue.d.ts +93 -0
  30. package/dist/types/__VUE/badge/index.d.ts +5 -0
  31. package/dist/types/__VUE/calendar/index.vue.d.ts +2 -2
  32. package/dist/types/__VUE/cascader/index.vue.d.ts +2 -2
  33. package/dist/types/__VUE/circleprogress/circle-progress.vue.d.ts +2 -2
  34. package/dist/types/__VUE/collapseitem/collapse-item.vue.d.ts +1 -1
  35. package/dist/types/__VUE/dialog/index.vue.d.ts +4 -4
  36. package/dist/types/__VUE/divider/divider.vue.d.ts +1 -1
  37. package/dist/types/__VUE/fixednav/index.vue.d.ts +1 -1
  38. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
  39. package/dist/types/__VUE/input/input.vue.d.ts +1 -1
  40. package/dist/types/__VUE/list/index.vue.d.ts +1 -1
  41. package/dist/types/__VUE/menu/index.vue.d.ts +1 -1
  42. package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -1
  43. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
  44. package/dist/types/__VUE/overlay/index.d.ts +5 -0
  45. package/dist/types/__VUE/overlay/overlay.vue.d.ts +87 -0
  46. package/dist/types/__VUE/picker/index.vue.d.ts +1 -1
  47. package/dist/types/__VUE/popover/index.vue.d.ts +4 -4
  48. package/dist/types/__VUE/popup/index.vue.d.ts +3 -3
  49. package/dist/types/__VUE/row/row.vue.d.ts +1 -1
  50. package/dist/types/__VUE/shortpassword/index.vue.d.ts +2 -2
  51. package/dist/types/__VUE/sku/index.vue.d.ts +2 -2
  52. package/dist/types/__VUE/swipe/swipe.vue.d.ts +1 -1
  53. package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
  54. package/dist/types/__VUE/tour/index.vue.d.ts +1 -1
  55. package/dist/types/__VUE/watermark/index.d.ts +6 -0
  56. package/dist/types/__VUE/watermark/watermark.vue.d.ts +127 -0
  57. package/dist/types/index.d.ts +7 -4
  58. package/dist/types/utils/index.d.ts +1 -0
  59. package/package.json +1 -1
  60. package/dist/types/__VUE/badge/index.vue.d.ts +0 -102
  61. package/dist/types/__VUE/overlay/index.vue.d.ts +0 -85
  62. package/dist/types/__VUE/watermark/index.vue.d.ts +0 -201
@@ -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-DQf3CENX.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-uHBD4dfS.js";
22
+ import { N as NutPopup, p as popupProps } from "../index-wLaOjIn1.js";
23
23
  import { Loading } from "@nutui/icons-vue";
24
24
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.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-DQf3CENX.js";
23
- import { N as NutPopup, p as popupProps } from "../index-uHBD4dfS.js";
23
+ import { N as NutPopup, p as popupProps } from "../index-wLaOjIn1.js";
24
24
  import NutElevator from "../elevator/Elevator.js";
25
25
  import { u as useLocale } from "../index-CFigyH92.js";
26
26
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
@@ -1,48 +1,43 @@
1
- import { reactive, computed, openBlock, createElementBlock, withDirectives, createElementVNode, normalizeStyle, renderSlot, vShow, normalizeClass, toDisplayString } from "vue";
2
- import { c as createComponent } from "../component-DQf3CENX.js";
3
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
4
- const { create } = createComponent("badge");
5
- const _sfc_main = create({
6
- props: {
7
- value: {
8
- type: [String, Number]
9
- },
10
- max: {
11
- type: Number,
12
- default: 1e4
13
- },
14
- dot: {
15
- type: Boolean,
16
- default: false
17
- },
18
- bubble: {
19
- type: Boolean,
20
- default: false
21
- },
22
- hidden: {
23
- type: Boolean,
24
- default: false
25
- },
26
- top: {
27
- type: String,
28
- default: "0"
29
- },
30
- right: {
31
- type: String,
32
- default: "0"
33
- },
34
- zIndex: {
35
- type: Number,
36
- default: 9
37
- },
38
- color: {
39
- type: String,
40
- default: ""
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]);
41
16
  }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ import { defineComponent, computed, openBlock, createElementBlock, withDirectives, createElementVNode, normalizeStyle, renderSlot, vShow, normalizeClass, toDisplayString } from "vue";
21
+ import { w as withInstall } from "../with-install-Ch3FF0uS.js";
22
+ const _hoisted_1 = { class: "nut-badge" };
23
+ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
24
+ name: "NutBadge"
25
+ }), {
26
+ __name: "badge",
27
+ props: {
28
+ value: {},
29
+ max: { default: 1e4 },
30
+ dot: { type: Boolean, default: false },
31
+ bubble: { type: Boolean, default: false },
32
+ hidden: { type: Boolean, default: false },
33
+ top: { default: "0" },
34
+ right: { default: "0" },
35
+ zIndex: { default: 9 },
36
+ color: { default: "" }
42
37
  },
43
- setup(props) {
44
- const state = reactive({});
45
- const stl = computed(() => {
38
+ setup(__props) {
39
+ const props = __props;
40
+ const style = computed(() => {
46
41
  return {
47
42
  top: `${props.top}px`,
48
43
  right: `${props.right}px`,
@@ -60,36 +55,29 @@ const _sfc_main = create({
60
55
  }
61
56
  return value;
62
57
  });
63
- return {
64
- state,
65
- stl,
66
- content
58
+ return (_ctx, _cache) => {
59
+ return openBlock(), createElementBlock("view", _hoisted_1, [
60
+ withDirectives(createElementVNode("view", {
61
+ class: "nut-badge__icon",
62
+ style: normalizeStyle(style.value)
63
+ }, [
64
+ renderSlot(_ctx.$slots, "icon")
65
+ ], 4), [
66
+ [vShow, !_ctx.hidden && !_ctx.dot && _ctx.$slots.icon]
67
+ ]),
68
+ renderSlot(_ctx.$slots, "default"),
69
+ withDirectives(createElementVNode("view", {
70
+ class: normalizeClass(["nut-badge__content nut-badge__content--sup", { "nut-badge__content--dot": _ctx.dot, "nut-badge__content--bubble": !_ctx.dot && _ctx.bubble }]),
71
+ style: normalizeStyle(style.value)
72
+ }, toDisplayString(content.value), 7), [
73
+ [vShow, !_ctx.hidden && (content.value || _ctx.dot)]
74
+ ])
75
+ ]);
67
76
  };
68
77
  }
69
- });
70
- const _hoisted_1 = { class: "nut-badge" };
71
- const _hoisted_2 = ["textContent"];
72
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
73
- return openBlock(), createElementBlock("view", _hoisted_1, [
74
- withDirectives(createElementVNode("view", {
75
- class: "nut-badge__icon",
76
- style: normalizeStyle(_ctx.stl)
77
- }, [
78
- renderSlot(_ctx.$slots, "icon")
79
- ], 4), [
80
- [vShow, !_ctx.hidden && !_ctx.dot && _ctx.$slots.icon]
81
- ]),
82
- renderSlot(_ctx.$slots, "default"),
83
- withDirectives(createElementVNode("view", {
84
- class: normalizeClass(["nut-badge__content nut-badge__content--sup", { "nut-badge__content--dot": _ctx.dot, "nut-badge__content--bubble": !_ctx.dot && _ctx.bubble }]),
85
- style: normalizeStyle(_ctx.stl),
86
- textContent: toDisplayString(_ctx.content)
87
- }, null, 14, _hoisted_2), [
88
- [vShow, !_ctx.hidden && (_ctx.content || _ctx.dot)]
89
- ])
90
- ]);
91
- }
92
- const NutBadge = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
78
+ }));
79
+ withInstall(_sfc_main);
93
80
  export {
94
- NutBadge as default
81
+ _sfc_main as Badge,
82
+ _sfc_main as default
95
83
  };
@@ -23,7 +23,7 @@ import { U as Utils } from "../date-DHXcwF1m.js";
23
23
  import { r as requestAniFrame } from "../raf-c01wDYCo.js";
24
24
  import { u as useLocale } from "../index-CFigyH92.js";
25
25
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
26
- import { N as NutPopup } from "../index-uHBD4dfS.js";
26
+ import { N as NutPopup } from "../index-wLaOjIn1.js";
27
27
  const { create: create$1 } = createComponent("calendar-item");
28
28
  const cN = "NutCalendarItem";
29
29
  const _sfc_main$1 = create$1({
@@ -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-uHBD4dfS.js";
58
+ import { N as NutPopup, p as popupProps } from "../index-wLaOjIn1.js";
59
59
  import { c as createComponent } from "../component-DQf3CENX.js";
60
60
  import { Loading, Checklist } from "@nutui/icons-vue";
61
61
  import NutTabs from "../tabs/Tabs.js";
@@ -161,8 +161,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
161
161
  const pause = () => {
162
162
  cancelAnimationFrame(timer.value);
163
163
  counting.value = false;
164
- emit("restart", restTime.value);
165
- emit("onRestart", restTime.value);
164
+ emit("paused", restTime.value);
165
+ emit("onPaused", restTime.value);
166
166
  };
167
167
  const reset = () => {
168
168
  if (!props.autoStart) {
@@ -24,11 +24,11 @@ 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-DQf3CENX.js";
26
26
  import { f as funInterceptor } from "../Interceptor-DlY2h6Y7.js";
27
- import { N as NutPopup, p as popupProps } from "../index-uHBD4dfS.js";
27
+ import { N as NutPopup, p as popupProps } from "../index-wLaOjIn1.js";
28
28
  import { Button as _sfc_main$1 } from "../button/Button.js";
29
29
  import { u as useLocale } from "../index-CFigyH92.js";
30
30
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
31
- import NutOverlay from "../overlay/Overlay.js";
31
+ import { Overlay as _sfc_main$2 } from "../overlay/Overlay.js";
32
32
  import { C as CreateComponent } from "../mountComponent-DBQ88Fjz.js";
33
33
  const { create } = createComponent("dialog");
34
34
  const cN = "NutDialog";
@@ -290,7 +290,7 @@ class DialogFunction {
290
290
  const options = Object.assign(this.options, _options);
291
291
  const { unmount } = CreateComponent(options, {
292
292
  name: "dialog",
293
- components: [NutPopup, _sfc_main$1, NutOverlay],
293
+ components: [NutPopup, _sfc_main$1, _sfc_main$2],
294
294
  wrapper: (elWrap, root) => {
295
295
  return {
296
296
  setup() {
@@ -1,6 +1,6 @@
1
1
  import { computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, createCommentVNode, renderSlot, createElementVNode, Fragment, renderList, toDisplayString, createVNode } from "vue";
2
2
  import { Left } from "@nutui/icons-vue";
3
- import NutOverlay from "../overlay/Overlay.js";
3
+ import { Overlay as _sfc_main$1 } from "../overlay/Overlay.js";
4
4
  import { c as createComponent } from "../component-DQf3CENX.js";
5
5
  import { u as useLocale } from "../index-CFigyH92.js";
6
6
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
@@ -8,7 +8,7 @@ const { create } = createComponent("fixed-nav");
8
8
  const cN = "NutFixedNav";
9
9
  const _sfc_main = create({
10
10
  components: {
11
- NutOverlay,
11
+ NutOverlay: _sfc_main$1,
12
12
  Left
13
13
  },
14
14
  props: {
@@ -31,11 +31,11 @@ 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-1tPrXgE0.js";
33
33
  import { CircleClose } from "@nutui/icons-vue";
34
- import { N as NutPopup } from "../index-uHBD4dfS.js";
34
+ import { N as NutPopup } from "../index-wLaOjIn1.js";
35
35
  import NutSwiper from "../swiper/Swiper.js";
36
36
  import { f as funInterceptor } from "../Interceptor-DlY2h6Y7.js";
37
37
  import { C as CreateComponent } from "../mountComponent-DBQ88Fjz.js";
38
- import NutOverlay from "../overlay/Overlay.js";
38
+ import { Overlay as _sfc_main$2 } from "../overlay/Overlay.js";
39
39
  const baseProps = {
40
40
  show: { type: Boolean, default: false },
41
41
  initNo: { type: Number, default: 0 },
@@ -503,7 +503,7 @@ class ImagePreviewFunction {
503
503
  const options = Object.assign(this.options, _options);
504
504
  const { unmount } = CreateComponent(options, {
505
505
  name: "image-preview",
506
- components: [NutPopup, NutVideo, NutSwiper, NutSwiperItem, NutOverlay],
506
+ components: [NutPopup, NutVideo, NutSwiper, NutSwiperItem, _sfc_main$2],
507
507
  wrapper: () => {
508
508
  return {
509
509
  setup() {
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { reactive, computed, watch, watchEffect, toRefs, resolveComponent, openBlock, createBlock, Teleport, mergeProps, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, vShow } from "vue";
21
21
  import { Close } from "@nutui/icons-vue";
22
- import NutOverlay from "./overlay/Overlay.js";
22
+ import { Overlay as _sfc_main$1 } from "./overlay/Overlay.js";
23
23
  import { c as createComponent } from "./component-DQf3CENX.js";
24
24
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
25
25
  const popupProps = {
@@ -105,7 +105,7 @@ const initIndex = 2e3;
105
105
  let _zIndex = initIndex;
106
106
  const _sfc_main = create({
107
107
  components: {
108
- NutOverlay,
108
+ NutOverlay: _sfc_main$1,
109
109
  Close
110
110
  },
111
111
  props: popupProps,
@@ -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-DQf3CENX.js";
22
- import { N as NutPopup } from "../index-uHBD4dfS.js";
22
+ import { N as NutPopup } from "../index-wLaOjIn1.js";
23
23
  import { Check } from "@nutui/icons-vue";
24
24
  import { u as useParent } from "../useParent-D6DiuxZZ.js";
25
25
  import { M as MENU_KEY } from "../types-CkPfROfI.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-DQf3CENX.js";
22
- import { N as NutPopup } from "../index-uHBD4dfS.js";
22
+ import { N as NutPopup } from "../index-wLaOjIn1.js";
23
23
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.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-DQf3CENX.js";
3
- import { N as NutPopup } from "../index-uHBD4dfS.js";
3
+ import { N as NutPopup } from "../index-wLaOjIn1.js";
4
4
  import { u as useLocale } from "../index-CFigyH92.js";
5
5
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
6
6
  const { create } = createComponent("number-keyboard");
@@ -1,4 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
2
4
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
4
6
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -14,10 +16,10 @@ var __spreadValues = (a, b) => {
14
16
  }
15
17
  return a;
16
18
  };
17
- import { computed, watchEffect, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, withModifiers, renderSlot, vShow } from "vue";
18
- import { c as createComponent } from "../component-DQf3CENX.js";
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ import { defineComponent, computed, watchEffect, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, withModifiers, renderSlot, vShow } from "vue";
19
21
  import { b as body } from "../util-DnfK0Qan.js";
20
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
22
+ import { w as withInstall } from "../with-install-Ch3FF0uS.js";
21
23
  let count = 0;
22
24
  const CLSNAME = "nut-overflow-hidden";
23
25
  const useLockScroll = (isLock) => {
@@ -43,42 +45,26 @@ const useLockScroll = (isLock) => {
43
45
  };
44
46
  return [lock, unlock];
45
47
  };
46
- const { componentName, create } = createComponent("overlay");
47
- const _sfc_main = create({
48
+ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
49
+ name: "NutOverlay"
50
+ }), {
51
+ __name: "overlay",
48
52
  props: {
49
- visible: {
50
- type: Boolean,
51
- default: false
52
- },
53
- zIndex: {
54
- type: [Number, String],
55
- default: 2e3
56
- },
57
- duration: {
58
- type: [Number, String],
59
- default: 0.3
60
- },
61
- lockScroll: {
62
- type: Boolean,
63
- default: true
64
- },
65
- overlayClass: {
66
- type: String,
67
- default: ""
68
- },
69
- overlayStyle: {
70
- type: Object
71
- },
72
- closeOnClickOverlay: {
73
- type: Boolean,
74
- default: true
75
- }
53
+ visible: { type: Boolean, default: false },
54
+ zIndex: { default: 2e3 },
55
+ duration: { default: 0.3 },
56
+ lockScroll: { type: Boolean, default: true },
57
+ overlayClass: { default: "" },
58
+ overlayStyle: {},
59
+ closeOnClickOverlay: { type: Boolean, default: true }
76
60
  },
77
61
  emits: ["click", "update:visible"],
78
- setup(props, { emit }) {
62
+ setup(__props, { emit: __emit }) {
63
+ const props = __props;
64
+ const emit = __emit;
79
65
  const [lock, unlock] = useLockScroll(() => props.lockScroll);
80
66
  const classes = computed(() => {
81
- const prefixCls = componentName;
67
+ const prefixCls = "nut-overlay";
82
68
  return {
83
69
  [prefixCls]: true,
84
70
  [props.overlayClass]: true
@@ -99,26 +85,26 @@ const _sfc_main = create({
99
85
  emit("update:visible", false);
100
86
  }
101
87
  };
102
- return { classes, style, onClick };
88
+ return (_ctx, _cache) => {
89
+ return openBlock(), createBlock(Transition, { name: "overlay-fade" }, {
90
+ default: withCtx(() => [
91
+ withDirectives(createElementVNode("view", {
92
+ class: normalizeClass(classes.value),
93
+ style: normalizeStyle(style.value),
94
+ onClick: withModifiers(onClick, ["stop"])
95
+ }, [
96
+ renderSlot(_ctx.$slots, "default")
97
+ ], 6), [
98
+ [vShow, _ctx.visible]
99
+ ])
100
+ ]),
101
+ _: 3
102
+ });
103
+ };
103
104
  }
104
- });
105
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
106
- return openBlock(), createBlock(Transition, { name: "overlay-fade" }, {
107
- default: withCtx(() => [
108
- withDirectives(createElementVNode("view", {
109
- class: normalizeClass(_ctx.classes),
110
- style: normalizeStyle(_ctx.style),
111
- onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
112
- }, [
113
- renderSlot(_ctx.$slots, "default")
114
- ], 6), [
115
- [vShow, _ctx.visible]
116
- ])
117
- ]),
118
- _: 3
119
- });
120
- }
121
- const NutOverlay = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
105
+ }));
106
+ withInstall(_sfc_main);
122
107
  export {
123
- NutOverlay as default
108
+ _sfc_main as Overlay,
109
+ _sfc_main as default
124
110
  };
@@ -2,7 +2,7 @@ import { ref, computed, onMounted, watch, nextTick, resolveComponent, openBlock,
2
2
  import { c as createComponent } from "../component-DQf3CENX.js";
3
3
  import { r as renderIcon } from "../renderIcon-BfOvhG7i.js";
4
4
  import { u as useRect } from "../index-B1qsj2XR.js";
5
- import { N as NutPopup } from "../index-uHBD4dfS.js";
5
+ import { N as NutPopup } from "../index-wLaOjIn1.js";
6
6
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
7
7
  const { create } = createComponent("popover");
8
8
  const _sfc_main = create({
@@ -1,4 +1,4 @@
1
- import { N } from "../index-uHBD4dfS.js";
1
+ import { N } from "../index-wLaOjIn1.js";
2
2
  import "vue";
3
3
  import "../_plugin-vue_export-helper-1tPrXgE0.js";
4
4
  export {
@@ -1,6 +1,6 @@
1
1
  import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, Fragment, renderList, createCommentVNode } from "vue";
2
2
  import { c as createComponent } from "../component-DQf3CENX.js";
3
- import { N as NutPopup } from "../index-uHBD4dfS.js";
3
+ import { N as NutPopup } from "../index-wLaOjIn1.js";
4
4
  import { Tips } from "@nutui/icons-vue";
5
5
  import { u as useLocale } from "../index-CFigyH92.js";
6
6
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
@@ -4,7 +4,7 @@ import { c as createComponent } from "../component-DQf3CENX.js";
4
4
  import { u as useLocale } from "../index-CFigyH92.js";
5
5
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
6
6
  import { InputNumber as _sfc_main$6 } from "../inputnumber/InputNumber.js";
7
- import { N as NutPopup } from "../index-uHBD4dfS.js";
7
+ import { N as NutPopup } from "../index-wLaOjIn1.js";
8
8
  const { create: create$4 } = createComponent("sku-header");
9
9
  const cN$1 = "NutSkuHeader";
10
10
  const _sfc_main$4 = create$4({
@@ -17,12 +17,12 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, unref, toDisplayString } from "vue";
20
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, unref, normalizeProps, guardReactiveProps, withCtx, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, toDisplayString } from "vue";
21
21
  import { r as renderIcon } from "../renderIcon-BfOvhG7i.js";
22
22
  import { u as useRouter } from "../index-aiGQ-EiA.js";
23
23
  import { u as useParent } from "../useParent-D6DiuxZZ.js";
24
24
  import { T as TABBAR_KEY } from "../types-MuhxzCWc.js";
25
- import NutBadge from "../badge/Badge.js";
25
+ import { Badge as _sfc_main$1 } from "../badge/Badge.js";
26
26
  import { w as withInstall } from "../with-install-Ch3FF0uS.js";
27
27
  const _hoisted_1 = { class: "nut-tabbar-item_icon-box" };
28
28
  const _hoisted_2 = {
@@ -76,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
76
76
  }),
77
77
  onClick: change
78
78
  }, [
79
- createVNode(NutBadge, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
79
+ createVNode(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
80
80
  default: withCtx(() => [
81
81
  createElementVNode("view", _hoisted_1, [
82
82
  _ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2, [
@@ -1,6 +1,6 @@
1
1
  import { computed, provide, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, createElementBlock, toDisplayString, renderSlot } from "vue";
2
2
  import { c as createComponent } from "../component-DQf3CENX.js";
3
- import { N as NutPopup } from "../index-uHBD4dfS.js";
3
+ import { N as NutPopup } from "../index-wLaOjIn1.js";
4
4
  import { u as useLocale } from "../index-CFigyH92.js";
5
5
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
6
6
  const { create } = createComponent("time-select");