@nutui/nutui 4.3.15-beta.1 → 4.3.15-beta.2

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 (312) hide show
  1. package/dist/nutui.es.js +1 -13
  2. package/dist/nutui.umd.js +19829 -1
  3. package/dist/packages/{Interceptor-CBzqGJrl.js → Interceptor-aNUpilAP.js} +1 -1
  4. package/dist/packages/actionsheet/ActionSheet.js +17 -11
  5. package/dist/packages/address/Address.js +139 -121
  6. package/dist/packages/addresslist/AddressList.js +22 -11
  7. package/dist/packages/animate/Animate.js +1 -1
  8. package/dist/packages/avatar/Avatar.js +1 -1
  9. package/dist/packages/avatarcropper/AvatarCropper.js +329 -126
  10. package/dist/packages/avatargroup/AvatarGroup.js +17 -10
  11. package/dist/packages/backtop/Backtop.js +42 -88
  12. package/dist/packages/badge/Badge.js +4 -2
  13. package/dist/packages/barrage/Barrage.js +76 -130
  14. package/dist/packages/button/Button.js +15 -8
  15. package/dist/packages/calendar/Calendar.js +173 -152
  16. package/dist/packages/calendarcard/CalendarCard.js +33 -61
  17. package/dist/packages/card/Card.js +12 -4
  18. package/dist/packages/cascader/Cascader.js +49 -37
  19. package/dist/packages/category/Category.js +13 -12
  20. package/dist/packages/categorypane/CategoryPane.js +13 -8
  21. package/dist/packages/cell/Cell.js +10 -16
  22. package/dist/packages/cellgroup/CellGroup.js +4 -2
  23. package/dist/packages/checkbox/Checkbox.js +1 -1
  24. package/dist/packages/circleprogress/CircleProgress.js +53 -69
  25. package/dist/packages/col/Col.js +1 -1
  26. package/dist/packages/collapse/Collapse.js +1 -1
  27. package/dist/packages/collapseitem/CollapseItem.js +74 -39
  28. package/dist/packages/comment/Comment.js +46 -24
  29. package/dist/packages/configprovider/ConfigProvider.js +1 -1
  30. package/dist/packages/countdown/Countdown.js +2 -2
  31. package/dist/packages/countup/Countup.js +53 -66
  32. package/dist/packages/datepicker/DatePicker.js +12 -7
  33. package/dist/packages/dialog/Dialog.js +27 -97
  34. package/dist/packages/dialog/index.mjs +1 -2
  35. package/dist/packages/divider/Divider.js +1 -1
  36. package/dist/packages/drag/Drag.js +91 -55
  37. package/dist/packages/ecard/Ecard.js +19 -16
  38. package/dist/packages/elevator/Elevator.js +86 -73
  39. package/dist/packages/ellipsis/Ellipsis.js +223 -121
  40. package/dist/packages/empty/Empty.js +5 -3
  41. package/dist/packages/fixednav/FixedNav.js +12 -7
  42. package/dist/packages/form/Form.js +2 -2
  43. package/dist/packages/formitem/FormItem.js +3 -1
  44. package/dist/packages/grid/Grid.js +1 -1
  45. package/dist/packages/griditem/GridItem.js +5 -15
  46. package/dist/packages/imagepreview/ImagePreview.js +192 -400
  47. package/dist/packages/imagepreview/index.mjs +1 -2
  48. package/dist/packages/{index-BOB4ytqZ.js → index-IxPZmHlb.js} +2 -2
  49. package/dist/packages/index-m0Wcof-q.js +69 -0
  50. package/dist/packages/{index-wLaOjIn1.js → index.taro-CNxLoYer.js} +6 -7
  51. package/dist/packages/index.taro.vue_vue_type_script_setup_true_lang-JJ7hr71Y.js +17 -0
  52. package/dist/packages/indicator/Indicator.js +2 -2
  53. package/dist/packages/input/Input.js +87 -70
  54. package/dist/packages/inputnumber/InputNumber.js +22 -14
  55. package/dist/packages/invoice/Invoice.js +3 -2
  56. package/dist/packages/list/List.js +114 -56
  57. package/dist/packages/menu/Menu.js +45 -40
  58. package/dist/packages/menuitem/MenuItem.js +53 -47
  59. package/dist/packages/navbar/Navbar.js +31 -17
  60. package/dist/packages/noticebar/Noticebar.js +68 -43
  61. package/dist/packages/notify/Notify.js +10 -157
  62. package/dist/packages/notify/index.mjs +1 -2
  63. package/dist/packages/numberkeyboard/NumberKeyboard.js +103 -109
  64. package/dist/packages/overlay/Overlay.js +6 -34
  65. package/dist/packages/pagination/Pagination.js +8 -5
  66. package/dist/packages/picker/Picker.js +113 -26
  67. package/dist/packages/popover/Popover.js +158 -88
  68. package/dist/packages/popup/Popup.js +1 -1
  69. package/dist/packages/price/Price.js +16 -3
  70. package/dist/packages/progress/Progress.js +7 -4
  71. package/dist/packages/radio/Radio.js +11 -12
  72. package/dist/packages/radiogroup/RadioGroup.js +2 -2
  73. package/dist/packages/{raf-c01wDYCo.js → raf-CzJhCkQo.js} +0 -9
  74. package/dist/packages/range/Range.js +139 -71
  75. package/dist/packages/rate/Rate.js +15 -49
  76. package/dist/packages/row/Row.js +1 -1
  77. package/dist/packages/searchbar/Searchbar.js +35 -27
  78. package/dist/packages/shortpassword/ShortPassword.js +51 -43
  79. package/dist/packages/sidenavbar/SideNavbar.js +3 -14
  80. package/dist/packages/sidenavbaritem/SideNavbarItem.js +2 -2
  81. package/dist/packages/signature/Signature.js +148 -106
  82. package/dist/packages/skeleton/Skeleton.js +6 -3
  83. package/dist/packages/sku/Sku.js +66 -42
  84. package/dist/packages/space/Space.js +2 -2
  85. package/dist/packages/step/Step.js +5 -2
  86. package/dist/packages/steps/Steps.js +1 -1
  87. package/dist/packages/sticky/Sticky.js +32 -71
  88. package/dist/packages/subsidenavbar/SubSideNavbar.js +13 -5
  89. package/dist/packages/swipe/Swipe.js +37 -14
  90. package/dist/packages/swipegroup/SwipeGroup.js +2 -2
  91. package/dist/packages/swiper/Swiper.js +73 -24
  92. package/dist/packages/switch/Switch.js +6 -4
  93. package/dist/packages/tabbar/Tabbar.js +23 -24
  94. package/dist/packages/tabbaritem/TabbarItem.js +8 -3
  95. package/dist/packages/table/Table.js +10 -6
  96. package/dist/packages/tabs/Tabs.js +146 -150
  97. package/dist/packages/tag/Tag.js +5 -5
  98. package/dist/packages/textarea/Textarea.js +144 -69
  99. package/dist/packages/timedetail/TimeDetail.js +2 -2
  100. package/dist/packages/timepannel/TimePannel.js +2 -2
  101. package/dist/packages/timeselect/TimeSelect.js +9 -11
  102. package/dist/packages/toast/Toast.js +50 -186
  103. package/dist/packages/toast/index.mjs +1 -2
  104. package/dist/packages/tour/Tour.js +145 -99
  105. package/dist/packages/trendarrow/TrendArrow.js +7 -4
  106. package/dist/packages/uploader/Uploader.js +263 -106
  107. package/dist/packages/{util-D1pvnUYu.js → util-2G3mRQeF.js} +5 -17
  108. package/dist/packages/watermark/Watermark.js +95 -35
  109. package/dist/smartips/web-types.json +376 -775
  110. package/dist/style.css +1 -1
  111. package/dist/styles/themes/default.scss +0 -1
  112. package/dist/styles/themes/jda.scss +0 -1
  113. package/dist/styles/themes/jdb.scss +0 -1
  114. package/dist/styles/themes/jddkh.scss +0 -1
  115. package/dist/styles/themes/jdt.scss +0 -1
  116. package/dist/types/__VUE/actionsheet/{index.vue.d.ts → index.taro.vue.d.ts} +5 -112
  117. package/dist/types/__VUE/address/{index.vue.d.ts → index.taro.vue.d.ts} +139 -412
  118. package/dist/types/__VUE/addresslist/components/{GeneralShell.vue.d.ts → GeneralShell.taro.vue.d.ts} +45 -134
  119. package/dist/types/__VUE/addresslist/components/ItemContents.taro.vue.d.ts +27 -0
  120. package/dist/types/__VUE/addresslist/{index.vue.d.ts → index.taro.vue.d.ts} +85 -155
  121. package/dist/types/__VUE/animate/{index.d.ts → index.taro.d.ts} +2 -2
  122. package/dist/types/__VUE/avatarcropper/{index.vue.d.ts → index.taro.vue.d.ts} +90 -147
  123. package/dist/types/__VUE/backtop/{backtop.vue.d.ts → backtop.taro.vue.d.ts} +8 -19
  124. package/dist/types/__VUE/backtop/{index.d.ts → index.taro.d.ts} +2 -2
  125. package/dist/types/__VUE/badge/{index.d.ts → index.taro.d.ts} +2 -2
  126. package/dist/types/__VUE/barrage/{index.vue.d.ts → index.taro.vue.d.ts} +10 -5
  127. package/dist/types/__VUE/button/{button.vue.d.ts → button.taro.vue.d.ts} +7 -1
  128. package/dist/types/__VUE/button/{index.d.ts → index.taro.d.ts} +2 -2
  129. package/dist/types/__VUE/calendar/{index.vue.d.ts → index.taro.vue.d.ts} +59 -94
  130. package/dist/types/__VUE/calendarcard/{index.d.ts → index.taro.d.ts} +2 -2
  131. package/dist/types/__VUE/calendaritem/{index.vue.d.ts → index.taro.vue.d.ts} +22 -4
  132. package/dist/types/__VUE/card/{index.vue.d.ts → index.taro.vue.d.ts} +13 -13
  133. package/dist/types/__VUE/cascader/{cascader-item.vue.d.ts → cascader-item.taro.vue.d.ts} +47 -229
  134. package/dist/types/__VUE/cascader/{index.vue.d.ts → index.taro.vue.d.ts} +50 -287
  135. package/dist/types/__VUE/category/{index.vue.d.ts → index.taro.vue.d.ts} +2 -2
  136. package/dist/types/__VUE/cell/{cell.vue.d.ts → cell.taro.vue.d.ts} +0 -15
  137. package/dist/types/__VUE/cell/{index.d.ts → index.taro.d.ts} +2 -2
  138. package/dist/types/__VUE/cellgroup/{index.d.ts → index.taro.d.ts} +2 -2
  139. package/dist/types/__VUE/circleprogress/{circle-progress.vue.d.ts → circle-progress.taro.vue.d.ts} +0 -4
  140. package/dist/types/__VUE/circleprogress/{index.d.ts → index.taro.d.ts} +2 -2
  141. package/dist/types/__VUE/col/{index.d.ts → index.taro.d.ts} +2 -2
  142. package/dist/types/__VUE/collapse/{index.d.ts → index.taro.d.ts} +2 -2
  143. package/dist/types/__VUE/collapseitem/collapse-item.taro.vue.d.ts +94 -0
  144. package/dist/types/__VUE/collapseitem/{index.d.ts → index.taro.d.ts} +2 -2
  145. package/dist/types/__VUE/comment/components/CmtBottom.taro.vue.d.ts +47 -0
  146. package/dist/types/__VUE/comment/components/CmtHeader.taro.vue.d.ts +122 -0
  147. package/dist/types/__VUE/comment/components/{CmtImages.vue.d.ts → CmtImages.taro.vue.d.ts} +2 -55
  148. package/dist/types/__VUE/comment/index.taro.vue.d.ts +333 -0
  149. package/dist/types/__VUE/countdown/{index.d.ts → index.taro.d.ts} +2 -2
  150. package/dist/types/__VUE/countup/{index.vue.d.ts → index.taro.vue.d.ts} +5 -7
  151. package/dist/types/__VUE/datepicker/{index.vue.d.ts → index.taro.vue.d.ts} +31 -2
  152. package/dist/types/__VUE/dialog/{index.vue.d.ts → index.taro.vue.d.ts} +52 -85
  153. package/dist/types/__VUE/divider/{index.d.ts → index.taro.d.ts} +2 -2
  154. package/dist/types/__VUE/drag/{index.vue.d.ts → index.taro.vue.d.ts} +2 -0
  155. package/dist/types/__VUE/elevator/{index.vue.d.ts → index.taro.vue.d.ts} +40 -5
  156. package/dist/types/__VUE/ellipsis/{index.vue.d.ts → index.taro.vue.d.ts} +11 -6
  157. package/dist/types/__VUE/empty/{index.d.ts → index.taro.d.ts} +2 -2
  158. package/dist/types/__VUE/fixednav/{index.vue.d.ts → index.taro.vue.d.ts} +2 -55
  159. package/dist/types/__VUE/form/{index.d.ts → index.taro.d.ts} +2 -2
  160. package/dist/types/__VUE/formitem/{index.d.ts → index.taro.d.ts} +2 -2
  161. package/dist/types/__VUE/grid/{index.d.ts → index.taro.d.ts} +2 -2
  162. package/dist/types/__VUE/griditem/{grid-item.vue.d.ts → grid-item.taro.vue.d.ts} +3 -21
  163. package/dist/types/__VUE/griditem/{index.d.ts → index.taro.d.ts} +2 -2
  164. package/dist/types/__VUE/imagepreview/index.taro.vue.d.ts +732 -0
  165. package/dist/types/__VUE/indicator/{index.d.ts → index.taro.d.ts} +2 -2
  166. package/dist/types/__VUE/input/{index.d.ts → index.taro.d.ts} +2 -2
  167. package/dist/types/__VUE/input/{input.vue.d.ts → input.taro.vue.d.ts} +14 -6
  168. package/dist/types/__VUE/inputnumber/{index.d.ts → index.taro.d.ts} +2 -2
  169. package/dist/types/__VUE/invoice/{index.d.ts → index.taro.d.ts} +2 -2
  170. package/dist/types/__VUE/layout/{index.d.ts → index.taro.d.ts} +1 -1
  171. package/dist/types/__VUE/list/{index.vue.d.ts → index.taro.vue.d.ts} +32 -4
  172. package/dist/types/__VUE/menu/index.taro.vue.d.ts +104 -0
  173. package/dist/types/__VUE/menuitem/{index.vue.d.ts → index.taro.vue.d.ts} +22 -114
  174. package/dist/types/__VUE/navbar/{index.d.ts → index.taro.d.ts} +2 -2
  175. package/dist/types/__VUE/noticebar/{index.vue.d.ts → index.taro.vue.d.ts} +9 -116
  176. package/dist/types/__VUE/notify/{index.vue.d.ts → index.taro.vue.d.ts} +2 -66
  177. package/dist/types/__VUE/numberkeyboard/{index.vue.d.ts → index.taro.vue.d.ts} +14 -60
  178. package/dist/types/__VUE/overlay/{index.d.ts → index.taro.d.ts} +2 -2
  179. package/dist/types/__VUE/picker/{index.vue.d.ts → index.taro.vue.d.ts} +31 -2
  180. package/dist/types/__VUE/popover/{index.vue.d.ts → index.taro.vue.d.ts} +4 -56
  181. package/dist/types/__VUE/popup/{index.vue.d.ts → index.taro.vue.d.ts} +3 -56
  182. package/dist/types/__VUE/price/{index.d.ts → index.taro.d.ts} +2 -2
  183. package/dist/types/__VUE/progress/{index.d.ts → index.taro.d.ts} +2 -2
  184. package/dist/types/__VUE/radio/{index.d.ts → index.taro.d.ts} +2 -2
  185. package/dist/types/__VUE/radiogroup/{index.d.ts → index.taro.d.ts} +2 -2
  186. package/dist/types/__VUE/range/{index.vue.d.ts → index.taro.vue.d.ts} +3 -2
  187. package/dist/types/__VUE/rate/{index.d.ts → index.taro.d.ts} +2 -2
  188. package/dist/types/__VUE/rate/rate.taro.vue.d.ts +95 -0
  189. package/dist/types/__VUE/row/{index.d.ts → index.taro.d.ts} +2 -2
  190. package/dist/types/__VUE/scroll-view/index.taro.vue.d.ts +9 -0
  191. package/dist/types/__VUE/searchbar/{index.vue.d.ts → index.taro.vue.d.ts} +23 -121
  192. package/dist/types/__VUE/shortpassword/{index.vue.d.ts → index.taro.vue.d.ts} +5 -112
  193. package/dist/types/__VUE/sidenavbar/{index.vue.d.ts → index.taro.vue.d.ts} +0 -9
  194. package/dist/types/__VUE/signature/{index.vue.d.ts → index.taro.vue.d.ts} +53 -31
  195. package/dist/types/__VUE/skeleton/{index.d.ts → index.taro.d.ts} +2 -2
  196. package/dist/types/__VUE/sku/components/{SkuHeader.vue.d.ts → SkuHeader.taro.vue.d.ts} +6 -6
  197. package/dist/types/__VUE/sku/{index.vue.d.ts → index.taro.vue.d.ts} +25 -62
  198. package/dist/types/__VUE/step/{index.d.ts → index.taro.d.ts} +2 -2
  199. package/dist/types/__VUE/steps/{index.d.ts → index.taro.d.ts} +2 -2
  200. package/dist/types/__VUE/sticky/{index.vue.d.ts → index.taro.vue.d.ts} +7 -26
  201. package/dist/types/__VUE/subsidenavbar/index.taro.vue.d.ts +45 -0
  202. package/dist/types/__VUE/swipe/{index.d.ts → index.taro.d.ts} +2 -2
  203. package/dist/types/__VUE/swipegroup/{index.d.ts → index.taro.d.ts} +2 -2
  204. package/dist/types/__VUE/swiper/{index.vue.d.ts → index.taro.vue.d.ts} +6 -5
  205. package/dist/types/__VUE/switch/{index.d.ts → index.taro.d.ts} +2 -2
  206. package/dist/types/__VUE/tabbar/{index.d.ts → index.taro.d.ts} +2 -2
  207. package/dist/types/__VUE/tabbaritem/{index.d.ts → index.taro.d.ts} +2 -2
  208. package/dist/types/__VUE/table/{index.vue.d.ts → index.taro.vue.d.ts} +2 -55
  209. package/dist/types/__VUE/tabs/{index.vue.d.ts → index.taro.vue.d.ts} +27 -118
  210. package/dist/types/__VUE/tag/{index.d.ts → index.taro.d.ts} +2 -2
  211. package/dist/types/__VUE/textarea/{index.d.ts → index.taro.d.ts} +2 -2
  212. package/dist/types/__VUE/textarea/{textarea.vue.d.ts → textarea.taro.vue.d.ts} +1 -1
  213. package/dist/types/__VUE/timeselect/{index.vue.d.ts → index.taro.vue.d.ts} +3 -66
  214. package/dist/types/__VUE/toast/{index.vue.d.ts → index.taro.vue.d.ts} +16 -12
  215. package/dist/types/__VUE/tour/{index.vue.d.ts → index.taro.vue.d.ts} +13 -121
  216. package/dist/types/__VUE/trendarrow/{index.d.ts → index.taro.d.ts} +2 -2
  217. package/dist/types/__VUE/uploader/{index.vue.d.ts → index.taro.vue.d.ts} +268 -286
  218. package/dist/types/__VUE/watermark/{index.d.ts → index.taro.d.ts} +2 -2
  219. package/dist/types/index.d.ts +145 -155
  220. package/package.json +19 -96
  221. package/dist/nutui.js +0 -15856
  222. package/dist/packages/audio/Audio.js +0 -271
  223. package/dist/packages/audio/index.mjs +0 -2
  224. package/dist/packages/audiooperate/AudioOperate.js +0 -125
  225. package/dist/packages/audiooperate/index.mjs +0 -2
  226. package/dist/packages/image/Image.js +0 -167
  227. package/dist/packages/image/index.mjs +0 -2
  228. package/dist/packages/index-B1qsj2XR.js +0 -33
  229. package/dist/packages/index-BvmDLUYP.js +0 -31
  230. package/dist/packages/index-aiGQ-EiA.js +0 -8
  231. package/dist/packages/infiniteloading/InfiniteLoading.js +0 -184
  232. package/dist/packages/infiniteloading/index.mjs +0 -2
  233. package/dist/packages/mountComponent-CLi4Nz91.js +0 -39
  234. package/dist/packages/pullrefresh/PullRefresh.js +0 -240
  235. package/dist/packages/pullrefresh/index.mjs +0 -2
  236. package/dist/packages/types-BMA1Y94E.js +0 -4
  237. package/dist/packages/video/Video.js +0 -449
  238. package/dist/packages/video/index.mjs +0 -2
  239. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +0 -134
  240. package/dist/types/__VUE/audio/index.vue.d.ts +0 -323
  241. package/dist/types/__VUE/audio/types.d.ts +0 -3
  242. package/dist/types/__VUE/audiooperate/index.vue.d.ts +0 -229
  243. package/dist/types/__VUE/collapseitem/collapse-item.vue.d.ts +0 -201
  244. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +0 -208
  245. package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +0 -248
  246. package/dist/types/__VUE/comment/index.vue.d.ts +0 -728
  247. package/dist/types/__VUE/dialog/index.d.ts +0 -45
  248. package/dist/types/__VUE/image/image.vue.d.ts +0 -111
  249. package/dist/types/__VUE/image/index.d.ts +0 -6
  250. package/dist/types/__VUE/image/types.d.ts +0 -2
  251. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +0 -267
  252. package/dist/types/__VUE/imagepreview/index.d.ts +0 -36
  253. package/dist/types/__VUE/imagepreview/index.vue.d.ts +0 -1088
  254. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +0 -140
  255. package/dist/types/__VUE/menu/index.vue.d.ts +0 -210
  256. package/dist/types/__VUE/notify/index.d.ts +0 -22
  257. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -200
  258. package/dist/types/__VUE/rate/rate.vue.d.ts +0 -208
  259. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +0 -152
  260. package/dist/types/__VUE/toast/index.d.ts +0 -12
  261. package/dist/types/__VUE/video/index.vue.d.ts +0 -149
  262. package/dist/packages/{index-Do4_KY74.js → index.taro-Do4_KY74.js} +0 -0
  263. package/dist/types/__VUE/animate/{animate.vue.d.ts → animate.taro.vue.d.ts} +0 -0
  264. package/dist/types/__VUE/avatar/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  265. package/dist/types/__VUE/avatargroup/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  266. package/dist/types/__VUE/badge/{badge.vue.d.ts → badge.taro.vue.d.ts} +0 -0
  267. package/dist/types/__VUE/calendarcard/{calendar-card.vue.d.ts → calendar-card.taro.vue.d.ts} +0 -0
  268. package/dist/types/__VUE/calendarcard/{icon.d.ts → icon.taro.d.ts} +0 -0
  269. package/dist/types/__VUE/categorypane/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  270. package/dist/types/__VUE/cellgroup/{cell-group.vue.d.ts → cell-group.taro.vue.d.ts} +0 -0
  271. package/dist/types/__VUE/checkbox/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  272. package/dist/types/__VUE/checkboxgroup/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  273. package/dist/types/__VUE/col/{col.vue.d.ts → col.taro.vue.d.ts} +0 -0
  274. package/dist/types/__VUE/collapse/{collapse.vue.d.ts → collapse.taro.vue.d.ts} +0 -0
  275. package/dist/types/__VUE/configprovider/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  276. package/dist/types/__VUE/countdown/{countdown.vue.d.ts → countdown.taro.vue.d.ts} +0 -0
  277. package/dist/types/__VUE/divider/{divider.vue.d.ts → divider.taro.vue.d.ts} +0 -0
  278. package/dist/types/__VUE/ecard/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  279. package/dist/types/__VUE/empty/{empty.vue.d.ts → empty.taro.vue.d.ts} +0 -0
  280. package/dist/types/__VUE/form/{form.vue.d.ts → form.taro.vue.d.ts} +0 -0
  281. package/dist/types/__VUE/formitem/{form-item.vue.d.ts → form-item.taro.vue.d.ts} +0 -0
  282. package/dist/types/__VUE/grid/{grid.vue.d.ts → grid.taro.vue.d.ts} +0 -0
  283. package/dist/types/__VUE/indicator/{indicator.vue.d.ts → indicator.taro.vue.d.ts} +0 -0
  284. package/dist/types/__VUE/inputnumber/{input-number.vue.d.ts → input-number.taro.vue.d.ts} +0 -0
  285. package/dist/types/__VUE/invoice/{invoice.vue.d.ts → invoice.taro.vue.d.ts} +0 -0
  286. package/dist/types/__VUE/layout/{layout.vue.d.ts → layout.taro.vue.d.ts} +0 -0
  287. package/dist/types/__VUE/navbar/{navbar.vue.d.ts → navbar.taro.vue.d.ts} +0 -0
  288. package/dist/types/__VUE/overlay/{overlay.vue.d.ts → overlay.taro.vue.d.ts} +0 -0
  289. package/dist/types/__VUE/pagination/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  290. package/dist/types/__VUE/price/{price.vue.d.ts → price.taro.vue.d.ts} +0 -0
  291. package/dist/types/__VUE/progress/{progress.vue.d.ts → progress.taro.vue.d.ts} +0 -0
  292. package/dist/types/__VUE/radio/{radio.vue.d.ts → radio.taro.vue.d.ts} +0 -0
  293. package/dist/types/__VUE/radiogroup/{radio-group.vue.d.ts → radio-group.taro.vue.d.ts} +0 -0
  294. package/dist/types/__VUE/row/{row.vue.d.ts → row.taro.vue.d.ts} +0 -0
  295. package/dist/types/__VUE/sidenavbaritem/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  296. package/dist/types/__VUE/skeleton/{skeleton.vue.d.ts → skeleton.taro.vue.d.ts} +2 -2
  297. package/dist/types/__VUE/sku/components/{SkuStepper.vue.d.ts → SkuStepper.taro.vue.d.ts} +0 -0
  298. package/dist/types/__VUE/space/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  299. package/dist/types/__VUE/step/{step.vue.d.ts → step.taro.vue.d.ts} +0 -0
  300. package/dist/types/__VUE/steps/{steps.vue.d.ts → steps.taro.vue.d.ts} +0 -0
  301. package/dist/types/__VUE/swipe/{swipe.vue.d.ts → swipe.taro.vue.d.ts} +0 -0
  302. package/dist/types/__VUE/swipegroup/{swipe-group.vue.d.ts → swipe-group.taro.vue.d.ts} +0 -0
  303. package/dist/types/__VUE/swiperitem/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  304. package/dist/types/__VUE/switch/{switch.vue.d.ts → switch.taro.vue.d.ts} +0 -0
  305. package/dist/types/__VUE/tabbar/{tabbar.vue.d.ts → tabbar.taro.vue.d.ts} +0 -0
  306. package/dist/types/__VUE/tabbaritem/{tabbar-item.vue.d.ts → tabbar-item.taro.vue.d.ts} +0 -0
  307. package/dist/types/__VUE/tabpane/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  308. package/dist/types/__VUE/tag/{tag.vue.d.ts → tag.taro.vue.d.ts} +0 -0
  309. package/dist/types/__VUE/timedetail/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  310. package/dist/types/__VUE/timepannel/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  311. package/dist/types/__VUE/trendarrow/{trend-arrow.vue.d.ts → trend-arrow.taro.vue.d.ts} +1 -1
  312. package/dist/types/__VUE/watermark/{watermark.vue.d.ts → watermark.taro.vue.d.ts} +2 -2
