@nutui/nutui 4.0.0-beta.2 → 4.0.0-beta.20

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 (472) hide show
  1. package/README.md +1 -1
  2. package/dist/nutui.es.js +227 -103
  3. package/dist/nutui.umd.js +7 -0
  4. package/dist/packages/_es/ActionSheet.js +4 -14
  5. package/dist/packages/_es/Address.js +7 -9
  6. package/dist/packages/_es/AddressList.js +156 -233
  7. package/dist/packages/_es/Animate.js +2 -7
  8. package/dist/packages/_es/Audio.js +10 -9
  9. package/dist/packages/_es/AudioOperate.js +3 -7
  10. package/dist/packages/_es/Avatar.js +4 -7
  11. package/dist/packages/_es/AvatarGroup.js +3 -7
  12. package/dist/packages/_es/Backtop.js +3 -8
  13. package/dist/packages/_es/Badge.js +2 -7
  14. package/dist/packages/_es/Barrage.js +31 -54
  15. package/dist/packages/_es/Button.js +2 -7
  16. package/dist/packages/_es/Calendar.js +6 -11
  17. package/dist/packages/_es/CalendarItem.js +5 -10
  18. package/dist/packages/_es/Card.js +9 -21
  19. package/dist/packages/_es/Cascader.js +17 -11
  20. package/dist/packages/_es/Category.js +4 -7
  21. package/dist/packages/_es/CategoryPane.js +5 -7
  22. package/dist/packages/_es/Cell.js +5 -9
  23. package/dist/packages/_es/CellGroup.js +2 -7
  24. package/dist/packages/_es/Checkbox.js +2 -7
  25. package/dist/packages/_es/CheckboxGroup.js +2 -7
  26. package/dist/packages/_es/CircleProgress.js +2 -7
  27. package/dist/packages/_es/Col.js +2 -7
  28. package/dist/packages/_es/Collapse.js +9 -14
  29. package/dist/packages/_es/CollapseItem.js +7 -11
  30. package/dist/packages/_es/Comment.js +24 -24
  31. package/dist/packages/_es/ConfigProvider.js +38 -11
  32. package/dist/packages/_es/Countdown.js +10 -7
  33. package/dist/packages/_es/Countup.js +22 -12
  34. package/dist/packages/_es/DatePicker.js +6 -9
  35. package/dist/packages/_es/Dialog.js +23 -30
  36. package/dist/packages/_es/Divider.js +2 -7
  37. package/dist/packages/_es/Drag.js +3 -8
  38. package/dist/packages/_es/Ecard.js +3 -8
  39. package/dist/packages/_es/Elevator.js +3 -8
  40. package/dist/packages/_es/Ellipsis.js +4 -7
  41. package/dist/packages/_es/Empty.js +5 -7
  42. package/dist/packages/_es/FixedNav.js +2 -7
  43. package/dist/packages/_es/Form.js +2 -7
  44. package/dist/packages/_es/FormItem.js +4 -9
  45. package/dist/packages/_es/Grid.js +3 -8
  46. package/dist/packages/_es/GridItem.js +6 -10
  47. package/dist/packages/_es/Image.js +3 -8
  48. package/dist/packages/_es/ImagePreview.js +23 -32
  49. package/dist/packages/_es/Indicator.js +2 -7
  50. package/dist/packages/_es/InfiniteLoading.js +4 -17
  51. package/dist/packages/_es/Input.js +32 -36
  52. package/dist/packages/_es/InputNumber.js +3 -8
  53. package/dist/packages/_es/Invoice.js +9 -12
  54. package/dist/packages/_es/Layout.js +1 -6
  55. package/dist/packages/_es/List.js +3 -9
  56. package/dist/packages/_es/Menu.js +3 -8
  57. package/dist/packages/_es/MenuItem.js +3 -8
  58. package/dist/packages/_es/Navbar.js +8 -7
  59. package/dist/packages/_es/Noticebar.js +17 -17
  60. package/dist/packages/_es/Notify.js +11 -13
  61. package/dist/packages/_es/NumberKeyboard.js +5 -10
  62. package/dist/packages/_es/Overlay.js +3 -8
  63. package/dist/packages/_es/Pagination.js +2 -7
  64. package/dist/packages/_es/Picker.js +8 -10
  65. package/dist/packages/_es/Popover.js +5 -11
  66. package/dist/packages/_es/Popup.js +3 -8
  67. package/dist/packages/_es/Price.js +3 -8
  68. package/dist/packages/_es/Progress.js +13 -14
  69. package/dist/packages/_es/PullRefresh.js +15 -23
  70. package/dist/packages/_es/Radio.js +3 -8
  71. package/dist/packages/_es/RadioGroup.js +2 -7
  72. package/dist/packages/_es/Range.js +4 -9
  73. package/dist/packages/_es/Rate.js +22 -26
  74. package/dist/packages/_es/Row.js +2 -7
  75. package/dist/packages/_es/Searchbar.js +7 -11
  76. package/dist/packages/_es/ShortPassword.js +14 -18
  77. package/dist/packages/_es/SideNavbar.js +2 -7
  78. package/dist/packages/_es/SideNavbarItem.js +2 -7
  79. package/dist/packages/_es/Signature.js +14 -8
  80. package/dist/packages/_es/Skeleton.js +14 -11
  81. package/dist/packages/_es/Sku.js +28 -9
  82. package/dist/packages/_es/Step.js +2 -7
  83. package/dist/packages/_es/Steps.js +1 -6
  84. package/dist/packages/_es/Sticky.js +3 -8
  85. package/dist/packages/_es/SubSideNavbar.js +7 -10
  86. package/dist/packages/_es/Swipe.js +5 -10
  87. package/dist/packages/_es/Swiper.js +59 -125
  88. package/dist/packages/_es/SwiperItem.js +3 -8
  89. package/dist/packages/_es/Switch.js +3 -8
  90. package/dist/packages/_es/TabPane.js +4 -9
  91. package/dist/packages/_es/Tabbar.js +2 -7
  92. package/dist/packages/_es/TabbarItem.js +17 -32
  93. package/dist/packages/_es/Table.js +2 -7
  94. package/dist/packages/_es/Tabs.js +20 -23
  95. package/dist/packages/_es/Tag.js +2 -7
  96. package/dist/packages/_es/Textarea.js +3 -7
  97. package/dist/packages/_es/TimeDetail.js +2 -11
  98. package/dist/packages/_es/TimePannel.js +2 -7
  99. package/dist/packages/_es/TimeSelect.js +4 -9
  100. package/dist/packages/_es/Toast.js +17 -16
  101. package/dist/packages/_es/Tour.js +11 -15
  102. package/dist/packages/_es/TrendArrow.js +2 -7
  103. package/dist/packages/_es/Uploader.js +5 -8
  104. package/dist/packages/_es/Video.js +20 -7
  105. package/dist/packages/_es/Watermark.js +2 -7
  106. package/dist/packages/_es/{_plugin-vue_export-helper-6eba1fc2.js → _plugin-vue_export-helper-cc2b3d55.js} +0 -5
  107. package/dist/packages/_es/{common-7e43c968.js → common-b9a5e726.js} +10 -7
  108. package/dist/packages/_es/{component-1a609d46.js → component-81a4c1d0.js} +0 -5
  109. package/dist/packages/_es/{index-84decee6.js → index-29892cda.js} +0 -5
  110. package/dist/packages/_es/{index-80fa48bb.js → index-43c34ac6.js} +0 -5
  111. package/dist/packages/_es/{index-0a179fe8.js → index-54d03fc1.js} +0 -5
  112. package/dist/packages/_es/{index-ea36cedc.js → index-79c5dc33.js} +0 -5
  113. package/dist/packages/_es/{index-0bea707c.js → index-7a7385e4.js} +0 -5
  114. package/dist/packages/_es/{index-db2c2975.js → index-af79da1a.js} +14 -9
  115. package/dist/packages/_es/{index-4ccf62e1.js → index-f3a722c9.js} +42 -10
  116. package/dist/packages/_es/{index.vue_vue_type_script_lang-20115c0e.js → index.vue_vue_type_script_lang-22dfc112.js} +2 -6
  117. package/dist/packages/_es/{index.vue_vue_type_script_lang-7c0c1b1c.js → index.vue_vue_type_script_lang-442e4704.js} +3 -7
  118. package/dist/packages/_es/{index.vue_vue_type_script_lang-2e585483.js → index.vue_vue_type_script_lang-cc5c4086.js} +2 -7
  119. package/dist/packages/_es/{interceptor-0a3b15e4.js → interceptor-956b24fc.js} +1 -6
  120. package/dist/packages/_es/{mountComponent-add1c908.js → mountComponent-1ece4110.js} +1 -6
  121. package/dist/packages/_es/pxCheck-c6b9f6b7.js +6 -0
  122. package/dist/packages/_es/{raf-7bf556c1.js → raf-729dad54.js} +0 -5
  123. package/dist/packages/_es/{renderIcon-ff803dcd.js → renderIcon-3d0fd47c.js} +0 -5
  124. package/dist/packages/actionsheet/index.mjs +3 -1
  125. package/dist/packages/actionsheet/style.mjs +4 -2
  126. package/dist/packages/address/index.mjs +3 -1
  127. package/dist/packages/address/style.mjs +6 -3
  128. package/dist/packages/addresslist/index.mjs +3 -1
  129. package/dist/packages/addresslist/index.scss +14 -3
  130. package/dist/packages/addresslist/style.mjs +4 -1
  131. package/dist/packages/animate/index.mjs +3 -1
  132. package/dist/packages/audio/index.mjs +3 -1
  133. package/dist/packages/audio/index.scss +1 -1
  134. package/dist/packages/audio/style.mjs +2 -1
  135. package/dist/packages/audiooperate/index.mjs +3 -1
  136. package/dist/packages/audiooperate/style.mjs +2 -1
  137. package/dist/packages/avatar/index.mjs +3 -1
  138. package/dist/packages/avatar/index.scss +3 -1
  139. package/dist/packages/avatargroup/index.mjs +3 -1
  140. package/dist/packages/avatargroup/index.scss +1 -1
  141. package/dist/packages/backtop/index.mjs +3 -1
  142. package/dist/packages/badge/index.mjs +3 -1
  143. package/dist/packages/badge/index.scss +2 -2
  144. package/dist/packages/barrage/index.mjs +3 -1
  145. package/dist/packages/barrage/index.scss +17 -1
  146. package/dist/packages/button/index.mjs +3 -1
  147. package/dist/packages/button/index.scss +63 -1
  148. package/dist/packages/calendar/index.mjs +3 -1
  149. package/dist/packages/calendar/index.scss +14 -5
  150. package/dist/packages/calendar/style.mjs +6 -3
  151. package/dist/packages/calendaritem/index.mjs +3 -1
  152. package/dist/packages/card/index.mjs +3 -1
  153. package/dist/packages/card/style.mjs +4 -2
  154. package/dist/packages/cascader/index.mjs +3 -1
  155. package/dist/packages/cascader/style.mjs +10 -5
  156. package/dist/packages/category/index.mjs +3 -1
  157. package/dist/packages/categorypane/index.mjs +3 -1
  158. package/dist/packages/cell/index.mjs +3 -1
  159. package/dist/packages/cell/index.scss +5 -1
  160. package/dist/packages/cellgroup/index.mjs +3 -1
  161. package/dist/packages/checkbox/index.mjs +3 -1
  162. package/dist/packages/checkboxgroup/index.mjs +3 -1
  163. package/dist/packages/circleprogress/index.mjs +3 -1
  164. package/dist/packages/col/index.mjs +3 -1
  165. package/dist/packages/collapse/index.mjs +3 -1
  166. package/dist/packages/collapseitem/index.mjs +3 -1
  167. package/dist/packages/comment/index.mjs +3 -1
  168. package/dist/packages/comment/index.scss +6 -1
  169. package/dist/packages/comment/style.mjs +2 -1
  170. package/dist/packages/configprovider/index.mjs +3 -1
  171. package/dist/packages/countdown/index.mjs +3 -1
  172. package/dist/packages/countup/index.mjs +3 -1
  173. package/dist/packages/datepicker/index.mjs +3 -1
  174. package/dist/packages/datepicker/style.mjs +6 -3
  175. package/dist/packages/dialog/index.mjs +5 -2
  176. package/dist/packages/dialog/style.mjs +6 -3
  177. package/dist/packages/divider/index.mjs +3 -1
  178. package/dist/packages/drag/index.mjs +3 -1
  179. package/dist/packages/ecard/index.mjs +3 -1
  180. package/dist/packages/ecard/style.mjs +2 -1
  181. package/dist/packages/elevator/index.mjs +3 -1
  182. package/dist/packages/ellipsis/index.mjs +3 -1
  183. package/dist/packages/empty/index.mjs +3 -1
  184. package/dist/packages/fixednav/index.mjs +3 -1
  185. package/dist/packages/fixednav/style.mjs +2 -1
  186. package/dist/packages/form/index.mjs +3 -1
  187. package/dist/packages/form/style.mjs +2 -1
  188. package/dist/packages/formitem/index.mjs +3 -1
  189. package/dist/packages/formitem/style.mjs +2 -1
  190. package/dist/packages/grid/index.mjs +3 -1
  191. package/dist/packages/griditem/index.mjs +3 -1
  192. package/dist/packages/image/index.mjs +3 -1
  193. package/dist/packages/imagepreview/index.mjs +5 -2
  194. package/dist/packages/imagepreview/style.mjs +10 -5
  195. package/dist/packages/indicator/index.mjs +3 -1
  196. package/dist/packages/indicator/index.scss +4 -4
  197. package/dist/packages/infiniteloading/index.mjs +3 -1
  198. package/dist/packages/input/index.mjs +3 -1
  199. package/dist/packages/input/index.scss +6 -2
  200. package/dist/packages/inputnumber/index.mjs +3 -1
  201. package/dist/packages/inputnumber/index.scss +0 -2
  202. package/dist/packages/invoice/index.mjs +3 -1
  203. package/dist/packages/invoice/style.mjs +14 -7
  204. package/dist/packages/layout/index.mjs +3 -1
  205. package/dist/packages/list/index.mjs +3 -1
  206. package/dist/packages/locale/lang/baseLang-0bdc6353.js +5 -0
  207. package/dist/packages/locale/lang/en-US.js +1 -6
  208. package/dist/packages/locale/lang/id-ID.js +1 -6
  209. package/dist/packages/locale/lang/index.js +1 -6
  210. package/dist/packages/locale/lang/zh-CN.js +2 -7
  211. package/dist/packages/locale/lang/zh-TW.js +1 -6
  212. package/dist/packages/menu/index.mjs +3 -1
  213. package/dist/packages/menuitem/index.mjs +3 -1
  214. package/dist/packages/menuitem/style.mjs +4 -2
  215. package/dist/packages/navbar/index.mjs +3 -1
  216. package/dist/packages/noticebar/index.mjs +3 -1
  217. package/dist/packages/noticebar/index.scss +4 -1
  218. package/dist/packages/notify/index.mjs +5 -2
  219. package/dist/packages/notify/style.mjs +4 -2
  220. package/dist/packages/numberkeyboard/index.mjs +3 -1
  221. package/dist/packages/numberkeyboard/index.scss +3 -0
  222. package/dist/packages/numberkeyboard/style.mjs +4 -2
  223. package/dist/packages/overlay/index.mjs +3 -1
  224. package/dist/packages/pagination/index.mjs +3 -1
  225. package/dist/packages/picker/index.mjs +3 -1
  226. package/dist/packages/picker/style.mjs +4 -2
  227. package/dist/packages/popover/index.mjs +3 -1
  228. package/dist/packages/popover/index.scss +1 -1
  229. package/dist/packages/popover/style.mjs +4 -2
  230. package/dist/packages/popup/index.mjs +3 -1
  231. package/dist/packages/popup/style.mjs +2 -1
  232. package/dist/packages/price/index.mjs +3 -1
  233. package/dist/packages/progress/index.mjs +3 -1
  234. package/dist/packages/progress/index.scss +2 -0
  235. package/dist/packages/pullrefresh/index.mjs +3 -1
  236. package/dist/packages/pullrefresh/index.scss +4 -3
  237. package/dist/packages/radio/index.mjs +3 -1
  238. package/dist/packages/radio/index.scss +14 -2
  239. package/dist/packages/radiogroup/index.mjs +3 -1
  240. package/dist/packages/range/index.mjs +3 -1
  241. package/dist/packages/range/index.scss +6 -3
  242. package/dist/packages/rate/index.mjs +3 -1
  243. package/dist/packages/rate/index.scss +4 -4
  244. package/dist/packages/row/index.mjs +3 -1
  245. package/dist/packages/searchbar/index.mjs +3 -1
  246. package/dist/packages/searchbar/index.scss +4 -8
  247. package/dist/packages/shortpassword/index.mjs +3 -1
  248. package/dist/packages/shortpassword/style.mjs +4 -2
  249. package/dist/packages/sidenavbar/index.mjs +3 -1
  250. package/dist/packages/sidenavbaritem/index.mjs +3 -1
  251. package/dist/packages/signature/index.mjs +3 -1
  252. package/dist/packages/signature/index.scss +2 -2
  253. package/dist/packages/signature/style.mjs +2 -1
  254. package/dist/packages/skeleton/index.mjs +3 -1
  255. package/dist/packages/skeleton/style.mjs +2 -1
  256. package/dist/packages/sku/index.mjs +3 -1
  257. package/dist/packages/sku/index.scss +16 -2
  258. package/dist/packages/sku/style.mjs +8 -4
  259. package/dist/packages/step/index.mjs +3 -1
  260. package/dist/packages/step/index.scss +1 -9
  261. package/dist/packages/steps/index.mjs +3 -1
  262. package/dist/packages/sticky/index.mjs +3 -1
  263. package/dist/packages/sticky/index.scss +2 -0
  264. package/dist/packages/subsidenavbar/index.mjs +3 -1
  265. package/dist/packages/swipe/index.mjs +3 -1
  266. package/dist/packages/swiper/index.mjs +3 -1
  267. package/dist/packages/swiperitem/index.mjs +3 -1
  268. package/dist/packages/switch/index.mjs +3 -1
  269. package/dist/packages/tabbar/index.mjs +3 -1
  270. package/dist/packages/tabbaritem/index.mjs +3 -1
  271. package/dist/packages/tabbaritem/index.scss +4 -0
  272. package/dist/packages/tabbaritem/style.mjs +2 -1
  273. package/dist/packages/table/index.mjs +3 -1
  274. package/dist/packages/tabpane/index.mjs +3 -1
  275. package/dist/packages/tabs/index.mjs +3 -1
  276. package/dist/packages/tabs/style.mjs +2 -1
  277. package/dist/packages/tag/index.mjs +3 -1
  278. package/dist/packages/textarea/index.mjs +3 -1
  279. package/dist/packages/textarea/index.scss +7 -1
  280. package/dist/packages/timedetail/index.mjs +3 -1
  281. package/dist/packages/timedetail/index.scss +14 -6
  282. package/dist/packages/timepannel/index.mjs +3 -1
  283. package/dist/packages/timeselect/index.mjs +3 -1
  284. package/dist/packages/timeselect/style.mjs +4 -2
  285. package/dist/packages/toast/index.mjs +5 -2
  286. package/dist/packages/tour/index.mjs +3 -1
  287. package/dist/packages/tour/style.mjs +6 -3
  288. package/dist/packages/trendarrow/index.mjs +3 -1
  289. package/dist/packages/uploader/index.mjs +3 -1
  290. package/dist/packages/uploader/index.scss +1 -1
  291. package/dist/packages/uploader/style.mjs +4 -2
  292. package/dist/packages/video/index.mjs +3 -1
  293. package/dist/packages/watermark/index.mjs +3 -1
  294. package/dist/smartips/web-types.json +731 -812
  295. package/dist/style.css +1 -19
  296. package/dist/style.js +4 -0
  297. package/dist/styles/reset.css +3 -0
  298. package/dist/styles/themes/default.scss +50 -51
  299. package/dist/styles/themes/jdb.scss +50 -51
  300. package/dist/styles/themes/jddkh.scss +50 -51
  301. package/dist/styles/themes/jdt.scss +50 -51
  302. package/dist/styles/variables-jdb.scss +4 -10
  303. package/dist/styles/variables-jddkh.scss +4 -9
  304. package/dist/styles/variables-jdt.scss +5 -10
  305. package/dist/styles/variables.scss +13 -21
  306. package/dist/types/__VUE/actionsheet/index.vue.d.ts +18 -9
  307. package/dist/types/__VUE/address/index.vue.d.ts +18 -0
  308. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +23 -7
  309. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +2 -2
  310. package/dist/types/__VUE/addresslist/index.vue.d.ts +6 -6
  311. package/dist/types/__VUE/barrage/index.vue.d.ts +2 -5
  312. package/dist/types/__VUE/card/index.vue.d.ts +0 -21
  313. package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +2 -2
  314. package/dist/types/__VUE/cascader/index.vue.d.ts +18 -0
  315. package/dist/types/__VUE/cascader/types.d.ts +1 -1
  316. package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
  317. package/dist/types/__VUE/collapse/index.vue.d.ts +5 -5
  318. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +2 -2
  319. package/dist/types/__VUE/comment/index.vue.d.ts +4 -4
  320. package/dist/types/__VUE/configprovider/index.vue.d.ts +3 -2
  321. package/dist/types/__VUE/countup/index.vue.d.ts +2 -2
  322. package/dist/types/__VUE/dialog/index.d.ts +9 -9
  323. package/dist/types/__VUE/dialog/index.vue.d.ts +18 -0
  324. package/dist/types/__VUE/divider/index.vue.d.ts +1 -1
  325. package/dist/types/__VUE/ellipsis/index.vue.d.ts +1 -1
  326. package/dist/types/__VUE/icon/index.vue.d.ts +1 -0
  327. package/dist/types/__VUE/imagepreview/index.d.ts +12 -12
  328. package/dist/types/__VUE/imagepreview/index.vue.d.ts +0 -9
  329. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +0 -18
  330. package/dist/types/__VUE/input/index.vue.d.ts +7 -40
  331. package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
  332. package/dist/types/__VUE/noticebar/index.vue.d.ts +2 -12
  333. package/dist/types/__VUE/notify/index.d.ts +3 -3
  334. package/dist/types/__VUE/popover/index.vue.d.ts +1 -10
  335. package/dist/types/__VUE/popup/common.d.ts +8 -0
  336. package/dist/types/__VUE/popup/index.vue.d.ts +18 -0
  337. package/dist/types/__VUE/popup/props.d.ts +8 -0
  338. package/dist/types/__VUE/progress/index.vue.d.ts +1 -0
  339. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -9
  340. package/dist/types/__VUE/rate/index.vue.d.ts +16 -10
  341. package/dist/types/__VUE/searchbar/index.vue.d.ts +2 -2
  342. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  343. package/dist/types/__VUE/skeleton/index.vue.d.ts +1 -1
  344. package/dist/types/__VUE/sku/index.vue.d.ts +18 -0
  345. package/dist/types/__VUE/steps/index.vue.d.ts +1 -1
  346. package/dist/types/__VUE/swiper/index.vue.d.ts +9 -17
  347. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +0 -1
  348. package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
  349. package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
  350. package/dist/types/__VUE/timedetail/index.vue.d.ts +0 -9
  351. package/dist/types/__VUE/toast/index.d.ts +3 -3
  352. package/dist/types/__VUE/tour/index.vue.d.ts +10 -10
  353. package/dist/types/index.d.ts +10 -7
  354. package/package.json +13 -133
  355. package/dist/nutui.umd.cjs +0 -20061
  356. package/dist/packages/_es/Icon.js +0 -12
  357. package/dist/packages/_es/index.vue_vue_type_script_lang-b8ddf362.js +0 -12
  358. package/dist/packages/_es/pxCheck-9763aaae.js +0 -11
  359. package/dist/packages/_es/style.css +0 -16
  360. package/dist/packages/actionsheet/style.cjs +0 -3
  361. package/dist/packages/address/style.cjs +0 -4
  362. package/dist/packages/addresslist/style.cjs +0 -2
  363. package/dist/packages/animate/style.cjs +0 -1
  364. package/dist/packages/audio/style.cjs +0 -2
  365. package/dist/packages/audiooperate/style.cjs +0 -2
  366. package/dist/packages/avatar/style.cjs +0 -1
  367. package/dist/packages/avatargroup/style.cjs +0 -1
  368. package/dist/packages/backtop/style.cjs +0 -1
  369. package/dist/packages/badge/style.cjs +0 -1
  370. package/dist/packages/barrage/style.cjs +0 -1
  371. package/dist/packages/button/style.cjs +0 -1
  372. package/dist/packages/calendar/style.cjs +0 -4
  373. package/dist/packages/calendaritem/style.cjs +0 -1
  374. package/dist/packages/card/style.cjs +0 -3
  375. package/dist/packages/cascader/style.cjs +0 -6
  376. package/dist/packages/category/style.cjs +0 -1
  377. package/dist/packages/categorypane/style.cjs +0 -1
  378. package/dist/packages/cell/style.cjs +0 -1
  379. package/dist/packages/cellgroup/style.cjs +0 -1
  380. package/dist/packages/checkbox/style.cjs +0 -1
  381. package/dist/packages/checkboxgroup/style.cjs +0 -1
  382. package/dist/packages/circleprogress/style.cjs +0 -1
  383. package/dist/packages/col/style.cjs +0 -1
  384. package/dist/packages/collapse/style.cjs +0 -1
  385. package/dist/packages/collapseitem/style.cjs +0 -1
  386. package/dist/packages/comment/style.cjs +0 -2
  387. package/dist/packages/configprovider/style.cjs +0 -1
  388. package/dist/packages/countdown/style.cjs +0 -1
  389. package/dist/packages/countup/style.cjs +0 -1
  390. package/dist/packages/datepicker/style.cjs +0 -4
  391. package/dist/packages/dialog/style.cjs +0 -4
  392. package/dist/packages/divider/style.cjs +0 -1
  393. package/dist/packages/drag/style.cjs +0 -1
  394. package/dist/packages/ecard/style.cjs +0 -2
  395. package/dist/packages/elevator/style.cjs +0 -1
  396. package/dist/packages/ellipsis/style.cjs +0 -1
  397. package/dist/packages/empty/style.cjs +0 -1
  398. package/dist/packages/fixednav/style.cjs +0 -2
  399. package/dist/packages/form/style.cjs +0 -2
  400. package/dist/packages/formitem/style.cjs +0 -2
  401. package/dist/packages/grid/style.cjs +0 -1
  402. package/dist/packages/griditem/style.cjs +0 -1
  403. package/dist/packages/icon/index.mjs +0 -2
  404. package/dist/packages/icon/style.cjs +0 -1
  405. package/dist/packages/image/style.cjs +0 -1
  406. package/dist/packages/imagepreview/style.cjs +0 -6
  407. package/dist/packages/indicator/style.cjs +0 -1
  408. package/dist/packages/infiniteloading/style.cjs +0 -1
  409. package/dist/packages/input/style.cjs +0 -1
  410. package/dist/packages/inputnumber/style.cjs +0 -1
  411. package/dist/packages/invoice/style.cjs +0 -8
  412. package/dist/packages/layout/style.cjs +0 -1
  413. package/dist/packages/list/style.cjs +0 -1
  414. package/dist/packages/locale/lang/baseLang-d7024f23.js +0 -10
  415. package/dist/packages/menu/style.cjs +0 -1
  416. package/dist/packages/menuitem/style.cjs +0 -3
  417. package/dist/packages/navbar/style.cjs +0 -1
  418. package/dist/packages/noticebar/style.cjs +0 -1
  419. package/dist/packages/notify/style.cjs +0 -3
  420. package/dist/packages/numberkeyboard/style.cjs +0 -3
  421. package/dist/packages/overlay/style.cjs +0 -1
  422. package/dist/packages/pagination/style.cjs +0 -1
  423. package/dist/packages/picker/style.cjs +0 -3
  424. package/dist/packages/popover/style.cjs +0 -3
  425. package/dist/packages/popup/style.cjs +0 -2
  426. package/dist/packages/price/style.cjs +0 -1
  427. package/dist/packages/progress/style.cjs +0 -1
  428. package/dist/packages/pullrefresh/style.cjs +0 -1
  429. package/dist/packages/radio/style.cjs +0 -1
  430. package/dist/packages/radiogroup/style.cjs +0 -1
  431. package/dist/packages/range/style.cjs +0 -1
  432. package/dist/packages/rate/style.cjs +0 -1
  433. package/dist/packages/row/style.cjs +0 -1
  434. package/dist/packages/searchbar/style.cjs +0 -1
  435. package/dist/packages/shortpassword/style.cjs +0 -3
  436. package/dist/packages/sidenavbar/style.cjs +0 -1
  437. package/dist/packages/sidenavbaritem/style.cjs +0 -1
  438. package/dist/packages/signature/style.cjs +0 -2
  439. package/dist/packages/skeleton/style.cjs +0 -2
  440. package/dist/packages/sku/style.cjs +0 -5
  441. package/dist/packages/step/style.cjs +0 -1
  442. package/dist/packages/steps/style.cjs +0 -1
  443. package/dist/packages/sticky/style.cjs +0 -1
  444. package/dist/packages/subsidenavbar/style.cjs +0 -1
  445. package/dist/packages/swipe/style.cjs +0 -1
  446. package/dist/packages/swiper/style.cjs +0 -1
  447. package/dist/packages/swiperitem/style.cjs +0 -1
  448. package/dist/packages/switch/style.cjs +0 -1
  449. package/dist/packages/tabbar/style.cjs +0 -1
  450. package/dist/packages/tabbaritem/style.cjs +0 -2
  451. package/dist/packages/table/style.cjs +0 -1
  452. package/dist/packages/tabpane/style.cjs +0 -1
  453. package/dist/packages/tabs/style.cjs +0 -2
  454. package/dist/packages/tag/style.cjs +0 -1
  455. package/dist/packages/textarea/style.cjs +0 -1
  456. package/dist/packages/timedetail/style.cjs +0 -1
  457. package/dist/packages/timepannel/style.cjs +0 -1
  458. package/dist/packages/timeselect/style.cjs +0 -3
  459. package/dist/packages/toast/style.cjs +0 -1
  460. package/dist/packages/tour/style.cjs +0 -4
  461. package/dist/packages/trendarrow/style.cjs +0 -1
  462. package/dist/packages/uploader/style.cjs +0 -3
  463. package/dist/packages/video/style.cjs +0 -1
  464. package/dist/packages/watermark/style.cjs +0 -1
  465. package/dist/smartips/attributes.json +0 -2810
  466. package/dist/smartips/tags.json +0 -1047
  467. package/dist/styles/theme-deafult.scss +0 -920
  468. package/dist/styles/theme-jdt.scss +0 -898
  469. package/dist/styles/variables-var.scss +0 -854
  470. package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +0 -26
  471. package/dist/types/__VUE/configprovider/common.d.ts +0 -20
  472. package/dist/types/__VUE/swiper/use-touch.d.ts +0 -16
