@nutui/nutui 3.2.7 → 3.2.8-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 (206) hide show
  1. package/dist/nutui.es.js +1931 -3371
  2. package/dist/nutui.umd.js +1928 -3369
  3. package/dist/packages/_es/ActionSheet.js +2 -5
  4. package/dist/packages/_es/Address.js +162 -250
  5. package/dist/packages/_es/AddressList.js +229 -307
  6. package/dist/packages/_es/Animate.js +1 -1
  7. package/dist/packages/_es/Audio.js +1 -1
  8. package/dist/packages/_es/AudioOperate.js +1 -1
  9. package/dist/packages/_es/Avatar.js +1 -1
  10. package/dist/packages/_es/AvatarGroup.js +1 -1
  11. package/dist/packages/_es/BackTop.js +1 -1
  12. package/dist/packages/_es/Badge.js +1 -1
  13. package/dist/packages/_es/Barrage.js +1 -1
  14. package/dist/packages/_es/Button.js +1 -1
  15. package/dist/packages/_es/Calendar.js +1 -1
  16. package/dist/packages/_es/CalendarItem.js +1 -1
  17. package/dist/packages/_es/Card.js +1 -1
  18. package/dist/packages/_es/Cascader.js +2 -5
  19. package/dist/packages/_es/Category.js +1 -1
  20. package/dist/packages/_es/CategoryPane.js +1 -1
  21. package/dist/packages/_es/Cell.js +1 -1
  22. package/dist/packages/_es/CellGroup.js +1 -1
  23. package/dist/packages/_es/Checkbox.js +1 -1
  24. package/dist/packages/_es/CheckboxGroup.js +1 -1
  25. package/dist/packages/_es/CircleProgress.js +2 -2
  26. package/dist/packages/_es/Col.js +1 -1
  27. package/dist/packages/_es/Collapse.js +4 -11
  28. package/dist/packages/_es/CollapseItem.js +8 -5
  29. package/dist/packages/_es/Comment.js +1 -1
  30. package/dist/packages/_es/ConfigProvider.js +1 -1
  31. package/dist/packages/_es/CountDown.js +2 -10
  32. package/dist/packages/_es/CountUp.js +1 -1
  33. package/dist/packages/_es/DatePicker.js +8 -17
  34. package/dist/packages/_es/Dialog.js +38 -63
  35. package/dist/packages/_es/Divider.js +1 -1
  36. package/dist/packages/_es/Drag.js +1 -1
  37. package/dist/packages/_es/Ecard.js +1 -1
  38. package/dist/packages/_es/Elevator.js +2 -2
  39. package/dist/packages/_es/Ellipsis.js +1 -1
  40. package/dist/packages/_es/Empty.js +1 -1
  41. package/dist/packages/_es/FixedNav.js +1 -1
  42. package/dist/packages/_es/Form.js +39 -31
  43. package/dist/packages/_es/FormItem.js +1 -1
  44. package/dist/packages/_es/Grid.js +2 -2
  45. package/dist/packages/_es/GridItem.js +1 -1
  46. package/dist/packages/_es/Icon.js +1 -1
  47. package/dist/packages/_es/Image.js +1 -1
  48. package/dist/packages/_es/ImagePreview.js +126 -220
  49. package/dist/packages/_es/Indicator.js +4 -4
  50. package/dist/packages/_es/InfiniteLoading.js +1 -1
  51. package/dist/packages/_es/Input.js +107 -123
  52. package/dist/packages/_es/InputNumber.js +1 -1
  53. package/dist/packages/_es/Invoice.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 +14 -1
  57. package/dist/packages/_es/MenuItem.js +10 -7
  58. package/dist/packages/_es/Navbar.js +1 -1
  59. package/dist/packages/_es/NoticeBar.js +1 -1
  60. package/dist/packages/_es/Notify.js +5 -7
  61. package/dist/packages/_es/NumberKeyboard.js +4 -4
  62. package/dist/packages/_es/OverLay.js +60 -63
  63. package/dist/packages/_es/Pagination.js +1 -1
  64. package/dist/packages/_es/Picker.js +25 -50
  65. package/dist/packages/_es/Popover.js +111 -930
  66. package/dist/packages/_es/Popup.js +105 -217
  67. package/dist/packages/_es/Price.js +1 -1
  68. package/dist/packages/_es/Progress.js +1 -1
  69. package/dist/packages/_es/Radio.js +1 -1
  70. package/dist/packages/_es/RadioGroup.js +1 -1
  71. package/dist/packages/_es/Range.js +1 -1
  72. package/dist/packages/_es/Rate.js +1 -1
  73. package/dist/packages/_es/Row.js +1 -1
  74. package/dist/packages/_es/SearchBar.js +1 -1
  75. package/dist/packages/_es/ShortPassword.js +4 -4
  76. package/dist/packages/_es/SideNavBar.js +1 -1
  77. package/dist/packages/_es/SideNavBarItem.js +1 -1
  78. package/dist/packages/_es/Signature.js +1 -1
  79. package/dist/packages/_es/Skeleton.js +1 -1
  80. package/dist/packages/_es/Sku.js +4 -7
  81. package/dist/packages/_es/Step.js +1 -1
  82. package/dist/packages/_es/Steps.js +1 -1
  83. package/dist/packages/_es/Sticky.js +1 -1
  84. package/dist/packages/_es/SubSideNavBar.js +1 -1
  85. package/dist/packages/_es/Swipe.js +1 -1
  86. package/dist/packages/_es/Swiper.js +1 -1
  87. package/dist/packages/_es/SwiperItem.js +1 -1
  88. package/dist/packages/_es/Switch.js +1 -1
  89. package/dist/packages/_es/TabPane.js +1 -1
  90. package/dist/packages/_es/Tabbar.js +1 -1
  91. package/dist/packages/_es/TabbarItem.js +2 -2
  92. package/dist/packages/_es/Table.js +1 -1
  93. package/dist/packages/_es/Tabs.js +2 -2
  94. package/dist/packages/_es/Tag.js +1 -1
  95. package/dist/packages/_es/TextArea.js +1 -1
  96. package/dist/packages/_es/TimeDetail.js +1 -1
  97. package/dist/packages/_es/TimePannel.js +1 -1
  98. package/dist/packages/_es/TimeSelect.js +4 -4
  99. package/dist/packages/_es/Toast.js +5 -6
  100. package/dist/packages/_es/TrendArrow.js +1 -1
  101. package/dist/packages/_es/Uploader.js +2 -2
  102. package/dist/packages/_es/Video.js +1 -1
  103. package/dist/packages/_es/WaterMark.js +1 -1
  104. package/dist/packages/_es/common.js +1 -1
  105. package/dist/packages/_es/component.js +22 -2
  106. package/dist/packages/_es/index.js +1 -1
  107. package/dist/packages/_es/index2.js +1 -1
  108. package/dist/packages/_es/index3.js +1 -1
  109. package/dist/packages/_es/index4.js +1 -1
  110. package/dist/packages/_es/index5.js +1 -1
  111. package/dist/packages/_es/interceptor.js +32 -0
  112. package/dist/packages/_es/mountComponent.js +42 -0
  113. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  114. package/dist/packages/_es/props.js +80 -0
  115. package/dist/packages/_es/pxCheck.js +1 -1
  116. package/dist/packages/_es/raf.js +1 -1
  117. package/dist/packages/_es/style.css +1 -1
  118. package/dist/packages/address/index.scss +7 -2
  119. package/dist/packages/addresslist/index.scss +61 -101
  120. package/dist/packages/imagepreview/index.scss +9 -1
  121. package/dist/packages/inputnumber/index.scss +5 -1
  122. package/dist/packages/locale/lang/baseLang.js +1 -1
  123. package/dist/packages/locale/lang/en-US.js +1 -1
  124. package/dist/packages/locale/lang/id-ID.js +1 -1
  125. package/dist/packages/locale/lang/index.js +1 -1
  126. package/dist/packages/locale/lang/zh-CN.js +1 -1
  127. package/dist/packages/locale/lang/zh-TW.js +1 -1
  128. package/dist/packages/menuitem/index.scss +0 -15
  129. package/dist/packages/notify/index.scss +2 -2
  130. package/dist/packages/overlay/index.scss +2 -1
  131. package/dist/packages/picker/index.scss +20 -12
  132. package/dist/packages/popover/index.scss +191 -363
  133. package/dist/packages/popup/index.scss +3 -14
  134. package/dist/smartips/attributes.json +59 -55
  135. package/dist/smartips/tags.json +16 -19
  136. package/dist/smartips/web-types.json +114 -112
  137. package/dist/style.css +1 -1
  138. package/dist/styles/themes/default.scss +51 -52
  139. package/dist/styles/themes/jdb.scss +51 -52
  140. package/dist/styles/themes/jddkh.scss +51 -52
  141. package/dist/styles/themes/jdt.scss +51 -52
  142. package/dist/styles/variables.scss +9 -0
  143. package/dist/types/__VUE/actionsheet/index.vue.d.ts +58 -54
  144. package/dist/types/__VUE/address/index.vue.d.ts +72 -92
  145. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +29 -9
  146. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +4 -13
  147. package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +9 -9
  148. package/dist/types/__VUE/addresslist/index.vue.d.ts +23 -20
  149. package/dist/types/__VUE/avatar/index.vue.d.ts +2 -2
  150. package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
  151. package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
  152. package/dist/types/__VUE/badge/index.vue.d.ts +1 -1
  153. package/dist/types/__VUE/button/index.vue.d.ts +1 -1
  154. package/dist/types/__VUE/cascader/index.vue.d.ts +47 -52
  155. package/dist/types/__VUE/cell/index.vue.d.ts +3 -3
  156. package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
  157. package/dist/types/__VUE/countdown/index.vue.d.ts +0 -1
  158. package/dist/types/__VUE/countdown/util.d.ts +0 -1
  159. package/dist/types/__VUE/datepicker/index.vue.d.ts +55 -60
  160. package/dist/types/__VUE/dialog/index.d.ts +0 -3
  161. package/dist/types/__VUE/dialog/index.vue.d.ts +48 -57
  162. package/dist/types/__VUE/form/common.d.ts +4 -2
  163. package/dist/types/__VUE/form/index.vue.d.ts +4 -4
  164. package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
  165. package/dist/types/__VUE/image/index.vue.d.ts +1 -1
  166. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +27 -20
  167. package/dist/types/__VUE/imagepreview/index.d.ts +19 -5
  168. package/dist/types/__VUE/imagepreview/index.vue.d.ts +56 -42
  169. package/dist/types/__VUE/imagepreview/types.d.ts +44 -0
  170. package/dist/types/__VUE/indicator/index.vue.d.ts +1 -0
  171. package/dist/types/__VUE/input/index.vue.d.ts +37 -25
  172. package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
  173. package/dist/types/__VUE/invoice/index.vue.d.ts +1 -1
  174. package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -1
  175. package/dist/types/__VUE/navbar/index.vue.d.ts +1 -1
  176. package/dist/types/__VUE/noticebar/index.vue.d.ts +2 -2
  177. package/dist/types/__VUE/notify/index.vue.d.ts +3 -3
  178. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +3 -3
  179. package/dist/types/__VUE/overlay/index.vue.d.ts +11 -12
  180. package/dist/types/__VUE/picker/Column.vue.d.ts +0 -2
  181. package/dist/types/__VUE/picker/index.vue.d.ts +56 -63
  182. package/dist/types/__VUE/popover/index.vue.d.ts +37 -140
  183. package/dist/types/__VUE/popup/common.d.ts +103 -0
  184. package/dist/types/__VUE/popup/index.vue.d.ts +55 -1591
  185. package/dist/types/__VUE/popup/props.d.ts +82 -0
  186. package/dist/types/__VUE/rate/index.vue.d.ts +1 -1
  187. package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
  188. package/dist/types/__VUE/shortpassword/index.vue.d.ts +4 -4
  189. package/dist/types/__VUE/sku/index.vue.d.ts +56 -61
  190. package/dist/types/__VUE/step/index.vue.d.ts +1 -1
  191. package/dist/types/__VUE/switch/index.vue.d.ts +1 -1
  192. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
  193. package/dist/types/__VUE/timeselect/index.vue.d.ts +3 -3
  194. package/dist/types/__VUE/toast/index.vue.d.ts +1 -1
  195. package/dist/types/__VUE/uploader/index.vue.d.ts +1 -1
  196. package/dist/types/__VUE/video/index.vue.d.ts +3 -3
  197. package/dist/types/nutui.d.ts +1 -2
  198. package/package.json +2 -3
  199. package/dist/packages/_es/PullRefresh.js +0 -349
  200. package/dist/packages/pullrefresh/index.scss +0 -71
  201. package/dist/types/__VUE/addresslist/components/LongPressShell.vue.d.ts +0 -47
  202. package/dist/types/__VUE/datepicker/utils.d.ts +0 -5
  203. package/dist/types/__VUE/popup/use-lock-scroll.d.ts +0 -5
  204. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -128
  205. package/dist/types/__VUE/pullrefresh/use-touch.d.ts +0 -20
  206. package/dist/types/__VUE/pullrefresh/util.d.ts +0 -6
