@nutui/nutui 3.1.23-beta.5 → 3.2.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 (226) hide show
  1. package/CHANGELOG.md +63 -1
  2. package/dist/nutui.es.js +382 -355
  3. package/dist/nutui.umd.js +375 -348
  4. package/dist/packages/_es/ActionSheet.js +1 -1
  5. package/dist/packages/_es/Address.js +17 -15
  6. package/dist/packages/_es/AddressList.js +3 -5
  7. package/dist/packages/_es/Animate.js +1 -1
  8. package/dist/packages/_es/Audio.js +29 -44
  9. package/dist/packages/_es/AudioOperate.js +2 -4
  10. package/dist/packages/_es/Avatar.js +4 -5
  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 +1 -1
  15. package/dist/packages/_es/Button.js +6 -5
  16. package/dist/packages/_es/Calendar.js +1 -1
  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 +1 -1
  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 +1 -1
  25. package/dist/packages/_es/CheckboxGroup.js +1 -1
  26. package/dist/packages/_es/CircleProgress.js +1 -1
  27. package/dist/packages/_es/Col.js +1 -1
  28. package/dist/packages/_es/Collapse.js +11 -10
  29. package/dist/packages/_es/CollapseItem.js +13 -11
  30. package/dist/packages/_es/Comment.js +1 -1
  31. package/dist/packages/_es/ConfigProvider.js +1 -1
  32. package/dist/packages/_es/CountDown.js +1 -1
  33. package/dist/packages/_es/CountUp.js +1 -1
  34. package/dist/packages/_es/DatePicker.js +1 -1
  35. package/dist/packages/_es/Dialog.js +1 -1
  36. package/dist/packages/_es/Divider.js +1 -1
  37. package/dist/packages/_es/Drag.js +1 -1
  38. package/dist/packages/_es/Ecard.js +1 -1
  39. package/dist/packages/_es/Elevator.js +1 -1
  40. package/dist/packages/_es/Ellipsis.js +1 -1
  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 +1 -1
  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 +1 -1
  48. package/dist/packages/_es/Image.js +1 -1
  49. package/dist/packages/_es/ImagePreview.js +3 -6
  50. package/dist/packages/_es/Indicator.js +1 -1
  51. package/dist/packages/_es/InfiniteLoading.js +4 -10
  52. package/dist/packages/_es/Input.js +97 -67
  53. package/dist/packages/_es/InputNumber.js +1 -1
  54. package/dist/packages/_es/Layout.js +1 -1
  55. package/dist/packages/_es/List.js +1 -1
  56. package/dist/packages/_es/Menu.js +6 -5
  57. package/dist/packages/_es/MenuItem.js +9 -7
  58. package/dist/packages/_es/Navbar.js +10 -8
  59. package/dist/packages/_es/NoticeBar.js +4 -4
  60. package/dist/packages/_es/Notify.js +5 -11
  61. package/dist/packages/_es/NumberKeyboard.js +10 -12
  62. package/dist/packages/_es/OldPicker.js +1 -1
  63. package/dist/packages/_es/OverLay.js +1 -1
  64. package/dist/packages/_es/Pagination.js +1 -1
  65. package/dist/packages/_es/Picker.js +7 -1
  66. package/dist/packages/_es/Popover.js +4 -7
  67. package/dist/packages/_es/Popup.js +4 -4
  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 +1 -1
  71. package/dist/packages/_es/Radio.js +1 -1
  72. package/dist/packages/_es/RadioGroup.js +1 -1
  73. package/dist/packages/_es/Range.js +1 -1
  74. package/dist/packages/_es/Rate.js +1 -1
  75. package/dist/packages/_es/Row.js +1 -1
  76. package/dist/packages/_es/SearchBar.js +1 -1
  77. package/dist/packages/_es/ShortPassword.js +1 -1
  78. package/dist/packages/_es/SideNavBar.js +1 -1
  79. package/dist/packages/_es/SideNavBarItem.js +1 -1
  80. package/dist/packages/_es/Signature.js +21 -8
  81. package/dist/packages/_es/Skeleton.js +1 -1
  82. package/dist/packages/_es/Sku.js +1 -1
  83. package/dist/packages/_es/Step.js +6 -5
  84. package/dist/packages/_es/Steps.js +1 -1
  85. package/dist/packages/_es/Sticky.js +1 -1
  86. package/dist/packages/_es/SubSideNavBar.js +1 -1
  87. package/dist/packages/_es/Swipe.js +1 -1
  88. package/dist/packages/_es/Swiper.js +1 -1
  89. package/dist/packages/_es/SwiperItem.js +1 -1
  90. package/dist/packages/_es/Switch.js +6 -5
  91. package/dist/packages/_es/TabPane.js +1 -1
  92. package/dist/packages/_es/Tabbar.js +1 -1
  93. package/dist/packages/_es/TabbarItem.js +1 -1
  94. package/dist/packages/_es/Table.js +1 -1
  95. package/dist/packages/_es/Tabs.js +1 -1
  96. package/dist/packages/_es/Tag.js +11 -15
  97. package/dist/packages/_es/TextArea.js +1 -1
  98. package/dist/packages/_es/TimeDetail.js +1 -1
  99. package/dist/packages/_es/TimePannel.js +1 -1
  100. package/dist/packages/_es/TimeSelect.js +1 -1
  101. package/dist/packages/_es/Toast.js +4 -5
  102. package/dist/packages/_es/Uploader.js +41 -32
  103. package/dist/packages/_es/Video.js +1 -1
  104. package/dist/packages/_es/WaterMark.js +1 -4
  105. package/dist/packages/_es/common.js +2 -2
  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 +1 -1
  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/card/index.scss +8 -1
  122. package/dist/packages/category/index.scss +25 -4
  123. package/dist/packages/categorypane/index.scss +18 -65
  124. package/dist/packages/circleprogress/index.scss +6 -0
  125. package/dist/packages/collapseitem/index.scss +21 -0
  126. package/dist/packages/comment/index.scss +37 -0
  127. package/dist/packages/countup/index.scss +24 -3
  128. package/dist/packages/ecard/index.scss +31 -1
  129. package/dist/packages/elevator/index.scss +16 -0
  130. package/dist/packages/empty/index.scss +6 -0
  131. package/dist/packages/fixednav/index.scss +7 -0
  132. package/dist/packages/image/index.scss +12 -0
  133. package/dist/packages/infiniteloading/index.scss +18 -0
  134. package/dist/packages/locale/lang/baseLang.js +1 -1
  135. package/dist/packages/locale/lang/en-US.js +1 -1
  136. package/dist/packages/locale/lang/id-ID.js +1 -1
  137. package/dist/packages/locale/lang/index.js +1 -1
  138. package/dist/packages/locale/lang/zh-CN.js +1 -1
  139. package/dist/packages/locale/lang/zh-TW.js +1 -1
  140. package/dist/packages/menu/index.scss +14 -2
  141. package/dist/packages/menuitem/index.scss +8 -0
  142. package/dist/packages/noticebar/index.scss +13 -0
  143. package/dist/packages/notify/index.scss +5 -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/shortpassword/index.scss +20 -0
  148. package/dist/packages/sidenavbaritem/index.scss +9 -0
  149. package/dist/packages/sku/index.scss +40 -0
  150. package/dist/packages/step/index.scss +52 -0
  151. package/dist/packages/subsidenavbar/index.scss +12 -0
  152. package/dist/packages/swiper/index.scss +2 -0
  153. package/dist/packages/swiperitem/index.scss +3 -0
  154. package/dist/packages/tag/index.scss +20 -0
  155. package/dist/packages/textarea/index.scss +6 -0
  156. package/dist/packages/watermark/index.scss +1 -1
  157. package/dist/smartips/attributes.json +17 -1
  158. package/dist/smartips/tags.json +8 -3
  159. package/dist/smartips/web-types.json +40 -3
  160. package/dist/style.css +1 -1
  161. package/dist/style.es.js +1 -1
  162. package/dist/styles/themes/default.scss +50 -50
  163. package/dist/styles/themes/jdb.scss +50 -50
  164. package/dist/styles/themes/jdt.scss +50 -50
  165. package/dist/styles/variables-jdb.scss +28 -7
  166. package/dist/styles/variables-jdt.scss +28 -7
  167. package/dist/styles/variables.scss +27 -7
  168. package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
  169. package/dist/types/__VUE/address/index.vue.d.ts +1 -1
  170. package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -1
  171. package/dist/types/__VUE/audio/index.vue.d.ts +4 -1
  172. package/dist/types/__VUE/audiooperate/index.vue.d.ts +15 -72
  173. package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
  174. package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
  175. package/dist/types/__VUE/calendaritem/index.vue.d.ts +1 -1
  176. package/dist/types/__VUE/categorypane/index.vue.d.ts +1 -1
  177. package/dist/types/__VUE/cell/index.vue.d.ts +7 -0
  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/collapse/index.vue.d.ts +2 -2
  182. package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
  183. package/dist/types/__VUE/configprovider/index.vue.d.ts +1 -1
  184. package/dist/types/__VUE/countdown/index.vue.d.ts +1 -1
  185. package/dist/types/__VUE/countup/index.vue.d.ts +1 -1
  186. package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
  187. package/dist/types/__VUE/fixednav/common.d.ts +56 -0
  188. package/dist/types/__VUE/fixednav/index.vue.d.ts +17 -9
  189. package/dist/types/__VUE/formitem/index.vue.d.ts +1 -1
  190. package/dist/types/__VUE/grid/index.vue.d.ts +2 -2
  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.vue.d.ts +1 -1
  194. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -1
  195. package/dist/types/__VUE/input/index.vue.d.ts +5 -9
  196. package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
  197. package/dist/types/__VUE/menu/index.vue.d.ts +3 -0
  198. package/dist/types/__VUE/menuitem/index.vue.d.ts +7 -4
  199. package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -4
  200. package/dist/types/__VUE/notify/index.vue.d.ts +5 -5
  201. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +3 -3
  202. package/dist/types/__VUE/oldpicker/Column.vue.d.ts +1 -1
  203. package/dist/types/__VUE/oldpicker/index.vue.d.ts +1 -1
  204. package/dist/types/__VUE/overlay/index.vue.d.ts +1 -1
  205. package/dist/types/__VUE/picker/index.vue.d.ts +13 -13
  206. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +1 -1
  207. package/dist/types/__VUE/radiogroup/index.vue.d.ts +1 -1
  208. package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
  209. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  210. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +1 -1
  211. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +1 -1
  212. package/dist/types/__VUE/signature/index.vue.d.ts +5 -2
  213. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +1 -1
  214. package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
  215. package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
  216. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
  217. package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -1
  218. package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
  219. package/dist/types/__VUE/timedetail/index.vue.d.ts +1 -1
  220. package/dist/types/__VUE/timepannel/index.vue.d.ts +1 -1
  221. package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
  222. package/dist/types/__VUE/uploader/index.vue.d.ts +9 -2
  223. package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
  224. package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
  225. package/dist/types/index.d.ts +1 -1
  226. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { inject, reactive, computed, getCurrentInstance, ref, watch, onMounted, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, renderSlot, normalizeStyle } from "vue";
