@nutui/nutui 4.0.0-beta.3 → 4.0.0-beta.30

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 (549) hide show
  1. package/CHANGELOG.md +13 -940
  2. package/README.md +1 -1
  3. package/dist/nutui.es.js +227 -103
  4. package/dist/nutui.umd.js +7 -0
  5. package/dist/packages/_es/ActionSheet.js +5 -15
  6. package/dist/packages/_es/Address.js +11 -13
  7. package/dist/packages/_es/AddressList.js +168 -245
  8. package/dist/packages/_es/Animate.js +3 -8
  9. package/dist/packages/_es/Audio.js +11 -10
  10. package/dist/packages/_es/AudioOperate.js +4 -8
  11. package/dist/packages/_es/Avatar.js +5 -8
  12. package/dist/packages/_es/AvatarGroup.js +4 -8
  13. package/dist/packages/_es/Backtop.js +4 -9
  14. package/dist/packages/_es/Badge.js +5 -10
  15. package/dist/packages/_es/Barrage.js +68 -67
  16. package/dist/packages/_es/Button.js +3 -8
  17. package/dist/packages/_es/Calendar.js +17 -22
  18. package/dist/packages/_es/CalendarItem.js +5 -10
  19. package/dist/packages/_es/Card.js +10 -22
  20. package/dist/packages/_es/Cascader.js +20 -14
  21. package/dist/packages/_es/Category.js +5 -8
  22. package/dist/packages/_es/CategoryPane.js +6 -8
  23. package/dist/packages/_es/Cell.js +6 -10
  24. package/dist/packages/_es/CellGroup.js +3 -8
  25. package/dist/packages/_es/Checkbox.js +3 -8
  26. package/dist/packages/_es/CheckboxGroup.js +3 -8
  27. package/dist/packages/_es/CircleProgress.js +3 -8
  28. package/dist/packages/_es/Col.js +3 -8
  29. package/dist/packages/_es/Collapse.js +10 -15
  30. package/dist/packages/_es/CollapseItem.js +10 -14
  31. package/dist/packages/_es/Comment.js +25 -27
  32. package/dist/packages/_es/ConfigProvider.js +38 -11
  33. package/dist/packages/_es/Countdown.js +11 -8
  34. package/dist/packages/_es/Countup.js +23 -13
  35. package/dist/packages/_es/DatePicker.js +7 -10
  36. package/dist/packages/_es/Dialog.js +24 -31
  37. package/dist/packages/_es/Divider.js +3 -8
  38. package/dist/packages/_es/Drag.js +4 -9
  39. package/dist/packages/_es/Ecard.js +4 -9
  40. package/dist/packages/_es/Elevator.js +4 -9
  41. package/dist/packages/_es/Ellipsis.js +6 -11
  42. package/dist/packages/_es/Empty.js +6 -8
  43. package/dist/packages/_es/FixedNav.js +3 -8
  44. package/dist/packages/_es/Form.js +3 -8
  45. package/dist/packages/_es/FormItem.js +5 -10
  46. package/dist/packages/_es/Grid.js +4 -9
  47. package/dist/packages/_es/GridItem.js +7 -11
  48. package/dist/packages/_es/Image.js +4 -9
  49. package/dist/packages/_es/ImagePreview.js +25 -34
  50. package/dist/packages/_es/Indicator.js +3 -8
  51. package/dist/packages/_es/InfiniteLoading.js +6 -19
  52. package/dist/packages/_es/Input.js +33 -37
  53. package/dist/packages/_es/InputNumber.js +9 -14
  54. package/dist/packages/_es/Invoice.js +10 -13
  55. package/dist/packages/_es/Layout.js +2 -7
  56. package/dist/packages/_es/List.js +4 -10
  57. package/dist/packages/_es/Menu.js +4 -9
  58. package/dist/packages/_es/MenuItem.js +4 -9
  59. package/dist/packages/_es/Navbar.js +13 -12
  60. package/dist/packages/_es/Noticebar.js +27 -23
  61. package/dist/packages/_es/Notify.js +12 -14
  62. package/dist/packages/_es/NumberKeyboard.js +6 -11
  63. package/dist/packages/_es/Overlay.js +14 -13
  64. package/dist/packages/_es/Pagination.js +3 -8
  65. package/dist/packages/_es/Picker.js +10 -12
  66. package/dist/packages/_es/Popover.js +6 -12
  67. package/dist/packages/_es/Popup.js +3 -8
  68. package/dist/packages/_es/Price.js +4 -9
  69. package/dist/packages/_es/Progress.js +42 -44
  70. package/dist/packages/_es/PullRefresh.js +16 -24
  71. package/dist/packages/_es/Radio.js +3 -8
  72. package/dist/packages/_es/RadioGroup.js +2 -7
  73. package/dist/packages/_es/Range.js +5 -10
  74. package/dist/packages/_es/Rate.js +25 -29
  75. package/dist/packages/_es/Row.js +3 -8
  76. package/dist/packages/_es/Searchbar.js +29 -28
  77. package/dist/packages/_es/ShortPassword.js +15 -19
  78. package/dist/packages/_es/SideNavbar.js +3 -8
  79. package/dist/packages/_es/SideNavbarItem.js +3 -8
  80. package/dist/packages/_es/Signature.js +15 -9
  81. package/dist/packages/_es/Skeleton.js +15 -12
  82. package/dist/packages/_es/Sku.js +38 -20
  83. package/dist/packages/_es/Step.js +3 -8
  84. package/dist/packages/_es/Steps.js +2 -7
  85. package/dist/packages/_es/Sticky.js +3 -8
  86. package/dist/packages/_es/SubSideNavbar.js +8 -11
  87. package/dist/packages/_es/Swipe.js +6 -11
  88. package/dist/packages/_es/Swiper.js +60 -126
  89. package/dist/packages/_es/SwiperItem.js +4 -9
  90. package/dist/packages/_es/Switch.js +7 -9
  91. package/dist/packages/_es/TabPane.js +5 -10
  92. package/dist/packages/_es/Tabbar.js +3 -8
  93. package/dist/packages/_es/TabbarItem.js +10 -10
  94. package/dist/packages/_es/Table.js +92 -100
  95. package/dist/packages/_es/Tabs.js +23 -26
  96. package/dist/packages/_es/Tag.js +3 -8
  97. package/dist/packages/_es/Textarea.js +28 -12
  98. package/dist/packages/_es/TimeDetail.js +3 -12
  99. package/dist/packages/_es/TimePannel.js +3 -8
  100. package/dist/packages/_es/TimeSelect.js +5 -10
  101. package/dist/packages/_es/Toast.js +18 -17
  102. package/dist/packages/_es/Tour.js +14 -18
  103. package/dist/packages/_es/TrendArrow.js +5 -10
  104. package/dist/packages/_es/Uploader.js +23 -25
  105. package/dist/packages/_es/Video.js +21 -8
  106. package/dist/packages/_es/Watermark.js +3 -8
  107. package/dist/packages/_es/{_plugin-vue_export-helper-681cd9ef.js → _plugin-vue_export-helper-cc2b3d55.js} +0 -5
  108. package/dist/packages/_es/{common-3175aa92.js → common-b9a5e726.js} +10 -7
  109. package/dist/packages/_es/{component-0ea0483c.js → component-81a4c1d0.js} +0 -5
  110. package/dist/packages/_es/{index-3e9b0a98.js → index-29892cda.js} +0 -5
  111. package/dist/packages/_es/{index-9755c21a.js → index-2ae3ae87.js} +47 -15
  112. package/dist/packages/_es/{index-6cd5b878.js → index-43c34ac6.js} +0 -5
  113. package/dist/packages/_es/{index-16a07d20.js → index-54d03fc1.js} +0 -5
  114. package/dist/packages/_es/{index-78b85d04.js → index-79c5dc33.js} +0 -5
  115. package/dist/packages/_es/{index-35bfc69c.js → index-7a7385e4.js} +0 -5
  116. package/dist/packages/_es/{index-d5c47fab.js → index-991c279f.js} +16 -11
  117. package/dist/packages/_es/{index.vue_vue_type_script_lang-0eef0ccb.js → index.vue_vue_type_script_lang-22dfc112.js} +3 -7
  118. package/dist/packages/_es/{index.vue_vue_type_script_lang-3fd73141.js → index.vue_vue_type_script_lang-442e4704.js} +4 -8
  119. package/dist/packages/_es/{index.vue_vue_type_script_lang-a0678df2.js → index.vue_vue_type_script_lang-cc5c4086.js} +3 -8
  120. package/dist/packages/_es/{interceptor-0db96410.js → interceptor-956b24fc.js} +1 -6
  121. package/dist/packages/_es/{mountComponent-34479821.js → mountComponent-1ece4110.js} +1 -6
  122. package/dist/packages/_es/pxCheck-c6b9f6b7.js +6 -0
  123. package/dist/packages/_es/{raf-8c45e560.js → raf-729dad54.js} +0 -5
  124. package/dist/packages/_es/{renderIcon-6bea5078.js → renderIcon-3d0fd47c.js} +0 -5
  125. package/dist/packages/actionsheet/index.mjs +3 -1
  126. package/dist/packages/actionsheet/style.mjs +3 -2
  127. package/dist/packages/address/index.mjs +3 -1
  128. package/dist/packages/address/style.mjs +4 -3
  129. package/dist/packages/addresslist/index.mjs +3 -1
  130. package/dist/packages/addresslist/index.scss +14 -3
  131. package/dist/packages/addresslist/style.mjs +3 -1
  132. package/dist/packages/animate/index.mjs +3 -1
  133. package/dist/packages/animate/style.mjs +1 -0
  134. package/dist/packages/audio/index.mjs +3 -1
  135. package/dist/packages/audio/index.scss +1 -1
  136. package/dist/packages/audio/style.mjs +2 -1
  137. package/dist/packages/audiooperate/index.mjs +3 -1
  138. package/dist/packages/audiooperate/style.mjs +2 -1
  139. package/dist/packages/avatar/index.mjs +3 -1
  140. package/dist/packages/avatar/index.scss +3 -1
  141. package/dist/packages/avatar/style.mjs +1 -0
  142. package/dist/packages/avatargroup/index.mjs +3 -1
  143. package/dist/packages/avatargroup/index.scss +1 -1
  144. package/dist/packages/avatargroup/style.mjs +1 -0
  145. package/dist/packages/backtop/index.mjs +3 -1
  146. package/dist/packages/backtop/style.mjs +1 -0
  147. package/dist/packages/badge/index.mjs +3 -1
  148. package/dist/packages/badge/index.scss +7 -3
  149. package/dist/packages/badge/style.mjs +1 -0
  150. package/dist/packages/barrage/index.mjs +3 -1
  151. package/dist/packages/barrage/index.scss +17 -1
  152. package/dist/packages/barrage/style.mjs +1 -0
  153. package/dist/packages/button/index.mjs +3 -1
  154. package/dist/packages/button/index.scss +63 -1
  155. package/dist/packages/button/style.mjs +1 -0
  156. package/dist/packages/calendar/index.mjs +3 -1
  157. package/dist/packages/calendar/index.scss +14 -5
  158. package/dist/packages/calendar/style.mjs +4 -3
  159. package/dist/packages/calendaritem/index.mjs +3 -1
  160. package/dist/packages/calendaritem/style.mjs +1 -0
  161. package/dist/packages/card/index.mjs +3 -1
  162. package/dist/packages/card/style.mjs +3 -2
  163. package/dist/packages/cascader/index.mjs +3 -1
  164. package/dist/packages/cascader/style.mjs +6 -5
  165. package/dist/packages/category/index.mjs +3 -1
  166. package/dist/packages/category/style.mjs +1 -0
  167. package/dist/packages/categorypane/index.mjs +3 -1
  168. package/dist/packages/categorypane/style.mjs +1 -0
  169. package/dist/packages/cell/index.mjs +3 -1
  170. package/dist/packages/cell/index.scss +5 -1
  171. package/dist/packages/cell/style.mjs +1 -0
  172. package/dist/packages/cellgroup/index.mjs +3 -1
  173. package/dist/packages/cellgroup/style.mjs +1 -0
  174. package/dist/packages/checkbox/index.mjs +3 -1
  175. package/dist/packages/checkbox/style.mjs +1 -0
  176. package/dist/packages/checkboxgroup/index.mjs +3 -1
  177. package/dist/packages/checkboxgroup/style.mjs +1 -0
  178. package/dist/packages/circleprogress/index.mjs +3 -1
  179. package/dist/packages/circleprogress/style.mjs +1 -0
  180. package/dist/packages/col/index.mjs +3 -1
  181. package/dist/packages/col/style.mjs +1 -0
  182. package/dist/packages/collapse/index.mjs +3 -1
  183. package/dist/packages/collapse/style.mjs +1 -0
  184. package/dist/packages/collapseitem/index.mjs +3 -1
  185. package/dist/packages/collapseitem/style.mjs +1 -0
  186. package/dist/packages/comment/index.mjs +3 -1
  187. package/dist/packages/comment/index.scss +12 -7
  188. package/dist/packages/comment/style.mjs +2 -1
  189. package/dist/packages/configprovider/index.mjs +3 -1
  190. package/dist/packages/configprovider/style.mjs +1 -0
  191. package/dist/packages/countdown/index.mjs +3 -1
  192. package/dist/packages/countdown/style.mjs +1 -0
  193. package/dist/packages/countup/index.mjs +3 -1
  194. package/dist/packages/countup/index.scss +1 -0
  195. package/dist/packages/countup/style.mjs +1 -0
  196. package/dist/packages/datepicker/index.mjs +3 -1
  197. package/dist/packages/datepicker/style.mjs +4 -3
  198. package/dist/packages/dialog/index.mjs +5 -2
  199. package/dist/packages/dialog/style.mjs +4 -3
  200. package/dist/packages/divider/index.mjs +3 -1
  201. package/dist/packages/divider/style.mjs +1 -0
  202. package/dist/packages/drag/index.mjs +3 -1
  203. package/dist/packages/drag/style.mjs +1 -0
  204. package/dist/packages/ecard/index.mjs +3 -1
  205. package/dist/packages/ecard/index.scss +20 -2
  206. package/dist/packages/ecard/style.mjs +2 -1
  207. package/dist/packages/elevator/index.mjs +3 -1
  208. package/dist/packages/elevator/index.scss +14 -0
  209. package/dist/packages/elevator/style.mjs +1 -0
  210. package/dist/packages/ellipsis/index.mjs +3 -1
  211. package/dist/packages/ellipsis/style.mjs +1 -0
  212. package/dist/packages/empty/index.mjs +3 -1
  213. package/dist/packages/empty/style.mjs +1 -0
  214. package/dist/packages/fixednav/index.mjs +3 -1
  215. package/dist/packages/fixednav/style.mjs +2 -1
  216. package/dist/packages/form/index.mjs +3 -1
  217. package/dist/packages/form/style.mjs +2 -1
  218. package/dist/packages/formitem/index.mjs +3 -1
  219. package/dist/packages/formitem/style.mjs +2 -1
  220. package/dist/packages/grid/index.mjs +3 -1
  221. package/dist/packages/grid/style.mjs +1 -0
  222. package/dist/packages/griditem/index.mjs +3 -1
  223. package/dist/packages/griditem/style.mjs +1 -0
  224. package/dist/packages/icon/style.mjs +1 -0
  225. package/dist/packages/image/index.mjs +3 -1
  226. package/dist/packages/image/style.mjs +1 -0
  227. package/dist/packages/imagepreview/index.mjs +5 -2
  228. package/dist/packages/imagepreview/style.mjs +6 -5
  229. package/dist/packages/indicator/index.mjs +3 -1
  230. package/dist/packages/indicator/index.scss +4 -4
  231. package/dist/packages/indicator/style.mjs +1 -0
  232. package/dist/packages/infiniteloading/index.mjs +3 -1
  233. package/dist/packages/infiniteloading/style.mjs +1 -0
  234. package/dist/packages/input/index.mjs +3 -1
  235. package/dist/packages/input/index.scss +6 -2
  236. package/dist/packages/input/style.mjs +1 -0
  237. package/dist/packages/inputnumber/index.mjs +3 -1
  238. package/dist/packages/inputnumber/index.scss +5 -1
  239. package/dist/packages/inputnumber/style.mjs +1 -0
  240. package/dist/packages/invoice/index.mjs +3 -1
  241. package/dist/packages/invoice/style.mjs +8 -7
  242. package/dist/packages/layout/index.mjs +3 -1
  243. package/dist/packages/layout/style.mjs +1 -0
  244. package/dist/packages/list/index.mjs +3 -1
  245. package/dist/packages/list/style.mjs +1 -0
  246. package/dist/packages/locale/lang/baseLang-0bdc6353.js +5 -0
  247. package/dist/packages/locale/lang/en-US.js +1 -6
  248. package/dist/packages/locale/lang/id-ID.js +1 -6
  249. package/dist/packages/locale/lang/index.js +1 -6
  250. package/dist/packages/locale/lang/zh-CN.js +2 -7
  251. package/dist/packages/locale/lang/zh-TW.js +1 -6
  252. package/dist/packages/menu/index.mjs +3 -1
  253. package/dist/packages/menu/style.mjs +1 -0
  254. package/dist/packages/menuitem/index.mjs +3 -1
  255. package/dist/packages/menuitem/style.mjs +3 -2
  256. package/dist/packages/navbar/index.mjs +3 -1
  257. package/dist/packages/navbar/style.mjs +1 -0
  258. package/dist/packages/noticebar/index.mjs +3 -1
  259. package/dist/packages/noticebar/index.scss +13 -10
  260. package/dist/packages/noticebar/style.mjs +1 -0
  261. package/dist/packages/notify/index.mjs +5 -2
  262. package/dist/packages/notify/style.mjs +3 -2
  263. package/dist/packages/numberkeyboard/index.mjs +3 -1
  264. package/dist/packages/numberkeyboard/style.mjs +3 -2
  265. package/dist/packages/overlay/index.mjs +3 -1
  266. package/dist/packages/overlay/style.mjs +1 -0
  267. package/dist/packages/pagination/index.mjs +3 -1
  268. package/dist/packages/pagination/style.mjs +1 -0
  269. package/dist/packages/picker/index.mjs +3 -1
  270. package/dist/packages/picker/style.mjs +3 -2
  271. package/dist/packages/popover/index.mjs +3 -1
  272. package/dist/packages/popover/index.scss +1 -1
  273. package/dist/packages/popover/style.mjs +3 -2
  274. package/dist/packages/popup/index.mjs +3 -1
  275. package/dist/packages/popup/style.mjs +2 -1
  276. package/dist/packages/price/index.mjs +3 -1
  277. package/dist/packages/price/style.mjs +1 -0
  278. package/dist/packages/progress/index.mjs +3 -1
  279. package/dist/packages/progress/index.scss +8 -6
  280. package/dist/packages/progress/style.mjs +1 -0
  281. package/dist/packages/pullrefresh/index.mjs +3 -1
  282. package/dist/packages/pullrefresh/index.scss +4 -3
  283. package/dist/packages/pullrefresh/style.mjs +1 -0
  284. package/dist/packages/radio/index.mjs +3 -1
  285. package/dist/packages/radio/index.scss +14 -2
  286. package/dist/packages/radio/style.mjs +1 -0
  287. package/dist/packages/radiogroup/index.mjs +3 -1
  288. package/dist/packages/radiogroup/style.mjs +1 -0
  289. package/dist/packages/range/index.mjs +3 -1
  290. package/dist/packages/range/index.scss +6 -3
  291. package/dist/packages/range/style.mjs +1 -0
  292. package/dist/packages/rate/index.mjs +3 -1
  293. package/dist/packages/rate/index.scss +5 -4
  294. package/dist/packages/rate/style.mjs +1 -0
  295. package/dist/packages/row/index.mjs +3 -1
  296. package/dist/packages/row/style.mjs +1 -0
  297. package/dist/packages/searchbar/index.mjs +3 -1
  298. package/dist/packages/searchbar/index.scss +43 -24
  299. package/dist/packages/searchbar/style.mjs +1 -0
  300. package/dist/packages/shortpassword/index.mjs +3 -1
  301. package/dist/packages/shortpassword/style.mjs +3 -2
  302. package/dist/packages/sidenavbar/index.mjs +3 -1
  303. package/dist/packages/sidenavbar/style.mjs +1 -0
  304. package/dist/packages/sidenavbaritem/index.mjs +3 -1
  305. package/dist/packages/sidenavbaritem/style.mjs +1 -0
  306. package/dist/packages/signature/index.mjs +3 -1
  307. package/dist/packages/signature/index.scss +2 -2
  308. package/dist/packages/signature/style.mjs +2 -1
  309. package/dist/packages/skeleton/index.mjs +3 -1
  310. package/dist/packages/skeleton/style.mjs +2 -1
  311. package/dist/packages/sku/index.mjs +3 -1
  312. package/dist/packages/sku/index.scss +16 -2
  313. package/dist/packages/sku/style.mjs +5 -4
  314. package/dist/packages/step/index.mjs +3 -1
  315. package/dist/packages/step/index.scss +1 -9
  316. package/dist/packages/step/style.mjs +1 -0
  317. package/dist/packages/steps/index.mjs +3 -1
  318. package/dist/packages/steps/style.mjs +1 -0
  319. package/dist/packages/sticky/index.mjs +3 -1
  320. package/dist/packages/sticky/index.scss +2 -0
  321. package/dist/packages/sticky/style.mjs +1 -0
  322. package/dist/packages/subsidenavbar/index.mjs +3 -1
  323. package/dist/packages/subsidenavbar/style.mjs +1 -0
  324. package/dist/packages/swipe/index.mjs +3 -1
  325. package/dist/packages/swipe/style.mjs +1 -0
  326. package/dist/packages/swiper/index.mjs +3 -1
  327. package/dist/packages/swiper/style.mjs +1 -0
  328. package/dist/packages/swiperitem/index.mjs +3 -1
  329. package/dist/packages/swiperitem/style.mjs +1 -0
  330. package/dist/packages/switch/index.mjs +3 -1
  331. package/dist/packages/switch/index.scss +7 -0
  332. package/dist/packages/switch/style.mjs +1 -0
  333. package/dist/packages/tabbar/index.mjs +3 -1
  334. package/dist/packages/tabbar/style.mjs +1 -0
  335. package/dist/packages/tabbaritem/index.mjs +3 -1
  336. package/dist/packages/tabbaritem/index.scss +6 -0
  337. package/dist/packages/tabbaritem/style.mjs +2 -1
  338. package/dist/packages/table/index.mjs +3 -1
  339. package/dist/packages/table/style.mjs +1 -0
  340. package/dist/packages/tabpane/index.mjs +3 -1
  341. package/dist/packages/tabpane/style.mjs +1 -0
  342. package/dist/packages/tabs/index.mjs +3 -1
  343. package/dist/packages/tabs/style.mjs +2 -1
  344. package/dist/packages/tag/index.mjs +3 -1
  345. package/dist/packages/tag/style.mjs +1 -0
  346. package/dist/packages/textarea/index.mjs +3 -1
  347. package/dist/packages/textarea/index.scss +7 -1
  348. package/dist/packages/textarea/style.mjs +1 -0
  349. package/dist/packages/timedetail/index.mjs +3 -1
  350. package/dist/packages/timedetail/index.scss +14 -6
  351. package/dist/packages/timedetail/style.mjs +1 -0
  352. package/dist/packages/timepannel/index.mjs +3 -1
  353. package/dist/packages/timepannel/style.mjs +1 -0
  354. package/dist/packages/timeselect/index.mjs +3 -1
  355. package/dist/packages/timeselect/style.mjs +3 -2
  356. package/dist/packages/toast/index.mjs +5 -2
  357. package/dist/packages/toast/style.mjs +1 -0
  358. package/dist/packages/tour/index.mjs +3 -1
  359. package/dist/packages/tour/index.scss +3 -0
  360. package/dist/packages/tour/style.mjs +4 -3
  361. package/dist/packages/trendarrow/index.mjs +3 -1
  362. package/dist/packages/trendarrow/style.mjs +1 -0
  363. package/dist/packages/uploader/index.mjs +3 -1
  364. package/dist/packages/uploader/index.scss +21 -15
  365. package/dist/packages/uploader/style.mjs +3 -2
  366. package/dist/packages/video/index.mjs +3 -1
  367. package/dist/packages/video/style.mjs +1 -0
  368. package/dist/packages/watermark/index.mjs +3 -1
  369. package/dist/packages/watermark/style.mjs +1 -0
  370. package/dist/smartips/web-types.json +738 -810
  371. package/dist/style.css +1 -1
  372. package/dist/styles/reset.css +3 -0
  373. package/dist/styles/themes/default.scss +53 -55
  374. package/dist/styles/themes/jdb.scss +53 -54
  375. package/dist/styles/themes/jddkh.scss +53 -54
  376. package/dist/styles/themes/jdt.scss +53 -55
  377. package/dist/styles/variables-jdb.scss +7 -14
  378. package/dist/styles/variables-jddkh.scss +7 -13
  379. package/dist/styles/variables-jdt.scss +8 -14
  380. package/dist/styles/variables.scss +16 -25
  381. package/dist/types/__VUE/actionsheet/index.vue.d.ts +18 -9
  382. package/dist/types/__VUE/address/index.vue.d.ts +18 -0
  383. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +23 -7
  384. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +2 -2
  385. package/dist/types/__VUE/addresslist/index.vue.d.ts +6 -6
  386. package/dist/types/__VUE/barrage/index.vue.d.ts +2 -5
  387. package/dist/types/__VUE/card/index.vue.d.ts +0 -21
  388. package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +2 -2
  389. package/dist/types/__VUE/cascader/index.vue.d.ts +18 -0
  390. package/dist/types/__VUE/cascader/types.d.ts +1 -1
  391. package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
  392. package/dist/types/__VUE/collapse/index.vue.d.ts +5 -5
  393. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +2 -2
  394. package/dist/types/__VUE/comment/index.vue.d.ts +4 -4
  395. package/dist/types/__VUE/configprovider/index.vue.d.ts +3 -2
  396. package/dist/types/__VUE/countup/index.vue.d.ts +2 -2
  397. package/dist/types/__VUE/dialog/index.d.ts +9 -9
  398. package/dist/types/__VUE/dialog/index.vue.d.ts +18 -0
  399. package/dist/types/__VUE/divider/index.vue.d.ts +1 -1
  400. package/dist/types/__VUE/ellipsis/index.vue.d.ts +1 -1
  401. package/dist/types/__VUE/icon/index.vue.d.ts +1 -0
  402. package/dist/types/__VUE/imagepreview/index.d.ts +12 -12
  403. package/dist/types/__VUE/imagepreview/index.vue.d.ts +0 -9
  404. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +0 -18
  405. package/dist/types/__VUE/input/index.vue.d.ts +7 -40
  406. package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
  407. package/dist/types/__VUE/noticebar/index.vue.d.ts +8 -22
  408. package/dist/types/__VUE/notify/index.d.ts +3 -3
  409. package/dist/types/__VUE/popover/index.vue.d.ts +1 -10
  410. package/dist/types/__VUE/popup/common.d.ts +8 -0
  411. package/dist/types/__VUE/popup/index.vue.d.ts +18 -0
  412. package/dist/types/__VUE/popup/props.d.ts +8 -0
  413. package/dist/types/__VUE/progress/index.vue.d.ts +1 -0
  414. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -9
  415. package/dist/types/__VUE/rate/index.vue.d.ts +18 -12
  416. package/dist/types/__VUE/searchbar/index.vue.d.ts +2 -2
  417. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  418. package/dist/types/__VUE/skeleton/index.vue.d.ts +1 -1
  419. package/dist/types/__VUE/sku/index.vue.d.ts +18 -0
  420. package/dist/types/__VUE/steps/index.vue.d.ts +1 -1
  421. package/dist/types/__VUE/swiper/index.vue.d.ts +9 -17
  422. package/dist/types/__VUE/table/common.d.ts +9 -9
  423. package/dist/types/__VUE/table/index.vue.d.ts +13 -11
  424. package/dist/types/__VUE/table/renderColumn.d.ts +9 -9
  425. package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
  426. package/dist/types/__VUE/textarea/index.vue.d.ts +6 -1
  427. package/dist/types/__VUE/timedetail/index.vue.d.ts +0 -9
  428. package/dist/types/__VUE/toast/index.d.ts +3 -3
  429. package/dist/types/__VUE/tour/index.vue.d.ts +10 -10
  430. package/dist/types/index.d.ts +10 -7
  431. package/package.json +13 -143
  432. package/dist/nutui.umd.cjs +0 -20046
  433. package/dist/packages/_es/Icon.js +0 -12
  434. package/dist/packages/_es/index.vue_vue_type_script_lang-360a52b6.js +0 -12
  435. package/dist/packages/_es/pxCheck-c22d207b.js +0 -11
  436. package/dist/packages/_es/style.css +0 -16
  437. package/dist/packages/actionsheet/style.cjs +0 -3
  438. package/dist/packages/address/style.cjs +0 -4
  439. package/dist/packages/addresslist/style.cjs +0 -2
  440. package/dist/packages/animate/style.cjs +0 -1
  441. package/dist/packages/audio/style.cjs +0 -2
  442. package/dist/packages/audiooperate/style.cjs +0 -2
  443. package/dist/packages/avatar/style.cjs +0 -1
  444. package/dist/packages/avatargroup/style.cjs +0 -1
  445. package/dist/packages/backtop/style.cjs +0 -1
  446. package/dist/packages/badge/style.cjs +0 -1
  447. package/dist/packages/barrage/style.cjs +0 -1
  448. package/dist/packages/button/style.cjs +0 -1
  449. package/dist/packages/calendar/style.cjs +0 -4
  450. package/dist/packages/calendaritem/style.cjs +0 -1
  451. package/dist/packages/card/style.cjs +0 -3
  452. package/dist/packages/cascader/style.cjs +0 -6
  453. package/dist/packages/category/style.cjs +0 -1
  454. package/dist/packages/categorypane/style.cjs +0 -1
  455. package/dist/packages/cell/style.cjs +0 -1
  456. package/dist/packages/cellgroup/style.cjs +0 -1
  457. package/dist/packages/checkbox/style.cjs +0 -1
  458. package/dist/packages/checkboxgroup/style.cjs +0 -1
  459. package/dist/packages/circleprogress/style.cjs +0 -1
  460. package/dist/packages/col/style.cjs +0 -1
  461. package/dist/packages/collapse/style.cjs +0 -1
  462. package/dist/packages/collapseitem/style.cjs +0 -1
  463. package/dist/packages/comment/style.cjs +0 -2
  464. package/dist/packages/configprovider/style.cjs +0 -1
  465. package/dist/packages/countdown/style.cjs +0 -1
  466. package/dist/packages/countup/style.cjs +0 -1
  467. package/dist/packages/datepicker/style.cjs +0 -4
  468. package/dist/packages/dialog/style.cjs +0 -4
  469. package/dist/packages/divider/style.cjs +0 -1
  470. package/dist/packages/drag/style.cjs +0 -1
  471. package/dist/packages/ecard/style.cjs +0 -2
  472. package/dist/packages/elevator/style.cjs +0 -1
  473. package/dist/packages/ellipsis/style.cjs +0 -1
  474. package/dist/packages/empty/style.cjs +0 -1
  475. package/dist/packages/fixednav/style.cjs +0 -2
  476. package/dist/packages/form/style.cjs +0 -2
  477. package/dist/packages/formitem/style.cjs +0 -2
  478. package/dist/packages/grid/style.cjs +0 -1
  479. package/dist/packages/griditem/style.cjs +0 -1
  480. package/dist/packages/icon/index.mjs +0 -2
  481. package/dist/packages/icon/style.cjs +0 -1
  482. package/dist/packages/image/style.cjs +0 -1
  483. package/dist/packages/imagepreview/style.cjs +0 -6
  484. package/dist/packages/indicator/style.cjs +0 -1
  485. package/dist/packages/infiniteloading/style.cjs +0 -1
  486. package/dist/packages/input/style.cjs +0 -1
  487. package/dist/packages/inputnumber/style.cjs +0 -1
  488. package/dist/packages/invoice/style.cjs +0 -8
  489. package/dist/packages/layout/style.cjs +0 -1
  490. package/dist/packages/list/style.cjs +0 -1
  491. package/dist/packages/locale/lang/baseLang-fae9904b.js +0 -10
  492. package/dist/packages/menu/style.cjs +0 -1
  493. package/dist/packages/menuitem/style.cjs +0 -3
  494. package/dist/packages/navbar/style.cjs +0 -1
  495. package/dist/packages/noticebar/style.cjs +0 -1
  496. package/dist/packages/notify/style.cjs +0 -3
  497. package/dist/packages/numberkeyboard/style.cjs +0 -3
  498. package/dist/packages/overlay/style.cjs +0 -1
  499. package/dist/packages/pagination/style.cjs +0 -1
  500. package/dist/packages/picker/style.cjs +0 -3
  501. package/dist/packages/popover/style.cjs +0 -3
  502. package/dist/packages/popup/style.cjs +0 -2
  503. package/dist/packages/price/style.cjs +0 -1
  504. package/dist/packages/progress/style.cjs +0 -1
  505. package/dist/packages/pullrefresh/style.cjs +0 -1
  506. package/dist/packages/radio/style.cjs +0 -1
  507. package/dist/packages/radiogroup/style.cjs +0 -1
  508. package/dist/packages/range/style.cjs +0 -1
  509. package/dist/packages/rate/style.cjs +0 -1
  510. package/dist/packages/row/style.cjs +0 -1
  511. package/dist/packages/searchbar/style.cjs +0 -1
  512. package/dist/packages/shortpassword/style.cjs +0 -3
  513. package/dist/packages/sidenavbar/style.cjs +0 -1
  514. package/dist/packages/sidenavbaritem/style.cjs +0 -1
  515. package/dist/packages/signature/style.cjs +0 -2
  516. package/dist/packages/skeleton/style.cjs +0 -2
  517. package/dist/packages/sku/style.cjs +0 -5
  518. package/dist/packages/step/style.cjs +0 -1
  519. package/dist/packages/steps/style.cjs +0 -1
  520. package/dist/packages/sticky/style.cjs +0 -1
  521. package/dist/packages/subsidenavbar/style.cjs +0 -1
  522. package/dist/packages/swipe/style.cjs +0 -1
  523. package/dist/packages/swiper/style.cjs +0 -1
  524. package/dist/packages/swiperitem/style.cjs +0 -1
  525. package/dist/packages/switch/style.cjs +0 -1
  526. package/dist/packages/tabbar/style.cjs +0 -1
  527. package/dist/packages/tabbaritem/style.cjs +0 -2
  528. package/dist/packages/table/style.cjs +0 -1
  529. package/dist/packages/tabpane/style.cjs +0 -1
  530. package/dist/packages/tabs/style.cjs +0 -2
  531. package/dist/packages/tag/style.cjs +0 -1
  532. package/dist/packages/textarea/style.cjs +0 -1
  533. package/dist/packages/timedetail/style.cjs +0 -1
  534. package/dist/packages/timepannel/style.cjs +0 -1
  535. package/dist/packages/timeselect/style.cjs +0 -3
  536. package/dist/packages/toast/style.cjs +0 -1
  537. package/dist/packages/tour/style.cjs +0 -4
  538. package/dist/packages/trendarrow/style.cjs +0 -1
  539. package/dist/packages/uploader/style.cjs +0 -3
  540. package/dist/packages/video/style.cjs +0 -1
  541. package/dist/packages/watermark/style.cjs +0 -1
  542. package/dist/smartips/attributes.json +0 -2810
  543. package/dist/smartips/tags.json +0 -1047
  544. package/dist/styles/theme-deafult.scss +0 -920
  545. package/dist/styles/theme-jdt.scss +0 -898
  546. package/dist/styles/variables-var.scss +0 -854
  547. package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +0 -26
  548. package/dist/types/__VUE/configprovider/common.d.ts +0 -20
  549. package/dist/types/__VUE/swiper/use-touch.d.ts +0 -16