@@ -115,7 +115,7 @@
115
115
  "type": "array",
116
116
  "description": "属性说明:地址数组,默认值:-"
117
117
  },
118
- "nut-addresslist/long-press-edition": {
118
+ "nut-addresslist/long-press": {
119
119
  "type": "boolean",
120
120
  "description": "属性说明:长按功能,默认值:false"
121
121
  },
@@ -1075,6 +1075,10 @@
1075
1075
  "type": "object",
1076
1076
  "description": "属性说明:表单数据对象(使用表单校验时,_必填_),默认值:"
1077
1077
  },
1078
+ "nut-form/rules": {
1079
+ "type": "{ prop: formitemrule[] }",
1080
+ "description": "属性说明:统一配置每个 FormItem 的 rules,默认值:{}"
1081
+ },
1078
1082
  "nut-grid/column-num": {
1079
1083
  "type": "number | string",
1080
1084
  "description": "属性说明:列数,默认值:`4`"
@@ -1419,13 +1423,17 @@
1419
1423
  "type": "string",
1420
1424
  "description": "属性说明:格式化函数触发的时机,可选值为 `onChange`、`onBlur`,默认值:-"
1421
1425
  },
1422
- "nut-input/confirm-type": {
1426
+ "nut-input/confirm-type ": {
1423
1427
  "type": "string",
1424
- "description": "属性说明:键盘右下角按钮的文字(`仅支持小程序`),仅在`type='text'`时生效,可选值 `send`:发送、`search`:搜索、`next`:下一个、`go`:前往、`done`:完成,默认值:`done`"
1428
+ "description": "属性说明:键盘右下角按钮的文字,仅在`type='text'`时生效,可选值 `send`:发送、`search`:搜索、`next`:下一个、`go`:前往、`done`:完成,默认值:`done`"
1425
1429
  },
1426
1430
  "nut-input/adjust-position": {
1427
1431
  "type": "boolean",
1428
- "description": "属性说明:键盘弹起时,是否自动上推页面,仅支持原生,默认值:`true`"
1432
+ "description": "属性说明:键盘弹起时,是否自动上推页面(`仅支持小程序`),默认值:`true`"
1433
+ },
1434
+ "nut-input/always-system": {
1435
+ "type": "boolean",
1436
+ "description": "属性说明:是否强制使用系统键盘和 Web-view 创建的 input 元素。为 true 时,`confirm-type`、`confirm-hold` 可能失效(`仅支持小程序`),默认值:`false`"
1429
1437
  },
1430
1438
  "nut-inputnumber/v-model": {
1431
1439
  "type": "string、number",
@@ -1705,15 +1713,15 @@
1705
1713
  },
1706
1714
  "nut-overlay/v-model:visible": {
1707
1715
  "type": "boolean",
1708
- "description": "属性说明:当前组件是否显示,默认值:`false`"
1716
+ "description": "属性说明:控制遮罩的显示/隐藏,默认值:`false`"
1709
1717
  },
1710
1718
  "nut-overlay/z-index": {
1711
1719
  "type": "string, number",
1712
- "description": "属性说明:遮罩层级,默认值:`2000`"
1720
+ "description": "属性说明:自定义遮罩层级,默认值:`2000`"
1713
1721
  },
1714
1722
  "nut-overlay/duration": {
1715
- "type": "string, number",
1716
- "description": "属性说明:动画时长,单位秒,默认值:`0.3`"
1723
+ "type": "string, string",
1724
+ "description": "属性说明:显示/隐藏的动画时长,单位秒,默认值:`0.3`"
1717
1725
  },
1718
1726
  "nut-overlay/overlay-class": {
1719
1727
  "type": "string",
@@ -1725,11 +1733,11 @@
1725
1733
  },
1726
1734
  "nut-overlay/lock-scroll": {
1727
1735
  "type": "boolean",
1728
- "description": "属性说明:背景是否锁定(`小程序不支持`),默认值:`false`"
1736
+ "description": "属性说明:遮罩显示时的背景是否锁定,默认值:`false`"
1729
1737
  },
1730
1738
  "nut-overlay/close-on-click-overlay": {
1731
1739
  "type": "boolean",
1732
- "description": "属性说明:是否点击遮罩关闭,默认值:`true`"
1740
+ "description": "属性说明:点击遮罩时是否关闭,如果设置 `false`,那么 `click`事件将失效,默认值:`true`"
1733
1741
  },
1734
1742
  "nut-pagination/v-model": {
1735
1743
  "type": "number",
@@ -1831,9 +1839,41 @@
1831
1839
  "type": "string",
1832
1840
  "description": "属性说明:自定义 class 值,默认值:''"
1833
1841
  },
1842
+ "nut-popover/duration ": {
1843
+ "type": "[number, number]",
1844
+ "description": "属性说明:动画时长,默认值:0.3"
1845
+ },
1846
+ "nut-popover/iconPrefix ": {
1847
+ "type": "string",
1848
+ "description": "属性说明:图标自定义类值,等同于 Icon 组件的[ class-prefix 属性](https://nutui.jd.com/#/zh-CN/component/icon),默认值:'nut-icon''"
1849
+ },
1850
+ "nut-popover/overlay ": {
1851
+ "type": "boolean",
1852
+ "description": "属性说明:是否显示遮罩层,默认值:false"
1853
+ },
1854
+ "nut-popover/overlay-class ": {
1855
+ "type": "string",
1856
+ "description": "属性说明:自定义遮罩层类名,默认值:''"
1857
+ },
1858
+ "nut-popover/overlay-style ": {
1859
+ "type": "string",
1860
+ "description": "属性说明:自定义遮罩层样式,默认值:''"
1861
+ },
1862
+ "nut-popover/close-on-click-overlay ": {
1863
+ "type": "boolean",
1864
+ "description": "属性说明:是否在点击遮罩层后关闭菜单,默认值:true"
1865
+ },
1866
+ "nut-popover/close-on-click-action ": {
1867
+ "type": "boolean",
1868
+ "description": "属性说明:是否在点击选项后关闭,默认值:true"
1869
+ },
1870
+ "nut-popover/close-on-click-outside ": {
1871
+ "type": "boolean",
1872
+ "description": "属性说明:是否在点击外部元素后关闭菜单,默认值:true"
1873
+ },
1834
1874
  "nut-popup/v-model:visible": {
1835
1875
  "type": "boolean",
1836
- "description": "属性说明:当前组件是否显示,默认值:`false`"
1876
+ "description": "属性说明:控制当前组件显示/隐藏,默认值:`false`"
1837
1877
  },
1838
1878
  "nut-popup/z-index": {
1839
1879
  "type": "string、number",
@@ -1841,15 +1881,7 @@
1841
1881
  },
1842
1882
  "nut-popup/duration": {
1843
1883
  "type": "string、number",
1844
- "description": "属性说明:动画时长,单位秒,默认值:`0.3`"
1845
- },
1846
- "nut-popup/overlay-class": {
1847
- "type": "string",
1848
- "description": "属性说明:自定义遮罩类名,默认值:-"
1849
- },
1850
- "nut-popup/overlay-style": {
1851
- "type": "cssproperties",
1852
- "description": "属性说明:自定义遮罩样式,默认值:-"
1884
+ "description": "属性说明:组件显示/隐藏的动画时长,单位秒,默认值:`0.3`"
1853
1885
  },
1854
1886
  "nut-popup/lock-scroll": {
1855
1887
  "type": "boolean",
@@ -1871,10 +1903,6 @@
1871
1903
  "type": "string",
1872
1904
  "description": "属性说明:动画名,默认值:-"
1873
1905
  },
1874
- "nut-popup/container-style": {
1875
- "type": "cssproperties",
1876
- "description": "属性说明:自定义外层容器样式,默认值:-"
1877
- },
1878
1906
  "nut-popup/style": {
1879
1907
  "type": "cssproperties",
1880
1908
  "description": "属性说明:自定义弹框样式,默认值:-"
@@ -1907,6 +1935,10 @@
1907
1935
  "type": "string",
1908
1936
  "description": "属性说明:指定挂载节点(`小程序不支持`),默认值:`\"body\"`"
1909
1937
  },
1938
+ "nut-popup/teleport-disable ": {
1939
+ "type": "boolean",
1940
+ "description": "属性说明:是否允许挂载节点(`小程序不支持`),默认值:`false`"
1941
+ },
1910
1942
  "nut-popup/safe-area-inset-bottom ": {
1911
1943
  "type": "boolean",
1912
1944
  "description": "属性说明:是否开启 iphone 系列全面屏底部安全区适配,仅当 `position` 为 `bottom` 时有效,默认值:`false`"
@@ -1987,34 +2019,6 @@
1987
2019
  "type": "string",
1988
2020
  "description": "属性说明:icon颜色,默认值:#439422"
1989
2021
  },
1990
- "nut-pullrefresh/useWindow": {
1991
- "type": "boolean",
1992
- "description": "属性说明:将滚动侦听器添加到 window 否则侦听组件的父节点,默认值:true"
1993
- },
1994
- "nut-pullrefresh/containerId": {
1995
- "type": "string",
1996
- "description": "属性说明:在 useWindow 属性为 false 的时候,自定义设置节点ID,默认值:''"
1997
- },
1998
- "nut-pullrefresh/disabled": {
1999
- "type": "boolean",
2000
- "description": "属性说明:组件是否激活,默认值:true"
2001
- },
2002
- "nut-pullrefresh/direction": {
2003
- "type": "string",
2004
- "description": "属性说明:滚动的方向,'vertical' 纵向、'horizontal' 横向,默认值:'vertical'"
2005
- },
2006
- "nut-pullrefresh/pullingText": {
2007
- "type": "object",
2008
- "description": "属性说明:'下拉'文案,默认值:{top: '下拉刷新', bottom: '上拉加载',left: '左滑刷新', right: '右滑加载'}"
2009
- },
2010
- "nut-pullrefresh/loosingText": {
2011
- "type": "object",
2012
- "description": "属性说明:'释放'文案,默认值:{top: ’松手释放刷新', bottom: '松手释放刷新',left: '释放刷新', right: '加载更多'}"
2013
- },
2014
- "nut-pullrefresh/loadingText": {
2015
- "type": "object",
2016
- "description": "属性说明:'加载中'文案,默认值:{top: '加载中...', bottom: '加载中...',left: '加载中...', right: '加载中...'}"
2017
- },
2018
2022
  "nut-radio/disabled": {
2019
2023
  "type": "boolean",
2020
2024
  "description": "属性说明:是否禁用选择,默认值:`false`"
@@ -2369,15 +2373,15 @@
2369
2373
  },
2370
2374
  "nut-steps/direction": {
2371
2375
  "type": "string",
2372
- "description": "属性说明:显示方向,`horizontal`,`vertical`,默认值:'horizontal'"
2376
+ "description": "属性说明:显示方向,`horizontal`,`vertical`,默认值:`horizontal`"
2373
2377
  },
2374
2378
  "nut-steps/current": {
2375
2379
  "type": "number、string",
2376
- "description": "属性说明:当前所在的步骤,默认值:'0'"
2380
+ "description": "属性说明:当前所在的步骤,默认值:`0`"
2377
2381
  },
2378
2382
  "nut-steps/progress-dot": {
2379
2383
  "type": "boolean",
2380
- "description": "属性说明:点状步骤条,默认值:false"
2384
+ "description": "属性说明:点状步骤条,默认值:`false`"
2381
2385
  },
2382
2386
  "nut-sticky/position": {
2383
2387
  "type": "string",
@@ -38,7 +38,7 @@
38
38
  "nut-addresslist": {
39
39
  "attributes": [
40
40
  "data",
41
- "long-press-edition",
41
+ "long-press",
42
42
  "swipe-edition",
43
43
  "show-bottom-button"
44
44
  ]
@@ -397,7 +397,8 @@
397
397
  },
398
398
  "nut-form": {
399
399
  "attributes": [
400
- "model-value"
400
+ "model-value",
401
+ "rules"
401
402
  ]
402
403
  },
403
404
  "nut-grid": {
@@ -512,8 +513,9 @@
512
513
  "error-message-align",
513
514
  "formatter",
514
515
  "format-trigger",
515
- "confirm-type",
516
- "adjust-position"
516
+ "confirm-type ",
517
+ "adjust-position",
518
+ "always-system"
517
519
  ]
518
520
  },
519
521
  "nut-inputnumber": {
@@ -666,7 +668,15 @@
666
668
  "location",
667
669
  "offset ",
668
670
  "show-arrow ",
669
- "custom-class "
671
+ "custom-class ",
672
+ "duration ",
673
+ "iconPrefix ",
674
+ "overlay ",
675
+ "overlay-class ",
676
+ "overlay-style ",
677
+ "close-on-click-overlay ",
678
+ "close-on-click-action ",
679
+ "close-on-click-outside "
670
680
  ]
671
681
  },