6
+ import { inject, reactive, computed, getCurrentInstance, ref, watch, onMounted, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, mergeProps, createCommentVNode, renderSlot } 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";
@@ -210,13 +210,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
210
210
  createElementVNode("view", _hoisted_1, [
211
211
  createElementVNode("view", null, [
212
212
  createElementVNode("view", _hoisted_2, [
213
- _ctx.titleIcon ? (openBlock(), createBlock(_component_nut_icon, {
213
+ _ctx.titleIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
214
214
  key: 0,
215
- name: _ctx.titleIcon,
215
+ name: _ctx.titleIcon
216
+ }, _ctx.$attrs, {
216
217
  size: _ctx.titleIconSize,
217
218
  color: _ctx.titleIconColor,
218
- class: normalizeClass([_ctx.titleIconPosition == "left" ? "titleIconLeft" : "titleIconRight"])
219
- }, null, 8, ["name", "size", "color", "class"])) : createCommentVNode("", true),
219
+ class: [_ctx.titleIconPosition == "left" ? "titleIconLeft" : "titleIconRight"]
220
+ }), null, 16, ["name", "size", "color", "class"])) : createCommentVNode("", true),
220
221
  _ctx.$slots.mTitle ? renderSlot(_ctx.$slots, "mTitle", { key: 1 }) : (openBlock(), createElementBlock("view", {
221
222
  key: 2,
222
223
  innerHTML: _ctx.title,
@@ -232,14 +233,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
232
233
  innerHTML: _ctx.subTitle,
233
234
  class: "subTitle"
234
235
  }, null, 8, _hoisted_5)),
235
- _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
236
+ _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
236
237
  key: 2,
237
- name: _ctx.icon,
238
+ name: _ctx.icon
239
+ }, _ctx.$attrs, {
238
240
  size: _ctx.iconSize,
239
241
  color: _ctx.iconColor,
240
- class: normalizeClass(["collapse-icon", { "col-expanded": _ctx.openExpanded }, { "collapse-icon-disabled": _ctx.disabled }]),
241
- style: normalizeStyle(_ctx.iconStyle)
242
- }, null, 8, ["name", "size", "color", "class", "style"])) : createCommentVNode("", true)
242
+ class: ["collapse-icon", { "col-expanded": _ctx.openExpanded }, { "collapse-icon-disabled": _ctx.disabled }],
243
+ style: _ctx.iconStyle
244
+ }), null, 16, ["name", "size", "color", "class", "style"])) : createCommentVNode("", true)
243
245
  ], 2),
