@nutui/nutui 3.1.17 → 3.1.19-beta.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 (155) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/LICENSE +1 -1
  3. package/README.md +7 -1
  4. package/dist/nutui.d.ts +3 -1
  5. package/dist/nutui.es.js +2335 -1280
  6. package/dist/nutui.umd.js +2350 -1293
  7. package/dist/packages/_es/ActionSheet.js +8 -3
  8. package/dist/packages/_es/Address.js +17 -11
  9. package/dist/packages/_es/Audio.js +2 -2
  10. package/dist/packages/_es/AudioOperate.js +125 -0
  11. package/dist/packages/_es/Avatar.js +2 -2
  12. package/dist/packages/_es/BackTop.js +7 -4
  13. package/dist/packages/_es/Badge.js +2 -2
  14. package/dist/packages/_es/Barrage.js +2 -2
  15. package/dist/packages/_es/Button.js +2 -2
  16. package/dist/packages/_es/Calendar.js +10 -687
  17. package/dist/packages/_es/CalendarItem.js +10 -0
  18. package/dist/packages/_es/Card.js +2 -2
  19. package/dist/packages/_es/Cascader.js +2 -2
  20. package/dist/packages/_es/Cell.js +25 -18
  21. package/dist/packages/_es/CellGroup.js +2 -2
  22. package/dist/packages/_es/Checkbox.js +4 -4
  23. package/dist/packages/_es/CheckboxGroup.js +4 -4
  24. package/dist/packages/_es/CircleProgress.js +2 -2
  25. package/dist/packages/_es/Col.js +2 -2
  26. package/dist/packages/_es/Collapse.js +2 -2
  27. package/dist/packages/_es/CollapseItem.js +31 -19
  28. package/dist/packages/_es/CountDown.js +4 -2
  29. package/dist/packages/_es/CountUp.js +25 -16
  30. package/dist/packages/_es/DatePicker.js +83 -47
  31. package/dist/packages/_es/Dialog.js +7 -5
  32. package/dist/packages/_es/Divider.js +2 -2
  33. package/dist/packages/_es/Drag.js +4 -4
  34. package/dist/packages/_es/Elevator.js +3 -3
  35. package/dist/packages/_es/Empty.js +2 -2
  36. package/dist/packages/_es/FixedNav.js +2 -2
  37. package/dist/packages/_es/Form.js +8 -6
  38. package/dist/packages/_es/FormItem.js +9 -6
  39. package/dist/packages/_es/Grid.js +2 -2
  40. package/dist/packages/_es/GridItem.js +3 -3
  41. package/dist/packages/_es/Icon.js +2 -2
  42. package/dist/packages/_es/ImagePreview.js +11 -6
  43. package/dist/packages/_es/Indicator.js +2 -2
  44. package/dist/packages/_es/InfiniteLoading.js +2 -2
  45. package/dist/packages/_es/Input.js +290 -66
  46. package/dist/packages/_es/InputNumber.js +2 -2
  47. package/dist/packages/_es/Layout.js +2 -2
  48. package/dist/packages/_es/List.js +124 -0
  49. package/dist/packages/_es/Menu.js +3 -3
  50. package/dist/packages/_es/MenuItem.js +4 -4
  51. package/dist/packages/_es/Navbar.js +31 -66
  52. package/dist/packages/_es/NoticeBar.js +41 -22
  53. package/dist/packages/_es/Notify.js +9 -5
  54. package/dist/packages/_es/NumberKeyboard.js +9 -4
  55. package/dist/packages/_es/OldPicker.js +484 -0
  56. package/dist/packages/_es/OverLay.js +2 -2
  57. package/dist/packages/_es/Pagination.js +2 -2
  58. package/dist/packages/_es/Picker.js +164 -157
  59. package/dist/packages/_es/Popover.js +7 -4
  60. package/dist/packages/_es/Popup.js +4 -4
  61. package/dist/packages/_es/Price.js +2 -2
  62. package/dist/packages/_es/Progress.js +14 -22
  63. package/dist/packages/_es/PullRefresh.js +363 -0
  64. package/dist/packages/_es/Radio.js +3 -3
  65. package/dist/packages/_es/RadioGroup.js +2 -2
  66. package/dist/packages/_es/Range.js +131 -21
  67. package/dist/packages/_es/Rate.js +2 -2
  68. package/dist/packages/_es/Row.js +2 -2
  69. package/dist/packages/_es/SearchBar.js +2 -2
  70. package/dist/packages/_es/ShortPassword.js +9 -4
  71. package/dist/packages/_es/SideNavBar.js +2 -2
  72. package/dist/packages/_es/SideNavBarItem.js +2 -2
  73. package/dist/packages/_es/Signature.js +25 -6
  74. package/dist/packages/_es/Skeleton.js +2 -2
  75. package/dist/packages/_es/Sku.js +31 -13
  76. package/dist/packages/_es/Step.js +28 -12
  77. package/dist/packages/_es/Steps.js +8 -3
  78. package/dist/packages/_es/Sticky.js +3 -3
  79. package/dist/packages/_es/SubSideNavBar.js +2 -2
  80. package/dist/packages/_es/Swipe.js +3 -3
  81. package/dist/packages/_es/Swiper.js +3 -3
  82. package/dist/packages/_es/SwiperItem.js +3 -3
  83. package/dist/packages/_es/Switch.js +2 -2
  84. package/dist/packages/_es/TabPane.js +2 -2
  85. package/dist/packages/_es/Tabbar.js +2 -2
  86. package/dist/packages/_es/TabbarItem.js +23 -8
  87. package/dist/packages/_es/Table.js +2 -2
  88. package/dist/packages/_es/Tabs.js +8 -5
  89. package/dist/packages/_es/Tag.js +11 -5
  90. package/dist/packages/_es/TextArea.js +38 -6
  91. package/dist/packages/_es/TimeDetail.js +2 -2
  92. package/dist/packages/_es/TimePannel.js +2 -2
  93. package/dist/packages/_es/TimeSelect.js +8 -3
  94. package/dist/packages/_es/Toast.js +16 -9
  95. package/dist/packages/_es/Uploader.js +2 -4
  96. package/dist/packages/_es/Video.js +12 -8
  97. package/dist/packages/_es/common.js +2 -2
  98. package/dist/packages/_es/component.js +2 -2
  99. package/dist/packages/_es/index.js +6 -8
  100. package/dist/packages/_es/index2.js +9 -32
  101. package/dist/packages/_es/index3.js +29 -57
  102. package/dist/packages/_es/index4.js +64 -0
  103. package/dist/packages/_es/index5.js +687 -0
  104. package/dist/packages/_es/plugin-vue_export-helper.js +2 -2
  105. package/dist/packages/_es/pxCheck.js +2 -2
  106. package/dist/packages/_es/raf.js +2 -2
  107. package/dist/packages/_es/util.js +2 -2
  108. package/dist/packages/actionsheet/index.scss +7 -6
  109. package/dist/packages/badge/index.scss +11 -13
  110. package/dist/packages/button/index.scss +6 -5
  111. package/dist/packages/calendar/index.scss +9 -4
  112. package/dist/packages/calendaritem/index.scss +0 -207
  113. package/dist/packages/cell/index.scss +9 -9
  114. package/dist/packages/cellgroup/index.scss +1 -1
  115. package/dist/packages/checkbox/index.scss +4 -3
  116. package/dist/packages/collapseitem/index.scss +21 -11
  117. package/dist/packages/countdown/index.scss +3 -1
  118. package/dist/packages/divider/index.scss +8 -8
  119. package/dist/packages/elevator/index.scss +36 -36
  120. package/dist/packages/formitem/index.scss +15 -8
  121. package/dist/packages/indicator/index.scss +1 -1
  122. package/dist/packages/input/index.scss +70 -24
  123. package/dist/packages/inputnumber/index.scss +4 -2
  124. package/dist/packages/list/index.scss +24 -0
  125. package/dist/packages/menu/index.scss +3 -3
  126. package/dist/packages/navbar/index.scss +30 -8
  127. package/dist/packages/noticebar/index.scss +10 -5
  128. package/dist/packages/notify/index.scss +10 -0
  129. package/dist/packages/numberkeyboard/index.scss +22 -21
  130. package/dist/packages/oldpicker/index.scss +131 -0
  131. package/dist/packages/picker/index.scss +38 -32
  132. package/dist/packages/progress/index.scss +24 -19
  133. package/dist/packages/radio/index.scss +7 -6
  134. package/dist/packages/range/index.scss +113 -6
  135. package/dist/packages/searchbar/index.scss +7 -7
  136. package/dist/packages/sidenavbaritem/index.scss +5 -5
  137. package/dist/packages/step/index.scss +29 -29
  138. package/dist/packages/subsidenavbar/index.scss +10 -8
  139. package/dist/packages/swiper/index.scss +4 -4
  140. package/dist/packages/switch/index.scss +8 -8
  141. package/dist/packages/tabbar/index.scss +3 -2
  142. package/dist/packages/tabbaritem/index.scss +19 -3
  143. package/dist/packages/tabs/index.scss +1 -0
  144. package/dist/packages/timedetail/index.scss +13 -13
  145. package/dist/packages/timepannel/index.scss +7 -7
  146. package/dist/packages/timeselect/index.scss +3 -3
  147. package/dist/packages/toast/index.scss +8 -7
  148. package/dist/packages/uploader/index.scss +4 -4
  149. package/dist/style.css +1 -1
  150. package/dist/styles/themes/default.scss +43 -41
  151. package/dist/styles/themes/jdt.scss +91 -0
  152. package/dist/styles/variables-jdt.scss +728 -0
  153. package/dist/styles/variables.scss +322 -38
  154. package/package.json +3 -2
  155. package/dist/styles/themes/jdd.scss +0 -2
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, toDisplayString, renderSlot, normalizeStyle } from "vue";
6
+ import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, renderSlot, toDisplayString } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
9
  const { componentName, create } = createComponent("navbar");