672
682
  "nut-popup": {
@@ -674,14 +684,11 @@
674
684
  "v-model:visible",
675
685
  "z-index",
676
686
  "duration",
677
- "overlay-class",
678
- "overlay-style",
679
687
  "lock-scroll",
680
688
  "overlay",
681
689
  "close-on-click-overlay",
682
690
  "position",
683
691
  "transition",
684
- "container-style",
685
692
  "style",
686
693
  "pop-class",
687
694
  "closeable",
@@ -690,6 +697,7 @@
690
697
  "destroy-on-close",
691
698
  "round",
692
699
  "teleport",
700
+ "teleport-disable ",
693
701
  "safe-area-inset-bottom "
694
702
  ]
695
703
  },
@@ -720,17 +728,6 @@
720
728
  "icon-color"
721
729
  ]
722
730
  },
723
- "nut-pullrefresh": {
724
- "attributes": [
725
- "useWindow",
726
- "containerId",
727
- "disabled",
728
- "direction",
729
- "pullingText",
730
- "loosingText",
731
- "loadingText"
732
- ]
733
- },
734
731
  "nut-radio": {
735
732
  "attributes": [
736
733
  "disabled",
@@ -287,7 +287,7 @@
287
287
  }
288
288
  },
289
289
  {
290
- "name": "long-press-edition",
290
+ "name": "long-press",
291
291
  "default": "false",
292
292
  "description": "长按功能",
293
293
  "value": {
@@ -2655,6 +2655,15 @@
2655
2655
  "type": "object",
2656
2656
  "kind": "expression"
2657
2657
  }
2658
+ },
2659
+ {
2660
+ "name": "rules",
2661
+ "default": "{}",
2662
+ "description": "统一配置每个 FormItem 的 rules",
2663
+ "value": {
2664
+ "type": "{ prop: formitemrule[] }",
2665
+ "kind": "expression"
2666
+ }
2658
2667
  }