244
246
  _ctx.$slots.extraRender ? (openBlock(), createElementBlock("view", _hoisted_6, [
245
247
  createElementVNode("div", _hoisted_7, [
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,18 +1,14 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, createCommentVNode, renderSlot, createElementVNode, Fragment, renderList, toDisplayString, createVNode } from "vue";
7
6
  import { c as createComponent } from "./component.js";
8
- import overlay from "./OverLay.js";
7
+ import { computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, createCommentVNode, renderSlot, createElementVNode, Fragment, renderList, toDisplayString, createVNode } from "vue";
9
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
10
9
  import "../locale/lang";
11
- const { componentName, create, translate } = createComponent("fixednav");
12
- const _sfc_main = create({
13
- components: {
14
- [overlay.name]: overlay
15
- },
10
+ const { componentName, translate } = createComponent("fixednav");
11
+ const component = {
16
12
  props: {
17
13
  visible: {
18
14
  type: Boolean,
@@ -26,6 +22,10 @@ const _sfc_main = create({
26
22
  default: () => [],
27
23
  type: Array
28
24
  },
25
+ activeColor: {
26
+ default: "",
27
+ type: String
28
+ },
29
29
  activeText: {
30
30
  default: "",
31
31
  type: String
@@ -58,6 +58,7 @@ const _sfc_main = create({
58
58
  [props.type]: true
59
59
  };
60
60
  });
61
+ const current = ref(-1);
61
62
  const updateValue = (value = !props.visible) => {
62
63
  emit("update:visible", value);
63
64
  };
@@ -66,10 +67,11 @@ const _sfc_main = create({
66
67
  item,
67
68
  event
68
69
  });
70
+ current.value = item.id;
69
71
  };
70
- return { classes, updateValue, selected, translate };
72
+ return { classes, updateValue, selected, translate, current };
71
73
  }
72
- });
74
+ };
73
75
  const _hoisted_1 = { class: "nut-fixednav__list" };
74
76
  const _hoisted_2 = ["onClick"];
75
77
  const _hoisted_3 = ["src"];
@@ -79,7 +81,7 @@ const _hoisted_5 = {
79
81
  class: "b"
80
82
  };
81
83
  const _hoisted_6 = { class: "text" };
82
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
84
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
83
85
  const _component_nut_overlay = resolveComponent("nut-overlay");
84
86
  const _component_nut_icon = resolveComponent("nut-icon");
85
87
  return openBlock(), createElementBlock("view", {
@@ -96,7 +98,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
96
98
  createElementVNode("view", _hoisted_1, [
97
99
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navList, (item, index2) => {
98
100
  return openBlock(), createElementBlock("view", {
99
- class: "nut-fixednav__list-item",
101
+ class: normalizeClass(["nut-fixednav__list-item", { active: item.id == _ctx.current }]),
100
102
  onClick: ($event) => _ctx.selected(item, $event),
101
103
  key: item.id || index2
102
104
  }, [
@@ -105,7 +107,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
105
107
  }, null, 8, _hoisted_3),
106
108
  createElementVNode("view", _hoisted_4, toDisplayString(item.text), 1),
107
109
  item.num ? (openBlock(), createElementBlock("view", _hoisted_5, toDisplayString(item.num), 1)) : createCommentVNode("", true)
108
- ], 8, _hoisted_2);
110
+ ], 10, _hoisted_2);
109
111
  }), 128))
110
112
  ])
