@nutui/nutui 3.3.1 → 4.0.0-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 (527) hide show
  1. package/README.md +2 -2
  2. package/dist/{nutui.es.js → nutui.js} +3863 -3683
  3. package/dist/{nutui.umd.js → nutui.umd.cjs} +3776 -3703
  4. package/dist/packages/_es/ActionSheet.js +72 -65
  5. package/dist/packages/_es/Address.js +77 -72
  6. package/dist/packages/_es/AddressList.js +41 -34
  7. package/dist/packages/_es/Animate.js +8 -6
  8. package/dist/packages/_es/Audio.js +28 -23
  9. package/dist/packages/_es/AudioOperate.js +12 -6
  10. package/dist/packages/_es/Avatar.js +15 -64
  11. package/dist/packages/_es/AvatarGroup.js +7 -5
  12. package/dist/packages/_es/{BackTop.js → Backtop.js} +20 -22
  13. package/dist/packages/_es/Badge.js +9 -7
  14. package/dist/packages/_es/Barrage.js +13 -12
  15. package/dist/packages/_es/Button.js +14 -33
  16. package/dist/packages/_es/Calendar.js +15 -9
  17. package/dist/packages/_es/CalendarItem.js +9 -6
  18. package/dist/packages/_es/Card.js +14 -5
  19. package/dist/packages/_es/Cascader.js +31 -16
  20. package/dist/packages/_es/Category.js +10 -10
  21. package/dist/packages/_es/CategoryPane.js +22 -20
  22. package/dist/packages/_es/Cell.js +57 -60
  23. package/dist/packages/_es/CellGroup.js +7 -5
  24. package/dist/packages/_es/Checkbox.js +26 -40
  25. package/dist/packages/_es/CheckboxGroup.js +8 -6
  26. package/dist/packages/_es/CircleProgress.js +12 -10
  27. package/dist/packages/_es/Col.js +7 -5
  28. package/dist/packages/_es/Collapse.js +27 -47
  29. package/dist/packages/_es/CollapseItem.js +71 -83
  30. package/dist/packages/_es/Comment.js +33 -36
  31. package/dist/packages/_es/ConfigProvider.js +23 -4
  32. package/dist/packages/_es/{CountDown.js → Countdown.js} +8 -6
  33. package/dist/packages/_es/{CountUp.js → Countup.js} +21 -19
  34. package/dist/packages/_es/DatePicker.js +31 -29
  35. package/dist/packages/_es/Dialog.js +66 -46
  36. package/dist/packages/_es/Divider.js +7 -5
  37. package/dist/packages/_es/Drag.js +8 -6
  38. package/dist/packages/_es/Ecard.js +17 -11
  39. package/dist/packages/_es/Elevator.js +23 -21
  40. package/dist/packages/_es/Ellipsis.js +11 -9
  41. package/dist/packages/_es/Empty.js +10 -8
  42. package/dist/packages/_es/FixedNav.js +84 -75
  43. package/dist/packages/_es/Form.js +149 -140
  44. package/dist/packages/_es/FormItem.js +14 -7
  45. package/dist/packages/_es/Grid.js +7 -5
  46. package/dist/packages/_es/GridItem.js +19 -42
  47. package/dist/packages/_es/Icon.js +8 -44
  48. package/dist/packages/_es/Image.js +22 -10
  49. package/dist/packages/_es/ImagePreview.js +72 -55
  50. package/dist/packages/_es/Indicator.js +7 -5
  51. package/dist/packages/_es/InfiniteLoading.js +56 -124
  52. package/dist/packages/_es/Input.js +57 -186
  53. package/dist/packages/_es/InputNumber.js +43 -35
  54. package/dist/packages/_es/Invoice.js +29 -10
  55. package/dist/packages/_es/Layout.js +5 -3
  56. package/dist/packages/_es/List.js +7 -5
  57. package/dist/packages/_es/Menu.js +22 -13
  58. package/dist/packages/_es/MenuItem.js +25 -24
  59. package/dist/packages/_es/Navbar.js +47 -37
  60. package/dist/packages/_es/{NoticeBar.js → Noticebar.js} +52 -65
  61. package/dist/packages/_es/Notify.js +12 -7
  62. package/dist/packages/_es/NumberKeyboard.js +123 -112
  63. package/dist/packages/_es/{OverLay.js → Overlay.js} +7 -5
  64. package/dist/packages/_es/Pagination.js +7 -5
  65. package/dist/packages/_es/Picker.js +307 -304
  66. package/dist/packages/_es/Popover.js +34 -24
  67. package/dist/packages/_es/Popup.js +9 -152
  68. package/dist/packages/_es/Price.js +9 -12
  69. package/dist/packages/_es/Progress.js +18 -20
  70. package/dist/packages/_es/PullRefresh.js +222 -0
  71. package/dist/packages/_es/Radio.js +10 -103
  72. package/dist/packages/_es/RadioGroup.js +8 -44
  73. package/dist/packages/_es/Range.js +22 -20
  74. package/dist/packages/_es/Rate.js +153 -166
  75. package/dist/packages/_es/Row.js +7 -5
  76. package/dist/packages/_es/{SearchBar.js → Searchbar.js} +16 -15
  77. package/dist/packages/_es/ShortPassword.js +53 -121
  78. package/dist/packages/_es/{SideNavBar.js → SideNavbar.js} +11 -9
  79. package/dist/packages/_es/{SideNavBarItem.js → SideNavbarItem.js} +12 -10
  80. package/dist/packages/_es/Signature.js +12 -6
  81. package/dist/packages/_es/Skeleton.js +95 -85
  82. package/dist/packages/_es/Sku.js +28 -24
  83. package/dist/packages/_es/Step.js +28 -41
  84. package/dist/packages/_es/Steps.js +5 -3
  85. package/dist/packages/_es/Sticky.js +9 -150
  86. package/dist/packages/_es/{SubSideNavBar.js → SubSideNavbar.js} +18 -16
  87. package/dist/packages/_es/Swipe.js +8 -6
  88. package/dist/packages/_es/Swiper.js +121 -61
  89. package/dist/packages/_es/SwiperItem.js +8 -6
  90. package/dist/packages/_es/Switch.js +16 -28
  91. package/dist/packages/_es/TabPane.js +9 -7
  92. package/dist/packages/_es/Tabbar.js +21 -26
  93. package/dist/packages/_es/TabbarItem.js +39 -83
  94. package/dist/packages/_es/Table.js +15 -11
  95. package/dist/packages/_es/Tabs.js +33 -25
  96. package/dist/packages/_es/Tag.js +15 -9
  97. package/dist/packages/_es/{TextArea.js → Textarea.js} +8 -6
  98. package/dist/packages/_es/TimeDetail.js +12 -10
  99. package/dist/packages/_es/TimePannel.js +9 -7
  100. package/dist/packages/_es/TimeSelect.js +19 -11
  101. package/dist/packages/_es/Toast.js +25 -26
  102. package/dist/packages/_es/Tour.js +270 -0
  103. package/dist/packages/_es/TrendArrow.js +24 -43
  104. package/dist/packages/_es/Uploader.js +98 -61
  105. package/dist/packages/_es/Video.js +24 -22
  106. package/dist/packages/_es/{WaterMark.js → Watermark.js} +7 -5
  107. package/dist/packages/_es/{plugin-vue_export-helper.js → _plugin-vue_export-helper.bf57b04e.js} +5 -3
  108. package/dist/packages/_es/{common.js → common.4b8c0eb2.js} +7 -11
  109. package/dist/packages/_es/{component.js → component.fb9ce7ad.js} +19 -2
  110. package/dist/packages/_es/index.1be0d1a5.js +35 -0
  111. package/dist/packages/_es/{index5.js → index.3dd88014.js} +72 -70
  112. package/dist/packages/_es/index.4ed42c18.js +239 -0
  113. package/dist/packages/_es/{index.js → index.51da6a3b.js} +4 -2
  114. package/dist/packages/_es/{index3.js → index.617ba243.js} +4 -2
  115. package/dist/packages/_es/{index4.js → index.983240fc.js} +4 -2
  116. package/dist/packages/_es/{index2.js → index.af02c42d.js} +4 -2
  117. package/dist/packages/_es/index.vue_vue_type_script_lang.43efbcd1.js +102 -0
  118. package/dist/packages/_es/index.vue_vue_type_script_lang.6e735bb8.js +50 -0
  119. package/dist/packages/_es/index.vue_vue_type_script_lang.ccc15054.js +156 -0
  120. package/dist/packages/_es/index.vue_vue_type_script_lang.de4367bf.js +12 -0
  121. package/dist/packages/_es/{interceptor.js → interceptor.ba45688c.js} +5 -3
  122. package/dist/packages/_es/{mountComponent.js → mountComponent.dddeb43c.js} +5 -3
  123. package/dist/packages/_es/{pxCheck.js → pxCheck.09969b22.js} +4 -2
  124. package/dist/packages/_es/{raf.js → raf.42b42f63.js} +14 -3
  125. package/dist/packages/_es/renderIcon.f32ed340.js +14 -0
  126. package/dist/packages/_es/style.css +2 -2
  127. package/dist/packages/actionsheet/index.js +3 -0
  128. package/dist/packages/actionsheet/index.scss +16 -32
  129. package/dist/packages/address/index.js +4 -0
  130. package/dist/packages/address/index.scss +28 -52
  131. package/dist/packages/addresslist/index.js +2 -0
  132. package/dist/packages/addresslist/index.scss +3 -3
  133. package/dist/packages/animate/index.js +1 -0
  134. package/dist/packages/animate/index.scss +1 -1
  135. package/dist/packages/audio/index.js +2 -0
  136. package/dist/packages/audio/index.scss +9 -9
  137. package/dist/packages/audiooperate/index.js +2 -0
  138. package/dist/packages/avatar/index.js +1 -0
  139. package/dist/packages/avatar/index.scss +1 -12
  140. package/dist/packages/avatargroup/index.js +1 -0
  141. package/dist/packages/backtop/index.js +1 -0
  142. package/dist/packages/badge/index.js +1 -0
  143. package/dist/packages/badge/index.scss +17 -17
  144. package/dist/packages/barrage/index.js +1 -0
  145. package/dist/packages/barrage/index.scss +2 -22
  146. package/dist/packages/button/index.js +1 -0
  147. package/dist/packages/button/index.scss +2 -1
  148. package/dist/packages/calendar/index.js +4 -0
  149. package/dist/packages/calendar/index.scss +39 -43
  150. package/dist/packages/calendaritem/index.js +1 -0
  151. package/dist/packages/card/index.js +3 -0
  152. package/dist/packages/cascader/index.js +6 -0
  153. package/dist/packages/cascader/index.scss +1 -1
  154. package/dist/packages/category/index.js +1 -0
  155. package/dist/packages/categorypane/index.js +1 -0
  156. package/dist/packages/categorypane/index.scss +2 -2
  157. package/dist/packages/cell/index.js +1 -0
  158. package/dist/packages/cellgroup/index.js +1 -0
  159. package/dist/packages/checkbox/index.js +1 -0
  160. package/dist/packages/checkboxgroup/index.js +1 -0
  161. package/dist/packages/circleprogress/index.js +1 -0
  162. package/dist/packages/circleprogress/index.scss +5 -5
  163. package/dist/packages/col/index.js +1 -0
  164. package/dist/packages/collapse/index.js +1 -0
  165. package/dist/packages/collapseitem/index.js +1 -0
  166. package/dist/packages/collapseitem/index.scss +54 -77
  167. package/dist/packages/comment/index.js +2 -0
  168. package/dist/packages/comment/index.scss +1 -3
  169. package/dist/packages/configprovider/index.js +1 -0
  170. package/dist/packages/countdown/index.js +1 -0
  171. package/dist/packages/countup/index.js +1 -0
  172. package/dist/packages/countup/index.scss +8 -38
  173. package/dist/packages/datepicker/index.js +4 -0
  174. package/dist/packages/datepicker/index.scss +1 -1
  175. package/dist/packages/dialog/index.js +4 -0
  176. package/dist/packages/divider/index.js +1 -0
  177. package/dist/packages/drag/index.js +1 -0
  178. package/dist/packages/drag/index.scss +1 -1
  179. package/dist/packages/ecard/index.js +2 -0
  180. package/dist/packages/elevator/index.js +1 -0
  181. package/dist/packages/ellipsis/index.js +1 -0
  182. package/dist/packages/ellipsis/index.scss +3 -3
  183. package/dist/packages/empty/index.js +1 -0
  184. package/dist/packages/empty/index.scss +2 -2
  185. package/dist/packages/fixednav/index.js +2 -0
  186. package/dist/packages/fixednav/index.scss +5 -5
  187. package/dist/packages/form/index.js +2 -0
  188. package/dist/packages/formitem/index.js +2 -0
  189. package/dist/packages/grid/index.js +1 -0
  190. package/dist/packages/griditem/index.js +1 -0
  191. package/dist/packages/icon/index.js +1 -0
  192. package/dist/packages/icon/index.scss +1 -131
  193. package/dist/packages/image/index.js +1 -0
  194. package/dist/packages/imagepreview/index.js +6 -0
  195. package/dist/packages/imagepreview/index.scss +4 -4
  196. package/dist/packages/indicator/index.js +1 -0
  197. package/dist/packages/infiniteloading/index.js +1 -0
  198. package/dist/packages/infiniteloading/index.scss +15 -41
  199. package/dist/packages/input/index.js +1 -0
  200. package/dist/packages/input/index.scss +20 -18
  201. package/dist/packages/inputnumber/index.js +1 -0
  202. package/dist/packages/inputnumber/index.scss +4 -2
  203. package/dist/packages/invoice/index.js +8 -0
  204. package/dist/packages/layout/index.js +1 -0
  205. package/dist/packages/list/index.js +1 -0
  206. package/dist/packages/locale/index.d.ts +1 -1
  207. package/dist/packages/locale/lang/baseLang.d.ts +5 -0
  208. package/dist/packages/locale/lang/baseLang.ff3ed8bc.js +10 -0
  209. package/dist/packages/locale/lang/en-US.d.ts +5 -0
  210. package/dist/packages/locale/lang/en-US.js +61 -51
  211. package/dist/packages/locale/lang/id-ID.d.ts +5 -0
  212. package/dist/packages/locale/lang/id-ID.js +61 -51
  213. package/dist/packages/locale/lang/index.js +25 -38
  214. package/dist/packages/locale/lang/zh-CN.d.ts +5 -0
  215. package/dist/packages/locale/lang/zh-CN.js +60 -50
  216. package/dist/packages/locale/lang/zh-TW.d.ts +5 -0
  217. package/dist/packages/locale/lang/zh-TW.js +60 -50
  218. package/dist/packages/menu/index.js +1 -0
  219. package/dist/packages/menu/index.scss +1 -0
  220. package/dist/packages/menuitem/index.js +3 -0
  221. package/dist/packages/menuitem/index.scss +4 -2
  222. package/dist/packages/navbar/index.js +1 -0
  223. package/dist/packages/navbar/index.scss +5 -1
  224. package/dist/packages/noticebar/index.js +1 -0
  225. package/dist/packages/noticebar/index.scss +15 -16
  226. package/dist/packages/notify/index.js +3 -0
  227. package/dist/packages/notify/index.scss +0 -20
  228. package/dist/packages/numberkeyboard/index.js +3 -0
  229. package/dist/packages/numberkeyboard/index.scss +45 -49
  230. package/dist/packages/overlay/index.js +1 -0
  231. package/dist/packages/pagination/index.js +1 -0
  232. package/dist/packages/picker/index.js +3 -0
  233. package/dist/packages/picker/index.scss +19 -56
  234. package/dist/packages/popover/index.js +3 -0
  235. package/dist/packages/popover/index.scss +7 -0
  236. package/dist/packages/popup/index.js +2 -0
  237. package/dist/packages/popup/index.scss +6 -6
  238. package/dist/packages/price/index.js +1 -0
  239. package/dist/packages/price/index.scss +0 -9
  240. package/dist/packages/progress/index.js +1 -0
  241. package/dist/packages/pullrefresh/index.js +1 -0
  242. package/dist/packages/pullrefresh/index.scss +30 -0
  243. package/dist/packages/radio/index.js +1 -0
  244. package/dist/packages/radiogroup/index.js +1 -0
  245. package/dist/packages/radiogroup/index.scss +1 -1
  246. package/dist/packages/range/index.js +1 -0
  247. package/dist/packages/range/index.scss +4 -4
  248. package/dist/packages/rate/index.js +1 -0
  249. package/dist/packages/row/index.js +1 -0
  250. package/dist/packages/searchbar/index.js +1 -0
  251. package/dist/packages/shortpassword/index.js +3 -0
  252. package/dist/packages/shortpassword/index.scss +15 -122
  253. package/dist/packages/sidenavbar/index.js +1 -0
  254. package/dist/packages/sidenavbar/index.scss +1 -1
  255. package/dist/packages/sidenavbaritem/index.js +1 -0
  256. package/dist/packages/sidenavbaritem/index.scss +3 -2
  257. package/dist/packages/signature/index.js +2 -0
  258. package/dist/packages/skeleton/index.js +2 -0
  259. package/dist/packages/skeleton/index.scss +11 -11
  260. package/dist/packages/sku/index.js +5 -0
  261. package/dist/packages/step/index.js +1 -0
  262. package/dist/packages/step/index.scss +7 -8
  263. package/dist/packages/steps/index.js +1 -0
  264. package/dist/packages/sticky/index.js +1 -0
  265. package/dist/packages/subsidenavbar/index.js +1 -0
  266. package/dist/packages/subsidenavbar/index.scss +2 -2
  267. package/dist/packages/swipe/index.js +1 -0
  268. package/dist/packages/swiper/index.js +1 -0
  269. package/dist/packages/swiperitem/index.js +1 -0
  270. package/dist/packages/switch/index.js +1 -0
  271. package/dist/packages/switch/index.scss +5 -15
  272. package/dist/packages/tabbar/index.js +1 -0
  273. package/dist/packages/tabbaritem/index.js +2 -0
  274. package/dist/packages/tabbaritem/index.scss +0 -29
  275. package/dist/packages/table/index.js +1 -0
  276. package/dist/packages/tabpane/index.js +1 -0
  277. package/dist/packages/tabpane/index.scss +2 -2
  278. package/dist/packages/tabs/index.js +2 -0
  279. package/dist/packages/tabs/index.scss +4 -4
  280. package/dist/packages/tag/index.js +1 -0
  281. package/dist/packages/textarea/index.js +1 -0
  282. package/dist/packages/textarea/index.scss +1 -1
  283. package/dist/packages/timedetail/index.js +1 -0
  284. package/dist/packages/timedetail/index.scss +2 -2
  285. package/dist/packages/timepannel/index.js +1 -0
  286. package/dist/packages/timepannel/index.scss +2 -2
  287. package/dist/packages/timeselect/index.js +3 -0
  288. package/dist/packages/timeselect/index.scss +2 -2
  289. package/dist/packages/toast/index.js +1 -0
  290. package/dist/packages/tour/index.js +4 -0
  291. package/dist/packages/tour/index.scss +78 -0
  292. package/dist/packages/trendarrow/index.js +1 -0
  293. package/dist/packages/trendarrow/index.scss +1 -1
  294. package/dist/packages/uploader/index.js +3 -0
  295. package/dist/packages/uploader/index.scss +2 -0
  296. package/dist/packages/video/index.js +1 -0
  297. package/dist/packages/video/index.scss +11 -17
  298. package/dist/packages/watermark/index.js +1 -0
  299. package/dist/smartips/attributes.json +215 -447
  300. package/dist/smartips/tags.json +116 -171
  301. package/dist/smartips/web-types.json +382 -906
  302. package/dist/style.css +1 -1
  303. package/dist/style.js +4 -0
  304. package/dist/styles/animation/index.scss +0 -1
  305. package/dist/styles/css-variables.scss +920 -0
  306. package/dist/styles/themes/default.scss +54 -52
  307. package/dist/styles/themes/jdb.scss +54 -52
  308. package/dist/styles/themes/jddkh.scss +54 -52
  309. package/dist/styles/themes/jdt.scss +54 -52
  310. package/dist/styles/variables-jdb.scss +3 -3
  311. package/dist/styles/variables-jddkh.scss +3 -3
  312. package/dist/styles/variables-jdt.scss +3 -3
  313. package/dist/styles/variables-var.scss +854 -0
  314. package/dist/styles/variables.scss +7 -7
  315. package/dist/types/__VUE/actionsheet/index.vue.d.ts +28 -20
  316. package/dist/types/__VUE/address/address-list.d.ts +30 -0
  317. package/dist/types/__VUE/address/index.vue.d.ts +33 -72
  318. package/dist/types/__VUE/address/type.d.ts +18 -0
  319. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +3 -14
  320. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +3 -14
  321. package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +3 -14
  322. package/dist/types/__VUE/addresslist/index.vue.d.ts +8 -9
  323. package/dist/types/__VUE/animate/index.vue.d.ts +16 -15
  324. package/dist/types/__VUE/animate/type.d.ts +2 -6
  325. package/dist/types/__VUE/audio/index.vue.d.ts +19 -17
  326. package/dist/types/__VUE/audiooperate/index.vue.d.ts +12 -7
  327. package/dist/types/__VUE/avatar/index.vue.d.ts +14 -48
  328. package/dist/types/__VUE/avatargroup/index.vue.d.ts +8 -9
  329. package/dist/types/__VUE/backtop/index.vue.d.ts +8 -9
  330. package/dist/types/__VUE/badge/index.vue.d.ts +9 -10
  331. package/dist/types/__VUE/barrage/index.vue.d.ts +7 -8
  332. package/dist/types/__VUE/button/index.vue.d.ts +21 -47
  333. package/dist/types/__VUE/button/type.d.ts +3 -7
  334. package/dist/types/__VUE/calendar/index.vue.d.ts +13 -13
  335. package/dist/types/__VUE/calendaritem/index.vue.d.ts +23 -22
  336. package/dist/types/__VUE/calendaritem/type.d.ts +70 -0
  337. package/dist/types/__VUE/card/index.vue.d.ts +6 -7
  338. package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +10 -9
  339. package/dist/types/__VUE/cascader/helper.d.ts +0 -4
  340. package/dist/types/__VUE/cascader/index.vue.d.ts +12 -11
  341. package/dist/types/__VUE/cascader/tree.d.ts +0 -4
  342. package/dist/types/__VUE/cascader/types.d.ts +6 -10
  343. package/dist/types/__VUE/category/index.vue.d.ts +18 -14
  344. package/dist/types/__VUE/categorypane/index.vue.d.ts +23 -14
  345. package/dist/types/__VUE/cell/index.vue.d.ts +13 -32
  346. package/dist/types/__VUE/cellgroup/index.vue.d.ts +6 -7
  347. package/dist/types/__VUE/checkbox/common.d.ts +2 -59
  348. package/dist/types/__VUE/checkbox/index.vue.d.ts +6 -113
  349. package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +6 -7
  350. package/dist/types/__VUE/circleprogress/index.vue.d.ts +18 -14
  351. package/dist/types/__VUE/col/index.vue.d.ts +6 -7
  352. package/dist/types/__VUE/collapse/index.vue.d.ts +16 -81
  353. package/dist/types/__VUE/collapseitem/index.vue.d.ts +52 -24
  354. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +7 -17
  355. package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +3 -14
  356. package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +29 -21
  357. package/dist/types/__VUE/comment/index.vue.d.ts +29 -19
  358. package/dist/types/__VUE/configprovider/common.d.ts +4 -4
  359. package/dist/types/__VUE/configprovider/index.vue.d.ts +15 -7
  360. package/dist/types/__VUE/countdown/index.vue.d.ts +11 -12
  361. package/dist/types/__VUE/countdown/util.d.ts +1 -5
  362. package/dist/types/__VUE/countup/index.vue.d.ts +13 -14
  363. package/dist/types/__VUE/datepicker/index.vue.d.ts +32 -168
  364. package/dist/types/__VUE/datepicker/type.d.ts +2 -6
  365. package/dist/types/__VUE/dialog/index.d.ts +0 -4
  366. package/dist/types/__VUE/dialog/index.vue.d.ts +19 -16
  367. package/dist/types/__VUE/divider/index.vue.d.ts +6 -7
  368. package/dist/types/__VUE/drag/index.vue.d.ts +6 -7
  369. package/dist/types/__VUE/ecard/index.vue.d.ts +15 -11
  370. package/dist/types/__VUE/elevator/index.vue.d.ts +14 -13
  371. package/dist/types/__VUE/elevator/type.d.ts +5 -0
  372. package/dist/types/__VUE/ellipsis/index.vue.d.ts +14 -9
  373. package/dist/types/__VUE/empty/index.vue.d.ts +6 -7
  374. package/dist/types/__VUE/fixednav/common.d.ts +2 -5
  375. package/dist/types/__VUE/fixednav/index.vue.d.ts +10 -11
  376. package/dist/types/__VUE/form/common.d.ts +2 -6
  377. package/dist/types/__VUE/form/index.vue.d.ts +7 -8
  378. package/dist/types/__VUE/form/types.d.ts +3 -7
  379. package/dist/types/__VUE/formitem/common.d.ts +0 -0
  380. package/dist/types/__VUE/formitem/index.vue.d.ts +11 -11
  381. package/dist/types/__VUE/formitem/types.d.ts +0 -4
  382. package/dist/types/__VUE/grid/common.d.ts +2 -20
  383. package/dist/types/__VUE/grid/index.vue.d.ts +7 -23
  384. package/dist/types/__VUE/griditem/index.vue.d.ts +9 -42
  385. package/dist/types/__VUE/icon/index.vue.d.ts +6 -68
  386. package/dist/types/__VUE/image/index.vue.d.ts +15 -17
  387. package/dist/types/__VUE/image/type.d.ts +2 -6
  388. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +10 -9
  389. package/dist/types/__VUE/imagepreview/index.d.ts +1 -5
  390. package/dist/types/__VUE/imagepreview/index.vue.d.ts +14 -12
  391. package/dist/types/__VUE/imagepreview/types.d.ts +2 -6
  392. package/dist/types/__VUE/indicator/index.vue.d.ts +7 -8
  393. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +18 -57
  394. package/dist/types/__VUE/input/index.vue.d.ts +42 -146
  395. package/dist/types/__VUE/input/type.d.ts +5 -9
  396. package/dist/types/__VUE/input/util.d.ts +0 -4
  397. package/dist/types/__VUE/inputnumber/index.vue.d.ts +10 -29
  398. package/dist/types/__VUE/invoice/index.vue.d.ts +9 -10
  399. package/dist/types/__VUE/invoice/types.d.ts +6 -0
  400. package/dist/types/__VUE/layout/index.vue.d.ts +6 -7
  401. package/dist/types/__VUE/list/index.vue.d.ts +12 -12
  402. package/dist/types/__VUE/menu/index.vue.d.ts +10 -11
  403. package/dist/types/__VUE/menuitem/index.vue.d.ts +13 -21
  404. package/dist/types/__VUE/menuitem/type.d.ts +1 -5
  405. package/dist/types/__VUE/navbar/index.vue.d.ts +20 -22
  406. package/dist/types/__VUE/noticebar/index.vue.d.ts +38 -30
  407. package/dist/types/__VUE/notify/index.d.ts +0 -4
  408. package/dist/types/__VUE/notify/index.vue.d.ts +8 -9
  409. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +27 -54
  410. package/dist/types/__VUE/overlay/index.vue.d.ts +10 -10
  411. package/dist/types/__VUE/pagination/index.vue.d.ts +6 -7
  412. package/dist/types/__VUE/picker/Column.vue.d.ts +41 -35
  413. package/dist/types/__VUE/picker/baseProps.d.ts +55 -0
  414. package/dist/types/__VUE/picker/common.d.ts +555 -0
  415. package/dist/types/__VUE/picker/doc.en.d.ts +88 -0
  416. package/dist/types/__VUE/picker/index.vue.d.ts +60 -236
  417. package/dist/types/__VUE/picker/types.d.ts +1 -5
  418. package/dist/types/__VUE/picker/usePicker.d.ts +17 -0
  419. package/dist/types/__VUE/popover/index.vue.d.ts +24 -20
  420. package/dist/types/__VUE/popover/type.d.ts +5 -8
  421. package/dist/types/__VUE/popup/common.d.ts +2 -6
  422. package/dist/types/__VUE/popup/index.vue.d.ts +9 -10
  423. package/dist/types/__VUE/popup/props.d.ts +0 -4
  424. package/dist/types/__VUE/price/index.vue.d.ts +9 -19
  425. package/dist/types/__VUE/progress/index.vue.d.ts +9 -28
  426. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +126 -0
  427. package/dist/types/__VUE/radio/index.vue.d.ts +9 -46
  428. package/dist/types/__VUE/radiogroup/index.vue.d.ts +9 -10
  429. package/dist/types/__VUE/range/index.vue.d.ts +22 -21
  430. package/dist/types/__VUE/range/type.d.ts +1 -5
  431. package/dist/types/__VUE/rate/index.vue.d.ts +28 -55
  432. package/dist/types/__VUE/row/index.vue.d.ts +6 -7
  433. package/dist/types/__VUE/searchbar/index.vue.d.ts +25 -21
  434. package/dist/types/__VUE/searchbar/type.d.ts +1 -5
  435. package/dist/types/__VUE/shortpassword/index.vue.d.ts +10 -44
  436. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +7 -7
  437. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +6 -7
  438. package/dist/types/__VUE/signature/index.vue.d.ts +13 -9
  439. package/dist/types/__VUE/skeleton/common.d.ts +3 -6
  440. package/dist/types/__VUE/skeleton/index.vue.d.ts +8 -9
  441. package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +3 -14
  442. package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +9 -19
  443. package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +10 -15
  444. package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +6 -17
  445. package/dist/types/__VUE/sku/data.d.ts +22 -0
  446. package/dist/types/__VUE/sku/index.vue.d.ts +21 -21
  447. package/dist/types/__VUE/step/index.vue.d.ts +6 -34
  448. package/dist/types/__VUE/steps/index.vue.d.ts +7 -8
  449. package/dist/types/__VUE/sticky/index.vue.d.ts +9 -9
  450. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +6 -7
  451. package/dist/types/__VUE/swipe/index.vue.d.ts +8 -7
  452. package/dist/types/__VUE/swiper/index.vue.d.ts +18 -19
  453. package/dist/types/__VUE/swiper/use-touch.d.ts +16 -0
  454. package/dist/types/__VUE/swiperitem/index.vue.d.ts +7 -7
  455. package/dist/types/__VUE/swiperitem/type.d.ts +5 -0
  456. package/dist/types/__VUE/switch/index.vue.d.ts +15 -43
  457. package/dist/types/__VUE/tabbar/index.vue.d.ts +16 -17
  458. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +14 -69
  459. package/dist/types/__VUE/table/common.d.ts +2 -4
  460. package/dist/types/__VUE/table/index.vue.d.ts +7 -8
  461. package/dist/types/__VUE/table/renderColumn.d.ts +11 -5
  462. package/dist/types/__VUE/table/types.d.ts +0 -4
  463. package/dist/types/__VUE/tabpane/index.vue.d.ts +6 -7
  464. package/dist/types/__VUE/tabs/index.vue.d.ts +28 -18
  465. package/dist/types/__VUE/tag/index.vue.d.ts +15 -14
  466. package/dist/types/__VUE/tag/type.d.ts +1 -5
  467. package/dist/types/__VUE/textarea/index.vue.d.ts +15 -16
  468. package/dist/types/__VUE/timedetail/index.vue.d.ts +8 -9
  469. package/dist/types/__VUE/timepannel/index.vue.d.ts +7 -8
  470. package/dist/types/__VUE/timeselect/index.vue.d.ts +6 -7
  471. package/dist/types/__VUE/toast/index.d.ts +1 -5
  472. package/dist/types/__VUE/toast/index.vue.d.ts +19 -18
  473. package/dist/types/__VUE/tour/index.vue.d.ts +195 -0
  474. package/dist/types/__VUE/tour/type.d.ts +2 -0
  475. package/dist/types/__VUE/trendarrow/index.vue.d.ts +7 -40
  476. package/dist/types/__VUE/uploader/index.vue.d.ts +18 -43
  477. package/dist/types/__VUE/uploader/type.d.ts +3 -7
  478. package/dist/types/__VUE/uploader/uploader.d.ts +0 -4
  479. package/dist/types/__VUE/video/index.vue.d.ts +25 -25
  480. package/dist/types/__VUE/watermark/index.vue.d.ts +9 -10
  481. package/dist/types/index.d.ts +113 -7
  482. package/dist/types/locale/index.d.ts +8 -0
  483. package/dist/types/locale/lang/baseLang.d.ts +93 -0
  484. package/dist/types/locale/lang/en-US.d.ts +109 -0
  485. package/dist/types/locale/lang/id-ID.d.ts +109 -0
  486. package/dist/types/locale/lang/zh-CN.d.ts +109 -0
  487. package/dist/types/locale/lang/zh-TW.d.ts +109 -0
  488. package/dist/types/utils/create/component.d.ts +7 -0
  489. package/dist/types/utils/create/index.d.ts +4 -0
  490. package/dist/types/utils/create/mountComponent.d.ts +4 -0
  491. package/dist/types/utils/create/renderIcon.d.ts +4 -0
  492. package/dist/types/utils/date.d.ts +12 -0
  493. package/dist/types/utils/interceptor.d.ts +6 -0
  494. package/dist/types/utils/pxCheck.d.ts +1 -0
  495. package/dist/types/utils/raf.d.ts +4 -0
  496. package/dist/types/utils/throttle.d.ts +2 -0
  497. package/dist/types/utils/unit.d.ts +6 -0
  498. package/dist/types/utils/useExpose/index.d.ts +1 -0
  499. package/dist/types/utils/useLockScroll/index.d.ts +1 -0
  500. package/dist/types/utils/useRect/index.d.ts +17 -0
  501. package/dist/types/utils/useRelation/useInject.d.ts +14 -0
  502. package/dist/types/utils/useRelation/useProvide.d.ts +8 -0
  503. package/dist/types/utils/useRelation/useRelation.d.ts +1 -0
  504. package/dist/types/utils/useRoute/index.d.ts +1 -0
  505. package/dist/types/utils/useScrollParent/index.d.ts +5 -0
  506. package/dist/types/utils/useTaroRect/index.d.ts +10 -0
  507. package/dist/types/utils/useTouch/index.d.ts +18 -0
  508. package/dist/types/utils/util.d.ts +25 -0
  509. package/package.json +43 -35
  510. package/dist/packages/_es/props.js +0 -80
  511. package/dist/packages/locale/lang/baseLang.js +0 -8
  512. package/dist/style.es.js +0 -2
  513. package/dist/styles/animation/icon.scss +0 -245
  514. package/dist/styles/font/config.json +0 -175
  515. package/dist/styles/font/demo.css +0 -539
  516. package/dist/styles/font/demo_index.html +0 -3063
  517. package/dist/styles/font/iconfont.css +0 -515
  518. package/dist/styles/font/iconfont.eot +0 -0
  519. package/dist/styles/font/iconfont.js +0 -66
  520. package/dist/styles/font/iconfont.json +0 -884
  521. package/dist/styles/font/iconfont.svg +0 -356
  522. package/dist/styles/font/iconfont.ttf +0 -0
  523. package/dist/styles/font/iconfont.woff +0 -0
  524. package/dist/styles/font/iconfont.woff2 +0 -0
  525. package/dist/types/__VUE/rate/common.d.ts +0 -149
  526. package/dist/types/__VUE/tabs/common.d.ts +0 -95
  527. package/dist/types/nutui.d.ts +0 -104
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.1 Fri Dec 16 2022 17:34:28 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { toRefs, reactive, computed, openBlock, createElementBlock, createElementVNode, normalizeClass, renderSlot } from "vue";
7
- import { c as createComponent } from "./component.js";
8
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
7
+ import { c as createComponent } from "./component.fb9ce7ad.js";
8
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
9
9
  import "../locale/lang";