@@ -1,63 +1,12 @@
1
- /*!
2
- * @nutui/nutui v4.0.0-beta.3 Tue Dec 27 2022 17:58:29 GMT+0800 (中国标准时间)
3
- * (c) 2022 @jdf2e.
4
- * Released under the MIT License.
5
- */
6
- import { reactive, ref, computed, provide, onDeactivated, onBeforeUnmount, watch, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode } from "vue";
7
- import { c as createComponent } from "./component-0ea0483c.js";
8
- import { u as useExpose } from "./index-78b85d04.js";
9
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-681cd9ef.js";
1
+ import { ref, reactive, computed, provide, onDeactivated, onBeforeUnmount, watch, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode } from "vue";
2
+ import { c as createComponent, e as clamp } from "./component-81a4c1d0.js";
3
+ import { u as useTouch } from "./index-7a7385e4.js";
4
+ import { u as useExpose } from "./index-79c5dc33.js";
5
+ import { r as requestAniFrame } from "./raf-729dad54.js";
6
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
10
7
  import "../locale/lang";
11
- const DISTANCE = 5;
12
- function useTouch() {
13
- const state = reactive({
14
- startX: 0,
15
- startY: 0,
16
- deltaX: 0,
17
- deltaY: 0,
18
- offsetX: 0,
19
- offsetY: 0,
20
- direction: ""
21
- });
22
- const getDirection = (x, y) => {
23
- if (x > y && x > DISTANCE)
24
- return "horizontal";
25
- if (y > x && y > DISTANCE)
26
- return "vertical";
27
- return "";
28
- };
29
- const reset = () => {
30
- state.startX = 0;
31
- state.startY = 0;
32
- state.deltaX = 0;
33
- state.deltaY = 0;
34
- state.offsetX = 0;
35
- state.offsetY = 0;
36
- state.direction = "";
37
- };
38
- const start = (e) => {
39
- reset();
40
- state.startX = e.touches[0].clientX;
41
- state.startY = e.touches[0].clientY;
42
- };
43
- const move = (e) => {
44
- state.deltaX = e.touches[0].clientX - state.startX;
45
- state.deltaY = e.touches[0].clientY - state.startY;
46
- state.offsetX = Math.abs(state.deltaX);
47
- state.offsetY = Math.abs(state.deltaY);
48
- if (!state.direction) {
49
- state.direction = getDirection(state.offsetX, state.offsetY);
50
- }
51
- };
52
- return {
53
- state,
54
- start,
55
- reset,
56
- move
57
- };
58
- }
59
8
  const { create, componentName } = createComponent("swiper");