111
113
  ]),
@@ -123,5 +125,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
123
125
  ])
124
126
  ], 6);
125
127
  }
126
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
128
+ const { create } = createComponent("fixednav");
129
+ const _sfc_main = create(component);
130
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", render]]);
127
131
  export { index as default };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { inject, getCurrentInstance, onUnmounted, computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, Fragment, createBlock, toDisplayString } from "vue";
6
+ import { inject, getCurrentInstance, onUnmounted, computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, Fragment, createBlock, mergeProps, toDisplayString } from "vue";
7
7
  import { u as useRouter } from "./index.js";
8
8
  import { c as createComponent } from "./component.js";
9
9
  import { p as pxCheck } from "./pxCheck.js";
@@ -135,12 +135,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
135
135
  class: normalizeClass(_ctx.contentClass)
136
136
  }, [
137
137
  _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
138
- _ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", { key: 0 }) : (openBlock(), createBlock(_component_nut_icon, {
138
+ _ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", { key: 0 }) : (openBlock(), createBlock(_component_nut_icon, mergeProps({
139
139
  key: 1,
140
- name: _ctx.iconProps.name,
140
+ name: _ctx.iconProps.name
141
+ }, _ctx.$attrs, {
141
142
  size: _ctx.iconProps.size,
142
143
  color: _ctx.iconProps.color
143
- }, null, 8, ["name", "size", "color"])),
144
+ }), null, 16, ["name", "size", "color"])),
144
145
  _ctx.$slots.text ? renderSlot(_ctx.$slots, "text", { key: 2 }) : (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.text), 1))