10
10
  const { componentName, create } = createComponent("animate");
11
11
  const _sfc_main = create({
@@ -32,7 +32,7 @@ const _sfc_main = create({
32
32
  let classes = computed(() => {
33
33
  const prefixCls = componentName;
34
34
  return {
35
- "nut-ani-container": true,
35
+ "nut-animate__container": true,
36
36
  [`${prefixCls}-${type.value}`]: action.value === "initial" || state.clicked ? type.value : false,
37
37
  loop: loop.value
38
38
  };
@@ -60,5 +60,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
60
60
  ], 2)
61
61
  ]);
62
62
  }
63
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
64
- export { index as default };
63
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
64
+ export {
65
+ index as default
66
+ };
@@ -1,12 +1,16 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.1 Fri Dec 16 2022 17:34:28 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { ref, reactive, onMounted, watch, provide, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, withCtx, createCommentVNode, normalizeClass, createBlock, renderSlot } from "vue";
7
- import { c as createComponent } from "./component.js";
8
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
7
+ import { c as createComponent } from "./component.fb9ce7ad.js";
8
+ import { Service } from "@nutui/icons-vue";
9
+ import Range from "./Range.js";
10
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
9
11
  import "../locale/lang";
12
+ import "./index.983240fc.js";
13
+ import "./index.af02c42d.js";
10
14
  const { componentName, create } = createComponent("audio");
11
15
  const _sfc_main = create({
12
16
  props: {
@@ -39,9 +43,12 @@ const _sfc_main = create({
39
43
  default: "progress"
40
44
  }
41
45
  },
42
- components: {},
46
+ components: {
47
+ Service,
48
+ [Range.name]: Range
49
+ },
43
50
  emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute", "can-play"],
44
- setup(props, { emit }) {
51
+ setup(props, { emit, slots }) {
45
52
  const audioRef = ref(null);
46
53
  const audioData = reactive({
47
54
  currentTime: 0,
@@ -168,27 +175,28 @@ const _sfc_main = create({
168
175
  audioEnd,
169
176
  onTimeupdate,
170
177
  handleMute,
171
- onCanplay
178
+ onCanplay,
179
+ slots
172
180
  };
173
181
  }
174
182
  });
175
183
  const _hoisted_1 = { class: "nut-audio" };
176
184
  const _hoisted_2 = {
177
185
  key: 0,
178
- class: "progress-wrapper"
186
+ class: "nut-audio__progress"
179
187
  };
180
- const _hoisted_3 = { class: "time" };
181
- const _hoisted_4 = { class: "progress-bar-wrapper" };
182
- const _hoisted_5 = /* @__PURE__ */ createElementVNode("div", { class: "custom-button" }, null, -1);
183
- const _hoisted_6 = { class: "time" };
188
+ const _hoisted_3 = { class: "nut-audio__time" };
189
+ const _hoisted_4 = { class: "nut-audio__bar" };
190
+ const _hoisted_5 = /* @__PURE__ */ createElementVNode("div", { class: "nut-audio__button--custom" }, null, -1);
191
+ const _hoisted_6 = { class: "nut-audio__time" };
184
192
  const _hoisted_7 = {
185
193
  key: 1,
186
- class: "nut-audio-icon"
194
+ class: "nut-audio__icon"
187
195
  };
188
196
  const _hoisted_8 = ["controls", "src", "preload", "autoplay", "loop", "muted"];
189
197
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
190
198
  const _component_nut_range = resolveComponent("nut-range");
191
- const _component_nut_icon = resolveComponent("nut-icon");
199
+ const _component_Service = resolveComponent("Service");
192
200
  return openBlock(), createElementBlock("div", _hoisted_1, [
193
201
  _ctx.type == "progress" ? (openBlock(), createElementBlock("div", _hoisted_2, [
194
202
  createElementVNode("div", _hoisted_3, toDisplayString(_ctx.currentDuration), 1),
@@ -211,18 +219,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
211
219
  ])) : createCommentVNode("", true),
212
220
  _ctx.type == "icon" ? (openBlock(), createElementBlock("div", _hoisted_7, [
213
221
  createElementVNode("div", {
214
- class: normalizeClass(["nut-audio-icon-box", _ctx.playing ? "nut-audio-icon-play" : "nut-audio-icon-stop"]),
222
+ class: normalizeClass(["nut-audio__icon--box", _ctx.playing ? "nut-audio__icon--play" : "nut-audio__icon--stop"]),
215
223
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.changeStatus && _ctx.changeStatus(...args))
216
224
  }, [
217
- _ctx.playing ? (openBlock(), createBlock(_component_nut_icon, {
225
+ _ctx.playing ? (openBlock(), createBlock(_component_Service, {
218
226
  key: 0,
219
- name: "service",
220
227
  class: "nut-icon-am-rotate nut-icon-am-infinite"
221
- })) : createCommentVNode("", true),
222
- !_ctx.playing ? (openBlock(), createBlock(_component_nut_icon, {
223
- key: 1,
224
- name: "service"
225
- })) : createCommentVNode("", true)
228
+ })) : (openBlock(), createBlock(_component_Service, { key: 1 }))
226
229
  ], 2)
227
230
  ])) : createCommentVNode("", true),
228
231
  _ctx.type == "none" ? (openBlock(), createElementBlock("div", {
@@ -247,5 +250,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
247
250
  }, null, 40, _hoisted_8)
248
251
  ]);
249
252
  }
250
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
251
- export { index as default };
253
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
254
+ export {
255
+ index as default
256
+ };
@@ -1,12 +1,14 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.1 Fri Dec 16 2022 17:34:28 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { inject, reactive, ref, useSlots, toRefs, resolveComponent, openBlock, createElementBlock, createBlock, withCtx, createTextVNode, toDisplayString, createCommentVNode, renderSlot } from "vue";
7
- import { c as createComponent } from "./component.js";
8
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
7
+ import { c as createComponent } from "./component.fb9ce7ad.js";
8
+ import Button from "./Button.js";
9
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
9
10
  import "../locale/lang";
11
+ import "@nutui/icons-vue";
10
12
  const { componentName, create, translate } = createComponent("audio-operate");
11
13
  const _sfc_main = create({
12
14
  props: {
@@ -15,7 +17,9 @@ const _sfc_main = create({
15
17
  default: () => "play"
16
18
  }
17
19
  },
18
- components: {},
20
+ components: {
21
+ [Button.name]: Button
22
+ },
19
23
  emits: ["click"],
20
24
  setup(props, { emit }) {
21
25
  const audio = inject("audioParent");
@@ -98,5 +102,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
98
102
  ])) : createCommentVNode("", true)
99
103
  ]);
100
104
  }
101
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
102
- export { index as default };
105
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
106
+ export {
107
+ index as default
108
+ };
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.1 Fri Dec 16 2022 17:34:28 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { toRefs, inject, ref, reactive, onMounted, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, Fragment, createBlock, mergeProps, createCommentVNode, renderSlot, toDisplayString } from "vue";
7
- import { c as createComponent } from "./component.js";
8
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
6
+ import { toRefs, inject, ref, reactive, onMounted, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, renderSlot, createCommentVNode, Fragment, createTextVNode, toDisplayString } from "vue";
7
+ import { c as createComponent } from "./component.fb9ce7ad.js";
8
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
9
9
  import "../locale/lang";
10
10
  const { componentName, create } = createComponent("avatar");
11
11
  const _sfc_main = create({
@@ -25,23 +25,10 @@ const _sfc_main = create({
25
25
  color: {
26
26
  type: String,
27
27
  default: "#666"
28
- },
29
- url: {
30
- type: String,
31
- default: ""
32
- },
33
- alt: {
34
- type: String,
35
- default: ""
36
- },
37
- icon: {
38
- type: String,
39
- default: ""
40
28
  }
41
29
  },
42
- emits: ["active-avatar", "onError"],
43
- setup(props, { emit, slots }) {
44
- const { size, shape, bgColor, color, icon } = toRefs(props);
30
+ setup(props) {
31
+ const { size, shape, bgColor, color } = toRefs(props);
45
32
  const sizeValue = ["large", "normal", "small"];
46
33
  const avatarGroup = inject("avatarGroup", null);
47
34
  const avatarRef = ref(null);
@@ -87,12 +74,6 @@ const _sfc_main = create({
87
74
  color: `${(_b = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _b.maxColor}`
88
75
  };
89
76
  });
90
- const iconStyles = computed(() => {
91
- return !!icon.value ? icon.value : "";
92
- });
93
- const isShowText = computed(() => {
94
- return slots.default;
95
- });
96
77
  const avatarLength = (children) => {
97
78
  var _a, _b, _c;
98
79
  state.maxIndex = children.length;
@@ -106,20 +87,10 @@ const _sfc_main = create({
106
87
  state.showMax = true;
107
88
  }
108
89
  };
109
- const activeAvatar = (event) => {
110
- emit("active-avatar", event);
111
- };
112
- const onError = (event) => {
113
- emit("onError", event);
114
- };
115
90
  return {
116
91
  classes,
117
92
  styles,
118
- iconStyles,
119
- isShowText,
120
93
  maxStyles,
121
- activeAvatar,
122
- onError,
123
94
  avatarGroup,
124
95
  visible,
125
96
  avatarRef,
@@ -127,41 +98,21 @@ const _sfc_main = create({
127
98
  };
128
99
  }
129
100
  });
130
- const _hoisted_1 = ["src", "alt"];
131
- const _hoisted_2 = {
132
- key: 2,
133
- class: "text"
134
- };
135
- const _hoisted_3 = {
136
- key: 1,
137
- class: "text"
138
- };
139
101
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
140
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
141
- const _component_nut_icon = resolveComponent("nut-icon");
102
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
142
103
  return _ctx.showMax || !((_b = (_a = _ctx.avatarGroup) == null ? void 0 : _a.props) == null ? void 0 : _b.maxCount) || _ctx.index <= ((_d = (_c = _ctx.avatarGroup) == null ? void 0 : _c.props) == null ? void 0 : _d.maxCount) ? (openBlock(), createElementBlock("view", {
143
104
  key: 0,
144
105
  style: normalizeStyle(!_ctx.showMax ? _ctx.styles : _ctx.maxStyles),
145
106
  class: normalizeClass(_ctx.classes),
146
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.activeAvatar && _ctx.activeAvatar(...args)),
147
107
  ref: "avatarRef"
148
108
  }, [
149
- !((_f = (_e = _ctx.avatarGroup) == null ? void 0 : _e.props) == null ? void 0 : _f.maxCount) || _ctx.index <= ((_h = (_g = _ctx.avatarGroup) == null ? void 0 : _g.props) == null ? void 0 : _h.maxCount) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
150
- _ctx.url ? (openBlock(), createElementBlock("img", {
151
- key: 0,
152
- src: _ctx.url,
153
- alt: _ctx.alt,
154
- onError: _cache[0] || (_cache[0] = (...args) => _ctx.onError && _ctx.onError(...args))
155
- }, null, 40, _hoisted_1)) : _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 1 }, _ctx.$attrs, {
156
- class: "icon",
157
- name: _ctx.iconStyles
158
- }), null, 16, ["name"])) : createCommentVNode("", true),
159
- _ctx.isShowText ? (openBlock(), createElementBlock("view", _hoisted_2, [
160
- renderSlot(_ctx.$slots, "default")
161
- ])) : createCommentVNode("", true)
162
- ], 64)) : createCommentVNode("", true),
163
- _ctx.showMax ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(((_j = (_i = _ctx.avatarGroup) == null ? void 0 : _i.props) == null ? void 0 : _j.maxContent) ? (_l = (_k = _ctx.avatarGroup) == null ? void 0 : _k.props) == null ? void 0 : _l.maxContent : `+ ${_ctx.maxIndex - ((_n = (_m = _ctx.avatarGroup) == null ? void 0 : _m.props) == null ? void 0 : _n.maxCount)}`), 1)) : createCommentVNode("", true)
109
+ !((_f = (_e = _ctx.avatarGroup) == null ? void 0 : _e.props) == null ? void 0 : _f.maxCount) || _ctx.index <= ((_h = (_g = _ctx.avatarGroup) == null ? void 0 : _g.props) == null ? void 0 : _h.maxCount) ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
110
+ _ctx.showMax && ((_j = (_i = _ctx.avatarGroup) == null ? void 0 : _i.props) == null ? void 0 : _j.maxCount) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
111
+ createTextVNode(toDisplayString(((_l = (_k = _ctx.avatarGroup) == null ? void 0 : _k.props) == null ? void 0 : _l.maxContent) ? (_n = (_m = _ctx.avatarGroup) == null ? void 0 : _m.props) == null ? void 0 : _n.maxContent : `+ ${_ctx.maxIndex - ((_p = (_o = _ctx.avatarGroup) == null ? void 0 : _o.props) == null ? void 0 : _p.maxCount)}`), 1)
112
+ ], 64)) : createCommentVNode("", true)
164
113
  ], 6)) : createCommentVNode("", true);
