@nutui/nutui 4.3.0-beta.5 → 4.3.0

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 (71) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +1 -1
  3. package/dist/nutui.es.js +1 -1
  4. package/dist/nutui.js +4032 -4072
  5. package/dist/nutui.umd.js +1 -1
  6. package/dist/packages/actionsheet/ActionSheet.js +1 -1
  7. package/dist/packages/address/Address.js +1 -1
  8. package/dist/packages/audio/Audio.js +1 -1
  9. package/dist/packages/avatarcropper/AvatarCropper.js +4 -4
  10. package/dist/packages/avatarcropper/index.css +1 -1
  11. package/dist/packages/avatarcropper/index.scss +6 -0
  12. package/dist/packages/button/Button.js +25 -50
  13. package/dist/packages/calendar/Calendar.js +1 -1
  14. package/dist/packages/calendarcard/CalendarCard.js +6 -24
  15. package/dist/packages/cascader/Cascader.js +2 -2
  16. package/dist/packages/dialog/Dialog.js +1 -1
  17. package/dist/packages/divider/Divider.js +5 -17
  18. package/dist/packages/imagepreview/ImagePreview.js +2 -2
  19. package/dist/packages/{index-rf29bejW.js → index-cp6Ms_Qe.js} +1 -1
  20. package/dist/packages/{index-rbZsBckW.js → index-wY4t0zYt.js} +0 -4
  21. package/dist/packages/inputnumber/InputNumber.js +1 -0
  22. package/dist/packages/list/List.js +1 -1
  23. package/dist/packages/menu/Menu.js +1 -1
  24. package/dist/packages/menuitem/MenuItem.js +1 -1
  25. package/dist/packages/noticebar/Noticebar.js +9 -10
  26. package/dist/packages/notify/Notify.js +17 -5
  27. package/dist/packages/numberkeyboard/NumberKeyboard.js +1 -1
  28. package/dist/packages/popover/Popover.js +90 -88
  29. package/dist/packages/popover/index.css +1 -1
  30. package/dist/packages/popover/index.scss +5 -14
  31. package/dist/packages/popup/Popup.js +1 -1
  32. package/dist/packages/range/Range.js +1 -1
  33. package/dist/packages/shortpassword/ShortPassword.js +1 -1
  34. package/dist/packages/sku/Sku.js +1 -1
  35. package/dist/packages/sticky/Sticky.js +1 -1
  36. package/dist/packages/tabs/Tabs.js +1 -1
  37. package/dist/packages/timeselect/TimeSelect.js +1 -1
  38. package/dist/packages/tour/Tour.js +3 -3
  39. package/dist/packages/tour/index.css +1 -1
  40. package/dist/smartips/web-types.json +22 -31
  41. package/dist/style.css +1 -1
  42. package/dist/types/__VUE/actionsheet/index.vue.d.ts +6 -15
  43. package/dist/types/__VUE/address/index.vue.d.ts +6 -15
  44. package/dist/types/__VUE/button/button.vue.d.ts +65 -69
  45. package/dist/types/__VUE/button/index.d.ts +1 -0
  46. package/dist/types/__VUE/calendarcard/calendar-card.vue.d.ts +59 -57
  47. package/dist/types/__VUE/calendarcard/index.d.ts +1 -0
  48. package/dist/types/__VUE/cascader/index.vue.d.ts +6 -15
  49. package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
  50. package/dist/types/__VUE/comment/index.vue.d.ts +2 -2
  51. package/dist/types/__VUE/dialog/index.vue.d.ts +6 -15
  52. package/dist/types/__VUE/divider/divider.vue.d.ts +43 -35
  53. package/dist/types/__VUE/divider/index.d.ts +1 -0
  54. package/dist/types/__VUE/menu/index.vue.d.ts +2 -2
  55. package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -3
  56. package/dist/types/__VUE/noticebar/types.d.ts +1 -0
  57. package/dist/types/__VUE/notify/index.vue.d.ts +8 -6
  58. package/dist/types/__VUE/notify/types.d.ts +3 -0
  59. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +4 -3
  60. package/dist/types/__VUE/numberkeyboard/types.d.ts +1 -0
  61. package/dist/types/__VUE/popover/index.vue.d.ts +0 -1
  62. package/dist/types/__VUE/popover/type.d.ts +7 -0
  63. package/dist/types/__VUE/popup/index.vue.d.ts +6 -15
  64. package/dist/types/__VUE/popup/props.d.ts +4 -6
  65. package/dist/types/__VUE/popup/types.d.ts +2 -0
  66. package/dist/types/__VUE/radio/index.vue.d.ts +2 -2
  67. package/dist/types/__VUE/radiogroup/index.vue.d.ts +2 -2
  68. package/dist/types/__VUE/searchbar/index.vue.d.ts +2 -2
  69. package/dist/types/__VUE/switch/index.vue.d.ts +6 -6
  70. package/dist/types/index.d.ts +1 -1
  71. package/package.json +1 -1