145
146
  ], 64))
146
147
  ], 2)
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, normalizeStyle, createElementVNode, createCommentVNode, createVNode, ref, onMounted, Fragment, renderList, toDisplayString, render, h } from "vue";
6
+ import { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, normalizeStyle, createElementVNode, createCommentVNode, createVNode, ref, onMounted, Fragment, renderList, toDisplayString, mergeProps, render, h } from "vue";
7
7
  import { c as createComponent, a as isPromise } from "./component.js";
8
8
  import Popup from "./Popup.js";
9
9
  import Video from "./Video.js";
@@ -505,10 +505,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
505
505
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleCloseIcon && _ctx.handleCloseIcon(...args)),
506
506
  style: normalizeStyle(_ctx.styles)
507
507
  }, [
508
- createVNode(_component_nut_icon, {
509
- name: _ctx.closeIcon,
510
- color: "#ffffff"
511
- }, null, 8, ["name"])
508
+ createVNode(_component_nut_icon, mergeProps({ name: _ctx.closeIcon }, _ctx.$attrs, { color: "#ffffff" }), null, 16, ["name"])
512
509
  ], 4)) : createCommentVNode("", true)
513
510
  ]),
514
511
  _: 1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { reactive, computed, onMounted, onUnmounted, ref, onActivated, onDeactivated, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, toDisplayString, renderSlot, Fragment, createCommentVNode } from "vue";
6
+ import { reactive, computed, onMounted, onUnmounted, ref, onActivated, onDeactivated, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, mergeProps, toDisplayString, renderSlot, Fragment, createCommentVNode } 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";
@@ -227,10 +227,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
227
227
  style: normalizeStyle(_ctx.getStyle)
