@nutui/nutui 4.0.0-beta.9 → 4.0.1-2.beta-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (675) hide show
  1. package/CHANGELOG.md +203 -904
  2. package/README.md +35 -66
  3. package/dist/nutui.es.js +112 -119
  4. package/dist/nutui.js +16202 -0
  5. package/dist/nutui.umd.js +1 -0
  6. package/dist/packages/_es/ActionSheet.js +80 -100
  7. package/dist/packages/_es/Address.js +263 -345
  8. package/dist/packages/_es/AddressList.js +273 -433
  9. package/dist/packages/_es/Animate.js +46 -38
  10. package/dist/packages/_es/Audio.js +134 -180
  11. package/dist/packages/_es/AudioOperate.js +61 -52
  12. package/dist/packages/_es/Avatar.js +69 -75
  13. package/dist/packages/_es/AvatarGroup.js +24 -31
  14. package/dist/packages/_es/Backtop.js +59 -99
  15. package/dist/packages/_es/Badge.js +39 -46
  16. package/dist/packages/_es/Barrage.js +69 -128
  17. package/dist/packages/_es/Button.js +47 -66
  18. package/dist/packages/_es/Calendar.js +139 -156
  19. package/dist/packages/_es/CalendarItem.js +6 -6
  20. package/dist/packages/_es/Card.js +49 -70
  21. package/dist/packages/_es/Cascader.js +325 -434
  22. package/dist/packages/_es/Category.js +31 -39
  23. package/dist/packages/_es/CategoryPane.js +60 -83
  24. package/dist/packages/_es/Cell.js +57 -71
  25. package/dist/packages/_es/CellGroup.js +19 -27
  26. package/dist/packages/_es/Checkbox.js +109 -138
  27. package/dist/packages/_es/CheckboxGroup.js +38 -61
  28. package/dist/packages/_es/CircleProgress.js +67 -96
  29. package/dist/packages/_es/Col.js +23 -31
  30. package/dist/packages/_es/Collapse.js +39 -69
  31. package/dist/packages/_es/CollapseItem.js +91 -183
  32. package/dist/packages/_es/Comment.js +219 -288
  33. package/dist/packages/_es/ConfigProvider.js +41 -25
  34. package/dist/packages/_es/Countdown.js +108 -194
  35. package/dist/packages/_es/Countup.js +244 -425
  36. package/dist/packages/_es/DatePicker.js +171 -245
  37. package/dist/packages/_es/Dialog.js +166 -187
  38. package/dist/packages/_es/Divider.js +42 -40
  39. package/dist/packages/_es/Drag.js +70 -153
  40. package/dist/packages/_es/Ecard.js +64 -104
  41. package/dist/packages/_es/Elevator.js +144 -201
  42. package/dist/packages/_es/Ellipsis.js +97 -161
  43. package/dist/packages/_es/Empty.js +26 -39
  44. package/dist/packages/_es/FixedNav.js +93 -116
  45. package/dist/packages/_es/Form.js +108 -164
  46. package/dist/packages/_es/FormItem.js +48 -61
  47. package/dist/packages/_es/Grid.js +5 -6
  48. package/dist/packages/_es/GridItem.js +59 -84
  49. package/dist/packages/_es/Image.js +98 -88
  50. package/dist/packages/_es/ImagePreview.js +263 -393
  51. package/dist/packages/_es/Indicator.js +30 -34
  52. package/dist/packages/_es/InfiniteLoading.js +83 -125
  53. package/dist/packages/_es/Input.js +180 -226
  54. package/dist/packages/_es/InputNumber.js +83 -119
  55. package/dist/packages/_es/Interceptor-6e26b757.js +18 -0
  56. package/dist/packages/_es/Invoice.js +106 -112
  57. package/dist/packages/_es/Layout.js +3 -4
  58. package/dist/packages/_es/List.js +147 -90
  59. package/dist/packages/_es/Menu.js +96 -152
  60. package/dist/packages/_es/MenuItem.js +117 -153
  61. package/dist/packages/_es/Navbar.js +109 -119
  62. package/dist/packages/_es/Noticebar.js +214 -271
  63. package/dist/packages/_es/Notify.js +113 -148
  64. package/dist/packages/_es/NumberKeyboard.js +127 -202
  65. package/dist/packages/_es/Overlay.js +53 -60
  66. package/dist/packages/_es/Pagination.js +70 -100
  67. package/dist/packages/_es/Picker.js +278 -424
  68. package/dist/packages/_es/Popover.js +122 -226
  69. package/dist/packages/_es/Popup.js +4 -4
  70. package/dist/packages/_es/Price.js +48 -81
  71. package/dist/packages/_es/Progress.js +75 -88
  72. package/dist/packages/_es/PullRefresh.js +103 -167
  73. package/dist/packages/_es/Radio.js +4 -4
  74. package/dist/packages/_es/RadioGroup.js +3 -3
  75. package/dist/packages/_es/Range.js +205 -329
  76. package/dist/packages/_es/Rate.js +99 -127
  77. package/dist/packages/_es/Row.js +21 -27
  78. package/dist/packages/_es/Searchbar.js +139 -163
  79. package/dist/packages/_es/ShortPassword.js +71 -94
  80. package/dist/packages/_es/SideNavbar.js +49 -59
  81. package/dist/packages/_es/SideNavbarItem.js +22 -32
  82. package/dist/packages/_es/Signature.js +83 -117
  83. package/dist/packages/_es/Skeleton.js +110 -122
  84. package/dist/packages/_es/Sku.js +273 -330
  85. package/dist/packages/_es/Step.js +60 -69
  86. package/dist/packages/_es/Steps.js +26 -31
  87. package/dist/packages/_es/Sticky.js +4 -4
  88. package/dist/packages/_es/SubSideNavbar.js +52 -56
  89. package/dist/packages/_es/Swipe.js +84 -137
  90. package/dist/packages/_es/Swiper.js +176 -314
  91. package/dist/packages/_es/SwiperItem.js +28 -44
  92. package/dist/packages/_es/Switch.js +57 -66
  93. package/dist/packages/_es/TabPane.js +32 -20
  94. package/dist/packages/_es/Tabbar.js +41 -52
  95. package/dist/packages/_es/TabbarItem.js +66 -81
  96. package/dist/packages/_es/Table.js +130 -171
  97. package/dist/packages/_es/Tabs.js +286 -205
  98. package/dist/packages/_es/Tag.js +44 -61
  99. package/dist/packages/_es/Textarea.js +81 -104
  100. package/dist/packages/_es/TimeDetail.js +49 -61
  101. package/dist/packages/_es/TimePannel.js +35 -31
  102. package/dist/packages/_es/TimeSelect.js +47 -68
  103. package/dist/packages/_es/Toast.js +158 -204
  104. package/dist/packages/_es/Tour.js +141 -176
  105. package/dist/packages/_es/TrendArrow.js +57 -58
  106. package/dist/packages/_es/Uploader.js +239 -360
  107. package/dist/packages/_es/Video.js +209 -298
  108. package/dist/packages/_es/Watermark.js +84 -98
  109. package/dist/packages/_es/_plugin-vue_export-helper-dad06003.js +9 -0
  110. package/dist/packages/_es/common-d218746f.js +116 -0
  111. package/dist/packages/_es/component-234624bc.js +89 -0
  112. package/dist/packages/_es/index-14dfadc4.js +561 -0
  113. package/dist/packages/_es/index-192a3ef6.js +29 -0
  114. package/dist/packages/_es/index-360c5092.js +210 -0
  115. package/dist/packages/_es/index-496e6e05.js +24 -0
  116. package/dist/packages/_es/index-50eed3d9.js +7 -0
  117. package/dist/packages/_es/index-53ec2d4d.js +34 -0
  118. package/dist/packages/_es/index-fadb0974.js +8 -0
  119. package/dist/packages/_es/index.vue_vue_type_script_lang-1139b29a.js +43 -0
  120. package/dist/packages/_es/index.vue_vue_type_script_lang-43b774dd.js +77 -0
  121. package/dist/packages/_es/index.vue_vue_type_script_lang-f44c159d.js +110 -0
  122. package/dist/packages/_es/mountComponent-6d4ff200.js +23 -0
  123. package/dist/packages/_es/pxCheck-38173291.js +4 -0
  124. package/dist/packages/_es/raf-a74f1a06.js +16 -0
  125. package/dist/packages/_es/renderIcon-47498b32.js +5 -0
  126. package/dist/packages/actionsheet/index.scss +2 -0
  127. package/dist/packages/actionsheet/style.mjs +1 -2
  128. package/dist/packages/address/index.scss +5 -2
  129. package/dist/packages/address/style.mjs +1 -3
  130. package/dist/packages/addresslist/index.scss +17 -3
  131. package/dist/packages/addresslist/style.mjs +1 -2
  132. package/dist/packages/animate/style.mjs +1 -0
  133. package/dist/packages/audio/index.scss +3 -1
  134. package/dist/packages/audio/style.mjs +1 -1
  135. package/dist/packages/audiooperate/index.scss +2 -0
  136. package/dist/packages/audiooperate/style.mjs +1 -1
  137. package/dist/packages/avatar/index.scss +3 -1
  138. package/dist/packages/avatar/style.mjs +1 -0
  139. package/dist/packages/avatargroup/index.scss +1 -1
  140. package/dist/packages/avatargroup/style.mjs +1 -0
  141. package/dist/packages/backtop/style.mjs +1 -0
  142. package/dist/packages/badge/index.scss +10 -3
  143. package/dist/packages/badge/style.mjs +1 -0
  144. package/dist/packages/barrage/style.mjs +1 -0
  145. package/dist/packages/button/index.scss +64 -2
  146. package/dist/packages/button/style.mjs +1 -0
  147. package/dist/packages/calendar/index.scss +17 -5
  148. package/dist/packages/calendar/style.mjs +1 -3
  149. package/dist/packages/calendaritem/style.mjs +1 -0
  150. package/dist/packages/card/index.scss +3 -0
  151. package/dist/packages/card/style.mjs +1 -2
  152. package/dist/packages/cascader/index.scss +4 -0
  153. package/dist/packages/cascader/style.mjs +1 -5
  154. package/dist/packages/category/style.mjs +1 -0
  155. package/dist/packages/categorypane/style.mjs +1 -0
  156. package/dist/packages/cell/index.scss +2 -0
  157. package/dist/packages/cell/style.mjs +1 -0
  158. package/dist/packages/cellgroup/index.scss +1 -1
  159. package/dist/packages/cellgroup/style.mjs +1 -0
  160. package/dist/packages/checkbox/index.scss +41 -0
  161. package/dist/packages/checkbox/style.mjs +1 -0
  162. package/dist/packages/checkboxgroup/style.mjs +1 -0
  163. package/dist/packages/circleprogress/style.mjs +1 -0
  164. package/dist/packages/col/index.scss +2 -2
  165. package/dist/packages/col/style.mjs +1 -0
  166. package/dist/packages/collapse/style.mjs +1 -0
  167. package/dist/packages/collapseitem/style.mjs +1 -0
  168. package/dist/packages/comment/index.scss +14 -7
  169. package/dist/packages/comment/style.mjs +1 -1
  170. package/dist/packages/configprovider/style.mjs +1 -0
  171. package/dist/packages/countdown/style.mjs +1 -0
  172. package/dist/packages/countup/index.scss +1 -0
  173. package/dist/packages/countup/style.mjs +1 -0
  174. package/dist/packages/datepicker/index.scss +1 -2
  175. package/dist/packages/datepicker/style.mjs +1 -3
  176. package/dist/packages/dialog/index.scss +11 -0
  177. package/dist/packages/dialog/style.mjs +1 -3
  178. package/dist/packages/divider/style.mjs +1 -0
  179. package/dist/packages/drag/style.mjs +1 -0
  180. package/dist/packages/ecard/index.scss +22 -2
  181. package/dist/packages/ecard/style.mjs +1 -1
  182. package/dist/packages/elevator/index.scss +14 -0
  183. package/dist/packages/elevator/style.mjs +1 -0
  184. package/dist/packages/ellipsis/style.mjs +1 -0
  185. package/dist/packages/empty/style.mjs +1 -0
  186. package/dist/packages/fixednav/index.scss +2 -0
  187. package/dist/packages/fixednav/style.mjs +1 -1
  188. package/dist/packages/form/index.scss +1 -2
  189. package/dist/packages/form/style.mjs +1 -1
  190. package/dist/packages/formitem/index.scss +3 -0
  191. package/dist/packages/formitem/style.mjs +1 -1
  192. package/dist/packages/grid/style.mjs +1 -0
  193. package/dist/packages/griditem/style.mjs +1 -0
  194. package/dist/packages/icon/index.scss +1 -0
  195. package/dist/packages/icon/style.mjs +1 -0
  196. package/dist/packages/image/style.mjs +1 -0
  197. package/dist/packages/imagepreview/index.scss +5 -5
  198. package/dist/packages/imagepreview/style.mjs +1 -5
  199. package/dist/packages/indicator/index.scss +4 -4
  200. package/dist/packages/indicator/style.mjs +1 -0
  201. package/dist/packages/infiniteloading/style.mjs +1 -0
  202. package/dist/packages/input/index.scss +17 -13
  203. package/dist/packages/input/style.mjs +1 -0
  204. package/dist/packages/inputnumber/index.scss +5 -1
  205. package/dist/packages/inputnumber/style.mjs +1 -0
  206. package/dist/packages/invoice/index.scss +6 -0
  207. package/dist/packages/invoice/style.mjs +1 -7
  208. package/dist/packages/layout/style.mjs +1 -0
  209. package/dist/packages/list/index.scss +8 -8
  210. package/dist/packages/list/style.mjs +1 -0
  211. package/dist/packages/locale/lang/zh-CN.js +1 -1
  212. package/dist/packages/menu/style.mjs +1 -0
  213. package/dist/packages/menuitem/index.scss +9 -10
  214. package/dist/packages/menuitem/style.mjs +1 -2
  215. package/dist/packages/navbar/index.scss +0 -1
  216. package/dist/packages/navbar/style.mjs +1 -0
  217. package/dist/packages/noticebar/index.scss +25 -12
  218. package/dist/packages/noticebar/style.mjs +1 -0
  219. package/dist/packages/notify/index.scss +2 -0
  220. package/dist/packages/notify/style.mjs +1 -2
  221. package/dist/packages/numberkeyboard/index.scss +2 -0
  222. package/dist/packages/numberkeyboard/style.mjs +1 -2
  223. package/dist/packages/overlay/style.mjs +1 -0
  224. package/dist/packages/pagination/style.mjs +1 -0
  225. package/dist/packages/picker/index.scss +4 -9
  226. package/dist/packages/picker/style.mjs +1 -2
  227. package/dist/packages/popover/index.scss +2 -0
  228. package/dist/packages/popover/style.mjs +1 -2
  229. package/dist/packages/popup/index.scss +2 -0
  230. package/dist/packages/popup/style.mjs +1 -1
  231. package/dist/packages/price/index.scss +5 -10
  232. package/dist/packages/price/style.mjs +1 -0
  233. package/dist/packages/progress/index.scss +8 -6
  234. package/dist/packages/progress/style.mjs +1 -0
  235. package/dist/packages/pullrefresh/index.scss +1 -1
  236. package/dist/packages/pullrefresh/style.mjs +1 -0
  237. package/dist/packages/radio/index.scss +14 -2
  238. package/dist/packages/radio/style.mjs +1 -0
  239. package/dist/packages/radiogroup/style.mjs +1 -0
  240. package/dist/packages/range/index.scss +6 -3
  241. package/dist/packages/range/style.mjs +1 -0
  242. package/dist/packages/rate/index.scss +7 -9
  243. package/dist/packages/rate/style.mjs +1 -0
  244. package/dist/packages/row/style.mjs +1 -0
  245. package/dist/packages/searchbar/index.scss +47 -24
  246. package/dist/packages/searchbar/style.mjs +1 -0
  247. package/dist/packages/shortpassword/index.scss +18 -0
  248. package/dist/packages/shortpassword/style.mjs +1 -2
  249. package/dist/packages/sidenavbar/style.mjs +1 -0
  250. package/dist/packages/sidenavbaritem/style.mjs +1 -0
  251. package/dist/packages/signature/index.scss +4 -2
  252. package/dist/packages/signature/style.mjs +1 -1
  253. package/dist/packages/skeleton/index.scss +2 -0
  254. package/dist/packages/skeleton/style.mjs +1 -1
  255. package/dist/packages/sku/index.scss +20 -2
  256. package/dist/packages/sku/style.mjs +1 -4
  257. package/dist/packages/step/index.scss +1 -9
  258. package/dist/packages/step/style.mjs +1 -0
  259. package/dist/packages/steps/style.mjs +1 -0
  260. package/dist/packages/sticky/index.scss +1 -0
  261. package/dist/packages/sticky/style.mjs +1 -0
  262. package/dist/packages/subsidenavbar/style.mjs +1 -0
  263. package/dist/packages/swipe/style.mjs +1 -0
  264. package/dist/packages/swiper/style.mjs +1 -0
  265. package/dist/packages/swiperitem/style.mjs +1 -0
  266. package/dist/packages/switch/index.scss +7 -0
  267. package/dist/packages/switch/style.mjs +1 -0
  268. package/dist/packages/tabbar/style.mjs +1 -0
  269. package/dist/packages/tabbaritem/index.scss +8 -0
  270. package/dist/packages/tabbaritem/style.mjs +1 -1
  271. package/dist/packages/table/style.mjs +1 -0
  272. package/dist/packages/tabpane/style.mjs +1 -0
  273. package/dist/packages/tabs/index.scss +36 -2
  274. package/dist/packages/tabs/style.mjs +1 -1
  275. package/dist/packages/tag/style.mjs +1 -0
  276. package/dist/packages/textarea/index.scss +9 -1
  277. package/dist/packages/textarea/style.mjs +1 -0
  278. package/dist/packages/timedetail/index.scss +14 -6
  279. package/dist/packages/timedetail/style.mjs +1 -0
  280. package/dist/packages/timepannel/style.mjs +1 -0
  281. package/dist/packages/timeselect/index.scss +2 -0
  282. package/dist/packages/timeselect/style.mjs +1 -2
  283. package/dist/packages/toast/style.mjs +1 -0
  284. package/dist/packages/tour/index.scss +5 -0
  285. package/dist/packages/tour/style.mjs +1 -3
  286. package/dist/packages/trendarrow/style.mjs +1 -0
  287. package/dist/packages/uploader/index.scss +31 -17
  288. package/dist/packages/uploader/style.mjs +1 -2
  289. package/dist/packages/video/style.mjs +1 -0
  290. package/dist/packages/watermark/style.mjs +1 -0
  291. package/dist/resolver/index.d.ts +6 -0
  292. package/dist/resolver/index.js +1 -0
  293. package/dist/resolver/index.mjs +24 -0
  294. package/dist/resolver/package.json +20 -0
  295. package/dist/smartips/web-types.json +811 -793
  296. package/dist/style.css +1 -1
  297. package/dist/styles/reset.css +3 -0
  298. package/dist/styles/themes/default.scss +161 -59
  299. package/dist/styles/themes/jdb.scss +161 -58
  300. package/dist/styles/themes/jddkh.scss +161 -58
  301. package/dist/styles/themes/jdt.scss +161 -59
  302. package/dist/styles/variables-jdb.scss +16 -15
  303. package/dist/styles/variables-jddkh.scss +16 -14
  304. package/dist/styles/variables-jdt.scss +17 -15
  305. package/dist/styles/variables.scss +24 -26
  306. package/dist/types/__VUE/actionsheet/index.vue.d.ts +18 -9
  307. package/dist/types/__VUE/address/index.vue.d.ts +20 -1
  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/animate/index.vue.d.ts +6 -0
  312. package/dist/types/__VUE/audiooperate/index.vue.d.ts +4 -4
  313. package/dist/types/__VUE/badge/index.vue.d.ts +9 -0
  314. package/dist/types/__VUE/barrage/index.vue.d.ts +2 -4
  315. package/dist/types/__VUE/button/type.d.ts +1 -0
  316. package/dist/types/__VUE/calendaritem/type.d.ts +1 -0
  317. package/dist/types/__VUE/card/index.vue.d.ts +0 -21
  318. package/dist/types/__VUE/cascader/index.vue.d.ts +18 -0
  319. package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
  320. package/dist/types/__VUE/collapse/index.vue.d.ts +35 -9
  321. package/dist/types/__VUE/collapseitem/index.vue.d.ts +117 -11
  322. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +2 -2
  323. package/dist/types/__VUE/comment/index.vue.d.ts +4 -4
  324. package/dist/types/__VUE/configprovider/index.vue.d.ts +2 -2
  325. package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
  326. package/dist/types/__VUE/dialog/index.d.ts +1 -0
  327. package/dist/types/__VUE/dialog/index.vue.d.ts +19 -0
  328. package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
  329. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
  330. package/dist/types/__VUE/image/index.vue.d.ts +14 -3
  331. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +9 -0
  332. package/dist/types/__VUE/imagepreview/index.vue.d.ts +1 -1
  333. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +0 -18
  334. package/dist/types/__VUE/input/index.vue.d.ts +32 -40
  335. package/dist/types/__VUE/list/index.vue.d.ts +42 -13
  336. package/dist/types/__VUE/list/type.d.ts +13 -0
  337. package/dist/types/__VUE/menu/index.vue.d.ts +0 -2
  338. package/dist/types/__VUE/menuitem/index.vue.d.ts +9 -17
  339. package/dist/types/__VUE/navbar/index.vue.d.ts +1 -1
  340. package/dist/types/__VUE/noticebar/index.vue.d.ts +11 -22
  341. package/dist/types/__VUE/picker/common.d.ts +2 -0
  342. package/dist/types/__VUE/picker/usePicker.d.ts +1 -1
  343. package/dist/types/__VUE/popover/index.vue.d.ts +0 -9
  344. package/dist/types/__VUE/popup/common.d.ts +8 -0
  345. package/dist/types/__VUE/popup/index.vue.d.ts +18 -0
  346. package/dist/types/__VUE/popup/props.d.ts +8 -0
  347. package/dist/types/__VUE/price/index.vue.d.ts +9 -0
  348. package/dist/types/__VUE/progress/index.vue.d.ts +1 -0
  349. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -9
  350. package/dist/types/__VUE/rate/index.vue.d.ts +122 -9
  351. package/dist/types/__VUE/row/index.vue.d.ts +1 -1
  352. package/dist/types/__VUE/searchbar/index.vue.d.ts +122 -6
  353. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  354. package/dist/types/__VUE/skeleton/index.vue.d.ts +2 -2
  355. package/dist/types/__VUE/sku/index.vue.d.ts +18 -0
  356. package/dist/types/__VUE/swiper/index.vue.d.ts +9 -11
  357. package/dist/types/__VUE/switch/index.vue.d.ts +1 -0
  358. package/dist/types/__VUE/table/common.d.ts +62 -9
  359. package/dist/types/__VUE/table/index.vue.d.ts +13 -11
  360. package/dist/types/__VUE/table/renderColumn.d.ts +9 -9
  361. package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -4
  362. package/dist/types/__VUE/tabs/hooks.d.ts +12 -0
  363. package/dist/types/__VUE/tabs/index.vue.d.ts +35 -5
  364. package/dist/types/__VUE/tabs/types.d.ts +12 -0
  365. package/dist/types/__VUE/textarea/index.vue.d.ts +5 -0
  366. package/dist/types/__VUE/timedetail/index.vue.d.ts +0 -9
  367. package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
  368. package/dist/types/__VUE/toast/index.vue.d.ts +11 -4
  369. package/dist/types/__VUE/tour/index.vue.d.ts +9 -9
  370. package/dist/types/__VUE/uploader/type.d.ts +2 -1
  371. package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
  372. package/dist/types/index.d.ts +1 -2
  373. package/dist/types/resolver/index.d.ts +6 -0
  374. package/dist/types/utils/date.d.ts +4 -0
  375. package/dist/types/utils/useTaroRect/index.d.ts +1 -1
  376. package/dist/types/utils/util.d.ts +1 -1
  377. package/package.json +15 -99
  378. package/dist/nutui.umd.cjs +0 -7
  379. package/dist/packages/_es/Loading-5f2ef345.js +0 -59
  380. package/dist/packages/_es/Loading-ff1ade5e.js +0 -59
  381. package/dist/packages/_es/_plugin-vue_export-helper-214bd398.js +0 -15
  382. package/dist/packages/_es/_plugin-vue_export-helper-3119770d.js +0 -15
  383. package/dist/packages/_es/_plugin-vue_export-helper-40ecb205.js +0 -15
  384. package/dist/packages/_es/_plugin-vue_export-helper-cabb815c.js +0 -15
  385. package/dist/packages/_es/_plugin-vue_export-helper-cc2b3d55.js +0 -10
  386. package/dist/packages/_es/common-1144cf18.js +0 -142
  387. package/dist/packages/_es/common-33d6538d.js +0 -142
  388. package/dist/packages/_es/common-38afc79e.js +0 -142
  389. package/dist/packages/_es/common-ceb98554.js +0 -137
  390. package/dist/packages/_es/common-fcbd940e.js +0 -142
  391. package/dist/packages/_es/component-555f9132.js +0 -150
  392. package/dist/packages/_es/component-81a4c1d0.js +0 -145
  393. package/dist/packages/_es/component-93f40b7f.js +0 -144
  394. package/dist/packages/_es/component-cb778481.js +0 -150
  395. package/dist/packages/_es/component-f9e4b05e.js +0 -144
  396. package/dist/packages/_es/index-122e380e.js +0 -15
  397. package/dist/packages/_es/index-15d5ca2c.js +0 -35
  398. package/dist/packages/_es/index-16f572cc.js +0 -52
  399. package/dist/packages/_es/index-18e7c77e.js +0 -38
  400. package/dist/packages/_es/index-22af3a75.js +0 -35
  401. package/dist/packages/_es/index-29892cda.js +0 -33
  402. package/dist/packages/_es/index-2d3e73a7.js +0 -239
  403. package/dist/packages/_es/index-350a8abd.js +0 -809
  404. package/dist/packages/_es/index-375f2695.js +0 -15
  405. package/dist/packages/_es/index-43c34ac6.js +0 -30
  406. package/dist/packages/_es/index-54d03fc1.js +0 -8
  407. package/dist/packages/_es/index-57aa518c.js +0 -13
  408. package/dist/packages/_es/index-65e55319.js +0 -72
  409. package/dist/packages/_es/index-673e467d.js +0 -72
  410. package/dist/packages/_es/index-69b79b10.js +0 -52
  411. package/dist/packages/_es/index-7386d8ea.js +0 -35
  412. package/dist/packages/_es/index-75be4de5.js +0 -72
  413. package/dist/packages/_es/index-7653e348.js +0 -814
  414. package/dist/packages/_es/index-79c5dc33.js +0 -10
  415. package/dist/packages/_es/index-7a7385e4.js +0 -67
  416. package/dist/packages/_es/index-83f367f2.js +0 -15
  417. package/dist/packages/_es/index-a0ae7438.js +0 -72
  418. package/dist/packages/_es/index-abb46652.js +0 -13
  419. package/dist/packages/_es/index-bd90ef5b.js +0 -38
  420. package/dist/packages/_es/index-da7aa231.js +0 -234
  421. package/dist/packages/_es/index-dd23f7fc.js +0 -35
  422. package/dist/packages/_es/index-ec1281d1.js +0 -15
  423. package/dist/packages/_es/index-ee55d99f.js +0 -814
  424. package/dist/packages/_es/index-f9640059.js +0 -239
  425. package/dist/packages/_es/index.taro-15624a72.js +0 -833
  426. package/dist/packages/_es/index.taro-2ce92fc8.js +0 -76
  427. package/dist/packages/_es/index.taro-356b6989.js +0 -238
  428. package/dist/packages/_es/index.taro-5564033f.js +0 -833
  429. package/dist/packages/_es/index.taro-be0723aa.js +0 -76
  430. package/dist/packages/_es/index.taro-da1bc684.js +0 -238
  431. package/dist/packages/_es/index.taro.vue_vue_type_script_lang-5696dfc0.js +0 -102
  432. package/dist/packages/_es/index.taro.vue_vue_type_script_lang-5b67ab83.js +0 -102
  433. package/dist/packages/_es/index.vue_vue_type_script_lang-1291fceb.js +0 -45
  434. package/dist/packages/_es/index.vue_vue_type_script_lang-164ba0ab.js +0 -102
  435. package/dist/packages/_es/index.vue_vue_type_script_lang-1c056efc.js +0 -156
  436. package/dist/packages/_es/index.vue_vue_type_script_lang-2c5dd6ac.js +0 -50
  437. package/dist/packages/_es/index.vue_vue_type_script_lang-3bc78a6d.js +0 -156
  438. package/dist/packages/_es/index.vue_vue_type_script_lang-630bc089.js +0 -50
  439. package/dist/packages/_es/index.vue_vue_type_script_lang-ba9e696d.js +0 -50
  440. package/dist/packages/_es/index.vue_vue_type_script_lang-cab1cdc4.js +0 -102
  441. package/dist/packages/_es/index.vue_vue_type_script_lang-cc5c4086.js +0 -151
  442. package/dist/packages/_es/index.vue_vue_type_script_lang-d4c88f85.js +0 -97
  443. package/dist/packages/_es/index.vue_vue_type_script_lang-f91aa3ff.js +0 -50
  444. package/dist/packages/_es/interceptor-5d3d8b0a.js +0 -34
  445. package/dist/packages/_es/interceptor-956b24fc.js +0 -29
  446. package/dist/packages/_es/interceptor-bf7033c2.js +0 -34
  447. package/dist/packages/_es/interceptor-ccd1403c.js +0 -34
  448. package/dist/packages/_es/interceptor-dbee5851.js +0 -34
  449. package/dist/packages/_es/mountComponent-1316c4a2.js +0 -44
  450. package/dist/packages/_es/mountComponent-1ece4110.js +0 -39
  451. package/dist/packages/_es/mountComponent-3f8ea19f.js +0 -44
  452. package/dist/packages/_es/pxCheck-110c0d58.js +0 -11
  453. package/dist/packages/_es/pxCheck-42d1a00f.js +0 -11
  454. package/dist/packages/_es/pxCheck-62a0c829.js +0 -11
  455. package/dist/packages/_es/pxCheck-70f351cb.js +0 -11
  456. package/dist/packages/_es/pxCheck-c6b9f6b7.js +0 -6
  457. package/dist/packages/_es/raf-182636f4.js +0 -30
  458. package/dist/packages/_es/raf-2ee3bcbb.js +0 -30
  459. package/dist/packages/_es/raf-6ea498df.js +0 -21
  460. package/dist/packages/_es/raf-729dad54.js +0 -25
  461. package/dist/packages/_es/raf-8518c796.js +0 -21
  462. package/dist/packages/_es/renderIcon-0d8f6335.js +0 -14
  463. package/dist/packages/_es/renderIcon-1be33355.js +0 -14
  464. package/dist/packages/_es/renderIcon-3d0fd47c.js +0 -9
  465. package/dist/packages/_es/renderIcon-ba0fcba3.js +0 -14
  466. package/dist/packages/_es/renderIcon-bde9e715.js +0 -14
  467. package/dist/packages/_es/style.css +0 -16
  468. package/dist/packages/_es/style_icon-299fd467.js +0 -6
  469. package/dist/packages/_es/style_icon-8872f331.js +0 -6
  470. package/dist/packages/actionsheet/style.cjs +0 -3
  471. package/dist/packages/address/style.cjs +0 -4
  472. package/dist/packages/addresslist/style.cjs +0 -3
  473. package/dist/packages/animate/style.cjs +0 -1
  474. package/dist/packages/audio/style.cjs +0 -2
  475. package/dist/packages/audiooperate/style.cjs +0 -2
  476. package/dist/packages/avatar/style.cjs +0 -1
  477. package/dist/packages/avatargroup/style.cjs +0 -1
  478. package/dist/packages/backtop/style.cjs +0 -1
  479. package/dist/packages/badge/style.cjs +0 -1
  480. package/dist/packages/barrage/style.cjs +0 -1
  481. package/dist/packages/button/style.cjs +0 -1
  482. package/dist/packages/calendar/style.cjs +0 -4
  483. package/dist/packages/calendaritem/style.cjs +0 -1
  484. package/dist/packages/card/style.cjs +0 -3
  485. package/dist/packages/cascader/style.cjs +0 -6
  486. package/dist/packages/category/style.cjs +0 -1
  487. package/dist/packages/categorypane/style.cjs +0 -1
  488. package/dist/packages/cell/style.cjs +0 -1
  489. package/dist/packages/cellgroup/style.cjs +0 -1
  490. package/dist/packages/checkbox/style.cjs +0 -1
  491. package/dist/packages/checkboxgroup/style.cjs +0 -1
  492. package/dist/packages/circleprogress/style.cjs +0 -1
  493. package/dist/packages/col/style.cjs +0 -1
  494. package/dist/packages/collapse/style.cjs +0 -1
  495. package/dist/packages/collapseitem/style.cjs +0 -1
  496. package/dist/packages/comment/style.cjs +0 -2
  497. package/dist/packages/configprovider/style.cjs +0 -1
  498. package/dist/packages/countdown/style.cjs +0 -1
  499. package/dist/packages/countup/style.cjs +0 -1
  500. package/dist/packages/datepicker/style.cjs +0 -4
  501. package/dist/packages/dialog/style.cjs +0 -4
  502. package/dist/packages/divider/style.cjs +0 -1
  503. package/dist/packages/drag/style.cjs +0 -1
  504. package/dist/packages/ecard/style.cjs +0 -2
  505. package/dist/packages/elevator/style.cjs +0 -1
  506. package/dist/packages/ellipsis/style.cjs +0 -1
  507. package/dist/packages/empty/style.cjs +0 -1
  508. package/dist/packages/fixednav/style.cjs +0 -2
  509. package/dist/packages/form/style.cjs +0 -2
  510. package/dist/packages/formitem/style.cjs +0 -2
  511. package/dist/packages/grid/style.cjs +0 -1
  512. package/dist/packages/griditem/style.cjs +0 -1
  513. package/dist/packages/icon/style.cjs +0 -1
  514. package/dist/packages/image/style.cjs +0 -1
  515. package/dist/packages/imagepreview/style.cjs +0 -6
  516. package/dist/packages/indicator/style.cjs +0 -1
  517. package/dist/packages/infiniteloading/style.cjs +0 -1
  518. package/dist/packages/input/style.cjs +0 -1
  519. package/dist/packages/inputnumber/style.cjs +0 -1
  520. package/dist/packages/invoice/style.cjs +0 -8
  521. package/dist/packages/layout/style.cjs +0 -1
  522. package/dist/packages/list/style.cjs +0 -1
  523. package/dist/packages/locale/lang/baseLang-0e7bcba4.js +0 -10
  524. package/dist/packages/locale/lang/baseLang-5db74119.js +0 -10
  525. package/dist/packages/locale/lang/baseLang-6070c617.js +0 -10
  526. package/dist/packages/locale/lang/baseLang-8d65df5e.js +0 -10
  527. package/dist/packages/menu/style.cjs +0 -1
  528. package/dist/packages/menuitem/style.cjs +0 -3
  529. package/dist/packages/navbar/style.cjs +0 -1
  530. package/dist/packages/noticebar/style.cjs +0 -1
  531. package/dist/packages/notify/style.cjs +0 -3
  532. package/dist/packages/numberkeyboard/style.cjs +0 -3
  533. package/dist/packages/overlay/style.cjs +0 -1
  534. package/dist/packages/pagination/style.cjs +0 -1
  535. package/dist/packages/picker/style.cjs +0 -3
  536. package/dist/packages/popover/style.cjs +0 -3
  537. package/dist/packages/popup/style.cjs +0 -2
  538. package/dist/packages/price/style.cjs +0 -1
  539. package/dist/packages/progress/style.cjs +0 -1
  540. package/dist/packages/pullrefresh/style.cjs +0 -1
  541. package/dist/packages/radio/style.cjs +0 -1
  542. package/dist/packages/radiogroup/style.cjs +0 -1
  543. package/dist/packages/range/style.cjs +0 -1
  544. package/dist/packages/rate/style.cjs +0 -1
  545. package/dist/packages/row/style.cjs +0 -1
  546. package/dist/packages/searchbar/style.cjs +0 -1
  547. package/dist/packages/shortpassword/style.cjs +0 -3
  548. package/dist/packages/sidenavbar/style.cjs +0 -1
  549. package/dist/packages/sidenavbaritem/style.cjs +0 -1
  550. package/dist/packages/signature/style.cjs +0 -2
  551. package/dist/packages/skeleton/style.cjs +0 -2
  552. package/dist/packages/sku/style.cjs +0 -5
  553. package/dist/packages/step/style.cjs +0 -1
  554. package/dist/packages/steps/style.cjs +0 -1
  555. package/dist/packages/sticky/style.cjs +0 -1
  556. package/dist/packages/subsidenavbar/style.cjs +0 -1
  557. package/dist/packages/swipe/style.cjs +0 -1
  558. package/dist/packages/swiper/style.cjs +0 -1
  559. package/dist/packages/swiperitem/style.cjs +0 -1
  560. package/dist/packages/switch/style.cjs +0 -1
  561. package/dist/packages/tabbar/style.cjs +0 -1
  562. package/dist/packages/tabbaritem/style.cjs +0 -2
  563. package/dist/packages/table/style.cjs +0 -1
  564. package/dist/packages/tabpane/style.cjs +0 -1
  565. package/dist/packages/tabs/style.cjs +0 -2
  566. package/dist/packages/tag/style.cjs +0 -1
  567. package/dist/packages/textarea/style.cjs +0 -1
  568. package/dist/packages/timedetail/style.cjs +0 -1
  569. package/dist/packages/timepannel/style.cjs +0 -1
  570. package/dist/packages/timeselect/style.cjs +0 -3
  571. package/dist/packages/toast/style.cjs +0 -1
  572. package/dist/packages/tour/style.cjs +0 -4
  573. package/dist/packages/trendarrow/style.cjs +0 -1
  574. package/dist/packages/uploader/style.cjs +0 -3
  575. package/dist/packages/video/style.cjs +0 -1
  576. package/dist/packages/watermark/style.cjs +0 -1
  577. package/dist/smartips/attributes.json +0 -2814
  578. package/dist/smartips/tags.json +0 -1048
  579. package/dist/styles/theme-deafult.scss +0 -919
  580. package/dist/styles/theme-jdt.scss +0 -892
  581. package/dist/styles/variables-var.scss +0 -854
  582. package/dist/types/__VUE/actionsheet/index.taro.vue.d.ts +0 -292
  583. package/dist/types/__VUE/address/index.taro.vue.d.ts +0 -377
  584. package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +0 -26
  585. package/dist/types/__VUE/addresslist/index.taro.vue.d.ts +0 -83
  586. package/dist/types/__VUE/animate/index.taro.vue.d.ts +0 -54
  587. package/dist/types/__VUE/avatar/index.taro.vue.d.ts +0 -76
  588. package/dist/types/__VUE/avatargroup/index.taro.vue.d.ts +0 -92
  589. package/dist/types/__VUE/backtop/index.taro.vue.d.ts +0 -76
  590. package/dist/types/__VUE/badge/index.taro.vue.d.ts +0 -93
  591. package/dist/types/__VUE/barrage/index.taro.vue.d.ts +0 -81
  592. package/dist/types/__VUE/button/index.taro.vue.d.ts +0 -117
  593. package/dist/types/__VUE/calendar/index.taro.vue.d.ts +0 -187
  594. package/dist/types/__VUE/calendaritem/index.taro.vue.d.ts +0 -217
  595. package/dist/types/__VUE/card/index.taro.vue.d.ts +0 -89
  596. package/dist/types/__VUE/cascader/cascader-item.taro.vue.d.ts +0 -77
  597. package/dist/types/__VUE/cascader/index.taro.vue.d.ts +0 -245
  598. package/dist/types/__VUE/category/index.taro.vue.d.ts +0 -42
  599. package/dist/types/__VUE/categorypane/index.taro.vue.d.ts +0 -54
  600. package/dist/types/__VUE/cell/index.taro.vue.d.ts +0 -124
  601. package/dist/types/__VUE/checkbox/index.taro.vue.d.ts +0 -12
  602. package/dist/types/__VUE/circleprogress/index.taro.vue.d.ts +0 -93
  603. package/dist/types/__VUE/collapse/index.taro.vue.d.ts +0 -38
  604. package/dist/types/__VUE/collapseitem/index.taro.vue.d.ts +0 -111
  605. package/dist/types/__VUE/comment/index.taro.vue.d.ts +0 -119
  606. package/dist/types/__VUE/configprovider/index.taro.vue.d.ts +0 -45
  607. package/dist/types/__VUE/countdown/index.taro.vue.d.ts +0 -103
  608. package/dist/types/__VUE/countup/index.taro.vue.d.ts +0 -213
  609. package/dist/types/__VUE/datepicker/index.taro.vue.d.ts +0 -232
  610. package/dist/types/__VUE/dialog/index.taro.vue.d.ts +0 -327
  611. package/dist/types/__VUE/divider/index.taro.vue.d.ts +0 -53
  612. package/dist/types/__VUE/drag/index.taro.vue.d.ts +0 -62
  613. package/dist/types/__VUE/ecard/index.taro.vue.d.ts +0 -128
  614. package/dist/types/__VUE/elevator/index.taro.vue.d.ts +0 -119
  615. package/dist/types/__VUE/ellipsis/index.taro.vue.d.ts +0 -103
  616. package/dist/types/__VUE/empty/index.taro.vue.d.ts +0 -46
  617. package/dist/types/__VUE/fixednav/index.taro.vue.d.ts +0 -105
  618. package/dist/types/__VUE/form/index.taro.vue.d.ts +0 -40
  619. package/dist/types/__VUE/formitem/index.taro.vue.d.ts +0 -114
  620. package/dist/types/__VUE/grid/index.taro.vue.d.ts +0 -84
  621. package/dist/types/__VUE/griditem/index.taro.vue.d.ts +0 -22
  622. package/dist/types/__VUE/icon/index.taro.vue.d.ts +0 -12
  623. package/dist/types/__VUE/image/index.taro.vue.d.ts +0 -32
  624. package/dist/types/__VUE/imagepreview/index.taro.vue.d.ts +0 -172
  625. package/dist/types/__VUE/indicator/index.taro.vue.d.ts +0 -70
  626. package/dist/types/__VUE/input/index.taro.vue.d.ts +0 -257
  627. package/dist/types/__VUE/inputnumber/index.taro.vue.d.ts +0 -116
  628. package/dist/types/__VUE/invoice/index.taro.vue.d.ts +0 -52
  629. package/dist/types/__VUE/layout/index.taro.vue.d.ts +0 -12
  630. package/dist/types/__VUE/list/index.taro.vue.d.ts +0 -58
  631. package/dist/types/__VUE/menu/index.taro.vue.d.ts +0 -93
  632. package/dist/types/__VUE/menuitem/index.taro.vue.d.ts +0 -89
  633. package/dist/types/__VUE/navbar/index.taro.vue.d.ts +0 -121
  634. package/dist/types/__VUE/noticebar/index.taro.vue.d.ts +0 -217
  635. package/dist/types/__VUE/notify/index.taro.vue.d.ts +0 -97
  636. package/dist/types/__VUE/numberkeyboard/index.taro.vue.d.ts +0 -132
  637. package/dist/types/__VUE/overlay/index.taro.vue.d.ts +0 -85
  638. package/dist/types/__VUE/pagination/index.taro.vue.d.ts +0 -111
  639. package/dist/types/__VUE/picker/index.taro.vue.d.ts +0 -14
  640. package/dist/types/__VUE/popover/index.taro.vue.d.ts +0 -201
  641. package/dist/types/__VUE/popup/index.taro.vue.d.ts +0 -201
  642. package/dist/types/__VUE/price/index.taro.vue.d.ts +0 -87
  643. package/dist/types/__VUE/progress/index.taro.vue.d.ts +0 -128
  644. package/dist/types/__VUE/radio/index.taro.vue.d.ts +0 -53
  645. package/dist/types/__VUE/range/index.taro.vue.d.ts +0 -158
  646. package/dist/types/__VUE/rate/index.taro.vue.d.ts +0 -124
  647. package/dist/types/__VUE/scrollView/index.taro.vue.d.ts +0 -14
  648. package/dist/types/__VUE/searchbar/index.taro.vue.d.ts +0 -177
  649. package/dist/types/__VUE/shortpassword/index.taro.vue.d.ts +0 -103
  650. package/dist/types/__VUE/sidenavbar/index.taro.vue.d.ts +0 -31
  651. package/dist/types/__VUE/signature/index.taro.vue.d.ts +0 -83
  652. package/dist/types/__VUE/skeleton/index.taro.vue.d.ts +0 -115
  653. package/dist/types/__VUE/sku/index.taro.vue.d.ts +0 -182
  654. package/dist/types/__VUE/steps/index.taro.vue.d.ts +0 -46
  655. package/dist/types/__VUE/sticky/index.taro.vue.d.ts +0 -47
  656. package/dist/types/__VUE/swipe/index.taro.vue.d.ts +0 -71
  657. package/dist/types/__VUE/swiper/index.taro.vue.d.ts +0 -176
  658. package/dist/types/__VUE/swiper/use-touch.d.ts +0 -16
  659. package/dist/types/__VUE/swiperitem/index.taro.vue.d.ts +0 -18
  660. package/dist/types/__VUE/switch/index.taro.vue.d.ts +0 -108
  661. package/dist/types/__VUE/tabbar/index.taro.vue.d.ts +0 -93
  662. package/dist/types/__VUE/tabbaritem/index.taro.vue.d.ts +0 -59
  663. package/dist/types/__VUE/table/index.taro.vue.d.ts +0 -78
  664. package/dist/types/__VUE/tabs/index.taro.vue.d.ts +0 -164
  665. package/dist/types/__VUE/tag/index.taro.vue.d.ts +0 -90
  666. package/dist/types/__VUE/textarea/index.taro.vue.d.ts +0 -122
  667. package/dist/types/__VUE/timedetail/index.taro.vue.d.ts +0 -47
  668. package/dist/types/__VUE/timepannel/index.taro.vue.d.ts +0 -42
  669. package/dist/types/__VUE/timeselect/index.taro.vue.d.ts +0 -91
  670. package/dist/types/__VUE/toast/index.taro.vue.d.ts +0 -184
  671. package/dist/types/__VUE/tour/index.taro.vue.d.ts +0 -192
  672. package/dist/types/__VUE/trendarrow/index.taro.vue.d.ts +0 -105
  673. package/dist/types/__VUE/uploader/index.taro.vue.d.ts +0 -260
  674. package/dist/types/__VUE/watermark/index.taro.vue.d.ts +0 -175
  675. /package/dist/types/utils/{interceptor.d.ts → Interceptor.d.ts} +0 -0