165
114
  }
166
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
167
- export { index as default };
115
+ const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
116
+ export {
117
+ Avatar as default
118
+ };
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.1 Fri Dec 16 2022 17:34:28 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { toRefs, ref, computed, onMounted, provide, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
7
- import { c as createComponent } from "./component.js";
8
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
7
+ import { c as createComponent } from "./component.fb9ce7ad.js";
8
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
9
9
  import "../locale/lang";
10
10
  const { componentName, create } = createComponent("avatar-group");
11
11
  const _sfc_main = create({
@@ -74,5 +74,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
74
74
  renderSlot(_ctx.$slots, "default")
75
75
  ], 2);
76
76
  }
77
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
78
- export { index as default };
77
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
78
+ export {
79
+ index as default
80
+ };
@@ -1,14 +1,19 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.1 Fri Dec 16 2022 17:34:28 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { reactive, computed, onMounted, onUnmounted, onActivated, onDeactivated, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, withModifiers, renderSlot, createVNode } from "vue";
7
- import { c as createComponent } from "./component.js";
8
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
7
+ import { c as createComponent } from "./component.fb9ce7ad.js";
8
+ import { r as requestAniFrame, c as cancelRaf } from "./raf.42b42f63.js";
9
+ import { Top } from "@nutui/icons-vue";
10
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
9
11
  import "../locale/lang";