228
228
  }, [
229
229
  createElementVNode("view", _hoisted_1, [
230
- createVNode(_component_nut_icon, {
231
- class: "top-img",
232
- name: _ctx.pullIcon
233
- }, null, 8, ["name"]),
230
+ createVNode(_component_nut_icon, mergeProps({ class: "top-img" }, _ctx.$attrs, { name: _ctx.pullIcon }), null, 16, ["name"]),
234
231
  createElementVNode("view", _hoisted_2, toDisplayString(_ctx.pullTxt || _ctx.translate("pullTxt")), 1)
235
232
  ])
236
233
  ], 4),
@@ -240,10 +237,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
240
237
  createElementVNode("view", _hoisted_4, [
241
238
  _ctx.isInfiniting ? (openBlock(), createElementBlock("view", _hoisted_5, [
242
239
  !_ctx.slots.loading ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
243
- createVNode(_component_nut_icon, {
244
- class: "bottom-img",
245
- name: _ctx.loadIcon
246
- }, null, 8, ["name"]),
240
+ createVNode(_component_nut_icon, mergeProps({ class: "bottom-img" }, _ctx.$attrs, { name: _ctx.loadIcon }), null, 16, ["name"]),
247
241
  createElementVNode("view", _hoisted_6, toDisplayString(_ctx.loadTxt || _ctx.translate("loading")), 1)
248
242
  ], 64)) : renderSlot(_ctx.$slots, "loading", { key: 1 })
249
243
  ])) : !_ctx.hasMore ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.1 Tue Aug 09 2022 17:11:10 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";
@@ -246,12 +246,18 @@ const _sfc_main = create({
246
246
  }
247
247
  };
248
248
  const onFocus = (event) => {
249
+ if (props.disabled || props.readonly) {
250
+ return;
251
+ }
249
252
  const input = event.target;
250
253
  let value = input.value;
251
254
  active.value = true;
252
255
  emit("focus", value, event);
253
256
  };
