@nutui/nutui 3.1.23-beta.6 → 3.2.2-beta.1

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 (231) hide show
  1. package/CHANGELOG.md +63 -1
  2. package/dist/nutui.es.js +1475 -1070
  3. package/dist/nutui.umd.js +1468 -1063
  4. package/dist/packages/_es/ActionSheet.js +4 -22
  5. package/dist/packages/_es/Address.js +79 -71
  6. package/dist/packages/_es/AddressList.js +7 -5
  7. package/dist/packages/_es/Animate.js +2 -21
  8. package/dist/packages/_es/Audio.js +39 -68
  9. package/dist/packages/_es/AudioOperate.js +3 -24
  10. package/dist/packages/_es/Avatar.js +8 -24
  11. package/dist/packages/_es/AvatarGroup.js +1 -1
  12. package/dist/packages/_es/BackTop.js +1 -1
  13. package/dist/packages/_es/Badge.js +1 -1
  14. package/dist/packages/_es/Barrage.js +7 -4
  15. package/dist/packages/_es/Button.js +6 -5
  16. package/dist/packages/_es/Calendar.js +10 -4
  17. package/dist/packages/_es/CalendarItem.js +1 -1
  18. package/dist/packages/_es/Card.js +1 -1
  19. package/dist/packages/_es/Cascader.js +51 -65
  20. package/dist/packages/_es/Category.js +2 -2
  21. package/dist/packages/_es/CategoryPane.js +10 -10
  22. package/dist/packages/_es/Cell.js +8 -9
  23. package/dist/packages/_es/CellGroup.js +1 -1
  24. package/dist/packages/_es/Checkbox.js +31 -17
  25. package/dist/packages/_es/CheckboxGroup.js +14 -7
  26. package/dist/packages/_es/CircleProgress.js +1 -1
  27. package/dist/packages/_es/Col.js +5 -11
  28. package/dist/packages/_es/Collapse.js +22 -19
  29. package/dist/packages/_es/CollapseItem.js +30 -42
  30. package/dist/packages/_es/Comment.js +13 -9
  31. package/dist/packages/_es/ConfigProvider.js +8 -4
  32. package/dist/packages/_es/CountDown.js +40 -46
  33. package/dist/packages/_es/CountUp.js +39 -40
  34. package/dist/packages/_es/DatePicker.js +25 -33
  35. package/dist/packages/_es/Dialog.js +12 -27
  36. package/dist/packages/_es/Divider.js +7 -24
  37. package/dist/packages/_es/Drag.js +1 -1
  38. package/dist/packages/_es/Ecard.js +7 -4
  39. package/dist/packages/_es/Elevator.js +25 -38
  40. package/dist/packages/_es/Ellipsis.js +14 -28
  41. package/dist/packages/_es/Empty.js +1 -1
  42. package/dist/packages/_es/FixedNav.js +18 -14
  43. package/dist/packages/_es/Form.js +8 -4
  44. package/dist/packages/_es/FormItem.js +1 -1
  45. package/dist/packages/_es/Grid.js +1 -1
  46. package/dist/packages/_es/GridItem.js +6 -5
  47. package/dist/packages/_es/Icon.js +15 -11
  48. package/dist/packages/_es/Image.js +8 -24
  49. package/dist/packages/_es/ImagePreview.js +24 -39
  50. package/dist/packages/_es/Indicator.js +1 -1
  51. package/dist/packages/_es/InfiniteLoading.js +8 -33
  52. package/dist/packages/_es/Input.js +75 -69
  53. package/dist/packages/_es/InputNumber.js +20 -14
  54. package/dist/packages/_es/Layout.js +1 -1
  55. package/dist/packages/_es/List.js +10 -25
  56. package/dist/packages/_es/Menu.js +17 -10
  57. package/dist/packages/_es/MenuItem.js +5 -26
  58. package/dist/packages/_es/Navbar.js +10 -8
  59. package/dist/packages/_es/NoticeBar.js +20 -31
  60. package/dist/packages/_es/Notify.js +16 -32
  61. package/dist/packages/_es/NumberKeyboard.js +21 -16
  62. package/dist/packages/_es/OldPicker.js +47 -46
  63. package/dist/packages/_es/OverLay.js +11 -23
  64. package/dist/packages/_es/Pagination.js +1 -1
  65. package/dist/packages/_es/Picker.js +81 -59
  66. package/dist/packages/_es/Popover.js +58 -58
  67. package/dist/packages/_es/Popup.js +38 -43
  68. package/dist/packages/_es/Price.js +1 -1
  69. package/dist/packages/_es/Progress.js +4 -5
  70. package/dist/packages/_es/PullRefresh.js +5 -20
  71. package/dist/packages/_es/Radio.js +25 -13
  72. package/dist/packages/_es/RadioGroup.js +12 -5
  73. package/dist/packages/_es/Range.js +20 -33
  74. package/dist/packages/_es/Rate.js +5 -24
  75. package/dist/packages/_es/Row.js +5 -11
  76. package/dist/packages/_es/SearchBar.js +5 -24
  77. package/dist/packages/_es/ShortPassword.js +18 -11
  78. package/dist/packages/_es/SideNavBar.js +4 -22
  79. package/dist/packages/_es/SideNavBarItem.js +1 -1
  80. package/dist/packages/_es/Signature.js +15 -23
  81. package/dist/packages/_es/Skeleton.js +1 -1
  82. package/dist/packages/_es/Sku.js +24 -32
  83. package/dist/packages/_es/Step.js +9 -26
  84. package/dist/packages/_es/Steps.js +8 -4
  85. package/dist/packages/_es/Sticky.js +23 -12
  86. package/dist/packages/_es/SubSideNavBar.js +4 -22
  87. package/dist/packages/_es/Swipe.js +5 -24
  88. package/dist/packages/_es/Swiper.js +23 -14
  89. package/dist/packages/_es/SwiperItem.js +1 -1
  90. package/dist/packages/_es/Switch.js +15 -11
  91. package/dist/packages/_es/TabPane.js +1 -1
  92. package/dist/packages/_es/Tabbar.js +7 -4
  93. package/dist/packages/_es/TabbarItem.js +13 -14
  94. package/dist/packages/_es/Table.js +10 -25
  95. package/dist/packages/_es/Tabs.js +20 -29
  96. package/dist/packages/_es/Tag.js +11 -15
  97. package/dist/packages/_es/TextArea.js +8 -5
  98. package/dist/packages/_es/TimeDetail.js +5 -24
  99. package/dist/packages/_es/TimePannel.js +4 -22
  100. package/dist/packages/_es/TimeSelect.js +1 -1
  101. package/dist/packages/_es/Toast.js +22 -39
  102. package/dist/packages/_es/Uploader.js +54 -54
  103. package/dist/packages/_es/Video.js +22 -33
  104. package/dist/packages/_es/WaterMark.js +31 -44
  105. package/dist/packages/_es/common.js +21 -11
  106. package/dist/packages/_es/component.js +5 -5
  107. package/dist/packages/_es/index.js +1 -1
  108. package/dist/packages/_es/index2.js +1 -1
  109. package/dist/packages/_es/index3.js +1 -1
  110. package/dist/packages/_es/index4.js +1 -1
  111. package/dist/packages/_es/index5.js +26 -35
  112. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  113. package/dist/packages/_es/pxCheck.js +1 -1
  114. package/dist/packages/_es/raf.js +1 -1
  115. package/dist/packages/_es/style.css +1 -111
  116. package/dist/packages/actionsheet/index.scss +17 -0
  117. package/dist/packages/address/index.scss +60 -0
  118. package/dist/packages/addresslist/index.scss +57 -17
  119. package/dist/packages/audio/index.scss +8 -0
  120. package/dist/packages/barrage/index.scss +7 -0
  121. package/dist/packages/button/index.scss +1 -0
  122. package/dist/packages/card/index.scss +8 -1
  123. package/dist/packages/category/index.scss +25 -4
  124. package/dist/packages/categorypane/index.scss +18 -65
  125. package/dist/packages/circleprogress/index.scss +6 -0
  126. package/dist/packages/collapseitem/index.scss +21 -0
  127. package/dist/packages/comment/index.scss +37 -0
  128. package/dist/packages/countup/index.scss +24 -3
  129. package/dist/packages/ecard/index.scss +31 -1
  130. package/dist/packages/elevator/index.scss +16 -0
  131. package/dist/packages/empty/index.scss +6 -0
  132. package/dist/packages/fixednav/index.scss +7 -0
  133. package/dist/packages/image/index.scss +12 -0
  134. package/dist/packages/infiniteloading/index.scss +18 -0
  135. package/dist/packages/locale/lang/baseLang.js +1 -1
  136. package/dist/packages/locale/lang/en-US.js +1 -1
  137. package/dist/packages/locale/lang/id-ID.js +1 -1
  138. package/dist/packages/locale/lang/index.js +1 -1
  139. package/dist/packages/locale/lang/zh-CN.js +1 -1
  140. package/dist/packages/locale/lang/zh-TW.js +1 -1
  141. package/dist/packages/menu/index.scss +14 -2
  142. package/dist/packages/menuitem/index.scss +8 -0
  143. package/dist/packages/noticebar/index.scss +13 -0
  144. package/dist/packages/numberkeyboard/index.scss +10 -0
  145. package/dist/packages/picker/index.scss +33 -0
  146. package/dist/packages/popup/index.scss +10 -0
  147. package/dist/packages/radio/index.scss +1 -0
  148. package/dist/packages/shortpassword/index.scss +20 -0
  149. package/dist/packages/sidenavbaritem/index.scss +9 -0
  150. package/dist/packages/sku/index.scss +40 -0
  151. package/dist/packages/step/index.scss +52 -0
  152. package/dist/packages/subsidenavbar/index.scss +12 -0
  153. package/dist/packages/swiper/index.scss +2 -0
  154. package/dist/packages/swiperitem/index.scss +3 -0
  155. package/dist/packages/tag/index.scss +20 -0
  156. package/dist/packages/watermark/index.scss +1 -1
  157. package/dist/smartips/attributes.json +38 -2
  158. package/dist/smartips/tags.json +14 -4
  159. package/dist/smartips/web-types.json +86 -4
  160. package/dist/style.css +1 -1
  161. package/dist/styles/themes/default.scss +51 -51
  162. package/dist/styles/themes/jdb.scss +51 -51
  163. package/dist/styles/themes/jdt.scss +51 -51
  164. package/dist/styles/variables-jdb.scss +28 -7
  165. package/dist/styles/variables-jdt.scss +28 -7
  166. package/dist/styles/variables.scss +27 -7
  167. package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
  168. package/dist/types/__VUE/address/index.vue.d.ts +1 -1
  169. package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -1
  170. package/dist/types/__VUE/audio/index.vue.d.ts +4 -1
  171. package/dist/types/__VUE/audiooperate/index.vue.d.ts +15 -72
  172. package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
  173. package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
  174. package/dist/types/__VUE/calendar/index.vue.d.ts +7 -0
  175. package/dist/types/__VUE/calendaritem/index.vue.d.ts +2 -2
  176. package/dist/types/__VUE/categorypane/index.vue.d.ts +1 -1
  177. package/dist/types/__VUE/cell/index.vue.d.ts +9 -2
  178. package/dist/types/__VUE/cellgroup/index.vue.d.ts +1 -1
  179. package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +1 -1
  180. package/dist/types/__VUE/circleprogress/index.vue.d.ts +1 -1
  181. package/dist/types/__VUE/col/index.vue.d.ts +2 -5
  182. package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
  183. package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
  184. package/dist/types/__VUE/configprovider/index.vue.d.ts +1 -1
  185. package/dist/types/__VUE/countdown/index.vue.d.ts +1 -1
  186. package/dist/types/__VUE/countup/index.vue.d.ts +1 -1
  187. package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
  188. package/dist/types/__VUE/fixednav/common.d.ts +56 -0
  189. package/dist/types/__VUE/fixednav/index.vue.d.ts +17 -9
  190. package/dist/types/__VUE/formitem/index.vue.d.ts +1 -1
  191. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
  192. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
  193. package/dist/types/__VUE/imagepreview/index.d.ts +7 -6
  194. package/dist/types/__VUE/imagepreview/index.vue.d.ts +4 -4
  195. package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
  196. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -1
  197. package/dist/types/__VUE/input/index.vue.d.ts +4 -9
  198. package/dist/types/__VUE/inputnumber/index.vue.d.ts +15 -1
  199. package/dist/types/__VUE/menu/index.vue.d.ts +3 -0
  200. package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -4
  201. package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -4
  202. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
  203. package/dist/types/__VUE/oldpicker/Column.vue.d.ts +1 -1
  204. package/dist/types/__VUE/oldpicker/index.vue.d.ts +1 -1
  205. package/dist/types/__VUE/overlay/index.vue.d.ts +1 -1
  206. package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
  207. package/dist/types/__VUE/picker/index.vue.d.ts +28 -13
  208. package/dist/types/__VUE/popover/index.vue.d.ts +2 -2
  209. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +1 -1
  210. package/dist/types/__VUE/radiogroup/index.vue.d.ts +1 -1
  211. package/dist/types/__VUE/row/index.vue.d.ts +2 -5
  212. package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
  213. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  214. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +1 -1
  215. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +1 -1
  216. package/dist/types/__VUE/signature/index.vue.d.ts +5 -2
  217. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +1 -1
  218. package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
  219. package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
  220. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
  221. package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -1
  222. package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
  223. package/dist/types/__VUE/timedetail/index.vue.d.ts +1 -1
  224. package/dist/types/__VUE/timepannel/index.vue.d.ts +1 -1
  225. package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
  226. package/dist/types/__VUE/uploader/index.vue.d.ts +7 -0
  227. package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
  228. package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
  229. package/dist/types/index.d.ts +1 -1
  230. package/package.json +2 -1
  231. package/dist/packages/index.d.ts +0 -3
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { ref, reactive, computed, watch, onMounted, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, normalizeStyle, createElementVNode, toDisplayString, createCommentVNode, renderSlot, createVNode, withDirectives, createBlock, vShow, createTextVNode } from "vue";
6
+ import { ref, reactive, computed, watch, onMounted, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, normalizeStyle, createElementVNode, toDisplayString, createCommentVNode, renderSlot, createVNode, mergeProps, withDirectives, createBlock, vShow, createTextVNode } 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
  import "../locale/lang";