60
- const _sfc_main = /* @__PURE__ */ create({
9
+ const _sfc_main = create({
61
10
  props: {
62
11
  width: {
63
12
  type: [Number, String],
@@ -68,8 +17,9 @@ const _sfc_main = /* @__PURE__ */ create({
68
17
  default: 0
69
18
  },
70
19
  direction: {
71
- type: [String],
20
+ type: String,
72
21
  default: "horizontal"
22
+ //horizontal and vertical
73
23
  },
74
24
  paginationVisible: {
75
25
  type: Boolean,
@@ -106,10 +56,6 @@ const _sfc_main = /* @__PURE__ */ create({
106
56
  isStopPropagation: {
107
57
  type: Boolean,
108
58
  default: true
109
- },
110
- isCenter: {
111
- type: Boolean,
112
- default: false
113
59
  }
114
60
  },
115
61
  emits: ["change"],
@@ -137,11 +83,25 @@ const _sfc_main = /* @__PURE__ */ create({
137
83
  };
138
84
  });
139
85
  const isVertical = computed(() => props.direction === "vertical");
86
+ const classesInner = computed(() => {
87
+ const prefixCls = componentName;
88
+ return {
89
+ [`${prefixCls}-inner`]: true,
90
+ [`${prefixCls}-vertical`]: isVertical.value
91
+ };
92
+ });
93
+ const classesPagination = computed(() => {
94
+ const prefixCls = componentName;
95
+ return {
96
+ [`${prefixCls}-pagination`]: true,
97
+ [`${prefixCls}-pagination-vertical`]: isVertical.value
98
+ };
99
+ });
140
100
  const delTa = computed(() => {
141
- return isVertical.value ? touch.state.deltaY : touch.state.deltaX;
101
+ return isVertical.value ? touch.deltaY.value : touch.deltaX.value;
142
102
  });
143
103
  const isCorrectDirection = computed(() => {
144
- return touch.state.direction === props.direction;
104
+ return touch.direction.value === props.direction;
145
105
  });
146
106
  const childCount = computed(() => state.children.length);
147
107
  const size = computed(() => state[isVertical.value ? "height" : "width"]);
@@ -156,12 +116,7 @@ const _sfc_main = /* @__PURE__ */ create({
156
116
  const activePagination = computed(() => (state.active + childCount.value) % childCount.value);
157
117
  const getStyle = () => {
158
118
  let offset = 0;
159
- if (!props.isCenter) {
160
- offset = state.offset;
161
- } else {
162
- let val = isVertical.value ? state.rect.height - size.value : state.rect.width - size.value;
163
- offset = state.offset + (state.active === childCount.value - 1 ? -val / 2 : val / 2);
164
- }
119
+ offset = state.offset;
165
120
  state.style = {
166
121
  transitionDuration: `${state.moving ? 0 : props.duration}ms`,
167
122
  transform: `translate${isVertical.value ? "Y" : "X"}(${offset}px)`,
@@ -172,26 +127,27 @@ const _sfc_main = /* @__PURE__ */ create({
172
127
  const relation = (child) => {
173
128
  var _a;
174
129
  let children = [];
130
+ const childrenVNodeLen = state.childrenVNode.length;
175
131
  let slot = (_a = slots == null ? void 0 : slots.default) == null ? void 0 : _a.call(slots);
176
132
  slot = slot.filter((item) => item.children && Array.isArray(item.children));
177
133
  slot.forEach((item) => {
178
134
  children = children.concat(item.children);
179
135
  });
180
- if (!state.childrenVNode.length) {
136
+ if (!childrenVNodeLen) {
181
137
  state.childrenVNode = children.slice();
182
138
  child.proxy && state.children.push(child.proxy);
183
139
  } else {
184
- if (state.childrenVNode.length > children.length) {
140
+ if (childrenVNodeLen > children.length) {
185
141
  state.children = state.children.filter((item) => child.proxy !== item);
186
- } else if (state.childrenVNode.length < children.length) {
187
- for (let i = 0; i < state.childrenVNode.length; i++) {
142
+ } else if (childrenVNodeLen < children.length) {
143
+ for (let i = 0; i < childrenVNodeLen; i++) {
188
144
  if (children[i].key !== state.childrenVNode[i].key) {
189
145
  child.proxy && state.children.splice(i, 0, child.proxy);
190
146
  child.vnode && state.childrenVNode.splice(i, 0, child.vnode);
191
147
  break;
192
148
  }
193
149
  }
194
- if (state.childrenVNode.length !== children.length) {
150
+ if (childrenVNodeLen !== children.length) {
195
151
  child.proxy && state.children.push(child.proxy);
196
152
  child.vnode && state.childrenVNode.push(child.vnode);
197
153
  }
@@ -201,12 +157,6 @@ const _sfc_main = /* @__PURE__ */ create({
201
157
  }
202
158
  }
203
159
  };
204
- const range = (num, min, max) => {
205
- return Math.min(Math.max(num, min), max);
206
- };
207
- const requestFrame = (fn) => {
208
- window.requestAnimationFrame.call(window, fn);
209
- };
210
160
  const getOffset = (active, offset = 0) => {
211
161
  let currentPosition = active * size.value;
212
162
  if (!props.loop) {
@@ -214,7 +164,7 @@ const _sfc_main = /* @__PURE__ */ create({
214
164
  }
215
165
  let targetOffset = offset - currentPosition;
216
166
  if (!props.loop) {
217
- targetOffset = range(targetOffset, minOffset.value, 0);
167
+ targetOffset = clamp(targetOffset, minOffset.value, 0);
218
168
  }
219
169
  return targetOffset;
220
170
  };
@@ -222,9 +172,9 @@ const _sfc_main = /* @__PURE__ */ create({
222
172
  const { active } = state;
223
173
  if (pace) {
224
174
  if (props.loop) {
225
- return range(active + pace, -1, childCount.value);
175
+ return clamp(active + pace, -1, childCount.value);
226
176
  }
227
- return range(active + pace, 0, childCount.value - 1);
177
+ return clamp(active + pace, 0, childCount.value - 1);
228
178
  }
229
179
  return active;
230
180
  };
@@ -263,48 +213,39 @@ const _sfc_main = /* @__PURE__ */ create({
263
213
  const stopAutoPlay = () => {
264
214
  clearTimeout(state.autoplayTimer);
265
215
  };
266
- const prev = () => {
216
+ const jump = (pace) => {
267
217
  resettPosition();
268
218
  touch.reset();
269
- requestFrame(() => {
270
- requestFrame(() => {
219
+ requestAniFrame(() => {
220
+ requestAniFrame(() => {
271
221
  state.moving = false;
272
222
  move({
273
- pace: -1,
223
+ pace,
274
224
  isEmit: true
275
225
  });
276
226
  });
277
227
  });
278
228
  };
229
+ const prev = () => {
230
+ jump(-1);
231
+ };
279
232
  const next = () => {
280
- resettPosition();
281
- touch.reset();
282
- requestFrame(() => {
283
- requestFrame(() => {
284
- state.moving = false;
285
- move({
286
- pace: 1,
287
- isEmit: true
288
- });
289
- });
290
- });
233
+ jump(1);
291
234
  };
292
235
  const to = (index) => {
293
236
  resettPosition();
294
237
  touch.reset();
295
- requestFrame(() => {
296
- requestFrame(() => {
297
- state.moving = false;
298
- let targetIndex;
299
- if (props.loop && childCount.value === index) {
300
- targetIndex = state.active === 0 ? 0 : index;
301
- } else {
302
- targetIndex = index % childCount.value;
303
- }
304
- move({
305
- pace: targetIndex - state.active,
306
- isEmit: true
307
- });
238
+ requestAniFrame(() => {
239
+ state.moving = false;
240
+ let targetIndex;
241
+ if (props.loop && childCount.value === index) {
242
+ targetIndex = state.active === 0 ? 0 : index;
243
+ } else {
244
+ targetIndex = index % childCount.value;
245
+ }
246
+ move({
247
+ pace: targetIndex - state.active,
248
+ isEmit: true
308
249
  });
309
250
  });
310
251
  };
@@ -358,7 +299,7 @@ const _sfc_main = /* @__PURE__ */ create({
358
299
  const isShouldMove = Math.abs(speed) > 0.3 || Math.abs(delTa.value) > +(size.value / 2).toFixed(2);
359
300
  if (isShouldMove && isCorrectDirection.value) {
360
301
  let pace = 0;
361
- const offset = isVertical.value ? touch.state.offsetY : touch.state.offsetX;
302
+ const offset = isVertical.value ? touch.offsetY.value : touch.offsetX.value;
362
303
  if (props.loop) {
363
304
  pace = offset > 0 ? delTa.value > 0 ? -1 : 1 : 0;
364
305
  } else {
@@ -416,10 +357,9 @@ const _sfc_main = /* @__PURE__ */ create({
416
357
  return {
417
358
  state,
418
359
  classes,
360
+ classesInner,
361
+ classesPagination,
419
362
  container,
420
- componentName,
421
- isVertical,
422
- slots,
423
363
  activePagination,
424
364
  onTouchStart,
425
365
  onTouchMove,
@@ -437,21 +377,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
437
377
  onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
438
378
  }, [
439
379
  createElementVNode("view", {
440
- class: normalizeClass({
441
- [`${_ctx.componentName}-inner`]: true,
442
- [`${_ctx.componentName}-vertical`]: _ctx.isVertical
443
- }),
380
+ class: normalizeClass(_ctx.classesInner),
444
381
  style: normalizeStyle(_ctx.state.style)
445
382
  }, [
446
383
  renderSlot(_ctx.$slots, "default")
447
384
  ], 6),
448
385
  renderSlot(_ctx.$slots, "page"),
449
- _ctx.paginationVisible && !_ctx.slots.page ? (openBlock(), createElementBlock("view", {
386
+ _ctx.paginationVisible && !_ctx.$slots.page ? (openBlock(), createElementBlock("view", {
450
387
  key: 0,
451
- class: normalizeClass({
452
- [`${_ctx.componentName}-pagination`]: true,
453
- [`${_ctx.componentName}-pagination-vertical`]: _ctx.isVertical
454
- })
388
+ class: normalizeClass(_ctx.classesPagination)
455
389
  }, [
456
390
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.state.children.length, (item, index) => {
457
391
  return openBlock(), createElementBlock("i", {
@@ -1,15 +1,10 @@
1
- /*!
2
- * @nutui/nutui v4.0.0-beta.3 Tue Dec 27 2022 17:58:29 GMT+0800 (中国标准时间)
3
- * (c) 2022 @jdf2e.
4
- * Released under the MIT License.
5
- */
6
1
  import { inject, getCurrentInstance, reactive, computed, onUnmounted, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
7
- import { c as createComponent } from "./component-0ea0483c.js";
8
- import { u as useExpose } from "./index-78b85d04.js";
9
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-681cd9ef.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
+ import { u as useExpose } from "./index-79c5dc33.js";
4
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
10
5
  import "../locale/lang";
11
6
  const { create, componentName } = createComponent("swiper-item");
12
- const _sfc_main = /* @__PURE__ */ create({
7
+ const _sfc_main = create({
13
8
  setup(props, { slots }) {
14
9
  const parent = inject("parent");
15
10
  parent["relation"](getCurrentInstance());
@@ -1,15 +1,10 @@
1
- /*!
2
- * @nutui/nutui v4.0.0-beta.3 Tue Dec 27 2022 17:58:29 GMT+0800 (中国标准时间)
3
- * (c) 2022 @jdf2e.
4
- * Released under the MIT License.
5
- */
6
1
  import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createVNode, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } from "vue";
7
- import { c as createComponent } from "./component-0ea0483c.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
8
3
  import { Loading1 } from "@nutui/icons-vue";
9
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-681cd9ef.js";
4
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
10
5
  import "../locale/lang";
11
6
  const { componentName, create } = createComponent("switch");
12
- const _sfc_main = /* @__PURE__ */ create({
7
+ const _sfc_main = create({
13
8
  components: { Loading1 },
14
9
  props: {
15
10
  modelValue: {
@@ -102,7 +97,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
102
97
  }, [
103
98
  createElementVNode("view", _hoisted_1, [
104
99
  _ctx.loading ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
105
- createVNode(_component_Loading1)
100
+ createVNode(_component_Loading1, {
101
+ name: "loading",
102
+ color: _ctx.activeColor
103
+ }, null, 8, ["color"])
106
104
  ]) : createCommentVNode("", true),
107
105
  _ctx.activeText ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
108
106
  withDirectives(createElementVNode("view", { class: "nut-switch-label open" }, toDisplayString(_ctx.activeText), 513), [
@@ -1,14 +1,9 @@
1
- /*!
2
- * @nutui/nutui v4.0.0-beta.3 Tue Dec 27 2022 17:58:29 GMT+0800 (中国标准时间)
3
- * (c) 2022 @jdf2e.
4
- * Released under the MIT License.
5
- */
6
1
  import { inject, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
7
- import { c as createComponent } from "./component-0ea0483c.js";
8
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-681cd9ef.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
9
4
  import "../locale/lang";
10
5
  const { create } = createComponent("tab-pane");
11
- const _sfc_main = /* @__PURE__ */ create({
6
+ const _sfc_main = create({
12
7
  props: {
13
8
  title: {
14
9
  type: [String, Number],
@@ -40,7 +35,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
40
35
  renderSlot(_ctx.$slots, "default")
41
36
  ], 2);
42
37
  }
43
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
38
+ const TabPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
44
39
  export {
45
- index as default
40
+ TabPane as default
46
41
  };
@@ -1,14 +1,9 @@
1
- /*!
2
- * @nutui/nutui v4.0.0-beta.3 Tue Dec 27 2022 17:58:29 GMT+0800 (中国标准时间)
3
- * (c) 2022 @jdf2e.
4
- * Released under the MIT License.
5
- */
6
1
  import { toRefs, ref, reactive, provide, watch, onMounted, nextTick, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
7
- import { c as createComponent } from "./component-0ea0483c.js";
8
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-681cd9ef.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
9
4
  import "../locale/lang";
10
5
  const { create } = createComponent("tabbar");
11
- const _sfc_main = /* @__PURE__ */ create({
6
+ const _sfc_main = create({
12
7
  props: {
13
8
  modelValue: {
14
9
  type: [Number, String],
@@ -1,20 +1,16 @@
1
- /*!
2
- * @nutui/nutui v4.0.0-beta.3 Tue Dec 27 2022 17:58:29 GMT+0800 (中国标准时间)
3
- * (c) 2022 @jdf2e.
4
- * Released under the MIT License.
5
- */
6
- import { c as createComponent } from "./component-0ea0483c.js";
7
- import { r as renderIcon } from "./renderIcon-6bea5078.js";
1
+ import { c as createComponent } from "./component-81a4c1d0.js";
2
+ import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
8
3
  import { inject, reactive, getCurrentInstance, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, toDisplayString } from "vue";
9
- import { u as useRouter } from "./index-16a07d20.js";
4
+ import { u as useRouter } from "./index-54d03fc1.js";
10
5
  import Badge from "./Badge.js";
11
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-681cd9ef.js";
6
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
12
7
  import "../locale/lang";
13
8
  const { create } = createComponent("tabbar-item");
14
- const _sfc_main = /* @__PURE__ */ create({
9
+ const _sfc_main = create({
15
10
  components: { [Badge.name]: Badge },
16
11
  props: {
17
12
  tabTitle: {
13
+ // 标签页的标题
18
14
  type: String,
19
15
  default: ""
20
16
  },
@@ -22,9 +18,11 @@ const _sfc_main = /* @__PURE__ */ create({
22
18
  type: String
23
19
  },
24
20
  icon: {
21
+ // 标签页显示的icon
25
22
  type: Object
26
23
  },
27
24
  href: {
25
+ // 标签页的跳转链接
28
26
  type: String,
29
27
  default: ""
30
28
  },
@@ -37,7 +35,9 @@ const _sfc_main = /* @__PURE__ */ create({
37
35
  const parent = inject("parent");
38
36
  const state = reactive({
39
37
  unactiveColor: parent.unactiveColor,
38
+ // 未选中的颜色
40
39
  activeColor: parent.activeColor,
40
+ // 选中的颜色
41
41
  index: 0
42
42
  });
43
43
  const router = useRouter();
@@ -1,14 +1,9 @@
1
- /*!
2
- * @nutui/nutui v4.0.0-beta.3 Tue Dec 27 2022 17:58:29 GMT+0800 (中国标准时间)
3
- * (c) 2022 @jdf2e.
4
- * Released under the MIT License.
5
- */
6
- import { c as createComponent } from "./component-0ea0483c.js";
7
- import { h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
1
+ import { defineComponent, h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
8
3
  import { DownArrow } from "@nutui/icons-vue";
9
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-681cd9ef.js";
4
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
10
5
  import "../locale/lang";
11
- const RenderColumn = {
6
+ const RenderColumn = defineComponent({
12
7
  setup(props) {
13
8
  return () => h(`view`, {}, props.slots[0] ? props.slots[0](props.record) : props.slots[1](props.record));
14
9
  },
@@ -16,103 +11,100 @@ const RenderColumn = {
16
11
  slots: Array,
17
12
  record: Object
18
13
  }
19
- };
20
- const component = (componentName2, translate2) => {
21
- return {
22
- components: {
23
- RenderColumn,
24
- DownArrow
14
+ });
15
+ const { componentName, create, translate } = createComponent("table");
16
+ const _sfc_main = create({
17
+ components: {
18
+ RenderColumn,
19
+ DownArrow
20
+ },
21
+ props: {
22
+ bordered: {
23
+ type: Boolean,
24
+ default: true
25
25
  },
26
- props: {
27
- bordered: {
28
- type: Boolean,
29
- default: true
30
- },
31
- columns: {
32
- type: Array,
33
- default: () => {
34
- return [];
35
- }
36
- },
37
- data: {
38
- type: Object,
39
- default: () => {
40
- return {};
41
- }
42
- },
43
- summary: {
44
- type: Function,
45
- default: null
46
- },
47
- striped: {
48
- type: Boolean,
49
- default: false
26
+ columns: {
27
+ type: Array,
28
+ default: () => {
29
+ return [];
50
30
  }
51
31
  },
52
- emits: ["sorter"],
53
- setup(props, { emit, slots }) {
54
- const state = reactive({
55
- curData: props.data
56
- });
57
- const classes = computed(() => {
58
- const prefixCls = componentName2;
59
- return {
60
- [prefixCls]: true
61
- };
62
- });
63
- const cellClasses = (item) => {
64
- return {
65
- "nut-table__main__head__tr--border": props.bordered,
66
- [`nut-table__main__head__tr--align${item.align ? item.align : ""}`]: true
67
- };
68
- };
69
- const stylehead = (item) => {
70
- return item.stylehead ? item.stylehead : "";
71
- };
72
- const stylecolumn = (item) => {
73
- return item.stylecolumn ? item.stylecolumn : "";
74
- };
75
- const getColumnItem = (value) => {
76
- return props.columns.filter((item) => item.key === value)[0];
77
- };
78
- const getColumnItemStyle = (value) => {
79
- const style = props.columns.filter((item) => item.key === value);
80
- return style[0].stylecolumn ? style[0].stylecolumn : "";
81
- };
82
- const handleSorterClick = (item) => {
83
- if (item.sorter) {
84
- emit("sorter", item);
85
- state.curData = typeof item.sorter === "function" ? state.curData.sort(item.sorter) : item.sorter === "default" ? state.curData.sort() : state.curData;
86
- }
87
- };
88
- const sortDataItem = () => {
89
- return props.columns.map((columns) => {
90
- return [columns.key, columns.render];
91
- });
32
+ data: {
33
+ type: Object,
34
+ default: () => {
35
+ return {};
36
+ }
37
+ },
38
+ summary: {
39
+ type: Function,
40
+ default: null
41
+ },
42
+ striped: {
43
+ type: Boolean,
44
+ default: false
45
+ }
46
+ },
47
+ emits: ["sorter"],
48
+ setup(props, { emit, slots }) {
49
+ const state = reactive({
50
+ curData: props.data
51
+ });
52
+ const classes = computed(() => {
53
+ const prefixCls = componentName;
54
+ return {
55
+ [prefixCls]: true
92
56
  };
93
- watch(
94
- () => props.data,
95
- (val) => {
96
- state.curData = val.slice();
97
- }
98
- );
57
+ });
58
+ const cellClasses = (item) => {
99
59
  return {
100
- ...toRefs(state),
101
- classes,
102
- cellClasses,
103
- getColumnItem,
104
- getColumnItemStyle,
105
- handleSorterClick,
106
- sortDataItem,
107
- translate: translate2,
108
- stylehead,
109
- stylecolumn
60
+ "nut-table__main__head__tr--border": props.bordered,
61
+ [`nut-table__main__head__tr--align${item.align ? item.align : ""}`]: true
110
62
  };
111
- }
112
- };
113
- };
114
- const { componentName, create, translate } = createComponent("table");
115
- const _sfc_main = /* @__PURE__ */ create(component(componentName, translate));
63
+ };
64
+ const stylehead = (item) => {
65
+ return item.stylehead ? item.stylehead : "";
66
+ };
67
+ const stylecolumn = (item) => {
68
+ return item.stylecolumn ? item.stylecolumn : "";
69
+ };
70
+ const getColumnItem = (value) => {
71
+ return props.columns.filter((item) => item.key === value)[0];
72
+ };
73
+ const getColumnItemStyle = (value) => {
74
+ const style = props.columns.filter((item) => item.key === value);
75
+ return style[0].stylecolumn ? style[0].stylecolumn : "";
76
+ };
77
+ const handleSorterClick = (item) => {
78
+ if (item.sorter) {
79
+ emit("sorter", item);
80
+ state.curData = typeof item.sorter === "function" ? state.curData.sort(item.sorter) : item.sorter === "default" ? state.curData.sort() : state.curData;
81
+ }
82
+ };
83
+ const sortDataItem = () => {
84
+ return props.columns.map((columns) => {
85
+ return [columns.key, columns.render];
86
+ });
87
+ };
88
+ watch(
89
+ () => props.data,
90
+ (val) => {
91
+ state.curData = val.slice();
92
+ }
93
+ );
94
+ return {
95
+ ...toRefs(state),
96
+ classes,
97
+ cellClasses,
98
+ getColumnItem,
99
+ getColumnItemStyle,
100
+ handleSorterClick,
101
+ sortDataItem,
102
+ translate,
103
+ stylehead,
104
+ stylecolumn
105
+ };
106
+ }
107
+ });
116
108
  const _hoisted_1 = { class: "nut-table__main__head" };
117
109
  const _hoisted_2 = { class: "nut-table__main__head__tr" };
118
110
  const _hoisted_3 = ["onClick"];