2659
2668
  ]
2660
2669
  },
@@ -3480,9 +3489,9 @@
3480
3489
  }
3481
3490
  },
3482
3491
  {
3483
- "name": "confirm-type",
3492
+ "name": "confirm-type ",
3484
3493
  "default": "`done`",
3485
- "description": "键盘右下角按钮的文字(`仅支持小程序`),仅在`type='text'`时生效,可选值 `send`:发送、`search`:搜索、`next`:下一个、`go`:前往、`done`:完成",
3494
+ "description": "键盘右下角按钮的文字,仅在`type='text'`时生效,可选值 `send`:发送、`search`:搜索、`next`:下一个、`go`:前往、`done`:完成",
3486
3495
  "value": {
3487
3496
  "type": "string",
3488
3497
  "kind": "expression"
@@ -3491,7 +3500,16 @@
3491
3500
  {
3492
3501
  "name": "adjust-position",
3493
3502
  "default": "`true`",
3494
- "description": "键盘弹起时,是否自动上推页面,仅支持原生",
3503
+ "description": "键盘弹起时,是否自动上推页面(`仅支持小程序`)",
3504
+ "value": {
3505
+ "type": "boolean",
3506
+ "kind": "expression"
3507
+ }
3508
+ },
3509
+ {
3510
+ "name": "always-system",
3511
+ "default": "`false`",
3512
+ "description": "是否强制使用系统键盘和 Web-view 创建的 input 元素。为 true 时,`confirm-type`、`confirm-hold` 可能失效(`仅支持小程序`)",
3495
3513
  "value": {
3496
3514
  "type": "boolean",
3497
3515
  "kind": "expression"
@@ -4191,7 +4209,7 @@
4191
4209
  {
4192
4210
  "name": "v-model:visible",
4193
4211
  "default": "`false`",
4194
- "description": "当前组件是否显示",
4212
+ "description": "控制遮罩的显示/隐藏",
4195
4213
  "value": {
4196
4214
  "type": "boolean",
4197
4215
  "kind": "expression"
@@ -4200,7 +4218,7 @@
4200
4218
  {
4201
4219
  "name": "z-index",
4202
4220
  "default": "`2000`",
4203
- "description": "遮罩层级",
4221
+ "description": "自定义遮罩层级",
4204
4222
  "value": {
4205
4223
  "type": "string, number",
4206
4224
  "kind": "expression"
@@ -4209,9 +4227,9 @@
4209
4227
  {
4210
4228
  "name": "duration",
4211
4229
  "default": "`0.3`",
4212
- "description": "动画时长,单位秒",
4230
+ "description": "显示/隐藏的动画时长,单位秒",
4213
4231
  "value": {
4214
- "type": "string, number",
4232
+ "type": "string, string",
4215
4233
  "kind": "expression"
4216
4234
  }
4217
4235
  },
@@ -4236,7 +4254,7 @@
4236
4254
  {
4237
4255
  "name": "lock-scroll",
4238
4256
  "default": "`false`",
4239
- "description": "背景是否锁定(`小程序不支持`)",
4257
+ "description": "遮罩显示时的背景是否锁定",
4240
4258
  "value": {
4241
4259
  "type": "boolean",
4242
4260
  "kind": "expression"
@@ -4245,7 +4263,7 @@
4245
4263
  {
4246
4264
  "name": "close-on-click-overlay",
4247
4265
  "default": "`true`",
4248
- "description": "是否点击遮罩关闭",
4266
+ "description": "点击遮罩时是否关闭,如果设置 `false`,那么 `click`事件将失效",
4249
4267
  "value": {
4250
4268
  "type": "boolean",
4251
4269
  "kind": "expression"
@@ -4496,6 +4514,78 @@
4496
4514
  "type": "string",
4497
4515
  "kind": "expression"
4498
4516
  }
4517
+ },
4518
+ {
4519
+ "name": "duration ",
4520
+ "default": "0.3",
4521
+ "description": "动画时长",
4522
+ "value": {
4523
+ "type": "[number, number]",
4524
+ "kind": "expression"
4525
+ }
4526
+ },
4527
+ {
4528
+ "name": "iconPrefix ",
4529
+ "default": "'nut-icon''",
4530
+ "description": "图标自定义类值,等同于 Icon 组件的[ class-prefix 属性](https://nutui.jd.com/#/zh-CN/component/icon)",
4531
+ "value": {
4532
+ "type": "string",
4533
+ "kind": "expression"
4534
+ }
4535
+ },
4536
+ {
4537
+ "name": "overlay ",
4538
+ "default": "false",
4539
+ "description": "是否显示遮罩层",
4540
+ "value": {
4541
+ "type": "boolean",
4542
+ "kind": "expression"
4543
+ }
4544
+ },
4545
+ {
4546
+ "name": "overlay-class ",
4547
+ "default": "''",
4548
+ "description": "自定义遮罩层类名",
4549
+ "value": {
4550
+ "type": "string",
4551
+ "kind": "expression"
4552
+ }
4553
+ },
4554
+ {
4555
+ "name": "overlay-style ",
4556
+ "default": "''",
4557
+ "description": "自定义遮罩层样式",
4558
+ "value": {
4559
+ "type": "string",
4560
+ "kind": "expression"
4561
+ }
4562
+ },
4563
+ {
4564
+ "name": "close-on-click-overlay ",
4565
+ "default": "true",
4566
+ "description": "是否在点击遮罩层后关闭菜单",
4567
+ "value": {
4568
+ "type": "boolean",
4569
+ "kind": "expression"
4570
+ }
4571
+ },
4572
+ {
4573
+ "name": "close-on-click-action ",
4574
+ "default": "true",
4575
+ "description": "是否在点击选项后关闭",
4576
+ "value": {
4577
+ "type": "boolean",
4578
+ "kind": "expression"
4579
+ }
4580
+ },
4581
+ {
4582
+ "name": "close-on-click-outside ",
4583
+ "default": "true",
4584
+ "description": "是否在点击外部元素后关闭菜单",
4585
+ "value": {
4586
+ "type": "boolean",
4587
+ "kind": "expression"
4588
+ }
4499
4589
  }
4500
4590
  ]
4501
4591
  },
@@ -4507,7 +4597,7 @@
4507
4597
  {
4508
4598
  "name": "v-model:visible",
4509
4599
  "default": "`false`",
4510
- "description": "当前组件是否显示",
4600
+ "description": "控制当前组件显示/隐藏",
4511
4601
  "value": {
4512
4602
  "type": "boolean",
4513
4603
  "kind": "expression"
@@ -4525,30 +4615,12 @@
4525
4615
  {
4526
4616
  "name": "duration",
4527
4617
  "default": "`0.3`",
4528
- "description": "动画时长,单位秒",
4618
+ "description": "组件显示/隐藏的动画时长,单位秒",
4529
4619
  "value": {
4530
4620
  "type": "string、number",
4531
4621
  "kind": "expression"
4532
4622
  }
4533
4623
  },
4534
- {
4535
- "name": "overlay-class",
4536
- "default": "-",
4537
- "description": "自定义遮罩类名",
4538
- "value": {
4539
- "type": "string",
4540
- "kind": "expression"
4541
- }
4542
- },
4543
- {
4544
- "name": "overlay-style",
4545
- "default": "-",
4546
- "description": "自定义遮罩样式",
4547
- "value": {
4548
- "type": "cssproperties",
4549
- "kind": "expression"
4550
- }
4551
- },
4552
4624
  {
4553
4625
  "name": "lock-scroll",
4554
4626
  "default": "`true`",
@@ -4594,15 +4666,6 @@
4594
4666
  "kind": "expression"
4595
4667
  }
4596
4668
  },
4597
- {
4598
- "name": "container-style",
4599
- "default": "-",
4600
- "description": "自定义外层容器样式",
4601
- "value": {
4602
- "type": "cssproperties",
4603
- "kind": "expression"
4604
- }
4605
- },
4606
4669
  {
4607
4670
  "name": "style",
4608
4671
  "default": "-",
@@ -4675,6 +4738,15 @@
4675
4738
  "kind": "expression"
4676
4739
  }
4677
4740
  },
4741
+ {
4742
+ "name": "teleport-disable ",
4743
+ "default": "`false`",
4744
+ "description": "是否允许挂载节点(`小程序不支持`)",
4745
+ "value": {
4746
+ "type": "boolean",
4747
+ "kind": "expression"
4748
+ }
4749
+ },
4678
4750
  {
4679
4751
  "name": "safe-area-inset-bottom ",
4680
4752
  "default": "`false`",
@@ -4871,76 +4943,6 @@
4871
4943
  }
4872
4944
  ]
4873
4945
  },
4874
- {
4875
- "name": "nut-pullrefresh",
4876
- "slots": [],
4877
- "events": [],
4878
- "attributes": [
4879
- {
4880
- "name": "useWindow",
4881
- "default": "true",
4882
- "description": "将滚动侦听器添加到 window 否则侦听组件的父节点",
4883
- "value": {
4884
- "type": "boolean",
4885
- "kind": "expression"
4886
- }
4887
- },
4888
- {
4889
- "name": "containerId",
4890
- "default": "''",
4891
- "description": "在 useWindow 属性为 false 的时候,自定义设置节点ID",
4892
- "value": {
4893
- "type": "string",
4894
- "kind": "expression"
4895
- }
4896
- },
4897
- {
4898
- "name": "disabled",
4899
- "default": "true",
4900
- "description": "组件是否激活",
4901
- "value": {
4902
- "type": "boolean",
4903
- "kind": "expression"
4904
- }
4905
- },
4906
- {
4907
- "name": "direction",
4908
- "default": "'vertical'",
4909
- "description": "滚动的方向,'vertical' 纵向、'horizontal' 横向",
4910
- "value": {
4911
- "type": "string",
4912
- "kind": "expression"
4913
- }
4914
- },
4915
- {
4916
- "name": "pullingText",
4917
- "default": "{top: '下拉刷新', bottom: '上拉加载',left: '左滑刷新', right: '右滑加载'}",
4918
- "description": "'下拉'文案",
4919
- "value": {
4920
- "type": "object",
4921
- "kind": "expression"
4922
- }
4923
- },
4924
- {
4925
- "name": "loosingText",
4926
- "default": "{top: ’松手释放刷新', bottom: '松手释放刷新',left: '释放刷新', right: '加载更多'}",
4927
- "description": "'释放'文案",
4928
- "value": {
4929
- "type": "object",
4930
- "kind": "expression"
4931
- }
4932
- },
4933
- {
4934
- "name": "loadingText",
4935
- "default": "{top: '加载中...', bottom: '加载中...',left: '加载中...', right: '加载中...'}",
4936
- "description": "'加载中'文案",
4937
- "value": {
4938
- "type": "object",
4939
- "kind": "expression"
4940
- }
4941
- }
4942
- ]
4943
- },
4944
4946
  {
4945
4947
  "name": "nut-radio",
4946
4948
  "slots": [],
@@ -5812,7 +5814,7 @@
5812
5814
  "attributes": [
5813
5815
  {
5814
5816
  "name": "direction",
5815
- "default": "'horizontal'",
5817
+ "default": "`horizontal`",
5816
5818
  "description": "显示方向,`horizontal`,`vertical`",
5817
5819
  "value": {
5818
5820
  "type": "string",
@@ -5821,7 +5823,7 @@
5821
5823
  },
5822
5824
  {
5823
5825
  "name": "current",
5824
- "default": "'0'",
5826
+ "default": "`0`",
5825
5827
  "description": "当前所在的步骤",
5826
5828
  "value": {
5827
5829
  "type": "number、string",
@@ -5830,7 +5832,7 @@
5830
5832
  },
5831
5833
  {
5832
5834
  "name": "progress-dot",
5833
- "default": "false",
5835
+ "default": "`false`",
5834
5836
  "description": "点状步骤条",
5835
5837
  "value": {
5836
5838
  "type": "boolean",