@@ -1,3 +1,2 @@
1
1
  import Toast from './Toast.js';
2
- import { showToast } from './Toast.js';
3
- export { Toast, showToast, Toast as default };
2
+ export { Toast, Toast as default };
@@ -17,10 +17,30 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { reactive, ref, computed, onMounted, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, createElementVNode, vShow, Fragment, renderList, normalizeStyle, createCommentVNode, createVNode, withCtx, renderSlot, toDisplayString } from "vue";
20
+ var __async = (__this, __arguments, generator) => {
21
+ return new Promise((resolve, reject) => {
22
+ var fulfilled = (value) => {
23
+ try {
24
+ step(generator.next(value));
25
+ } catch (e) {
26
+ reject(e);
27
+ }
28
+ };
29
+ var rejected = (value) => {
30
+ try {
31
+ step(generator.throw(value));
32
+ } catch (e) {
33
+ reject(e);
34
+ }
35
+ };
36
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37
+ step((generator = generator.apply(__this, __arguments)).next());
38
+ });
39
+ };
40
+ import { reactive, ref, computed, onMounted, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createCommentVNode, createTextVNode, Fragment, renderList, normalizeStyle, createVNode, withCtx, renderSlot, createElementVNode, toDisplayString } from "vue";
21
41
  import { c as createComponent } from "../component-DQf3CENX.js";