@@ -12,33 +12,25 @@ const _sfc_main = create({
12
12
  leftShow: { type: Boolean, default: true },
13
13
  title: { type: String, default: "" },
14
14
  titIcon: { type: String, default: "" },
15
- icon: { type: String, default: "" },
16
15
  desc: { type: String, default: "" },
17
- defaultIndex: {
18
- type: Number,
19
- default: 0
16
+ fixed: {
17
+ type: Boolean,
18
+ default: false
19
+ },
20
+ safeAreaInsetTop: {
21
+ type: Boolean,
22
+ default: false
20
23
  }
21
24
  },
22
- emits: [
23
- "click",
24
- "on-click-back",
25
- "on-click-title",
26
- "on-click-right",
27
- "on-click-desc",
28
- "on-click-icon",
29
- "on-click-more",
30
- "on-click-clear",
31
- "on-click-send",
32
- "on-click-slot",
33
- "on-click-slot-send",
34
- "switch-tab"
35
- ],
25
+ emits: ["click", "on-click-back", "on-click-title", "on-click-icon", "on-click-right"],
36
26
  setup(props, { emit }) {
37
- const activeIndex = ref(props.defaultIndex);
27
+ const { fixed, safeAreaInsetTop } = toRefs(props);
38
28
  const classes = computed(() => {
39
29
  const prefixCls = componentName;
40
30
  return {
41
- [prefixCls]: true
31
+ [prefixCls]: true,
32
+ [`${prefixCls}--fixed`]: fixed.value,
33
+ [`${prefixCls}--safe-area-inset-top`]: safeAreaInsetTop.value
42
34
  };
43
35
  });
44
36
  function handleLeft() {
@@ -50,32 +42,21 @@ const _sfc_main = create({
50
42
  function handleCenterIcon() {
51
43
  emit("on-click-icon");
52
44
  }
53
- function handleClear() {
54
- emit("on-click-clear");
55
- }
56
- function handleSend() {
57
- emit("on-click-send");
58
- }
59
- function handleSlot() {
60
- emit("on-click-slot");
61
- }
62
- function handleSends() {
63
- emit("on-click-slot-send");
45
+ function handleRight() {
46
+ emit("on-click-right");
64
47
  }
65
48
  return {
66
49
  classes,
67
50
  handleLeft,
68
51
  handleCenter,
69
52
  handleCenterIcon,
70
- handleClear,
71
- handleSend,
72
- handleSlot,
73
- handleSends,
74
- activeIndex
53
+ handleRight
75
54
  };
76
55
  }
77
56
  });
78
57
  const _hoisted_1 = { class: "nut-navbar__left" };
58
+ const _hoisted_2 = { class: "nut-navbar__title" };
59
+ const _hoisted_3 = { class: "nut-navbar__right" };
79
60
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
80
61
  const _component_nut_icon = resolveComponent("nut-icon");
81
62
  return openBlock(), createElementBlock("view", {
@@ -87,13 +68,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
87
68
  color: "#979797",
88
69
  name: "left",
89
70
  onClick: _ctx.handleLeft
90
- }, null, 8, ["onClick"])) : createCommentVNode("", true)
71
+ }, null, 8, ["onClick"])) : createCommentVNode("", true),
72
+ renderSlot(_ctx.$slots, "left")
91
73
  ]),