@@ -1,103 +1,112 @@
1
- import { inject, reactive, ref, useSlots, toRefs, resolveComponent, openBlock, createElementBlock, createBlock, withCtx, createTextVNode, toDisplayString, createCommentVNode, renderSlot } from "vue";
2
- import { c as createComponent } from "./component-81a4c1d0.js";
3
- import Button from "./Button.js";
4
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
1
+ var v = Object.defineProperty, g = Object.defineProperties;
2
+ var b = Object.getOwnPropertyDescriptors;
3
+ var S = Object.getOwnPropertySymbols;
4
+ var w = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
5
+ var c = (t, e, o) => e in t ? v(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, d = (t, e) => {
6
+ for (var o in e || (e = {}))
7
+ w.call(e, o) && c(t, o, e[o]);
8
+ if (S)
9
+ for (var o of S(e))
10
+ z.call(e, o) && c(t, o, e[o]);
11
+ return t;
12
+ }, $ = (t, e) => g(t, b(e));
13
+ import { inject as D, reactive as M, ref as N, useSlots as E, toRefs as B, resolveComponent as F, openBlock as a, createElementBlock as n, createBlock as l, withCtx as i, createTextVNode as p, toDisplayString as f, createCommentVNode as r, renderSlot as m } from "vue";
14
+ import { c as V } from "./component-234624bc.js";
15
+ import C from "./Button.js";
16
+ import { _ as j } from "./_plugin-vue_export-helper-dad06003.js";
5
17
  import "../locale/lang";
6
18
  import "@nutui/icons-vue";
7
- const { componentName, create, translate } = createComponent("audio-operate");
8
- const _sfc_main = create({
19
+ const { componentName: Q, create: P, translate: R } = V("audio-operate"), T = P({
9
20
  props: {
21
+ // 展示的形式 back 倒退 play 开始 or 暂停 forward 快进 mute 静音
10
22
  type: {
11
23
  type: String,
12
24
  default: () => "play"
13
25
  }
14
26
  },
15
27
  components: {
16
- [Button.name]: Button
28
+ [C.name]: C
17
29
  },
18
30
  emits: ["click"],
19
- setup(props, { emit }) {
20
- const audio = inject("audioParent");
21
- const parent = reactive(audio);
22
- const customSlot = ref(useSlots().default);
23
- return { ...toRefs(props), ...toRefs(parent), customSlot, translate };
31
+ setup(t, { emit: e }) {
32
+ const o = D("audioParent"), y = M(o), k = N(E().default);
33
+ return $(d(d({}, B(t)), B(y)), { customSlot: k, translate: R });
24
34
  }
25
- });
26
- const _hoisted_1 = { class: "nut-audio-operate" };
27
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
28
- const _component_nut_button = resolveComponent("nut-button");
29
- return openBlock(), createElementBlock("div", _hoisted_1, [
30
- _ctx.type == "back" ? (openBlock(), createElementBlock("div", {
35
+ }), h = { class: "nut-audio-operate" };
36
+ function q(t, e, o, y, k, A) {
37
+ const u = F("nut-button");
38
+ return a(), n("div", h, [
39
+ t.type == "back" ? (a(), n("div", {
31
40
  key: 0,
32
41
  class: "nut-audio-operate-item",
33
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.fastBack && _ctx.fastBack(...args))
42
+ onClick: e[0] || (e[0] = (...s) => t.fastBack && t.fastBack(...s))
34
43
  }, [
35
- !_ctx.customSlot ? (openBlock(), createBlock(_component_nut_button, {
44
+ t.customSlot ? r("", !0) : (a(), l(u, {
36
45
  key: 0,
37
46
  type: "primary",
38
47
  size: "small"
39
48
  }, {
40
- default: withCtx(() => [
41
- createTextVNode(toDisplayString(_ctx.translate("back")), 1)
49
+ default: i(() => [
50
+ p(f(t.translate("back")), 1)
42
51
  ]),
43
52
  _: 1
44
- })) : createCommentVNode("", true),
45
- renderSlot(_ctx.$slots, "default")
46
- ])) : createCommentVNode("", true),
47
- _ctx.type == "play" ? (openBlock(), createElementBlock("div", {
53
+ })),
54
+ m(t.$slots, "default")
55
+ ])) : r("", !0),
56
+ t.type == "play" ? (a(), n("div", {
48
57
  key: 1,
49
58
  class: "nut-audio-operate-item",
50
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.changeStatus && _ctx.changeStatus(...args))
59
+ onClick: e[1] || (e[1] = (...s) => t.changeStatus && t.changeStatus(...s))
51
60
  }, [
52
- !_ctx.customSlot ? (openBlock(), createBlock(_component_nut_button, {
61
+ t.customSlot ? r("", !0) : (a(), l(u, {
53
62
  key: 0,
54
63
  type: "primary",
55
64
  size: "small"
56
65
  }, {
57
- default: withCtx(() => [
58
- createTextVNode(toDisplayString(!_ctx.audioData.playing ? `${_ctx.translate("start")}` : `${_ctx.translate("pause")}`), 1)
66
+ default: i(() => [
67
+ p(f(t.audioData.playing ? `${t.translate("pause")}` : `${t.translate("start")}`), 1)
59
68
  ]),
60
69
  _: 1
61
- })) : createCommentVNode("", true),
62
- renderSlot(_ctx.$slots, "default")
63
- ])) : createCommentVNode("", true),
64
- _ctx.type == "forward" ? (openBlock(), createElementBlock("div", {
70
+ })),
71
+ m(t.$slots, "default")
72
+ ])) : r("", !0),
73
+ t.type == "forward" ? (a(), n("div", {
65
74
  key: 2,
66
75
  class: "nut-audio-operate-item",
67
- onClick: _cache[2] || (_cache[2] = (...args) => _ctx.forward && _ctx.forward(...args))
76
+ onClick: e[2] || (e[2] = (...s) => t.forward && t.forward(...s))
68
77
  }, [
69
- !_ctx.customSlot ? (openBlock(), createBlock(_component_nut_button, {
78
+ t.customSlot ? r("", !0) : (a(), l(u, {
70
79
  key: 0,
71
80
  type: "primary",
72
81
  size: "small"
73
82
  }, {
74
- default: withCtx(() => [
75
- createTextVNode("快进")
83
+ default: i(() => [
84
+ p("快进")
76
85
  ]),
77
86
  _: 1
78
- })) : createCommentVNode("", true),
79
- renderSlot(_ctx.$slots, "default")
80
- ])) : createCommentVNode("", true),
81
- _ctx.type == "mute" ? (openBlock(), createElementBlock("div", {
87
+ })),
88
+ m(t.$slots, "default")
89
+ ])) : r("", !0),
90
+ t.type == "mute" ? (a(), n("div", {
82
91
  key: 3,
83
92
  class: "nut-audio-operate-item",
84
- onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleMute && _ctx.handleMute(...args))
93
+ onClick: e[3] || (e[3] = (...s) => t.handleMute && t.handleMute(...s))
85
94
  }, [
86
- !_ctx.customSlot ? (openBlock(), createBlock(_component_nut_button, {
95
+ t.customSlot ? r("", !0) : (a(), l(u, {
87
96
  key: 0,
88
- type: !_ctx.audioData.hanMuted ? "primary" : "default",
97
+ type: t.audioData.hanMuted ? "default" : "primary",
89
98
  size: "small"
90
99
  }, {
91
- default: withCtx(() => [
92
- createTextVNode(toDisplayString(_ctx.translate("mute")), 1)
100
+ default: i(() => [
101
+ p(f(t.translate("mute")), 1)
93
102
  ]),
94
103
  _: 1
95
- }, 8, ["type"])) : createCommentVNode("", true),
96
- renderSlot(_ctx.$slots, "default")
97
- ])) : createCommentVNode("", true)
104
+ }, 8, ["type"])),
105
+ m(t.$slots, "default")
106
+ ])) : r("", !0)
98
107
  ]);
99
108
  }
100
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
109
+ const U = /* @__PURE__ */ j(T, [["render", q]]);
101
110
  export {
102
- index as default
111
+ U as default
103
112
  };
@@ -1,9 +1,19 @@
1
- import { toRefs, inject, ref, reactive, onMounted, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, renderSlot, createCommentVNode, Fragment, createTextVNode, toDisplayString } from "vue";
2
- import { c as createComponent } from "./component-81a4c1d0.js";
3
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
1
+ var N = Object.defineProperty;
2
+ var b = Object.getOwnPropertySymbols;
3
+ var V = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
4
+ var k = (o, s, r) => s in o ? N(o, s, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[s] = r, w = (o, s) => {
5
+ for (var r in s || (s = {}))
6
+ V.call(s, r) && k(o, r, s[r]);
7
+ if (b)
8
+ for (var r of b(s))
9
+ A.call(s, r) && k(o, r, s[r]);
10
+ return o;
11
+ };
12
+ import { toRefs as I, inject as O, ref as R, reactive as M, onMounted as T, computed as g, openBlock as L, createElementBlock as B, normalizeStyle as j, normalizeClass as D, renderSlot as E, createCommentVNode as h, Fragment as F, createTextVNode as q, toDisplayString as H } from "vue";
13
+ import { c as J } from "./component-234624bc.js";
14
+ import { _ as K } from "./_plugin-vue_export-helper-dad06003.js";
4
15
  import "../locale/lang";
5
- const { componentName, create } = createComponent("avatar");
6
- const _sfc_main = create({
16
+ const { componentName: P, create: Q } = J("avatar"), U = Q({
7
17
  props: {
8
18
  size: {
9
19
  type: String,
@@ -22,92 +32,76 @@ const _sfc_main = create({
22
32
  default: "#666"
23
33
  }
24
34
  },
25
- setup(props) {
26
- const { size, shape, bgColor, color } = toRefs(props);
27
- const sizeValue = ["large", "normal", "small"];
28
- const avatarGroup = inject("avatarGroup", null);
29
- const avatarRef = ref(null);
30
- const visible = reactive({
31
- lightTheme: false
32
- });
33
- const state = reactive({
35
+ setup(o) {
36
+ const { size: s, shape: r, bgColor: $, color: y } = I(o), C = ["large", "normal", "small"], e = O("avatarGroup", null), i = R(null), m = M({
37
+ lightTheme: !1
38
+ }), l = M({
34
39
  index: 1,
35
- showMax: false,
40
+ showMax: !1,
41
+ // 是否显示的最大头像个数
36
42
  maxIndex: 0
43
+ // avatarGroup里的avatar的个数
37
44
  });
38
- onMounted(() => {
39
- var _a, _b;
40
- const children = (_b = (_a = avatarGroup == null ? void 0 : avatarGroup.avatarGroupRef) == null ? void 0 : _a.value) == null ? void 0 : _b.children;
41
- if (children) {
42
- avatarLength(children);
43
- }
45
+ T(() => {
46
+ var n, a;
47
+ const t = (a = (n = e == null ? void 0 : e.avatarGroupRef) == null ? void 0 : n.value) == null ? void 0 : a.children;
48
+ t && c(t);
44
49
  });
45
- const classes = computed(() => {
46
- var _a, _b;
47
- const prefixCls = componentName;
50
+ const d = g(() => {
51
+ var n, a;
48
52
  return {
49
- [prefixCls]: true,
50
- [`nut-avatar-${size.value || ((_a = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _a.size) || "normal"}`]: true,
51
- [`nut-avatar-${shape.value || ((_b = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _b.shape) || "normal"}`]: true
53
+ [P]: !0,
54
+ [`nut-avatar-${s.value || ((n = e == null ? void 0 : e.props) == null ? void 0 : n.size) || "normal"}`]: !0,
55
+ [`nut-avatar-${r.value || ((a = e == null ? void 0 : e.props) == null ? void 0 : a.shape) || "normal"}`]: !0
52
56
  };
53
- });
54
- const styles = computed(() => {
55
- var _a, _b, _c;
57
+ }), x = g(() => {
58
+ var t, n, a;
56
59
  return {
57
- width: sizeValue.indexOf(size.value) > -1 ? "" : `${size.value}px`,
58
- height: sizeValue.indexOf(size.value) > -1 ? "" : `${size.value}px`,
59
- backgroundColor: `${bgColor.value}`,
60
- color: `${color.value}`,
61
- marginLeft: state.index != 1 && (((_a = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _a.span) ? `${(_b = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _b.span}px` : ""),
62
- zIndex: ((_c = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _c.zIndex) == "right" ? `${Math.abs(state.maxIndex - state.index)}` : ""
60
+ width: C.indexOf(s.value) > -1 ? "" : `${s.value}px`,
61
+ height: C.indexOf(s.value) > -1 ? "" : `${s.value}px`,
62
+ backgroundColor: `${$.value}`,
63
+ color: `${y.value}`,
64
+ marginLeft: l.index != 1 && ((t = e == null ? void 0 : e.props) != null && t.span ? `${(n = e == null ? void 0 : e.props) == null ? void 0 : n.span}px` : ""),
65
+ zIndex: ((a = e == null ? void 0 : e.props) == null ? void 0 : a.zIndex) == "right" ? `${Math.abs(l.maxIndex - l.index)}` : ""
63
66
  };
64
- });
65
- const maxStyles = computed(() => {
66
- var _a, _b;
67
+ }), f = g(() => {
68
+ var t, n;
67
69
  return {
68
- backgroundColor: `${(_a = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _a.maxBgColor}`,
69
- color: `${(_b = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _b.maxColor}`
70
+ backgroundColor: `${(t = e == null ? void 0 : e.props) == null ? void 0 : t.maxBgColor}`,
71
+ color: `${(n = e == null ? void 0 : e.props) == null ? void 0 : n.maxColor}`
70
72
  };
71
- });
72
- const avatarLength = (children) => {
73
- var _a, _b, _c;
74
- state.maxIndex = children.length;
75
- for (let i = 0; i < children.length; i++) {
76
- if (children[i] && children[i].classList && children[i].classList[0] == "nut-avatar") {
77
- children[i].setAttribute("data-index", i + 1);
78
- }
79
- }
80
- state.index = (_b = (_a = avatarRef == null ? void 0 : avatarRef.value) == null ? void 0 : _a.dataset) == null ? void 0 : _b.index;
81
- if (state.index == state.maxIndex && state.index != ((_c = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _c.maxCount)) {
82
- state.showMax = true;
83
- }
84
- };
85
- return {
86
- classes,
87
- styles,
88
- maxStyles,
89
- avatarGroup,
90
- visible,
91
- avatarRef,
92
- ...toRefs(state)
73
+ }), c = (t) => {
74
+ var n, a, u;
75
+ l.maxIndex = t.length;
76
+ for (let p = 0; p < t.length; p++)
77
+ t[p] && t[p].classList && t[p].classList[0] == "nut-avatar" && t[p].setAttribute("data-index", p + 1);
78
+ l.index = (a = (n = i == null ? void 0 : i.value) == null ? void 0 : n.dataset) == null ? void 0 : a.index, l.index == l.maxIndex && l.index != ((u = e == null ? void 0 : e.props) == null ? void 0 : u.maxCount) && (l.showMax = !0);
93
79
  };
80
+ return w({
81
+ classes: d,
82
+ styles: x,
83
+ maxStyles: f,
84
+ avatarGroup: e,
85
+ visible: m,
86
+ avatarRef: i
87
+ }, I(l));
94
88
  }
95
89
  });
96
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
97
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
98
- return _ctx.showMax || !((_b = (_a = _ctx.avatarGroup) == null ? void 0 : _a.props) == null ? void 0 : _b.maxCount) || _ctx.index <= ((_d = (_c = _ctx.avatarGroup) == null ? void 0 : _c.props) == null ? void 0 : _d.maxCount) ? (openBlock(), createElementBlock("view", {
90
+ function W(o, s, r, $, y, C) {
91
+ var e, i, m, l, d, x, f, c, t, n, a, u, p, v, S, z;
92
+ return o.showMax || !((i = (e = o.avatarGroup) == null ? void 0 : e.props) != null && i.maxCount) || o.index <= ((l = (m = o.avatarGroup) == null ? void 0 : m.props) == null ? void 0 : l.maxCount) ? (L(), B("view", {
99
93
  key: 0,
100
- style: normalizeStyle(!_ctx.showMax ? _ctx.styles : _ctx.maxStyles),
101
- class: normalizeClass(_ctx.classes),
94
+ style: j(o.showMax ? o.maxStyles : o.styles),
95
+ class: D(o.classes),
102
96
  ref: "avatarRef"
103
97
  }, [
104
- !((_f = (_e = _ctx.avatarGroup) == null ? void 0 : _e.props) == null ? void 0 : _f.maxCount) || _ctx.index <= ((_h = (_g = _ctx.avatarGroup) == null ? void 0 : _g.props) == null ? void 0 : _h.maxCount) ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
105
- _ctx.showMax && ((_j = (_i = _ctx.avatarGroup) == null ? void 0 : _i.props) == null ? void 0 : _j.maxCount) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
106
- createTextVNode(toDisplayString(((_l = (_k = _ctx.avatarGroup) == null ? void 0 : _k.props) == null ? void 0 : _l.maxContent) ? (_n = (_m = _ctx.avatarGroup) == null ? void 0 : _m.props) == null ? void 0 : _n.maxContent : `+ ${_ctx.maxIndex - ((_p = (_o = _ctx.avatarGroup) == null ? void 0 : _o.props) == null ? void 0 : _p.maxCount)}`), 1)
107
- ], 64)) : createCommentVNode("", true)
108
- ], 6)) : createCommentVNode("", true);
98
+ !((x = (d = o.avatarGroup) == null ? void 0 : d.props) != null && x.maxCount) || o.index <= ((c = (f = o.avatarGroup) == null ? void 0 : f.props) == null ? void 0 : c.maxCount) ? E(o.$slots, "default", { key: 0 }) : h("", !0),
99
+ o.showMax && ((n = (t = o.avatarGroup) == null ? void 0 : t.props) != null && n.maxCount) ? (L(), B(F, { key: 1 }, [
100
+ q(H((u = (a = o.avatarGroup) == null ? void 0 : a.props) != null && u.maxContent ? (v = (p = o.avatarGroup) == null ? void 0 : p.props) == null ? void 0 : v.maxContent : `+ ${o.maxIndex - ((z = (S = o.avatarGroup) == null ? void 0 : S.props) == null ? void 0 : z.maxCount)}`), 1)
101
+ ], 64)) : h("", !0)
102
+ ], 6)) : h("", !0);
109
103
  }
110
- const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
104
+ const ee = /* @__PURE__ */ K(U, [["render", W]]);
111
105
  export {
112
- Avatar as default
106
+ ee as default
113
107
  };
@@ -1,9 +1,8 @@
1
- import { toRefs, ref, computed, onMounted, provide, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
2
- import { c as createComponent } from "./component-81a4c1d0.js";
3
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
1
+ import { toRefs as p, ref as a, computed as l, onMounted as u, provide as f, openBlock as i, createElementBlock as c, normalizeClass as d, renderSlot as m } from "vue";
2
+ import { c as g } from "./component-234624bc.js";
3
+ import { _ as x } from "./_plugin-vue_export-helper-dad06003.js";
4
4
  import "../locale/lang";
5
- const { componentName, create } = createComponent("avatar-group");
6
- const _sfc_main = create({
5
+ const { componentName: S, create: y } = g("avatar-group"), C = y({
7
6
  props: {
8
7
  maxContent: {
9
8
  type: String,
@@ -38,38 +37,32 @@ const _sfc_main = create({
38
37
  default: "left"
39
38
  }
40
39
  },
41
- setup(props, { emit, slots }) {
42
- toRefs(props);
43
- const avatarGroupRef = ref(null);
44
- const index2 = ref(0);
45
- const classes = computed(() => {
46
- const prefixCls = componentName;
47
- return {
48
- [prefixCls]: true
49
- };
50
- });
51
- onMounted(() => {
52
- });
53
- provide("avatarGroup", {
54
- props,
55
- avatarGroupRef,
56
- index: index2
57
- });
58
- return {
59
- classes,
60
- avatarGroupRef
40
+ setup(e, { emit: n, slots: s }) {
41
+ p(e);
42
+ const t = a(null), r = a(0), o = l(() => ({
43
+ [S]: !0
44
+ }));
45
+ return u(() => {
46
+ }), f("avatarGroup", {
47
+ props: e,
48
+ avatarGroupRef: t,
49
+ index: r
50
+ }), {
51
+ classes: o,
52
+ // styles,
53
+ avatarGroupRef: t
61
54
  };
62
55
  }
63
56
  });
64
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
65
- return openBlock(), createElementBlock("view", {
66
- class: normalizeClass(_ctx.classes),
57
+ function _(e, n, s, t, r, o) {
58
+ return i(), c("view", {
59
+ class: d(e.classes),
67
60
  ref: "avatarGroupRef"
68
61
  }, [
69
- renderSlot(_ctx.$slots, "default")
62
+ m(e.$slots, "default")
70
63
  ], 2);
71
64
  }
72
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
65
+ const R = /* @__PURE__ */ x(C, [["render", _]]);
73
66
  export {
74
- index as default
67
+ R as default
75
68
  };
@@ -1,13 +1,12 @@
1
- import { reactive, computed, onMounted, onUnmounted, onActivated, onDeactivated, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, withModifiers, renderSlot, createVNode } from "vue";
2
- import { c as createComponent } from "./component-81a4c1d0.js";
3
- import { r as requestAniFrame, c as cancelRaf } from "./raf-729dad54.js";
4
- import { Top } from "@nutui/icons-vue";
5
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
1
+ import { reactive as k, computed as u, onMounted as b, onUnmounted as y, onActivated as w, onDeactivated as x, resolveComponent as A, openBlock as I, createElementBlock as g, normalizeClass as h, normalizeStyle as z, withModifiers as L, renderSlot as N, createVNode as $ } from "vue";
2
+ import { c as C } from "./component-234624bc.js";
3
+ import { r as p, c as B } from "./raf-a74f1a06.js";
4
+ import { Top as _ } from "@nutui/icons-vue";
5
+ import { _ as D } from "./_plugin-vue_export-helper-dad06003.js";
6
6
  import "../locale/lang";
7
- const { componentName, create } = createComponent("backtop");
8
- const _sfc_main = create({
7
+ const { componentName: M, create: S } = C("backtop"), W = S({
9
8
  components: {
10
- Top
9
+ Top: _
11
10
  },
12
11
  props: {
13
12
  bottom: {
@@ -32,7 +31,7 @@ const _sfc_main = create({
32
31
  },
33
32
  isAnimation: {
34
33
  type: Boolean,
35
- default: true
34
+ default: !0
36
35
  },
37
36
  duration: {
38
37
  type: Number,
@@ -40,109 +39,70 @@ const _sfc_main = create({
40
39
  }
41
40
  },
42
41
  emits: ["click"],
43
- setup(props, { emit }) {
44
- const state = reactive({
45
- backTop: false,
42
+ setup(t, { emit: n }) {
43
+ const e = k({
44
+ backTop: !1,
46
45
  scrollTop: 0,
47
46
  scrollEl: window,
48
47
  startTime: 0,
49
- keepAlive: false
50
- });
51
- const classes = computed(() => {
52
- const prefixCls = componentName;
53
- return {
54
- [prefixCls]: true,
55
- show: state.backTop
56
- };
57
- });
58
- const style = computed(() => {
59
- return {
60
- right: `${props.right}px`,
61
- bottom: `${props.bottom}px`,
62
- zIndex: props.zIndex
63
- };
64
- });
65
- function scrollListener() {
66
- if (state.scrollEl instanceof Window) {
67
- state.scrollTop = state.scrollEl.pageYOffset;
68
- } else {
69
- state.scrollTop = state.scrollEl.scrollTop;
70
- }
71
- state.backTop = state.scrollTop >= props.distance;
48
+ keepAlive: !1
49
+ }), s = u(() => ({
50
+ [M]: !0,
51
+ show: e.backTop
52
+ })), c = u(() => ({
53
+ right: `${t.right}px`,
54
+ bottom: `${t.bottom}px`,
55
+ zIndex: t.zIndex
56
+ }));
57
+ function l() {
58
+ e.scrollEl instanceof Window ? e.scrollTop = e.scrollEl.pageYOffset : e.scrollTop = e.scrollEl.scrollTop, e.backTop = e.scrollTop >= t.distance;
72
59
  }
73
- function scroll(y = 0) {
74
- if (state.scrollEl instanceof Window) {
75
- window.scrollTo(0, y);
76
- } else {
77
- state.scrollEl.scrollTop = y;
78
- }
60
+ function i(o = 0) {
61
+ e.scrollEl instanceof Window ? window.scrollTo(0, o) : e.scrollEl.scrollTop = o;
79
62
  }
80
- function scrollAnimation() {
81
- let cid = requestAniFrame(function fn() {
82
- var t = props.duration - Math.max(0, state.startTime - +new Date() + props.duration);
83
- var y = t * -state.scrollTop / props.duration + state.scrollTop;
84
- scroll(y);
85
- cid = requestAniFrame(fn);
86
- if (t == props.duration || y == 0) {
87
- cancelRaf(cid);
88
- }
63
+ function r() {
64
+ let o = p(function T() {
65
+ var f = t.duration - Math.max(0, e.startTime - +/* @__PURE__ */ new Date() + t.duration), m = f * -e.scrollTop / t.duration + e.scrollTop;
66
+ i(m), o = p(T), (f == t.duration || m == 0) && B(o);
89
67
  });
90
68
  }
91
- function addEventListener() {
92
- state.scrollEl.addEventListener("scroll", scrollListener, false);
93
- state.scrollEl.addEventListener("resize", scrollListener, false);
69
+ function v() {
70
+ e.scrollEl.addEventListener("scroll", l, !1), e.scrollEl.addEventListener("resize", l, !1);
94
71
  }
95
- function removeEventListener() {
96
- state.scrollEl.removeEventListener("scroll", scrollListener, false);
97
- state.scrollEl.removeEventListener("resize", scrollListener, false);
72
+ function a() {
73
+ e.scrollEl.removeEventListener("scroll", l, !1), e.scrollEl.removeEventListener("resize", l, !1);
98
74
  }
99
- function click(e) {
100
- state.startTime = +new Date();
101
- props.isAnimation && props.duration > 0 ? scrollAnimation() : scroll();
102
- emit("click", e);
75
+ function E(o) {
76
+ e.startTime = +/* @__PURE__ */ new Date(), t.isAnimation && t.duration > 0 ? r() : i(), n("click", o);
103
77
  }
104
- function init() {
105
- if (props.elId && document.getElementById(props.elId)) {
106
- state.scrollEl = document.getElementById(props.elId);
107
- }
108
- addEventListener();
78
+ function d() {
79
+ t.elId && document.getElementById(t.elId) && (e.scrollEl = document.getElementById(t.elId)), v();
109
80
  }
110
- onMounted(() => {
111
- if (props.distance == 0) {
112
- state.backTop = true;
113
- }
114
- init();
115
- });
116
- onUnmounted(() => {
117
- removeEventListener();
118
- });
119
- onActivated(() => {
120
- if (state.keepAlive) {
121
- state.keepAlive = false;
122
- init();
123
- }
124
- });
125
- onDeactivated(() => {
126
- state.keepAlive = true;
127
- removeEventListener();
128
- });
129
- return {
130
- state,
131
- classes,
132
- style,
133
- click
81
+ return b(() => {
82
+ t.distance == 0 && (e.backTop = !0), d();
83
+ }), y(() => {
84
+ a();
85
+ }), w(() => {
86
+ e.keepAlive && (e.keepAlive = !1, d());
87
+ }), x(() => {
88
+ e.keepAlive = !0, a();
89
+ }), {
90
+ state: e,
91
+ classes: s,
92
+ style: c,
93
+ click: E
134
94
  };
135
95
  }
136
96
  });
137
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
138
- const _component_Top = resolveComponent("Top");
139
- return openBlock(), createElementBlock("div", {
140
- class: normalizeClass(_ctx.classes),
141
- style: normalizeStyle(_ctx.style),
142
- onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.click && _ctx.click(...args), ["stop"]))
97
+ function q(t, n, e, s, c, l) {
98
+ const i = A("Top");
99
+ return I(), g("div", {
100
+ class: h(t.classes),
101
+ style: z(t.style),
102
+ onClick: n[0] || (n[0] = L((...r) => t.click && t.click(...r), ["stop"]))
143
103
  }, [
144
- renderSlot(_ctx.$slots, "default", {}, () => [
145
- createVNode(_component_Top, {
104
+ N(t.$slots, "default", {}, () => [
105
+ $(i, {
146
106
  width: "19px",
147
107
  height: "19px",
148
108
  class: "nut-backtop-main"
@@ -150,7 +110,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
150
110
  ])
151
111
  ], 6);
152
112
  }
153
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
113
+ const j = /* @__PURE__ */ D(W, [["render", q]]);
154
114
  export {
155
- index as default
115
+ j as default
156
116
  };