@@ -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-rbZsBckW.js";
22
+ import { N as NutPopup, p as popupProps } from "../index-wY4t0zYt.js";
23
23
  import { Loading } from "@nutui/icons-vue";
24
24
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
25
25
  import "../overlay/Overlay.js";
@@ -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-rbZsBckW.js";
23
+ import { N as NutPopup, p as popupProps } from "../index-wY4t0zYt.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";
@@ -24,7 +24,7 @@ import NutRange from "../range/Range.js";
24
24
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
25
25
  import "../util-4Jkyw4BJ.js";
26
26
  import "../index-084nl_oE.js";
27
- import "../index-rf29bejW.js";
27
+ import "../index-cp6Ms_Qe.js";
28
28
  const { create } = createComponent("audio");
29
29
  const _sfc_main = create({
30
30
  props: {
@@ -38,13 +38,13 @@ var __async = (__this, __arguments, generator) => {
38
38
  step((generator = generator.apply(__this, __arguments)).next());
39
39
  });
40
40
  };
41
- import { reactive, ref, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, renderSlot, withDirectives, normalizeClass, normalizeStyle, createVNode, withCtx, createTextVNode, toDisplayString, vShow } from "vue";
41
+ import { reactive, ref, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, renderSlot, withDirectives, normalizeStyle, createVNode, withCtx, createTextVNode, toDisplayString, vShow } from "vue";
42
42
  import { Button as _sfc_main$1 } from "../button/Button.js";
43
43
  import { c as createComponent } from "../component-TCzwHGVq.js";
44
44
  import { d as preventDefault, e as clamp } from "../util-4Jkyw4BJ.js";
45
45
  import { Refresh2, Retweet } from "@nutui/icons-vue";
46
46
  import { u as useTouch } from "../index-084nl_oE.js";
47
- import { u as useRect } from "../index-rf29bejW.js";
47
+ import { u as useRect } from "../index-cp6Ms_Qe.js";
48
48
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
49
49
  import "../with-install-p59gYYU_.js";
50
50
  const { create } = createComponent("avatar-cropper");
@@ -395,7 +395,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
395
395
  const _component_Retweet = resolveComponent("Retweet");
396
396
  return openBlock(), createElementBlock(Fragment, null, [
397
397
  createElementVNode("div", {
398
- class: "nut-avatar-cropper",
398
+ class: normalizeClass(["nut-avatar-cropper", { round: _ctx.shape === "round" }]),
399
399
  "data-edit-text": _ctx.editText
400
400
  }, [
401
401
  renderSlot(_ctx.$slots, "default"),
@@ -406,7 +406,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
406
406
  class: "nut-avatar-cropper__input",
407
407
  onChange: _cache[0] || (_cache[0] = (...args) => _ctx.inputImageChange && _ctx.inputImageChange(...args))
408
408
  }, null, 544)
409
- ], 8, _hoisted_1),
409
+ ], 10, _hoisted_1),
410
410
  withDirectives(createElementVNode("div", _hoisted_2, [
411
411
  createElementVNode("canvas", _hoisted_3, null, 512),
412
412
  createElementVNode("div", {
@@ -1 +1 @@
1
- .nut-avatar-cropper{position:relative}.nut-avatar-cropper::after,.nut-avatar-cropper__edit-text{content:attr(data-edit-text);position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);z-index:1;color:#fff;display:flex;justify-content:center;align-items:center}.nut-avatar-cropper.taro::after{content:none}.nut-avatar-cropper__input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2}.nut-cropper-popup{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nut-overlay-bg-color, rgba(0, 0, 0, 0.7));z-index:1000}.nut-cropper-popup__canvas,.nut-cropper-popup__cut-canvas{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1}.nut-cropper-popup__cut-canvas{z-index:0}.nut-cropper-popup__toolbar{position:absolute;bottom:0;left:0;width:100%;z-index:2}.nut-cropper-popup__toolbar.top{top:0;bottom:inherit}.nut-cropper-popup__toolbar .flex-sb{width:100%;display:flex;justify-content:space-between}.nut-cropper-popup__toolbar-item{color:#fff;padding:15px;cursor:pointer;display:flex;align-items:center}.nut-cropper-popup__highlight{position:absolute;left:0;top:0;width:100%;height:100%;z-index:1;background-color:rgba(0,0,0,0)}.nut-cropper-popup__highlight .highlight{position:absolute;width:365px;height:365px;left:50%;top:50%;transform:translate(-50%, -50%);z-index:1;background-color:rgba(0,0,0,0);box-shadow:0 0 1000px 1000px rgba(0,0,0,.6)}.nut-cropper-popup__highlight .highlight__round{border-radius:50%}
1
+ .nut-avatar-cropper{position:relative}.nut-avatar-cropper::after,.nut-avatar-cropper__edit-text{content:attr(data-edit-text);position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);z-index:1;color:#fff;display:flex;justify-content:center;align-items:center}.nut-avatar-cropper.taro::after{content:none}.nut-avatar-cropper__input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2}.nut-avatar-cropper.round::after,.nut-avatar-cropper.round .nut-avatar-cropper__edit-text{border-radius:50%}.nut-cropper-popup{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nut-overlay-bg-color, rgba(0, 0, 0, 0.7));z-index:1000}.nut-cropper-popup__canvas,.nut-cropper-popup__cut-canvas{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1}.nut-cropper-popup__cut-canvas{z-index:0}.nut-cropper-popup__toolbar{position:absolute;bottom:0;left:0;width:100%;z-index:2}.nut-cropper-popup__toolbar.top{top:0;bottom:inherit}.nut-cropper-popup__toolbar .flex-sb{width:100%;display:flex;justify-content:space-between}.nut-cropper-popup__toolbar-item{color:#fff;padding:15px;cursor:pointer;display:flex;align-items:center}.nut-cropper-popup__highlight{position:absolute;left:0;top:0;width:100%;height:100%;z-index:1;background-color:rgba(0,0,0,0)}.nut-cropper-popup__highlight .highlight{position:absolute;width:365px;height:365px;left:50%;top:50%;transform:translate(-50%, -50%);z-index:1;background-color:rgba(0,0,0,0);box-shadow:0 0 1000px 1000px rgba(0,0,0,.6)}.nut-cropper-popup__highlight .highlight__round{border-radius:50%}
@@ -30,6 +30,12 @@
30
30
  cursor: pointer;
31
31
  z-index: 2;
32
32
  }
33
+ &.round {
34
+ &::after,
35
+ .nut-avatar-cropper__edit-text {
36
+ border-radius: 50%;
37
+ }
38
+ }
33
39
  }
34
40
 
35
41
  .nut-cropper-popup {
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, toRefs, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, unref, createBlock, createCommentVNode, renderSlot } from "vue";
20
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, unref, createCommentVNode, renderSlot } from "vue";
21
21
  import { Loading } from "@nutui/icons-vue";
22
22
  import { w as withInstall } from "../with-install-p59gYYU_.js";
23
23
  const _hoisted_1 = { class: "nut-button__wrap" };
@@ -26,46 +26,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
26
26
  }), {
27
27
  __name: "button",
28
28
  props: {
29
- color: {
30
- type: String,
31
- default: ""
32
- },
33
- shape: {
34
- type: String,
35
- default: "round"
36
- },
37
- plain: {
38
- type: Boolean,
39
- default: false
40
- },
41
- loading: {
42
- type: Boolean,
43
- default: false
44
- },
45
- disabled: {
46
- type: Boolean,
47
- default: false
48
- },
49
- type: {
50
- type: String,
51
- default: "default"
52
- },
53
- size: {
54
- type: String,
55
- default: "normal"
56
- },
57
- block: {
58
- type: Boolean,
59
- default: false
60
- }
29
+ color: { default: "" },
30
+ shape: { default: "round" },
31
+ plain: { type: Boolean, default: false },
32
+ loading: { type: Boolean, default: false },
33
+ disabled: { type: Boolean, default: false },
34
+ type: { default: "default" },
35
+ size: { default: "normal" },
36
+ block: { type: Boolean, default: false }
61
37
  },
62
38
  emits: ["click"],
63
39
  setup(__props, { emit: __emit }) {
64
40
  const props = __props;
65
41
  const emit = __emit;
66
- const { type, size, shape, disabled, loading, color, plain, block } = toRefs(props);
67
42
  const handleClick = (event) => {
68
- if (!loading.value && !disabled.value) {
43
+ if (!props.loading && !props.disabled) {
69
44
  emit("click", event);
70
45
  }
71
46
  };
@@ -73,26 +48,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
73
48
  const prefixCls = "nut-button";
74
49
  return {
75
50
  [prefixCls]: true,
76
- [`${prefixCls}--${type.value}`]: type.value,
77
- [`${prefixCls}--${size.value}`]: size.value,
78
- [`${prefixCls}--${shape.value}`]: shape.value,
79
- [`${prefixCls}--plain`]: plain.value,
80
- [`${prefixCls}--block`]: block.value,
81
- [`${prefixCls}--disabled`]: disabled.value,
82
- [`${prefixCls}--loading`]: loading.value
51
+ [`${prefixCls}--${props.type}`]: props.type,
52
+ [`${prefixCls}--${props.size}`]: props.size,
53
+ [`${prefixCls}--${props.shape}`]: props.shape,
54
+ [`${prefixCls}--plain`]: props.plain,
55
+ [`${prefixCls}--block`]: props.block,
56
+ [`${prefixCls}--disabled`]: props.disabled,
57
+ [`${prefixCls}--loading`]: props.loading
83
58
  };
84
59
  });
85
60
  const getStyle = computed(() => {
86
61
  let style = {};
87
- if (color == null ? void 0 : color.value) {
62
+ if (props.color) {
88
63
  style = {
89
- color: plain.value ? color.value : "#fff",
90
- background: plain.value ? "#fff" : `border-box ${color.value}`
64
+ color: props.plain ? props.color : "#fff",
65
+ background: props.plain ? "#fff" : `border-box ${props.color}`
91
66
  };
92
- if (color.value.includes("gradient")) {
67
+ if (props.color.includes("gradient")) {
93
68
  style.borderColor = "transparent";
94
69
  } else {
95
- style.borderColor = color.value;
70
+ style.borderColor = props.color;
96
71
  }
97
72
  }
98
73
  return style;
@@ -104,14 +79,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
104
79
  onClick: handleClick
105
80
  }, [
106
81
  createElementVNode("view", _hoisted_1, [
107
- unref(loading) ? (openBlock(), createBlock(unref(Loading), {
82
+ _ctx.loading ? (openBlock(), createBlock(unref(Loading), {
108
83
  key: 0,
109
84
  class: "nut-icon-loading"
110
85
  })) : createCommentVNode("", true),
111
- _ctx.$slots.icon && !unref(loading) ? renderSlot(_ctx.$slots, "icon", { key: 1 }) : createCommentVNode("", true),
86
+ _ctx.$slots.icon && !_ctx.loading ? renderSlot(_ctx.$slots, "icon", { key: 1 }) : createCommentVNode("", true),
112
87
  _ctx.$slots.default ? (openBlock(), createElementBlock("view", {
113
88
  key: 2,
114
- class: normalizeClass({ "nut-button__text": _ctx.$slots.icon || unref(loading) })
89
+ class: normalizeClass({ "nut-button__text": _ctx.$slots.icon || _ctx.loading })
115
90
  }, [
116
91
  renderSlot(_ctx.$slots, "default")
117
92
  ], 2)) : createCommentVNode("", true)
@@ -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-rbZsBckW.js";
4
+ import { N as NutPopup } from "../index-wY4t0zYt.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
  import "../raf-MQjoO-Ag.js";
@@ -204,30 +204,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
204
204
  }), {
205
205
  __name: "calendar-card",
206
206
  props: {
207
- type: {
208
- type: String,
209
- default: "single"
210
- },
211
- firstDayOfWeek: {
212
- type: Number,
213
- default: 0
214
- },
215
- modelValue: {
216
- type: [Object, Array],
217
- default: () => []
218
- },
219
- startDate: {
220
- type: Date,
221
- default: null
222
- },
223
- endDate: {
224
- type: Date,
225
- default: null
226
- },
227
- disableDay: {
228
- type: Function,
229
- default: () => false
230
- }
207
+ type: { default: "single" },
208
+ firstDayOfWeek: { default: 0 },
209
+ modelValue: { default: null },
210
+ startDate: { default: null },
211
+ endDate: { default: null },
212
+ disableDay: { type: Function, default: () => false }
231
213
  },
232
214
  emits: ["update:modelValue", "change", "dayClick", "pageChange"],
233
215
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -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-rbZsBckW.js";
58
+ import { N as NutPopup, p as popupProps } from "../index-wY4t0zYt.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";
@@ -66,7 +66,7 @@ import "../overlay/Overlay.js";
66
66
  import "../util-4Jkyw4BJ.js";
67
67
  import "../sticky/Sticky.js";
68
68
  import "../index-xDfQLRen.js";
69
- import "../index-rf29bejW.js";
69
+ import "../index-cp6Ms_Qe.js";
70
70
  import "../pxCheck-OnXlN1NC.js";
71
71
  import "../raf-MQjoO-Ag.js";
72
72
  import "../index-084nl_oE.js";
@@ -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-rbZsBckW.js";
27
+ import { N as NutPopup, p as popupProps } from "../index-wY4t0zYt.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";
@@ -24,22 +24,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
24
24
  }), {
25
25
  __name: "divider",
26
26
  props: {
27
- contentPosition: {
28
- type: String,
29
- default: "center"
30
- },
31
- dashed: {
32
- type: Boolean,
33
- default: false
34
- },
35
- hairline: {
36
- type: Boolean,
37
- default: true
38
- },
39
- direction: {
40
- type: String,
41
- default: "horizontal"
42
- }
27
+ contentPosition: { default: "center" },
28
+ dashed: { type: Boolean, default: false },
29
+ hairline: { type: Boolean, default: true },
30
+ direction: { default: "horizontal" }
43
31
  },
44
32
  setup(__props) {
45
33
  const props = __props;
@@ -66,7 +54,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
66
54
  return openBlock(), createElementBlock("view", {
67
55
  class: normalizeClass(classes.value)
68
56
  }, [
69
- __props.direction === "horizontal" ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true)
57
+ _ctx.direction === "horizontal" ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true)
70
58
  ], 2);
71
59
  };
72
60
  }
@@ -25,13 +25,13 @@ var __publicField = (obj, key, value) => {
25
25
  import { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeStyle, createElementBlock, createCommentVNode, ref, nextTick, onMounted, Fragment, renderList, toDisplayString, normalizeClass, renderSlot, createVNode, h } from "vue";
26
26
  import { c as createComponent } from "../component-TCzwHGVq.js";
27
27
  import { e as clamp, d as preventDefault, a as isArray } from "../util-4Jkyw4BJ.js";
28
- import { u as useRect } from "../index-rf29bejW.js";
28
+ import { u as useRect } from "../index-cp6Ms_Qe.js";
29
29
  import { u as useTouch } from "../index-084nl_oE.js";
30
30
  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-rbZsBckW.js";
34
+ import { N as NutPopup } from "../index-wY4t0zYt.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";
@@ -1,6 +1,6 @@
1
1
  import { unref } from "vue";
2
2
  function isWindow(val) {
3
- return val === window;
3
+ return typeof window !== "undefined" && val === window;
4
4
  }
5
5
  const useRect = (elementRef) => {
6
6
  const element = unref(elementRef);
@@ -67,10 +67,6 @@ const popupProps = {
67
67
  type: String,
68
68
  default: "top-right"
69
69
  },
70
- closeIcon: {
71
- type: String,
72
- default: "close"
73
- },
74
70
  destroyOnClose: {
75
71
  type: Boolean,
76
72
  default: true
@@ -59,6 +59,7 @@ const _sfc_main = create({
59
59
  const change = (event) => {
60
60
  const input = event.target;
61
61
  emit("update:modelValue", input.value, event);
62
+ emit("change", input.value, event);
62
63
  };
63
64
  const emitChange = (value, event) => {
64
65
  let output_value = fixedDecimalPlaces(value);
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { ref, reactive, computed, watch, toRefs, openBlock, createElementBlock, normalizeStyle, createElementVNode, Fragment, renderList, renderSlot } from "vue";
21
21
  import { c as createComponent } from "../component-TCzwHGVq.js";
22
- import { u as useRect } from "../index-rf29bejW.js";
22
+ import { u as useRect } from "../index-cp6Ms_Qe.js";
23
23
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
24
24
  var CompareResult = /* @__PURE__ */ ((CompareResult2) => {
25
25
  CompareResult2[CompareResult2["eq"] = 1] = "eq";
@@ -1,6 +1,6 @@
1
1
  import { ref, computed, onMounted, onUnmounted, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, renderSlot, createBlock } from "vue";
2
2
  import { c as createComponent } from "../component-TCzwHGVq.js";
3
- import { u as useRect } from "../index-rf29bejW.js";
3
+ import { u as useRect } from "../index-cp6Ms_Qe.js";
4
4
  import { RectUp, RectDown } from "@nutui/icons-vue";
5
5
  import { M as MENU_KEY } from "../types-j71K23JP.js";
6
6
  import { u as useChildren } from "../useChildren-GU_NVfD8.js";
@@ -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-rbZsBckW.js";
22
+ import { N as NutPopup } from "../index-wY4t0zYt.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";
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, withDirectives, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createBlock, createCommentVNode, createTextVNode, toDisplayString, withModifiers, vShow, Fragment, renderList } from "vue";
20
+ import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, withDirectives, normalizeClass, normalizeStyle, renderSlot, createVNode, createCommentVNode, createElementVNode, createTextVNode, toDisplayString, withModifiers, createBlock, vShow, Fragment, renderList } from "vue";
21
21
  import { Notice, CircleClose } from "@nutui/icons-vue";
22
22
  import { c as createComponent } from "../component-TCzwHGVq.js";
23
23
  import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
@@ -25,7 +25,6 @@ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
25
25
  const { create } = createComponent("noticebar");
26
26
  const _sfc_main = create({
27
27
  props: {
28
- // 滚动方向 across 横向 vertical 纵向
29
28
  direction: {
30
29
  type: String,
31
30
  default: "across"
@@ -318,7 +317,10 @@ const _sfc_main = create({
318
317
  }
319
318
  });
320
319
  const _hoisted_1 = { class: "nut-noticebar" };
321
- const _hoisted_2 = { class: "nut-noticebar__page-lefticon" };
320
+ const _hoisted_2 = {
321
+ key: 0,
322
+ class: "nut-noticebar__page-lefticon"
323
+ };
322
324
  const _hoisted_3 = {
323
325
  ref: "wrap",
324
326
  class: "nut-noticebar__page-wrap"
@@ -341,14 +343,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
341
343
  style: normalizeStyle(_ctx.barStyle),
342
344
  onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
343
345
  }, [
344
- createElementVNode("view", _hoisted_2, [
346
+ _ctx.leftIcon ? (openBlock(), createElementBlock("view", _hoisted_2, [
345
347
  renderSlot(_ctx.$slots, "left-icon", {}, () => [
346
- _ctx.leftIcon ? (openBlock(), createBlock(_component_Notice, {
347
- key: 0,
348
- size: "16px"
349
- })) : createCommentVNode("", true)
348
+ createVNode(_component_Notice, { size: "16px" })
350
349
  ])
351
- ]),
350
+ ])) : createCommentVNode("", true),
352
351
  createElementVNode("view", _hoisted_3, [
353
352
  createElementVNode("view", {
354
353
  ref: "content",
@@ -363,7 +362,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
363
362
  ], 38)
364
363
  ], 512),
365
364
  _ctx.closeMode || _ctx.$slots["right-icon"] ? (openBlock(), createElementBlock("view", {
366
- key: 0,
365
+ key: 1,
367
366
  class: "nut-noticebar__page-righticon",
368
367
  onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
369
368
  }, [
@@ -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-rbZsBckW.js";
22
+ import { N as NutPopup } from "../index-wY4t0zYt.js";
23
23
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
24
24
  import "@nutui/icons-vue";
25
25
  import "../overlay/Overlay.js";
@@ -31,14 +31,26 @@ const _sfc_main = create({
31
31
  },
32
32
  props: {
33
33
  id: String,
34
- color: { type: String, default: "" },
35
- msg: { type: String, default: "" },
36
- duration: { type: Number, default: 3e3 },
34
+ color: {
35
+ type: String,
36
+ default: ""
37
+ },
38
+ msg: {
39
+ type: String,
40
+ default: ""
41
+ },
42
+ duration: {
43
+ type: Number,
44
+ default: 3e3
45
+ },
37
46
  className: {
38
47
  type: String,
39
48
  default: ""
40
49
  },
41
- background: { type: String, default: "" },
50
+ background: {
51
+ type: String,
52
+ default: ""
53
+ },
42
54
  type: {
43
55
  type: String,
44
56
  default: "danger"
@@ -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-rbZsBckW.js";
3
+ import { N as NutPopup } from "../index-wY4t0zYt.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
  import "@nutui/icons-vue";