92
- createElementVNode("view", {
93
- class: normalizeClass(["nut-navbar__title", { icon: _ctx.icon }])
94
- }, [
74
+ createElementVNode("view", _hoisted_2, [
95
75
  _ctx.title ? (openBlock(), createElementBlock("view", {
96
76
  key: 0,
77
+ class: "title",
97
78
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
98
79
  }, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
99
80
  _ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, {
@@ -103,31 +84,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
103
84
  onClick: _ctx.handleCenterIcon
104
85
  }, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
105
86
  renderSlot(_ctx.$slots, "content")
106
- ], 2),
107
- _ctx.desc || _ctx.icon ? (openBlock(), createElementBlock("view", {
108
- key: 0,
109
- class: normalizeClass(["nut-navbar__right", { icon: _ctx.icon }])
110
- }, [
87
+ ]),
88
+ createElementVNode("view", _hoisted_3, [
111
89
  _ctx.desc ? (openBlock(), createElementBlock("view", {
112
90
  key: 0,
113
- style: normalizeStyle({ "text-align": _ctx.descTextAlign }),
114
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleClear && _ctx.handleClear(...args))
115
- }, toDisplayString(_ctx.desc), 5)) : createCommentVNode("", true),
116
- _ctx.icon ? (openBlock(), createElementBlock("view", {
117
- key: 1,
118
- onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleSends && _ctx.handleSends(...args))
119
- }, [
120
- renderSlot(_ctx.$slots, "icons")
121
- ])) : createCommentVNode("", true),
122
- createElementVNode("view", null, [
123
- _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
124
- key: 0,
125
- class: "rightIcon",
126
- name: _ctx.icon,
127
- onClick: _ctx.handleSend
128
- }, null, 8, ["name", "onClick"])) : createCommentVNode("", true)
129
- ])
130
- ], 2)) : createCommentVNode("", true)
91
+ class: "right_text",
92
+ onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
93
+ }, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
94
+ renderSlot(_ctx.$slots, "right")
95
+ ])
131
96
  ], 2);