254
257
  const onBlur = (event) => {
258
+ if (props.disabled || props.readonly) {
259
+ return;
260
+ }
255
261
  setTimeout(() => {
256
262
  active.value = false;
257
263
  }, 200);
@@ -264,6 +270,8 @@ const _sfc_main = create({
264
270
  emit("blur", value, event);
265
271
  };
266
272
  const clear = (event) => {
273
+ if (props.disabled)
274
+ return;
267
275
  emit("update:modelValue", "", event);
268
276
  emit("change", "", event);
269
277
  emit("clear", "", event);
@@ -275,10 +283,29 @@ const _sfc_main = create({
275
283
  }
276
284
  };
277
285
  const onClickInput = (event) => {
286
+ if (props.disabled) {
287
+ return;
288
+ }
278
289
  emit("click-input", event);
279
290
  };
280
- const onClickLeftIcon = (event) => emit("click-left-icon", event);
281
- const onClickRightIcon = (event) => emit("click-right-icon", event);
291
+ const onClickLeftIcon = (event) => {
292
+ if (props.disabled) {
293
+ return;
294
+ }
295
+ emit("click-left-icon", event);
296
+ };
297
+ const onClickRightIcon = (event) => {
298
+ if (props.disabled) {
299
+ return;
300
+ }
301
+ emit("click-right-icon", event);
302
+ };
303
+ const onClick = (e) => {
304
+ if (props.disabled) {
305
+ e.stopImmediatePropagation();
306
+ return;
307
+ }
308
+ };
282
309
  watch(() => props.modelValue, () => {
283
310
  updateValue(getModelValue());
284
311
  resetValidation();
@@ -300,6 +327,7 @@ const _sfc_main = create({
300
327
  onClickInput,
301
328
  onClickLeftIcon,
302
329
  onClickRightIcon,
330
+ onClick,
303
331
  translate
304
332
  };
305
333
  }
@@ -308,17 +336,21 @@ const _hoisted_1 = { class: "label-string" };
308
336
  const _hoisted_2 = { class: "nut-input-value" };
309
337
  const _hoisted_3 = { class: "label-string" };
310
338
  const _hoisted_4 = { class: "nut-input-value" };
311
- const _hoisted_5 = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
312
- const _hoisted_6 = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
313
- const _hoisted_7 = {
339
+ const _hoisted_5 = { class: "nut-input-inner" };
340
+ const _hoisted_6 = { class: "nut-input-box" };
341
+ const _hoisted_7 = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
342
+ const _hoisted_8 = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
343
+ const _hoisted_9 = { class: "nut-input-clear-box" };
344
+ const _hoisted_10 = {
314
345
  key: 0,
315
346
  class: "nut-input-word-limit"
316
347
  };
317
- const _hoisted_8 = { class: "nut-input-word-num" };
348
+ const _hoisted_11 = { class: "nut-input-word-num" };
318
349
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
319
350
  const _component_nut_icon = resolveComponent("nut-icon");
320
351
  return openBlock(), createElementBlock("view", {
321
- class: normalizeClass(_ctx.classes)
352
+ class: normalizeClass(_ctx.classes),
353
+ onClick: _cache[11] || (_cache[11] = (...args) => _ctx.onClick && _ctx.onClick(...args))
322
354
  }, [
323
355
  _ctx.$slots.input ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
324
356
  _ctx.label ? (openBlock(), createElementBlock("view", {
@@ -345,10 +377,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
345
377
  class: "nut-input-left-icon",
346
378
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClickLeftIcon && _ctx.onClickLeftIcon(...args))
347
379
  }, [
348
- createVNode(_component_nut_icon, {
349
- name: _ctx.leftIcon,
350
- size: _ctx.leftIconSize
351
- }, null, 8, ["name", "size"])
380
+ createVNode(_component_nut_icon, mergeProps({ name: _ctx.leftIcon }, _ctx.$attrs, { size: _ctx.leftIconSize }), null, 16, ["name", "size"])
352
381
  ])) : createCommentVNode("", true),
353
382
  _ctx.label ? (openBlock(), createElementBlock("view", {
354
383
  key: 1,
@@ -361,68 +390,69 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
361
390
  createElementVNode("view", _hoisted_3, toDisplayString(_ctx.label) + " " + toDisplayString(_ctx.colon ? ":" : ""), 1)
362
391
  ], 6)) : createCommentVNode("", true),
363
392
  createElementVNode("view", _hoisted_4, [
364
- createElementVNode("view", {
365
- class: "nut-input-inner",
366
- onClick: _cache[9] || (_cache[9] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
367
- }, [
368
- _ctx.type == "textarea" ? (openBlock(), createElementBlock("textarea", {
369
- key: 0,
370
- class: "input-text",
371
- ref: "inputRef",
372
- style: normalizeStyle(_ctx.stylesTextarea),
373
- maxlength: _ctx.maxLength,
374
- placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
375
- disabled: _ctx.disabled,
376
- readonly: _ctx.readonly,
377
- value: _ctx.modelValue,
378
- formatTrigger: _ctx.formatTrigger,
379
- autofocus: _ctx.autofocus,
380
- onInput: _cache[2] || (_cache[2] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
381
- onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
382
- onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.onBlur && _ctx.onBlur(...args))
383
- }, null, 44, _hoisted_5)) : (openBlock(), createElementBlock("input", {
384
- key: 1,
385
- class: "input-text",
386
- ref: "inputRef",
387
- style: normalizeStyle(_ctx.styles),
388
- type: _ctx.inputType(_ctx.type),
389
- maxlength: _ctx.maxLength,
390
- placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
391
- disabled: _ctx.disabled,
392
- readonly: _ctx.readonly,
393
- value: _ctx.modelValue,
394
- formatTrigger: _ctx.formatTrigger,
395
- autofocus: _ctx.autofocus,
396
- onInput: _cache[5] || (_cache[5] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
397
- onFocus: _cache[6] || (_cache[6] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
398
- onBlur: _cache[7] || (_cache[7] = (...args) => _ctx.onBlur && _ctx.onBlur(...args))
399
- }, null, 44, _hoisted_6)),
400
- _ctx.clearable && !_ctx.readonly ? withDirectives((openBlock(), createBlock(_component_nut_icon, {
401
- key: 2,
402
- class: "nut-input-clear",
403
- name: _ctx.clearIcon,
404
- size: _ctx.clearSize,
405
- onClick: _ctx.clear
406
- }, null, 8, ["name", "size", "onClick"])), [
407
- [vShow, _ctx.active && _ctx.modelValue.length > 0]
408
- ]) : createCommentVNode("", true),
393
+ createElementVNode("view", _hoisted_5, [
394
+ createElementVNode("view", _hoisted_6, [
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
+ onClick: _cache[5] || (_cache[5] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
411
+ }, null, 44, _hoisted_7)) : (openBlock(), createElementBlock("input", {
412
+ key: 1,
413
+ class: "input-text",
414
+ ref: "inputRef",
415
+ style: normalizeStyle(_ctx.styles),
416
+ type: _ctx.inputType(_ctx.type),
417
+ maxlength: _ctx.maxLength,
418
+ placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
419
+ disabled: _ctx.disabled,
420
+ readonly: _ctx.readonly,
421
+ value: _ctx.modelValue,
422
+ formatTrigger: _ctx.formatTrigger,
423
+ autofocus: _ctx.autofocus,
424
+ onInput: _cache[6] || (_cache[6] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
425
+ onFocus: _cache[7] || (_cache[7] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
426
+ onBlur: _cache[8] || (_cache[8] = (...args) => _ctx.onBlur && _ctx.onBlur(...args)),
427
+ onClick: _cache[9] || (_cache[9] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
428
+ }, null, 44, _hoisted_8))
429
+ ]),
430
+ createElementVNode("view", _hoisted_9, [
431
+ _ctx.clearable && !_ctx.readonly ? withDirectives((openBlock(), createBlock(_component_nut_icon, mergeProps({
432
+ key: 0,
433
+ class: "nut-input-clear",
434
+ name: _ctx.clearIcon
435
+ }, _ctx.$attrs, {
436
+ size: _ctx.clearSize,
437
+ onClick: _ctx.clear
438
+ }), null, 16, ["name", "size", "onClick"])), [
439
+ [vShow, _ctx.active && _ctx.modelValue.length > 0]
440
+ ]) : createCommentVNode("", true)
441
+ ]),
409
442
  _ctx.rightIcon && _ctx.rightIcon.length > 0 ? (openBlock(), createElementBlock("view", {
410
- key: 3,
443
+ key: 0,
411
444
  class: "nut-input-right-icon",
412
- onClick: _cache[8] || (_cache[8] = (...args) => _ctx.onClickRightIcon && _ctx.onClickRightIcon(...args))
445
+ onClick: _cache[10] || (_cache[10] = (...args) => _ctx.onClickRightIcon && _ctx.onClickRightIcon(...args))
413
446
  }, [
414
- createVNode(_component_nut_icon, {
415
- name: _ctx.rightIcon,
416
- size: _ctx.rightIconSize
417
- }, null, 8, ["name", "size"])
447
+ createVNode(_component_nut_icon, mergeProps({ name: _ctx.rightIcon }, _ctx.$attrs, { size: _ctx.rightIconSize }), null, 16, ["name", "size"])
418
448
  ])) : createCommentVNode("", true),
419
449
  _ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {
420
- key: 4,
450
+ key: 1,
421
451
  class: "nut-input-button"
422
452
  }) : createCommentVNode("", true)
423
453
  ]),
424
- _ctx.showWordLimit && _ctx.maxLength ? (openBlock(), createElementBlock("view", _hoisted_7, [
425
- createElementVNode("span", _hoisted_8, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0), 1),
454
+ _ctx.showWordLimit && _ctx.maxLength ? (openBlock(), createElementBlock("view", _hoisted_10, [
455
+ createElementVNode("span", _hoisted_11, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0), 1),
426
456
  createTextVNode("/" + toDisplayString(_ctx.maxLength), 1)
427
457
  ])) : createCommentVNode("", true),
428
458
  _ctx.errorMessage ? (openBlock(), createElementBlock("view", {