@@ -1,61 +1,10 @@
1
- /*!
2
- * @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 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-1a609d46.js";
8
- import { u as useExpose } from "./index-ea36cedc.js";
9
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-6eba1fc2.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
9
  const _sfc_main = create({
61
10
  props: {
@@ -68,8 +17,9 @@ const _sfc_main = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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,12 +1,7 @@
1
- /*!
2
- * @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 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-1a609d46.js";
8
- import { u as useExpose } from "./index-ea36cedc.js";
9
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-6eba1fc2.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
7
  const _sfc_main = create({
@@ -1,12 +1,7 @@
1
- /*!
2
- * @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 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-1a609d46.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-6eba1fc2.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
7
  const _sfc_main = create({
@@ -102,7 +97,7 @@ 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, { name: "loading" })
106
101
  ]) : createCommentVNode("", true),
107
102
  _ctx.activeText ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
108
103
  withDirectives(createElementVNode("view", { class: "nut-switch-label open" }, toDisplayString(_ctx.activeText), 513), [
@@ -1,11 +1,6 @@
1
- /*!
2
- * @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 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-1a609d46.js";
8
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-6eba1fc2.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
6
  const _sfc_main = create({
@@ -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,11 +1,6 @@
1
- /*!
2
- * @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 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-1a609d46.js";
8
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-6eba1fc2.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
6
  const _sfc_main = create({
@@ -1,20 +1,16 @@
1
- /*!
2
- * @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
3
- * (c) 2022 @jdf2e.
4
- * Released under the MIT License.
5
- */
6
- import { c as createComponent } from "./component-1a609d46.js";
7
- import { r as renderIcon } from "./renderIcon-ff803dcd.js";
8
- import { inject, reactive, getCurrentInstance, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, toDisplayString } from "vue";
9
- import { u as useRouter } from "./index-0a179fe8.js";
1
+ import { c as createComponent } from "./component-81a4c1d0.js";
2
+ import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
3
+ import { inject, reactive, getCurrentInstance, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, toDisplayString } from "vue";
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-6eba1fc2.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
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 = 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,8 +35,9 @@ const _sfc_main = create({
37
35
  const parent = inject("parent");
38
36
  const state = reactive({
39
37
  unactiveColor: parent.unactiveColor,
38
+ // 未选中的颜色
40
39
  activeColor: parent.activeColor,
41
- active: parent.modelValue,
40
+ // 选中的颜色
42
41
  index: 0
43
42
  });
44
43
  const router = useRouter();
@@ -50,32 +49,18 @@ const _sfc_main = create({
50
49
  }
51
50
  };
52
51
  relation(getCurrentInstance());
53
- const active = computed(() => state.index === state.active);
52
+ const active = computed(() => state.index === parent.modelValue);
54
53
  function change() {
54
+ var _a, _b;
55
55
  let key = props.name ?? state.index;
56
- let index2 = null;
56
+ let indexValue = null;
57
57
  if (props.name) {
58
- index2 = parent.children.findIndex((item) => {
58
+ indexValue = parent.children.findIndex((item) => {
59
59
  return item.name == key;
60
60
  });
61
61
  }
62
- parent.changeIndex(index2 ?? key, state.index);
63
- }
64
- const choosed = computed(() => {
65
- if (parent) {
66
- return parent.modelValue;
67
- }
68
- return null;
69
- });
70
- watch(choosed, (value, oldValue) => {
71
- var _a, _b;
72
- state.active = value;
73
- let index2 = value;
74
- if (props.name) {
75
- index2 = parent.children.findIndex((item) => {
76
- return item.name == value;
77
- });
78
- }
62
+ parent.changeIndex(indexValue ?? key, state.index);
63
+ let index2 = indexValue ?? key;
79
64
  if ((_a = parent.children[index2]) == null ? void 0 : _a.href) {
80
65
  window.location.href = parent.children[index2].href;
81
66
  return;
@@ -88,7 +73,7 @@ const _sfc_main = create({
88
73
  location.replace(to);
89
74
  }
90
75
  }
91
- });
76
+ }
92
77
  return {
93
78
  state,
94
79
  active,
@@ -1,12 +1,7 @@
1
- /*!
2
- * @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
3
- * (c) 2022 @jdf2e.
4
- * Released under the MIT License.
5
- */
6
- import { c as createComponent } from "./component-1a609d46.js";
1
+ import { c as createComponent } from "./component-81a4c1d0.js";
7
2
  import { h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
8
3
  import { DownArrow } from "@nutui/icons-vue";
9
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-6eba1fc2.js";
4
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
10
5
  import "../locale/lang";
11
6
  const RenderColumn = {
12
7
  setup(props) {
@@ -4,18 +4,13 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- /*!
8
- * @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
9
- * (c) 2022 @jdf2e.
10
- * Released under the MIT License.
11
- */
12
- import { c as createComponent, T as TypeOfFun } from "./component-1a609d46.js";
7
+ import { c as createComponent, T as TypeOfFun } from "./component-81a4c1d0.js";
13
8
  import { ref, provide, computed, watch, onMounted, onActivated, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode, createVNode, toDisplayString } from "vue";
14
- import { p as pxCheck } from "./pxCheck-9763aaae.js";
15
- import { u as useRect } from "./index-84decee6.js";
16
- import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-2e585483.js";
9
+ import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
10
+ import { u as useRect } from "./index-29892cda.js";
11
+ import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-cc5c4086.js";
17
12
  import { JoySmile } from "@nutui/icons-vue";
18
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-6eba1fc2.js";
13
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
19
14
  import "../locale/lang";
20
15
  class Title {
21
16
  constructor() {
@@ -40,6 +35,7 @@ const _sfc_main = create({
40
35
  direction: {
41
36
  type: String,
42
37
  default: "horizontal"
38
+ //vertical
43
39
  },
44
40
  size: {
45
41
  type: String,
@@ -48,6 +44,7 @@ const _sfc_main = create({
48
44
  type: {
49
45
  type: String,
50
46
  default: "line"
47
+ //card、line、smile
51
48
  },
52
49
  titleScroll: {
53
50
  type: Boolean,
@@ -90,7 +87,7 @@ const _sfc_main = create({
90
87
  provide("autoHeight", { autoHeight: computed(() => props.autoHeight) });
91
88
  const titles = ref([]);
92
89
  const renderTitles = (vnodes) => {
93
- vnodes.forEach((vnode, index2) => {
90
+ vnodes.forEach((vnode, index) => {
94
91
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
95
92
  let type = vnode.type;
96
93
  type = type.name || type;
@@ -102,7 +99,7 @@ const _sfc_main = create({
102
99
  let camelPaneKeyType = TypeOfFun((_f = vnode.props) == null ? void 0 : _f["paneKey"]);
103
100
  let camelPaneIndex = camelPaneKeyType == "number" || camelPaneKeyType == "string" ? String((_g = vnode.props) == null ? void 0 : _g["paneKey"]) : null;
104
101
  title.title = (_h = vnode.props) == null ? void 0 : _h.title;
105
- title.paneKey = paneIndex || camelPaneIndex || String(index2);
102
+ title.paneKey = paneIndex || camelPaneIndex || String(index);
106
103
  title.disabled = (_i = vnode.props) == null ? void 0 : _i.disabled;
107
104
  }
108
105
  titles.value.push(title);
@@ -116,13 +113,13 @@ const _sfc_main = create({
116
113
  };
117
114
  const currentIndex = ref(props.modelValue || 0);
118
115
  const findTabsIndex = (value) => {
119
- let index2 = titles.value.findIndex((item) => item.paneKey == value);
116
+ let index = titles.value.findIndex((item) => item.paneKey == value);
120
117
  if (titles.value.length == 0) {
121
118
  console.error("[NutUI] <Tabs> 当前未找到 TabPane 组件元素 , 请检查 .");
122
- } else if (index2 == -1) {
119
+ } else if (index == -1) {
123
120
  console.error("[NutUI] <Tabs> 请检查 v-model 值是否为 paneKey ,如 paneKey 未设置,请采用下标控制 .");
124
121
  } else {
125
- currentIndex.value = index2;
122
+ currentIndex.value = index;
126
123
  }
127
124
  };
128
125
  const init = (vnodes = ((_a) => (_a = slots.default) == null ? void 0 : _a.call(slots))()) => {
@@ -188,12 +185,12 @@ const _sfc_main = create({
188
185
  };
189
186
  });
190
187
  const methods = {
191
- tabChange: (item, index2) => {
188
+ tabChange: (item, index) => {
192
189
  emit("click", item);
193
190
  if (item.disabled) {
194
191
  return;
195
192
  }
196
- currentIndex.value = index2;
193
+ currentIndex.value = index;
197
194
  emit("update:modelValue", item.paneKey);
198
195
  emit("change", item);
199
196
  }
@@ -231,11 +228,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
231
228
  class: normalizeClass(["nut-tabs__titles", { [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll, [_ctx.size]: _ctx.size }]),
232
229
  style: normalizeStyle(_ctx.tabsNavStyle)
233
230
  }, [
234
- _ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index2) => {
231
+ _ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index) => {
235
232
  return openBlock(), createElementBlock("view", {
236
233
  class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
237
234
  style: normalizeStyle(_ctx.titleStyle),
238
- onClick: ($event) => _ctx.tabChange(item, index2),
235
+ onClick: ($event) => _ctx.tabChange(item, index),
239
236
  key: item.paneKey
240
237
  }, [
241
238
  _ctx.type == "line" ? (openBlock(), createElementBlock("view", {
@@ -263,11 +260,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
263
260
  class: normalizeClass(["nut-tabs__titles", { [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll, [_ctx.size]: _ctx.size }]),
264
261
  style: normalizeStyle(_ctx.tabsNavStyle)
265
262
  }, [
266
- _ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index2) => {
263
+ _ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index) => {
267
264
  return openBlock(), createElementBlock("view", {
268
265
  class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
269
266
  style: normalizeStyle(_ctx.titleStyle),
270
- onClick: ($event) => _ctx.tabChange(item, index2),
267
+ onClick: ($event) => _ctx.tabChange(item, index),
271
268
  key: item.paneKey
272
269
  }, [
273
270
  _ctx.type == "line" ? (openBlock(), createElementBlock("view", {
@@ -296,8 +293,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
296
293
  ], 4)
297
294
  ], 2);
298
295
  }
299
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
296
+ const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
300
297
  export {
301
298
  Title,
302
- index as default
299
+ Tabs as default
303
300
  };
@@ -1,12 +1,7 @@
1
- /*!
2
- * @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
3
- * (c) 2022 @jdf2e.
4
- * Released under the MIT License.
5
- */
6
1
  import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode } from "vue";
7
- import { c as createComponent } from "./component-1a609d46.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
8
3
  import { Close } from "@nutui/icons-vue";
9
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-6eba1fc2.js";
4
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
10
5
  import "../locale/lang";
11
6
  const { componentName, create } = createComponent("tag");
12
7
  const _sfc_main = create({
@@ -1,11 +1,6 @@
1
- /*!
2
- * @nutui/nutui v4.0.0-beta.2 Mon Dec 26 2022 15:54:59 GMT+0800 (中国标准时间)
3
- * (c) 2022 @jdf2e.
4
- * Released under the MIT License.
5
- */
6
1
  import { ref, computed, onMounted, nextTick, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode } from "vue";
7
- import { c as createComponent } from "./component-1a609d46.js";
8
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-6eba1fc2.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 { componentName, create, translate } = createComponent("textarea");
11
6
  const _sfc_main = create({
@@ -72,6 +67,7 @@ const _sfc_main = create({
72
67
  const styles = computed(() => {
73
68
  return {
74
69
  textAlign: props.textAlign
70
+ // resize: props.autosize ? 'vertical' : 'none'
75
71
  };
76
72
  });
77
73
  const getContentHeight = () => {