132
97
  }
133
98
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
@@ -18,11 +18,11 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
22
- * (c) 2021 @jdf2e.
21
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
22
+ * (c) 2022 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
- import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, createBlock, createCommentVNode, createElementVNode, renderSlot, createTextVNode, toDisplayString, withModifiers, createVNode, vShow, Fragment, renderList } from "vue";
25
+ import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, renderSlot, createBlock, createCommentVNode, createElementVNode, createTextVNode, toDisplayString, withModifiers, createVNode, vShow, Fragment, renderList } from "vue";
26
26
  import { c as createComponent } from "./component.js";
27
27
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
28
28
  const { componentName, create } = createComponent("noticebar");
@@ -63,6 +63,7 @@ const _sfc_main = create({
63
63
  default: false
64
64
  },
65
65
  leftIcon: { type: String, default: "" },
66
+ rightIcon: { type: String, default: "" },
66
67
  color: {
67
68
  type: String,
68
69
  default: ""
@@ -77,7 +78,7 @@ const _sfc_main = create({
77
78
  },
78
79
  scrollable: {
79
80
  type: Boolean,
80
- default: true
81
+ default: null
81
82
  },
82
83
  speed: {
83
84
  type: Number,
@@ -87,6 +88,7 @@ const _sfc_main = create({
87
88
  components: {
88
89
  ScrollItem: function(props) {
89
90
  props.item.props.style = props.style;
91
+ props.item.key = props.key;
90
92
  return h(props.item);
91
93
  }
92
94
  },
@@ -105,7 +107,8 @@ const _sfc_main = create({
105
107
  scrollList: [],
106
108
  distance: 0,
107
109
  timer: null,
108
- keepAlive: false
110
+ keepAlive: false,
111
+ isCanScroll: null
109
112
  });
110
113
  const classes = computed(() => {
111
114
  const prefixCls = componentName;
@@ -113,6 +116,13 @@ const _sfc_main = create({
113
116
  [prefixCls]: true
114
117
  };
115
118
  });
119
+ const isEllipsis = computed(() => {
120
+ if (state.isCanScroll == null) {
121
+ return props.wrapable;
122
+ } else {
123
+ return !state.isCanScroll && !props.wrapable;
124
+ }
125
+ });
116
126
  const iconShow = computed(() => {
117
127
  if (props.leftIcon == "close") {
118
128
  return false;
@@ -131,9 +141,9 @@ const _sfc_main = create({
131
141
  });
132
142
  const contentStyle = computed(() => {
133
143
  return {
134
- paddingLeft: state.firstRound ? 0 : state.wrapWidth + "px",
135
144
  animationDelay: (state.firstRound ? props.delay : 0) + "s",
136
- animationDuration: state.duration + "s"
145
+ animationDuration: state.duration + "s",
146
+ transform: `translateX(${state.firstRound ? 0 : state.wrapWidth + "px"})`
137
147
  };
138
148
  });
139
149
  const iconBg = computed(() => {
@@ -176,7 +186,9 @@ const _sfc_main = create({
176
186
  }
177
187
  const wrapWidth = wrap.value.getBoundingClientRect().width;
178
188
  const offsetWidth = content.value.getBoundingClientRect().width;
179
- if (props.scrollable && offsetWidth > wrapWidth) {
189
+ state.isCanScroll = props.scrollable == null ? offsetWidth > wrapWidth : props.scrollable;
190
+ console.log(111, state.isCanScroll);
191
+ if (state.isCanScroll) {
180
192
  state.wrapWidth = wrapWidth;
181
193
  state.offsetWidth = offsetWidth;
182
194
  state.duration = offsetWidth / props.speed;
@@ -184,13 +196,15 @@ const _sfc_main = create({
184
196
  } else {
185
197
  state.animationClass = "";
186
198
  }
187
- });
199
+ }, 0);
188
200
  };
189
201
  const handleClick = (event) => {
190
202
  emit("click", event);
191
203
  };
192
204
  const onClickIcon = (event) => {
193
- state.showNoticeBar = !props.closeMode;
205
+ if (props.closeMode) {
206
+ state.showNoticeBar = !props.closeMode;
207
+ }
194
208
  emit("close", event);
195
209
  };
196
210
  const onAnimationEnd = () => {
@@ -263,6 +277,7 @@ const _sfc_main = create({
263
277
  clearInterval(state.timer);
264
278
  });
265
279
  return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(state)), {
280
+ isEllipsis,
266
281
  classes,
267
282
  iconShow,
268
283
  barStyle,
@@ -302,17 +317,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
302
317
  class: "left-icon",
303
318
  style: normalizeStyle({ "background-image": `url(${_ctx.iconBg})` })
304
319
  }, [
305
- !_ctx.iconBg ? (openBlock(), createBlock(_component_nut_icon, {
306
- key: 0,
307
- name: "notice",
308
- size: "16",
309
- color: _ctx.color
310
- }, null, 8, ["color"])) : createCommentVNode("", true)
320
+ renderSlot(_ctx.$slots, "left-icon", {}, () => [
321
+ !_ctx.iconBg ? (openBlock(), createBlock(_component_nut_icon, {
322
+ key: 0,
323
+ name: "notice",
324
+ size: "16",
325
+ color: _ctx.color
326
+ }, null, 8, ["color"])) : createCommentVNode("", true)
327
+ ])
311
328
  ], 4)) : createCommentVNode("", true),
312
329
  createElementVNode("view", _hoisted_1, [
313
330
  createElementVNode("view", {
314
331
  ref: "content",
315
- class: normalizeClass(["content", [_ctx.animationClass, { "nut-ellipsis": !_ctx.scrollable && !_ctx.wrapable }]]),
332
+ class: normalizeClass(["content", _ctx.animationClass, { "nut-ellipsis": _ctx.isEllipsis }]),
316
333
  style: normalizeStyle(_ctx.contentStyle),
317
334
  onAnimationend: _cache[0] || (_cache[0] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args)),
318
335
  onWebkitAnimationEnd: _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
@@ -322,15 +339,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
322
339
  ])
323
340
  ], 38)
324
341
  ], 512),
325
- _ctx.closeMode ? (openBlock(), createElementBlock("view", {
342
+ _ctx.closeMode || _ctx.rightIcon ? (openBlock(), createElementBlock("view", {
326
343
  key: 1,
327
344
  class: "right-icon",
328
345
  onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
329
346
  }, [
330
- createVNode(_component_nut_icon, {
331
- name: "close",
332
- color: _ctx.color
333
- }, null, 8, ["color"])
347
+ renderSlot(_ctx.$slots, "right-icon", {}, () => [
348
+ createVNode(_component_nut_icon, {
349
+ name: _ctx.rightIcon ? _ctx.rightIcon : "close",
350
+ color: _ctx.color
351
+ }, null, 8, ["name", "color"])
352
+ ])
334
353
  ])) : createCommentVNode("", true)
335
354
  ], 6)), [
336
355
  [vShow, _ctx.showNoticeBar]
@@ -18,13 +18,13 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
22
- * (c) 2021 @jdf2e.
21
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
22
+ * (c) 2022 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
25
  import { reactive, onMounted, watch, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, vShow, createVNode, render } from "vue";
26
26
  import { c as createComponent } from "./component.js";
27
- import Popup from "./Popup.js";
27
+ import popup from "./Popup.js";
28
28
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
29
29
  import "./OverLay.js";
30
30
  import "./Icon.js";
@@ -32,7 +32,7 @@ import "./pxCheck.js";
32
32
  const { componentName, create } = createComponent("notify");
33
33
  const _sfc_main = create({
34
34
  components: {
35
- [Popup.name]: Popup
35
+ [popup.name]: popup
36
36
  },
37
37
  props: {
38
38
  id: String,
@@ -52,6 +52,10 @@ const _sfc_main = create({
52
52
  type: Boolean,
53
53
  default: false
54
54
  },
55
+ position: {
56
+ type: String,
57
+ default: "top"
58
+ },
55
59
  onClose: Function,
56
60
  onClick: Function,
57
61
  unmount: Function
@@ -107,7 +111,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
107
111
  }, {
108
112
  default: withCtx(() => [
109
113
  withDirectives(createElementVNode("view", {
110
- class: normalizeClass(["popup-top", "nut-notify", `nut-notify--${_ctx.type}`, { className: _ctx.className }]),
114
+ class: normalizeClass([`popup-${_ctx.position}`, "nut-notify", `nut-notify--${_ctx.type}`, [_ctx.className]]),
111
115
  style: normalizeStyle({ color: _ctx.color, background: _ctx.background }),
112
116
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.clickCover && _ctx.clickCover(...args))
113
117
  }, [
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { ref, computed, watch, onMounted, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createTextVNode } from "vue";
@@ -40,6 +40,10 @@ const _sfc_main = create({
40
40
  overlay: {
41
41
  type: Boolean,
42
42
  default: true
43
+ },
44
+ isWrapTeleport: {
45
+ type: Boolean,
46
+ default: true
43
47
  }
44
48
  },
45
49
  emits: ["input", "delete", "close", "update:value"],
@@ -177,6 +181,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
177
181
  position: "bottom",
178
182
  overlay: _ctx.overlay,
179
183
  onClickOverlay: _cache[7] || (_cache[7] = ($event) => _ctx.closeBoard()),
184
+ isWrapTeleport: _ctx.isWrapTeleport,
180
185
  "overlay-class": "nut-numberkeyboard-overlay"
181
186
  }, {
182
187
  default: withCtx(() => [
@@ -231,7 +236,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
231
236
  ]),
232
237
  _ctx.title == "" ? (openBlock(), createElementBlock("div", {
233
238
  key: 0,
234
- class: "key-board-wrapper",
239
+ class: "key-board-wrapper key-board-finish",
235
240
  onClick: _cache[5] || (_cache[5] = ($event) => _ctx.closeBoard())
236
241
  }, [
237
242
  createElementVNode("div", {
@@ -243,7 +248,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
243
248
  ], 512)
244
249
  ]),
245
250
  _: 1
246
- }, 8, ["visible", "overlay"]);
251
+ }, 8, ["visible", "overlay", "isWrapTeleport"]);
247
252
  }
248
253
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
249
254
  export { index as default };