10
12
  const { componentName, create } = createComponent("backtop");
11
13
  const _sfc_main = create({
14
+ components: {
15
+ Top
16
+ },
12
17
  props: {
13
18
  bottom: {
14
19
  type: Number,
@@ -78,13 +83,13 @@ const _sfc_main = create({
78
83
  }
79
84
  }
80
85
  function scrollAnimation() {
81
- let cid = requestAniFrame()(function fn() {
86
+ let cid = requestAniFrame(function fn() {
82
87
  var t = props.duration - Math.max(0, state.startTime - +new Date() + props.duration);
83
88
  var y = t * -state.scrollTop / props.duration + state.scrollTop;
84
89
  scroll(y);
85
- cid = requestAniFrame()(fn);
90
+ cid = requestAniFrame(fn);
86
91
  if (t == props.duration || y == 0) {
87
- window.cancelAnimationFrame(cid);
92
+ cancelRaf(cid);
88
93
  }
89
94
  });
90
95
  }
@@ -96,14 +101,6 @@ const _sfc_main = create({
96
101
  state.scrollEl.removeEventListener("scroll", scrollListener, false);
97
102
  state.scrollEl.removeEventListener("resize", scrollListener, false);
98
103
  }
99
- function initCancelAniFrame() {
100
- window.cancelAnimationFrame = window.webkitCancelAnimationFrame;
101
- }
102
- function requestAniFrame() {
103
- return window.requestAnimationFrame || window.webkitRequestAnimationFrame || function(callback) {
104
- window.setTimeout(callback, 1e3 / 60);
105
- };
106
- }
107
104
  function click(e) {
108
105
  state.startTime = +new Date();
109
106
  props.isAnimation && props.duration > 0 ? scrollAnimation() : scroll();
@@ -114,7 +111,6 @@ const _sfc_main = create({
114
111
  state.scrollEl = document.getElementById(props.elId);
115
112
  }
116
113
  addEventListener();
117
- initCancelAniFrame();
118
114
  }
119
115
  onMounted(() => {
120
116
  if (props.distance == 0) {
@@ -144,20 +140,22 @@ const _sfc_main = create({
144
140
  }
145
141
  });
146
142
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
147
- const _component_nut_icon = resolveComponent("nut-icon");
143
+ const _component_Top = resolveComponent("Top");
148
144
  return openBlock(), createElementBlock("div", {
149
145
  class: normalizeClass(_ctx.classes),
150
146
  style: normalizeStyle(_ctx.style),
151
147
  onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.click && _ctx.click(...args), ["stop"]))
152
148
  }, [
153
149
  renderSlot(_ctx.$slots, "default", {}, () => [
154
- createVNode(_component_nut_icon, {
155
- size: "19px",
156
- class: "nut-backtop-main",
157
- name: "top"
150
+ createVNode(_component_Top, {
151
+ width: "19px",
152
+ height: "19px",
153
+ class: "nut-backtop-main"
158
154
  })
159
155
  ])
160
156
  ], 6);
161
157
  }
162
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
163
- export { index as default };
158
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
159
+ export {
160
+ index as default
161
+ };
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.1 Fri Dec 16 2022 17:34:28 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { reactive, computed, openBlock, createElementBlock, withDirectives, createElementVNode, normalizeStyle, renderSlot, vShow, toDisplayString, normalizeClass } from "vue";
7
- import { c as createComponent } from "./component.js";
8
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
7
+ import { c as createComponent } from "./component.fb9ce7ad.js";
8
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
9
9
  import "../locale/lang";
10
10
  const { create } = createComponent("badge");
11
11
  const _sfc_main = create({
@@ -74,7 +74,7 @@ const _hoisted_2 = ["textContent"];
74
74
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
75
75
  return openBlock(), createElementBlock("view", _hoisted_1, [
76
76
  withDirectives(createElementVNode("view", {
77
- class: "slot-icons",
77
+ class: "nut-badge__icon",
78
78
  style: normalizeStyle(_ctx.stl)
79
79
  }, [
80
80
  renderSlot(_ctx.$slots, "icons")
@@ -84,12 +84,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
84
84
  renderSlot(_ctx.$slots, "default"),
85
85
  withDirectives(createElementVNode("view", {
86
86
  textContent: toDisplayString(_ctx.content),
87
- class: normalizeClass(["nut-badge__content sup", { "is-dot": _ctx.dot }]),
87
+ class: normalizeClass(["nut-badge__content nut-badge__content--sup", { "nut-badge__content--dot": _ctx.dot }]),
88
88
  style: normalizeStyle(_ctx.stl)
89
89
  }, null, 14, _hoisted_2), [
90
90
  [vShow, !_ctx.hidden && (_ctx.content || _ctx.dot)]
91
91
  ])
92
92
  ]);
93
93
  }
94
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
95
- export { index as default };
94
+ const Badge = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
95
+ export {
96
+ Badge as default
97
+ };
@@ -1,13 +1,12 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.1 Fri Dec 16 2022 17:34:28 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { useSlots, computed, ref, onMounted, onUnmounted, onDeactivated, watch, nextTick, useCssVars, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createCommentVNode } from "vue";
7
- import { c as createComponent } from "./component.js";
8
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
7
+ import { c as createComponent } from "./component.fb9ce7ad.js";
8
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
9
9
  import "../locale/lang";
10
- var index_vue_vue_type_style_index_0_lang = "";
11
10
  const { componentName, create } = createComponent("barrage");
12
11
  const __default__ = create({
13
12
  name: "barrage",
@@ -119,16 +118,16 @@ const __default__ = create({
119
118
  let el = document.createElement(`view`);
120
119
  if (slotDefault && typeof danmuList.value[_index] == "object") {
121
120
  el = danmuList.value[_index];
122
- if ((_a = el == null ? void 0 : el.classList) == null ? void 0 : _a.contains("dmitem")) {
123
- el.classList.remove("dmitem");
121
+ if ((_a = el == null ? void 0 : el.classList) == null ? void 0 : _a.contains("nut-barrage__item")) {
122
+ el.classList.remove("nut-barrage__item");
124
123
  }
125
124
  if ((_b = el == null ? void 0 : el.classList) == null ? void 0 : _b.contains("move")) {
126
125
  el.classList.remove("move");
127
126
  }
128
- (_c = el == null ? void 0 : el.classList) == null ? void 0 : _c.add("dmitem");
127
+ (_c = el == null ? void 0 : el.classList) == null ? void 0 : _c.add("nut-barrage__item");
129
128
  } else {
130
129
  el.innerHTML = danmuList.value[_index];
131
- el.classList.add("dmitem");
130
+ el.classList.add("nut-barrage__item");
132
131
  dmContainer.value.appendChild(el);
133
132
  }
134
133
  nextTick(() => {
@@ -160,7 +159,7 @@ const __default__ = create({
160
159
  });
161
160
  const __injectCSSVars__ = () => {
162
161
  useCssVars((_ctx) => ({
163
- "01d702ea": _ctx.distance
162
+ "9e8362c8": _ctx.distance
164
163
  }));
165
164
  };
166
165
  const __setup__ = __default__.setup;
@@ -168,7 +167,7 @@ __default__.setup = __setup__ ? (props, ctx) => {
168
167
  __injectCSSVars__();
169
168
  return __setup__(props, ctx);
170
169
  } : __injectCSSVars__;
171
- const _sfc_main = __default__;
170
+ const index_vue_vue_type_style_index_0_lang = "";
172
171
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
173
172
  return openBlock(), createElementBlock("div", {
174
173
  ref: "dmBody",
@@ -187,5 +186,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
187
186
  ], 2)
188
187
  ], 2);
189
188
  }
190
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
191
- export { index as default };
189
+ const index = /* @__PURE__ */ _export_sfc(__default__, [["render", _sfc_render]]);
190
+ export {
191
+ index as default
192
+ };
@@ -1,19 +1,16 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.1 Fri Dec 16 2022 17:34:28 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, mergeProps, renderSlot } from "vue";
7
- import { c as createComponent } from "./component.js";
8
- import _sfc_main$1 from "./Icon.js";
9
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
6
+ import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot } from "vue";
7
+ import { c as createComponent } from "./component.fb9ce7ad.js";
8
+ import { Loading } from "@nutui/icons-vue";
9
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
10
10
  import "../locale/lang";
11
- import "./pxCheck.js";
12
11
  const { componentName, create } = createComponent("button");
13
12
  const _sfc_main = create({
14
- components: {
15
- [_sfc_main$1.name]: _sfc_main$1
16
- },
13
+ components: { Loading },
17
14
  props: {
18
15
  color: String,
19
16
  shape: {
@@ -43,18 +40,6 @@ const _sfc_main = create({
43
40
  block: {
44
41
  type: Boolean,
45
42
  default: false
46
- },
47
- icon: {
48
- type: String,
49
- default: ""
50
- },
51
- iconClassPrefix: {
52
- type: String,
53
- default: "nut-icon"
54
- },
55
- iconFontClassName: {
56
- type: String,
57
- default: "nutui-iconfont"
58
43
  }
59
44
  },
60
45
  emits: ["click"],
@@ -104,32 +89,28 @@ const _sfc_main = create({
104
89
  });
105
90
  const _hoisted_1 = { class: "nut-button__warp" };
106
91
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
107
- const _component_nut_icon = resolveComponent("nut-icon");
92
+ const _component_Loading = resolveComponent("Loading");
108
93
  return openBlock(), createElementBlock("view", {
109
94
  class: normalizeClass(_ctx.classes),
110
95
  style: normalizeStyle(_ctx.getStyle),
111
96
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
112
97
  }, [
113
98
  createElementVNode("view", _hoisted_1, [
114
- _ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
99
+ _ctx.loading ? (openBlock(), createBlock(_component_Loading, {
115
100
  key: 0,
116
101
  class: "nut-icon-loading"
117
102
  })) : createCommentVNode("", true),
118
- _ctx.icon && !_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
119
- key: 1,
120
- name: _ctx.icon
121
- }, _ctx.$attrs, {
122
- "class-prefix": _ctx.iconClassPrefix,
123
- "font-class-name": _ctx.iconFontClassName
124
- }), null, 16, ["name", "class-prefix", "font-class-name"])) : createCommentVNode("", true),
103
+ _ctx.$slots.icon && !_ctx.loading ? renderSlot(_ctx.$slots, "icon", { key: 1 }) : createCommentVNode("", true),
125
104
  _ctx.$slots.default ? (openBlock(), createElementBlock("view", {
126
105
  key: 2,
127
- class: normalizeClass({ text: _ctx.icon || _ctx.loading })
106
+ class: normalizeClass({ "nut-button__text": _ctx.$slots.icon || _ctx.loading })
128
107
  }, [
129
108
  renderSlot(_ctx.$slots, "default")
130
109
  ], 2)) : createCommentVNode("", true)
131
110
  ])
132
111
  ], 6);
133
112
  }
134
- var Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
135
- export { Button as default };
113
+ const Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
114
+ export {
115
+ Button as default
116
+ };
@@ -1,19 +1,23 @@
1
1
  /*!
2
- * @nutui/nutui v3.3.1 Fri Dec 16 2022 17:34:28 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v4.0.0-beta.0 Mon Dec 26 2022 00:00:21 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { computed, ref, resolveComponent, openBlock, createBlock, withCtx, createSlots, renderSlot, createCommentVNode } from "vue";
7
- import { c as createComponent } from "./component.js";
8
- import { C as CalendarItem, U as Utils } from "./index5.js";
9
- import { u as useExpose } from "./index3.js";
10
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
7
+ import { c as createComponent } from "./component.fb9ce7ad.js";
8
+ import { C as CalendarItem, U as Utils } from "./index.3dd88014.js";
9
+ import { P as Popup } from "./index.4ed42c18.js";
10
+ import { u as useExpose } from "./index.617ba243.js";
11
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper.bf57b04e.js";
11
12
  import "../locale/lang";
12
- import "./raf.js";
13
+ import "./raf.42b42f63.js";
14
+ import "./Overlay.js";
15
+ import "@nutui/icons-vue";
13
16
  const { create } = createComponent("calendar");
14
17
  const _sfc_main = create({
15
18
  components: {
16
- [CalendarItem.name]: CalendarItem
19
+ [CalendarItem.name]: CalendarItem,
20
+ [Popup.name]: Popup
17
21
  },
18
22
  props: {
19
23
  type: {
@@ -269,5 +273,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
269
273
  } : void 0
270
274
  ]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation", "first-day-of-week"]));
271
275
  }
272
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
273
- export { index as default };
276
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
277
+ export {
278
+ index as default
279
+ };