22
- import { u as useRect } from "../index-B1qsj2XR.js";
23
- import { Close } from "@nutui/icons-vue";
42
+ import { a as useTaroRectById } from "../index-m0Wcof-q.js";
43
+ import { Close } from "@nutui/icons-vue-taro";
24
44
  import NutPopover from "../popover/Popover.js";
25
45
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
26
46
  const { create } = createComponent("tour");
@@ -100,17 +120,19 @@ const _sfc_main = create({
100
120
  setup(props, { emit }) {
101
121
  const state = reactive({
102
122
  showTour: props.modelValue,
103
- showPopup: false,
104
123
  active: 0
105
124
  });
106
- const maskRect = ref({});
125
+ const showPopup = ref([false]);
126
+ let maskRect = [];
127
+ let maskStyles = ref([]);
107
128
  const classes = computed(() => {
108
129
  const prefixCls = "nut-tour";
109
130
  return `${prefixCls}`;
110
131
  });
111
- const maskStyle = computed(() => {
132
+ const maskStyle = (index) => {
112
133
  const { offset, maskWidth, maskHeight } = props;
113
- const { width, height, left, top } = maskRect.value;
134
+ if (!maskRect[index]) return {};
135
+ const { width, height, left, top } = maskRect[index];
114
136
  const center = [left + width / 2, top + height / 2];
115
137
  const w = Number(maskWidth ? maskWidth : width);
116
138
  const h = Number(maskHeight ? maskHeight : height);
@@ -120,29 +142,38 @@ const _sfc_main = create({
120
142
  top: `${center[1] - h / 2 - +offset[0]}px`,
121
143
  left: `${center[0] - w / 2 - +offset[1]}px`
122
144
  };
123
- return styles;
124
- });
145
+ maskStyles.value[index] = styles;
146
+ };
125
147
  const changeStep = (type) => {
148
+ const current = state.active;
149
+ let next = current;
126
150
  if (type == "next") {
127
- state.active = state.active + 1;
151
+ next = current + 1;
128
152
  } else {
129
- state.active = state.active - 1;
153
+ next = current - 1;
130
154
  }
131
- state.showPopup = false;
132
- nextTick(() => {
133
- state.showPopup = true;
134
- getRootPosition();
135
- });
155
+ showPopup.value[current] = false;
156
+ setTimeout(() => {
157
+ showPopup.value[next] = true;
158
+ state.active = next;
159
+ }, 300);
136
160
  emit("change", state.active);
137
161
  };
138
162
  const getRootPosition = () => {
139
- const el = document.querySelector(`#${props.steps[state.active].target}`);
140
- const rect = useRect(el);
141
- maskRect.value = rect;
163
+ props.steps.forEach((item, i) => __async(this, null, function* () {
164
+ useTaroRectById(item.target).then(
165
+ (rect) => {
166
+ maskRect[i] = rect;
167
+ maskStyle(i);
168
+ },
169
+ () => {
170
+ }
171
+ );
172
+ }));
142
173
  };
143
174
  const close = () => {
144
175
  state.showTour = false;
145
- state.showPopup = false;
176
+ showPopup.value[state.active] = false;
146
177
  emit("close", state.active);
147
178
  emit("update:modelValue", false);
148
179
  };
@@ -150,130 +181,145 @@ const _sfc_main = create({
150
181
  props.closeOnClickOverlay && close();
151
182
  };
152
183
  onMounted(() => {
153
- state.active = 0;
154
- getRootPosition();
184
+ setTimeout(() => {
185
+ getRootPosition();
186
+ }, 500);
155
187
  });
156
188
  watch(
157
189
  () => props.modelValue,
158
190
  (val) => {
159
191
  if (val) {
192
+ state.active = 0;
160
193
  getRootPosition();
161
194
  }
162
- state.active = 0;
163
195
  state.showTour = val;
164
- state.showPopup = val;
196
+ showPopup.value[state.active] = val;
165
197
  }
166
198
  );
199
+ const refRandomId = Math.random().toString(36).slice(-8);
167
200
  return __spreadProps(__spreadValues({}, toRefs(state)), {
168
201
  classes,
169
202
  maskStyle,
170
203
  changeStep,
204
+ showPopup,
171
205
  close,
172
- handleClickMask
206
+ handleClickMask,
207
+ maskStyles,
208
+ refRandomId
173
209
  });
174
210
  }
175
211
  });
176
- const _hoisted_1 = {
212
+ const _hoisted_1 = ["id"];
213
+ const _hoisted_2 = {
177
214
  key: 0,
178
215
  class: "nut-tour-content"
179
216
  };
180
- const _hoisted_2 = {
217
+ const _hoisted_3 = {
181
218
  key: 0,
182
219
  class: "nut-tour-content-top"
183
220
  };
184
- const _hoisted_3 = { class: "nut-tour-content-inner" };
185
- const _hoisted_4 = { class: "nut-tour-content-bottom" };
186
- const _hoisted_5 = { class: "nut-tour-content-bottom-init" };
187
- const _hoisted_6 = { class: "nut-tour-content-bottom-operate" };
188
- const _hoisted_7 = {
221
+ const _hoisted_4 = { class: "nut-tour-content-inner" };
222
+ const _hoisted_5 = { class: "nut-tour-content-bottom" };
223
+ const _hoisted_6 = { class: "nut-tour-content-bottom-init" };
224
+ const _hoisted_7 = { class: "nut-tour-content-bottom-operate" };
225
+ const _hoisted_8 = {
189
226
  key: 1,
190
227
  class: "nut-tour-content nut-tour-content-tile"
191
228
  };
192
- const _hoisted_8 = { class: "nut-tour-content-inner" };
229
+ const _hoisted_9 = { class: "nut-tour-content-inner" };
193
230
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
194
231
  const _component_Close = resolveComponent("Close");
195
232
  const _component_nut_popover = resolveComponent("nut-popover");
196
- return openBlock(), createElementBlock("div", {
233
+ return openBlock(), createElementBlock("view", {
197
234
  class: normalizeClass(_ctx.classes)
198
235
  }, [
199
- withDirectives(createElementVNode("div", {
236
+ _ctx.showTour ? (openBlock(), createElementBlock("view", {
237
+ key: 0,
200
238
  class: "nut-tour-masked",
201
239
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClickMask && _ctx.handleClickMask(...args))
202
- }, null, 512), [
203
- [vShow, _ctx.showTour]
204
- ]),
240
+ })) : createCommentVNode("", true),
241
+ _cache[12] || (_cache[12] = createTextVNode()),
205
242
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.steps, (step, i) => {
206
- return openBlock(), createElementBlock("div", {
243
+ return openBlock(), createElementBlock("view", {
207
244
  key: i,
208
245
  style: { "height": "0" }
209
246
  }, [
210
- i == _ctx.active ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
211
- _ctx.showTour ? (openBlock(), createElementBlock("div", {
212
- key: 0,
213
- id: "nut-tour-popid",
214
- class: normalizeClass(["nut-tour-mask", [_ctx.mask ? "" : "nut-tour-mask-none"]]),
215
- style: normalizeStyle(_ctx.maskStyle)
216
- }, null, 6)) : createCommentVNode("", true),
217
- createVNode(_component_nut_popover, {
218
- visible: _ctx.showPopup,
219
- "onUpdate:visible": _cache[5] || (_cache[5] = ($event) => _ctx.showPopup = $event),
220
- location: step.location || _ctx.location,
221
- "target-id": "nut-tour-popid",
222
- "bg-color": _ctx.bgColor,
223
- theme: _ctx.theme,
224
- "close-on-click-outside": false,
225
- offset: step.popoverOffset || [0, 12],
226
- "arrow-offset": step.arrowOffset || 0
227
- }, {
228
- content: withCtx(() => [
229
- renderSlot(_ctx.$slots, "default", {}, () => [
230
- _ctx.type == "step" ? (openBlock(), createElementBlock("div", _hoisted_1, [
231
- _ctx.showTitleBar ? (openBlock(), createElementBlock("div", _hoisted_2, [
232
- createElementVNode("div", {
233
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.close && _ctx.close(...args))
234
- }, [
235
- createVNode(_component_Close, { class: "nut-tour-content-top-close" })
236
- ])
237
- ])) : createCommentVNode("", true),
238
- createElementVNode("div", _hoisted_3, toDisplayString(step.content), 1),
239
- createElementVNode("div", _hoisted_4, [
240
- createElementVNode("div", _hoisted_5, toDisplayString(_ctx.active + 1) + "/" + toDisplayString(_ctx.steps.length), 1),
241
- createElementVNode("div", _hoisted_6, [
242
- renderSlot(_ctx.$slots, "prev-step", {}, () => [
243
- _ctx.active != 0 && _ctx.showPrevStep ? (openBlock(), createElementBlock("div", {
244
- key: 0,
245
- class: "nut-tour-content-bottom-operate-btn",
246
- onClick: _cache[2] || (_cache[2] = ($event) => _ctx.changeStep("prev"))
247
- }, toDisplayString(_ctx.prevStepTxt), 1)) : createCommentVNode("", true)
248
- ]),
249
- _ctx.steps.length - 1 == _ctx.active ? (openBlock(), createElementBlock("div", {
247
+ _ctx.showTour ? (openBlock(), createElementBlock("view", {
248
+ key: 0,
249
+ id: `nut-tour-popid${i}${_ctx.refRandomId}`,
250
+ class: normalizeClass(["nut-tour-mask", [_ctx.mask ? _ctx.showPopup[i] ? "" : "nut-tour-mask-hidden" : "nut-tour-mask-none"]]),
251
+ style: normalizeStyle(_ctx.maskStyles[i])
252
+ }, null, 14, _hoisted_1)) : createCommentVNode("", true),
253
+ _cache[11] || (_cache[11] = createTextVNode()),
254
+ createVNode(_component_nut_popover, {
255
+ visible: _ctx.showPopup[i],
256
+ "onUpdate:visible": ($event) => _ctx.showPopup[i] = $event,
257
+ location: step.location || _ctx.location,
258
+ "target-id": `nut-tour-popid${i}${_ctx.refRandomId}`,
259
+ "bg-color": _ctx.bgColor,
260
+ theme: _ctx.theme,
261
+ "close-on-click-outside": false,
262
+ offset: step.popoverOffset || [0, 12],
263
+ "arrow-offset": step.arrowOffset || 0,
264
+ duration: 0.2
265
+ }, {
266
+ content: withCtx(() => [
267
+ renderSlot(_ctx.$slots, "default", {}, () => [
268
+ _ctx.type == "step" ? (openBlock(), createElementBlock("view", _hoisted_2, [
269
+ _ctx.showTitleBar ? (openBlock(), createElementBlock("view", _hoisted_3, [
270
+ createElementVNode("view", {
271
+ onClick: _cache[1] || (_cache[1] = (...args) => _ctx.close && _ctx.close(...args))
272
+ }, [
273
+ createVNode(_component_Close, {
274
+ class: "nut-tour-content-top-close",
275
+ size: "10px"
276
+ })
277
+ ])
278
+ ])) : createCommentVNode("", true),
279
+ _cache[8] || (_cache[8] = createTextVNode()),
280
+ createElementVNode("view", _hoisted_4, toDisplayString(step.content), 1),
281
+ _cache[9] || (_cache[9] = createTextVNode()),
282
+ createElementVNode("view", _hoisted_5, [
283
+ createElementVNode("view", _hoisted_6, toDisplayString(_ctx.active + 1) + "/" + toDisplayString(_ctx.steps.length), 1),
284
+ _cache[7] || (_cache[7] = createTextVNode()),
285
+ createElementVNode("view", _hoisted_7, [
286
+ renderSlot(_ctx.$slots, "prev-step", {}, () => [
287
+ _ctx.active != 0 && _ctx.showPrevStep ? (openBlock(), createElementBlock("view", {
288
+ key: 0,
289
+ class: "nut-tour-content-bottom-operate-btn",
290
+ onClick: _cache[2] || (_cache[2] = ($event) => _ctx.changeStep("prev"))
291
+ }, toDisplayString(_ctx.prevStepTxt), 1)) : createCommentVNode("", true)
292
+ ]),
293
+ _cache[5] || (_cache[5] = createTextVNode()),
294
+ _ctx.steps.length - 1 == _ctx.active ? (openBlock(), createElementBlock("view", {
295
+ key: 0,
296
+ class: "nut-tour-content-bottom-operate-btn active",
297
+ onClick: _cache[3] || (_cache[3] = (...args) => _ctx.close && _ctx.close(...args))
298
+ }, toDisplayString(_ctx.completeTxt), 1)) : createCommentVNode("", true),
299
+ _cache[6] || (_cache[6] = createTextVNode()),
300
+ renderSlot(_ctx.$slots, "next-step", {}, () => [
301
+ _ctx.steps.length - 1 != _ctx.active ? (openBlock(), createElementBlock("view", {
250
302
  key: 0,
251
303
  class: "nut-tour-content-bottom-operate-btn active",
252
- onClick: _cache[3] || (_cache[3] = (...args) => _ctx.close && _ctx.close(...args))
253
- }, toDisplayString(_ctx.completeTxt), 1)) : createCommentVNode("", true),
254
- renderSlot(_ctx.$slots, "next-step", {}, () => [
255
- _ctx.steps.length - 1 != _ctx.active ? (openBlock(), createElementBlock("div", {
256
- key: 0,
257
- class: "nut-tour-content-bottom-operate-btn active",
258
- onClick: _cache[4] || (_cache[4] = ($event) => _ctx.changeStep("next"))
259
- }, toDisplayString(_ctx.nextStepTxt), 1)) : createCommentVNode("", true)
260
- ])
304
+ onClick: _cache[4] || (_cache[4] = ($event) => _ctx.changeStep("next"))
305
+ }, toDisplayString(_ctx.nextStepTxt), 1)) : createCommentVNode("", true)
261
306
  ])
262
307
  ])
263
- ])) : createCommentVNode("", true),
264
- _ctx.type == "tile" ? (openBlock(), createElementBlock("div", _hoisted_7, [
265
- createElementVNode("div", _hoisted_8, toDisplayString(step.content), 1)
266
- ])) : createCommentVNode("", true)
267
- ])
268
- ]),
269
- _: 2
270
- }, 1032, ["visible", "location", "bg-color", "theme", "offset", "arrow-offset"])
271
- ], 64)) : createCommentVNode("", true)
308
+ ])
309
+ ])) : createCommentVNode("", true),
310
+ _cache[10] || (_cache[10] = createTextVNode()),
311
+ _ctx.type == "tile" ? (openBlock(), createElementBlock("view", _hoisted_8, [
312
+ createElementVNode("view", _hoisted_9, toDisplayString(step.content), 1)
313
+ ])) : createCommentVNode("", true)
314
+ ])
315
+ ]),
316
+ _: 2
317
+ }, 1032, ["visible", "onUpdate:visible", "location", "target-id", "bg-color", "theme", "offset", "arrow-offset"])
272
318
  ]);
273
319
  }), 128))
274
320
  ], 2);
275
321
  }
276
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
322
+ const index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
277
323
  export {
278
- index as default
324
+ index_taro as default
279
325
  };
@@ -17,15 +17,15 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createVNode, unref } from "vue";
21
- import { m as myFixed } from "../util-D1pvnUYu.js";
22
- import { TriangleUp, TriangleDown } from "@nutui/icons-vue";
20
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, toDisplayString, createCommentVNode, createTextVNode, renderSlot, createVNode, unref } from "vue";
21
+ import { m as myFixed } from "../util-2G3mRQeF.js";
22
+ import { TriangleUp, TriangleDown } from "@nutui/icons-vue-taro";
23
23
  import { w as withInstall } from "../with-install-Ch3FF0uS.js";
24
24
  const _hoisted_1 = { class: "nut-trend-arrow" };
25
25
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
26
26
  name: "NutTrendArrow"
27
27
  }), {
28
- __name: "trend-arrow",
28
+ __name: "trend-arrow.taro",
29
29
  props: {
30
30
  rate: { default: 0 },
31
31
  digits: { default: 2 },
@@ -65,12 +65,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
65
65
  class: "nut-trend-arrow-icon-before nut-trend-arrow-rate",
66
66
  style: normalizeStyle(calcStyle.value)
67
67
  }, toDisplayString(calcRate.value), 5)) : createCommentVNode("", true),
68
+ _cache[0] || (_cache[0] = createTextVNode()),
68
69
  Number(_ctx.rate) !== 0 && isPositive.value ? renderSlot(_ctx.$slots, "up-icon", { key: 1 }, () => [
69
70
  createVNode(unref(TriangleUp), { color: _ctx.riseColor }, null, 8, ["color"])
70
71
  ]) : createCommentVNode("", true),
72
+ _cache[1] || (_cache[1] = createTextVNode()),
71
73
  Number(_ctx.rate) !== 0 && !isPositive.value ? renderSlot(_ctx.$slots, "down-icon", { key: 2 }, () => [
72
74
  createVNode(unref(TriangleDown), { color: _ctx.dropColor }, null, 8, ["color"])
73
75
  ]) : createCommentVNode("", true),
76
+ _cache[2] || (_cache[2] = createTextVNode()),
74
77
  _ctx.arrowLeft ? (openBlock(), createElementBlock("span", {
75
78
  key: 3,
76
79
  class: "nut-trend-arrow-icon-after nut-trend-arrow-rate",