@@ -270,6 +270,8 @@ const _sfc_main = create({
270
270
  emit("blur", value, event);
271
271
  };
272
272
  const clear = (event) => {
273
+ if (props.disabled)
274
+ return;
273
275
  emit("update:modelValue", "", event);
274
276
  emit("change", "", event);
275
277
  emit("clear", "", event);
@@ -304,10 +306,13 @@ const _sfc_main = create({
304
306
  return;
305
307
  }
306
308
  };
307
- watch(() => props.modelValue, () => {
308
- updateValue(getModelValue());
309
- resetValidation();
310
- });
309
+ watch(
310
+ () => props.modelValue,
311
+ () => {
312
+ updateValue(getModelValue());
313
+ resetValidation();
314
+ }
315
+ );
311
316
  onMounted(() => {
312
317
  updateValue(getModelValue(), props.formatTrigger);
313
318
  });
@@ -334,18 +339,21 @@ const _hoisted_1 = { class: "label-string" };
334
339
  const _hoisted_2 = { class: "nut-input-value" };
335
340
  const _hoisted_3 = { class: "label-string" };
336
341
  const _hoisted_4 = { class: "nut-input-value" };
337
- const _hoisted_5 = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
338
- const _hoisted_6 = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
339
- const _hoisted_7 = {
342
+ const _hoisted_5 = { class: "nut-input-inner" };
343
+ const _hoisted_6 = { class: "nut-input-box" };
344
+ const _hoisted_7 = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
345
+ const _hoisted_8 = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
346
+ const _hoisted_9 = { class: "nut-input-clear-box" };
347
+ const _hoisted_10 = {
340
348
  key: 0,
341
349
  class: "nut-input-word-limit"
342
350
  };
343
- const _hoisted_8 = { class: "nut-input-word-num" };
351
+ const _hoisted_11 = { class: "nut-input-word-num" };
344
352
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
345
353
  const _component_nut_icon = resolveComponent("nut-icon");
346
354
  return openBlock(), createElementBlock("view", {
347
355
  class: normalizeClass(_ctx.classes),
348
- onClick: _cache[10] || (_cache[10] = (...args) => _ctx.onClick && _ctx.onClick(...args))
356
+ onClick: _cache[11] || (_cache[11] = (...args) => _ctx.onClick && _ctx.onClick(...args))
349
357
  }, [
350
358
  _ctx.$slots.input ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
351
359
  _ctx.label ? (openBlock(), createElementBlock("view", {
@@ -372,10 +380,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
372
380
  class: "nut-input-left-icon",
373
381
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClickLeftIcon && _ctx.onClickLeftIcon(...args))
374
382
  }, [
375
- createVNode(_component_nut_icon, {
376
- name: _ctx.leftIcon,
377
- size: _ctx.leftIconSize
378
- }, null, 8, ["name", "size"])
383
+ createVNode(_component_nut_icon, mergeProps({ name: _ctx.leftIcon }, _ctx.$attrs, { size: _ctx.leftIconSize }), null, 16, ["name", "size"])
379
384
  ])) : createCommentVNode("", true),
380
385
  _ctx.label ? (openBlock(), createElementBlock("view", {
381
386
  key: 1,
@@ -388,68 +393,69 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
388
393
  createElementVNode("view", _hoisted_3, toDisplayString(_ctx.label) + " " + toDisplayString(_ctx.colon ? ":" : ""), 1)
389
394
  ], 6)) : createCommentVNode("", true),
390
395
  createElementVNode("view", _hoisted_4, [
391
- createElementVNode("view", {
392
- class: "nut-input-inner",
393
- onClick: _cache[9] || (_cache[9] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
394
- }, [
395
- _ctx.type == "textarea" ? (openBlock(), createElementBlock("textarea", {
396
- key: 0,
397
- class: "input-text",
398
- ref: "inputRef",
399
- style: normalizeStyle(_ctx.stylesTextarea),
400
- maxlength: _ctx.maxLength,
401
- placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
402
- disabled: _ctx.disabled,
403
- readonly: _ctx.readonly,
404
- value: _ctx.modelValue,
405
- formatTrigger: _ctx.formatTrigger,
406
- autofocus: _ctx.autofocus,
407
- onInput: _cache[2] || (_cache[2] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
408
- onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
409
- onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.onBlur && _ctx.onBlur(...args))
410
- }, null, 44, _hoisted_5)) : (openBlock(), createElementBlock("input", {
411
- key: 1,
412
- class: "input-text",
413
- ref: "inputRef",
414
- style: normalizeStyle(_ctx.styles),
415
- type: _ctx.inputType(_ctx.type),
416
- maxlength: _ctx.maxLength,
417
- placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
418
- disabled: _ctx.disabled,
419
- readonly: _ctx.readonly,
420
- value: _ctx.modelValue,
421
- formatTrigger: _ctx.formatTrigger,
422
- autofocus: _ctx.autofocus,
423
- onInput: _cache[5] || (_cache[5] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
424
- onFocus: _cache[6] || (_cache[6] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
425
- onBlur: _cache[7] || (_cache[7] = (...args) => _ctx.onBlur && _ctx.onBlur(...args))
426
- }, null, 44, _hoisted_6)),
427
- _ctx.clearable && !_ctx.readonly ? withDirectives((openBlock(), createBlock(_component_nut_icon, {
428
- key: 2,
429
- class: "nut-input-clear",
430
- name: _ctx.clearIcon,
431
- size: _ctx.clearSize,
432
- onClick: _ctx.clear
433
- }, null, 8, ["name", "size", "onClick"])), [
434
- [vShow, _ctx.active && _ctx.modelValue.length > 0]
435
- ]) : createCommentVNode("", true),
396
+ createElementVNode("view", _hoisted_5, [
397
+ createElementVNode("view", _hoisted_6, [
398
+ _ctx.type == "textarea" ? (openBlock(), createElementBlock("textarea", {
399
+ key: 0,
400
+ class: "input-text",
401
+ ref: "inputRef",
402
+ style: normalizeStyle(_ctx.stylesTextarea),
403
+ maxlength: _ctx.maxLength,
404
+ placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
405
+ disabled: _ctx.disabled,
406
+ readonly: _ctx.readonly,
407
+ value: _ctx.modelValue,
408
+ formatTrigger: _ctx.formatTrigger,
409
+ autofocus: _ctx.autofocus,
410
+ onInput: _cache[2] || (_cache[2] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
411
+ onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
412
+ onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.onBlur && _ctx.onBlur(...args)),
413
+ onClick: _cache[5] || (_cache[5] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
414
+ }, null, 44, _hoisted_7)) : (openBlock(), createElementBlock("input", {
415
+ key: 1,
416
+ class: "input-text",
417
+ ref: "inputRef",
418
+ style: normalizeStyle(_ctx.styles),
419
+ type: _ctx.inputType(_ctx.type),
420
+ maxlength: _ctx.maxLength,
421
+ placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
422
+ disabled: _ctx.disabled,
423
+ readonly: _ctx.readonly,
424
+ value: _ctx.modelValue,
425
+ formatTrigger: _ctx.formatTrigger,
426
+ autofocus: _ctx.autofocus,
427
+ onInput: _cache[6] || (_cache[6] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
428
+ onFocus: _cache[7] || (_cache[7] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
429
+ onBlur: _cache[8] || (_cache[8] = (...args) => _ctx.onBlur && _ctx.onBlur(...args)),
430
+ onClick: _cache[9] || (_cache[9] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
431
+ }, null, 44, _hoisted_8))
432
+ ]),
433
+ createElementVNode("view", _hoisted_9, [
434
+ _ctx.clearable && !_ctx.readonly ? withDirectives((openBlock(), createBlock(_component_nut_icon, mergeProps({
435
+ key: 0,
436
+ class: "nut-input-clear",
437
+ name: _ctx.clearIcon
438
+ }, _ctx.$attrs, {
439
+ size: _ctx.clearSize,
440
+ onClick: _ctx.clear
441
+ }), null, 16, ["name", "size", "onClick"])), [
442
+ [vShow, _ctx.active && _ctx.modelValue.length > 0]
443
+ ]) : createCommentVNode("", true)
444
+ ]),
436
445
  _ctx.rightIcon && _ctx.rightIcon.length > 0 ? (openBlock(), createElementBlock("view", {
437
- key: 3,
446
+ key: 0,
438
447
  class: "nut-input-right-icon",
439
- onClick: _cache[8] || (_cache[8] = (...args) => _ctx.onClickRightIcon && _ctx.onClickRightIcon(...args))
448
+ onClick: _cache[10] || (_cache[10] = (...args) => _ctx.onClickRightIcon && _ctx.onClickRightIcon(...args))
440
449
  }, [
441
- createVNode(_component_nut_icon, {
442
- name: _ctx.rightIcon,
443
- size: _ctx.rightIconSize
444
- }, null, 8, ["name", "size"])
450
+ createVNode(_component_nut_icon, mergeProps({ name: _ctx.rightIcon }, _ctx.$attrs, { size: _ctx.rightIconSize }), null, 16, ["name", "size"])
445
451
  ])) : createCommentVNode("", true),
446
452
  _ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {
447
- key: 4,
453
+ key: 1,
448
454
  class: "nut-input-button"
449
455
  }) : createCommentVNode("", true)
450
456
  ]),
451
- _ctx.showWordLimit && _ctx.maxLength ? (openBlock(), createElementBlock("view", _hoisted_7, [
452
- createElementVNode("span", _hoisted_8, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0), 1),
457
+ _ctx.showWordLimit && _ctx.maxLength ? (openBlock(), createElementBlock("view", _hoisted_10, [
458
+ createElementVNode("span", _hoisted_11, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0), 1),
453
459
  createTextVNode("/" + toDisplayString(_ctx.maxLength), 1)
454
460
  ])) : createCommentVNode("", true),
455
461
  _ctx.errorMessage ? (openBlock(), createElementBlock("view", {
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, createElementVNode } from "vue";
6
+ import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, mergeProps, createElementVNode } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { p as pxCheck } from "./pxCheck.js";
9
9
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
@@ -46,6 +46,14 @@ const _sfc_main = create({
46
46
  readonly: {
47
47
  type: Boolean,
48
48
  default: false
49
+ },
50
+ iconLeft: {
51
+ type: String,
52
+ default: "minus"
53
+ },
54
+ iconRight: {
55
+ type: String,
56
+ default: "plus"
49
57
  }
50
58
  },
51
59
  emits: ["update:modelValue", "change", "blur", "focus", "reduce", "add", "overlimit"],
@@ -135,12 +143,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
135
143
  class: normalizeClass(_ctx.classes),
136
144
  style: normalizeStyle({ height: _ctx.pxCheck(_ctx.buttonSize) })
137
145
  }, [
138
- createVNode(_component_nut_icon, {
139
- name: "minus",
140
- class: normalizeClass(["nut-inputnumber__icon", { "nut-inputnumber__icon--disabled": !_ctx.reduceAllow() }]),
141
- size: _ctx.buttonSize,
142
- onClick: _ctx.reduce
143
- }, null, 8, ["class", "size", "onClick"]),
146
+ createVNode(_component_nut_icon, mergeProps({
147
+ name: _ctx.iconLeft,
148
+ class: ["nut-inputnumber__icon", { "nut-inputnumber__icon--disabled": !_ctx.reduceAllow() }],
149
+ size: _ctx.buttonSize
150
+ }, _ctx.$attrs, { onClick: _ctx.reduce }), null, 16, ["name", "class", "size", "onClick"]),
144
151
  createElementVNode("input", {
145
152
  type: "number",
146
153
  min: _ctx.min,
@@ -153,12 +160,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
153
160
  onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
154
161
  onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args))
155
162
  }, null, 44, _hoisted_1),
156
- createVNode(_component_nut_icon, {
157
- name: "plus",
158
- class: normalizeClass(["nut-inputnumber__icon", { "nut-inputnumber__icon--disabled": !_ctx.addAllow() }]),
159
- size: _ctx.buttonSize,
160
- onClick: _ctx.add
161
- }, null, 8, ["class", "size", "onClick"])
163
+ createVNode(_component_nut_icon, mergeProps({
164
+ name: _ctx.iconRight,
165
+ class: ["nut-inputnumber__icon", { "nut-inputnumber__icon--disabled": !_ctx.addAllow() }],
166
+ size: _ctx.buttonSize
167
+ }, _ctx.$attrs, { onClick: _ctx.add }), null, 16, ["name", "class", "size", "onClick"])
162
168
  ], 6);
163
169
  }
164
170
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,24 +1,5 @@
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
1
  /*!
21
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -83,17 +64,21 @@ const _sfc_main = create({
83
64
  }
84
65
  state.startOffset = scrollTop - scrollTop % props.height;
85
66
  };
86
- watch(() => props.listData, () => {
87
- state.list = props.listData.slice();
88
- });
89
- return __spreadProps(__spreadValues({}, toRefs(state)), {
67
+ watch(
68
+ () => props.listData,
69
+ () => {
70
+ state.list = props.listData.slice();
71
+ }
72
+ );
73
+ return {
74
+ ...toRefs(state),
90
75
  list,
91
76
  getTransform,
92
77
  listHeight,
93
78
  visibleData,
94
79
  classes,
95
80
  handleScrollEvent
96
- });
81
+ };
97
82
  }
98
83
  });
99
84
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { ref, computed, onMounted, onUnmounted, reactive, provide, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, createVNode, renderSlot } from "vue";
6
+ import { ref, computed, onMounted, onUnmounted, reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, createVNode, mergeProps, renderSlot, provide } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { u as useRect } from "./index2.js";
9
9
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
@@ -27,6 +27,7 @@ const _sfc_main = create({
27
27
  type: [Number, String],
28
28
  default: 0
29
29
  },
30
+ titleIcon: String,
30
31
  closeOnClickOverlay: {
31
32
  type: Boolean,
32
33
  default: true
@@ -55,11 +56,17 @@ const _sfc_main = create({
55
56
  publicChildren.push(child.proxy);
56
57
  }
57
58
  };
58
- provide("menuParent", Object.assign({
59
- link,
60
- children: publicChildren,
61
- internalChildren
62
- }, value));
59
+ provide(
60
+ "menuParent",
61
+ Object.assign(
62
+ {
63
+ link,
64
+ children: publicChildren,
65
+ internalChildren
66
+ },
67
+ value
68
+ )
69
+ );
63
70
  };
64
71
  return {
65
72
  children: publicChildren,
@@ -159,11 +166,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
159
166
  class: normalizeClass(["nut-menu__title", _ctx.getClasses(item.state.showPopup)])
160
167
  }, [
161
168
  createElementVNode("view", _hoisted_2, toDisplayString(item.renderTitle()), 1),
162
- createVNode(_component_nut_icon, {
163
- name: item.titleIcon || (_ctx.direction === "up" ? "arrow-up" : "down-arrow"),
169
+ createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
170
+ name: _ctx.titleIcon || (_ctx.direction === "up" ? "arrow-up" : "down-arrow"),
164
171
  size: "10",
165
172
  class: "nut-menu__title-icon"
166
- }, null, 8, ["name"])
173
+ }), null, 16, ["name"])
167
174
  ], 2)
168
175
  ], 14, _hoisted_1);
169
176
  }), 128))
@@ -1,24 +1,5 @@
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
1
  /*!
21
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -47,7 +28,6 @@ const _sfc_main = create({
47
28
  type: Number,
48
29
  default: 1
49
30
  },
50
- titleIcon: String,
51
31
  activeTitleClass: String,
52
32
  inactiveTitleClass: String,
53
33
  optionIcon: {
@@ -90,7 +70,7 @@ const _sfc_main = create({
90
70
  if (parent.props.direction === "down") {
91
71
  return heightStyle;
92
72
  } else {
93
- return __spreadProps(__spreadValues({}, heightStyle), { top: "auto" });
73
+ return { ...heightStyle, top: "auto" };
94
74
  }
95
75
  });
96
76
  const toggle = (show = !state.showPopup, options = {}) => {
@@ -179,12 +159,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
179
159
  style: normalizeStyle({ "flex-basis": 100 / _ctx.cols + "%" }),
180
160
  onClick: ($event) => _ctx.onClick(option)
181
161
  }, [
182
- option.value === _ctx.modelValue ? (openBlock(), createBlock(_component_nut_icon, {
183
- key: 0,
184
- class: normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
162
+ option.value === _ctx.modelValue ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 0 }, _ctx.$attrs, {
163
+ class: { activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue },
185
164
  name: _ctx.optionIcon,
186
165
  color: _ctx.parent.props.activeColor
187
- }, null, 8, ["class", "name", "color"])) : createCommentVNode("", true),
166
+ }), null, 16, ["class", "name", "color"])) : createCommentVNode("", true),
188
167
  createElementVNode("view", {
189
168
  class: normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
190
169
  style: normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { toRefs, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, createBlock, createCommentVNode, toDisplayString, renderSlot } from "vue";
6
+ import { toRefs, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, createBlock, createCommentVNode, toDisplayString, renderSlot, mergeProps } 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
  import "../locale/lang";
@@ -138,12 +138,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
138
138
  class: "title",
139
139
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
140
140
  }, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
141
- _ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, {
141
+ _ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
142
142
  key: 1,
143
- class: "icon",
143
+ class: "icon"
144
+ }, _ctx.$attrs, {
144
145
  name: _ctx.titIcon,
145
146
  onClick: _ctx.handleCenterIcon
146
- }, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
147
+ }), null, 16, ["name", "onClick"])) : createCommentVNode("", true),
147
148
  renderSlot(_ctx.$slots, "content")
148
149
  ]),
149
150
  createElementVNode("view", {
@@ -177,12 +178,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
177
178
  class: "title",
178
179
  onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
179
180
  }, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
180
- _ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, {
181
+ _ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
181
182
  key: 1,
182
- class: "icon",
183
+ class: "icon"
184
+ }, _ctx.$attrs, {
183
185
  name: _ctx.titIcon,
184
186
  onClick: _ctx.handleCenterIcon
185
- }, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
187
+ }), null, 16, ["name", "onClick"])) : createCommentVNode("", true),
186
188
  renderSlot(_ctx.$slots, "content")
187
189
  ]),
188
190
  createElementVNode("view", {
@@ -1,28 +1,9 @@
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
1
  /*!
21
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
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";
6
+ 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, mergeProps, vShow, Fragment, renderList } from "vue";
26
7
  import { c as createComponent } from "./component.js";
27
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
28
9
  import "../locale/lang";
@@ -171,12 +152,18 @@ const _sfc_main = create({
171
152
  }
172
153
  return styles;
173
154
  });
174
- watch(() => props.text, (value) => {
175
- initScrollWrap(value);
176
- });
177
- watch(() => props.list, (value) => {
178
- state.scrollList = [].concat(value);
179
- });
155
+ watch(
156
+ () => props.text,
157
+ (value) => {
158
+ initScrollWrap();
159
+ }
160
+ );
161
+ watch(
162
+ () => props.list,
163
+ (value) => {
164
+ state.scrollList = [].concat(value);
165
+ }
166
+ );
180
167
  const initScrollWrap = (value) => {
181
168
  if (state.showNoticeBar == false) {
182
169
  return;
@@ -277,7 +264,9 @@ const _sfc_main = create({
277
264
  onUnmounted(() => {
278
265
  clearInterval(state.timer);
279
266
  });
280
- return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(state)), {
267
+ return {
268
+ ...toRefs(props),
269
+ ...toRefs(state),
281
270
  isEllipsis,
282
271
  classes,
283
272
  iconShow,
@@ -293,7 +282,7 @@ const _sfc_main = create({
293
282
  go,
294
283
  handleClickIcon,
295
284
  slots
296
- });
285
+ };
297
286
  }
298
287
  });
299
288
  const _hoisted_1 = {
@@ -346,10 +335,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
346
335
  onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
347
336
  }, [
348
337
  renderSlot(_ctx.$slots, "right-icon", {}, () => [
349
- createVNode(_component_nut_icon, {
338
+ createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
350
339
  name: _ctx.rightIcon ? _ctx.rightIcon : "close",
351
340
  color: _ctx.color
352
- }, null, 8, ["name", "color"])
341
+ }), null, 16, ["name", "color"])
353
342
  ])
354
343
  ])) : createCommentVNode("", true)
355
344
  ], 6)), [