@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,4 +1,4 @@
1
- import { f as isPromise } from "./util-D1pvnUYu.js";
1
+ import { d as isPromise } from "./util-2G3mRQeF.js";
2
2
  const funInterceptor = (interceptor, {
3
3
  args = [],
4
4
  done,
@@ -18,9 +18,9 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { c as createComponent } from "../component-DQf3CENX.js";
21
- import { useSlots, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeClass, normalizeStyle } from "vue";
22
- import { N as NutPopup, p as popupProps } from "../index-wLaOjIn1.js";
23
- import { Loading } from "@nutui/icons-vue";
21
+ import { useSlots, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, toDisplayString, createCommentVNode, createTextVNode, renderSlot, Fragment, renderList, normalizeClass, normalizeStyle } from "vue";
22
+ import { N as NutPopup, p as popupProps } from "../index.taro-CNxLoYer.js";
23
+ import { Loading } from "@nutui/icons-vue-taro";
24
24
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
25
25
  const { create } = createComponent("action-sheet");
26
26
  const _sfc_main = create({
@@ -76,9 +76,9 @@ const _sfc_main = create({
76
76
  emit("cancel");
77
77
  emit("update:visible", false);
78
78
  };
79
- const chooseItem = (item, index2) => {
79
+ const chooseItem = (item, index) => {
80
80
  if (!item.disable && !item.loading) {
81
- emit("choose", item, index2);
81
+ emit("choose", item, index);
82
82
  emit("update:visible", false);
83
83
  }
84
84
  };
@@ -123,31 +123,37 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
123
123
  round: "",
124
124
  "close-on-click-overlay": _ctx.closeAbled,
125
125
  "lock-scroll": _ctx.lockScroll,
126
+ "catch-move": _ctx.lockScroll,
126
127
  "z-index": _ctx.zIndex,
127
128
  onClickOverlay: _ctx.close
128
129
  }, {
129
130
  default: withCtx(() => [
130
131
  createElementVNode("view", _hoisted_1, [
131
132
  _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
133
+ _cache[4] || (_cache[4] = createTextVNode()),
132
134
  renderSlot(_ctx.$slots, "default"),
135
+ _cache[5] || (_cache[5] = createTextVNode()),
133
136
  !_ctx.slotDefault ? (openBlock(), createElementBlock("view", _hoisted_3, [
134
137
  _ctx.description ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
138
+ _cache[2] || (_cache[2] = createTextVNode()),
135
139
  _ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_5, [
136
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index2) => {
140
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index) => {
137
141
  return openBlock(), createElementBlock("view", {
138
- key: index2,
142
+ key: index,
139
143
  class: normalizeClass(["nut-action-sheet__item", {
140
144
  "nut-action-sheet__item--disabled": item.disable,
141
145
  "nut-action-sheet__item--loading": item.loading
142
146
  }]),
143
147
  style: normalizeStyle({ color: _ctx.isHighlight(item) || item.color }),
144
- onClick: ($event) => _ctx.chooseItem(item, index2)
148
+ onClick: ($event) => _ctx.chooseItem(item, index)
145
149
  }, [
146
150
  item.loading ? (openBlock(), createBlock(_component_Loading, { key: 0 })) : (openBlock(), createElementBlock("view", _hoisted_7, toDisplayString(item[_ctx.optionTag]), 1)),
151
+ _cache[1] || (_cache[1] = createTextVNode()),
147
152
  createElementVNode("view", _hoisted_8, toDisplayString(item[_ctx.optionSubTag]), 1)
148
153
  ], 14, _hoisted_6);
149
154
  }), 128))
150
155
  ])) : createCommentVNode("", true),
156
+ _cache[3] || (_cache[3] = createTextVNode()),
151
157
  _ctx.cancelTxt ? (openBlock(), createElementBlock("view", {
152
158
  key: 2,
153
159
  class: "nut-action-sheet__cancel",
@@ -157,9 +163,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
157
163
  ])
158
164
  ]),
159
165
  _: 3
160
- }, 8, ["visible", "close-on-click-overlay", "lock-scroll", "z-index", "onClickOverlay"]);
166
+ }, 8, ["visible", "close-on-click-overlay", "lock-scroll", "catch-move", "z-index", "onClickOverlay"]);
161
167
  }
162
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
168
+ const index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
163
169
  export {
164
- index as default
170
+ index_taro as default
165
171
  };
@@ -17,15 +17,16 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { ref, reactive, computed, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, renderSlot, withDirectives, createVNode, vShow, toDisplayString, createElementBlock, Fragment, renderList, normalizeClass, createCommentVNode, normalizeStyle, createTextVNode } from "vue";
21
- import { Location, Location2, Check, Close, Left } from "@nutui/icons-vue";
20
+ import { reactive, ref, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, renderSlot, withDirectives, createVNode, vShow, createTextVNode, toDisplayString, createElementBlock, Fragment, renderList, normalizeClass, createCommentVNode } from "vue";
21
+ import { Location, Location2, Check, Close, Left } from "@nutui/icons-vue-taro";
22
+ import { N as NutPopup, p as popupProps } from "../index.taro-CNxLoYer.js";
22
23
  import { c as createComponent } from "../component-DQf3CENX.js";
23
- import { N as NutPopup, p as popupProps } from "../index-wLaOjIn1.js";
24
24
  import NutElevator from "../elevator/Elevator.js";
25
- import { u as useLocale } from "../index-BOB4ytqZ.js";
25
+ import { _ as _sfc_main$1 } from "../index.taro.vue_vue_type_script_setup_true_lang-JJ7hr71Y.js";
26
+ import { u as useLocale } from "../index-IxPZmHlb.js";
26
27
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
27
- const { create } = createComponent("address");
28
28
  const cN = "NutAddress";
29
+ const { create } = createComponent("address");
29
30
  const _sfc_main = create({
30
31
  components: {
31
32
  NutPopup,
@@ -34,7 +35,8 @@ const _sfc_main = create({
34
35
  Location2,
35
36
  Check,
36
37
  Close,
37
- Left
38
+ Left,
39
+ NutScrollView: _sfc_main$1
38
40
  },
39
41
  inheritAttrs: false,
40
42
  props: __spreadProps(__spreadValues({}, popupProps), {
@@ -42,6 +44,10 @@ const _sfc_main = create({
42
44
  type: Array,
43
45
  default: () => []
44
46
  },
47
+ visible: {
48
+ type: Boolean,
49
+ default: false
50
+ },
45
51
  type: {
46
52
  type: String,
47
53
  default: "custom"
@@ -73,10 +79,12 @@ const _sfc_main = create({
73
79
  type: Boolean,
74
80
  default: true
75
81
  },
82
+ // 是否显示‘选择其他地区’按钮 type=‘exist’ 生效
76
83
  existAddress: {
77
84
  type: Array,
78
85
  default: () => []
79
86
  },
87
+ // 现存地址列表
80
88
  existAddressTitle: {
81
89
  type: String,
82
90
  default: ""
@@ -87,7 +95,7 @@ const _sfc_main = create({
87
95
  },
88
96
  height: {
89
97
  type: [String, Number],
90
- default: "200px"
98
+ default: "200"
91
99
  },
92
100
  columnsPlaceholder: {
93
101
  type: [String, Array],
@@ -97,15 +105,19 @@ const _sfc_main = create({
97
105
  emits: ["update:visible", "update:modelValue", "type", "change", "selected", "close", "closeMask", "switchModule"],
98
106
  setup(props, { emit }) {
99
107
  const translate = useLocale(cN);
100
- const regionLine = ref(null);
101
- const tabRegion = ref(null);
108
+ const tabItemRef = reactive({
109
+ province: ref(null),
110
+ city: ref(null),
111
+ country: ref(null),
112
+ town: ref(null)
113
+ });
102
114
  const showPopup = ref(props.visible);
103
115
  const privateType = ref(props.type);
104
116
  const tabIndex = ref(0);
105
117
  const prevTabIndex = ref(0);
106
118
  const tabName = ref(["province", "city", "country", "town"]);
107
- const scrollDom = ref(null);
108
119
  const scrollDis = ref([0, 0, 0, 0]);
120
+ const scrollTop = ref(0);
109
121
  const regionData = reactive([]);
110
122
  const regionList = computed(() => {
111
123
  switch (tabIndex.value) {
@@ -129,16 +141,18 @@ const _sfc_main = create({
129
141
  }
130
142
  });
131
143
  const newData = [];
132
- data = data.sort((a, b) => a.title.localeCompare(b.title));
144
+ data = data.sort((a, b) => {
145
+ return a.title.localeCompare(b.title);
146
+ });
133
147
  data.forEach((item) => {
134
- const index2 = newData.findIndex((value) => value.title === item.title);
135
- if (index2 <= -1) {
148
+ const index = newData.findIndex((value) => value.title === item.title);
149
+ if (index <= -1) {
136
150
  newData.push({
137
151
  title: item.title,
138
152
  list: [].concat(item)
139
153
  });
140
154
  } else {
141
- newData[index2].list.push(item);
155
+ newData[index].list.push(item);
142
156
  }
143
157
  });
144
158
  return newData;
@@ -160,30 +174,27 @@ const _sfc_main = create({
160
174
  tabIndex.value = 0;
161
175
  return;
162
176
  }
163
- for (let index2 = 0; index2 < num; index2++) {
164
- let arr = regionData[index2];
165
- selectedRegion.value[index2] = arr.filter((item) => item.id == defaultValue[index2])[0];
177
+ for (let index = 0; index < num; index++) {
178
+ let arr = regionData[index];
179
+ selectedRegion.value[index] = arr.filter((item) => item.id == defaultValue[index])[0];
166
180
  }
167
- lineAnimation();
181
+ scrollTo();
168
182
  }
169
183
  };
170
- const getTabName = (item, index2) => {
184
+ const getTabName = (item, index) => {
171
185
  if (item && item.name) return item.name;
172
- if (tabIndex.value < index2 && item) {
186
+ if (tabIndex.value < index && item) {
173
187
  return item.name;
174
188
  } else {
175
- return props.columnsPlaceholder[index2] || translate("select");
189
+ return props.columnsPlaceholder[index] || translate("select");
176
190
  }
177
191
  };
178
- const lineAnimation = () => {
179
- scrollTo();
180
- nextTick(() => {
181
- const name = tabRegion.value && tabRegion.value.getElementsByClassName("active")[0];
182
- if (name) {
183
- const distance = name.offsetLeft;
184
- lineDistance.value = distance ? distance : 20;
185
- }
186
- });
192
+ const handClose = (type = "self") => {
193
+ closeWay.value = type == "cross" ? "cross" : "self";
194
+ showPopup.value = false;
195
+ };
196
+ const clickOverlay = () => {
197
+ closeWay.value = "mask";
187
198
  };
188
199
  const nextAreaList = (item) => {
189
200
  var _a;
@@ -197,31 +208,27 @@ const _sfc_main = create({
197
208
  callBackParams.value = item;
198
209
  if (((_a = regionData[tab + 1]) == null ? void 0 : _a.length) > 0) {
199
210
  tabIndex.value = tab + 1;
200
- lineAnimation();
201
211
  callBackParams.next = tabName.value[tabIndex.value];
212
+ scrollTo();
202
213
  } else {
203
214
  handClose();
204
215
  emit("update:modelValue");
205
216
  }
206
217
  emit("change", callBackParams);
207
218
  };
208
- const changeRegionTab = (item, index2) => {
219
+ const changeRegionTab = (item, index) => {
209
220
  prevTabIndex.value = tabIndex.value;
210
- if (getTabName(item, index2)) {
211
- tabIndex.value = index2;
212
- lineAnimation();
221
+ if (getTabName(item, index)) {
222
+ tabIndex.value = index;
223
+ scrollTo();
213
224
  }
214
225
  };
226
+ const scrollChange = (e) => {
227
+ scrollDis.value[tabIndex.value] = e.detail.scrollTop;
228
+ };
215
229
  const scrollTo = () => {
216
- const dom = scrollDom.value;
217
- const prev = prevTabIndex.value;
218
- const cur = scrollDis.value[tabIndex.value];
219
- (dom == null ? void 0 : dom.scrollTop) && (scrollDis.value[prev] = dom == null ? void 0 : dom.scrollTop);
220
- nextTick(() => {
221
- dom == null ? void 0 : dom.scrollTo({
222
- top: cur,
223
- behavior: "auto"
224
- });
230
+ setTimeout(() => {
231
+ scrollTop.value = scrollDis.value[tabIndex.value];
225
232
  });
226
233
  };
227
234
  const selectedExist = (item) => {
@@ -239,14 +246,7 @@ const _sfc_main = create({
239
246
  const initAddress = () => {
240
247
  selectedRegion.value = [];
241
248
  tabIndex.value = 0;
242
- lineAnimation();
243
- };
244
- const handClose = (type = "self") => {
245
- closeWay.value = type == "cross" ? "cross" : "self";
246
- showPopup.value = false;
247
- };
248
- const clickOverlay = () => {
249
- closeWay.value = "mask";
249
+ scrollTo();
250
250
  };
251
251
  const close = () => {
252
252
  const data = {
@@ -302,31 +302,30 @@ const _sfc_main = create({
302
302
  }
303
303
  }
304
304
  );
305
- return __spreadProps(__spreadValues({
305
+ return __spreadProps(__spreadValues(__spreadValues({
306
306
  showPopup,
307
307
  privateType,
308
308
  tabIndex,
309
309
  tabName,
310
+ regionList,
310
311
  selectedRegion,
312
+ selectedExistAddress,
311
313
  switchModule,
312
314
  closeWay,
313
315
  close,
314
316
  getTabName,
315
317
  nextAreaList,
316
- regionLine,
317
- tabRegion,
318
318
  lineDistance,
319
319
  changeRegionTab,
320
320
  selectedExist,
321
321
  clickOverlay,
322
322
  handClose,
323
- handleElevatorItem,
324
- initCustomSelected
325
- }, toRefs(props)), {
323
+ handleElevatorItem
324
+ }, toRefs(props)), toRefs(tabItemRef)), {
326
325
  translate,
327
- regionList,
328
326
  transformData,
329
- scrollDom
327
+ scrollTop,
328
+ scrollChange
330
329
  });
331
330
  }
332
331
  });
@@ -350,10 +349,7 @@ const _hoisted_8 = {
350
349
  key: 0,
351
350
  class: "nut-address__detail"
352
351
  };
353
- const _hoisted_9 = {
354
- ref: "scrollDom",
355
- class: "nut-address__detail-list"
356
- };
352
+ const _hoisted_9 = { class: "nut-address__detail-list" };
357
353
  const _hoisted_10 = ["onClick"];
358
354
  const _hoisted_11 = {
359
355
  key: 1,
@@ -369,18 +365,17 @@ const _hoisted_15 = ["onClick"];
369
365
  const _hoisted_16 = { class: "nut-address__exist-item-info" };
370
366
  const _hoisted_17 = {
371
367
  key: 0,
372
- class: "nut-address__exist-item-info-name"
373
- };
374
- const _hoisted_18 = {
375
- key: 1,
376
- class: "nut-address__exist-item-info-phone"
368
+ class: "nut-address__exist-item-info-top"
377
369
  };
378
- const _hoisted_19 = { class: "nut-address__exist-item-info-bottom" };
379
- const _hoisted_20 = { class: "nut-address__exist-choose-btn" };
370
+ const _hoisted_18 = { class: "nut-address__exist-item-info-name" };
371
+ const _hoisted_19 = { class: "nut-address__exist-item-info-phone" };
372
+ const _hoisted_20 = { class: "nut-address__exist-item-info-bottom" };
373
+ const _hoisted_21 = { class: "nut-address__exist-choose-btn" };
380
374
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
381
375
  const _component_Left = resolveComponent("Left");
382
376
  const _component_Close = resolveComponent("Close");
383
377
  const _component_Check = resolveComponent("Check");
378
+ const _component_nut_scroll_view = resolveComponent("nut-scroll-view");
384
379
  const _component_nut_elevator = resolveComponent("nut-elevator");
385
380
  const _component_Location2 = resolveComponent("Location2");
386
381
  const _component_nut_popup = resolveComponent("nut-popup");
@@ -389,9 +384,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
389
384
  "onUpdate:visible": _cache[3] || (_cache[3] = ($event) => _ctx.showPopup = $event),
390
385
  position: "bottom",
391
386
  "lock-scroll": _ctx.lockScroll,
387
+ "catch-move": _ctx.lockScroll,
392
388
  round: _ctx.round,
393
- "teleport-disable": _ctx.teleportDisable,
394
- teleport: _ctx.teleport,
395
389
  "z-index": _ctx.zIndex,
396
390
  onClose: _ctx.close,
397
391
  onClickOverlay: _ctx.clickOverlay,
@@ -410,7 +404,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
410
404
  ])
411
405
  ])
412
406
  ]),
407
+ _cache[5] || (_cache[5] = createTextVNode()),
413
408
  createElementVNode("view", _hoisted_3, toDisplayString(_ctx.privateType == "custom" ? _ctx.customAddressTitle || _ctx.translate("selectRegion") : _ctx.existAddressTitle || _ctx.translate("deliveryTo")), 1),
409
+ _cache[6] || (_cache[6] = createTextVNode()),
414
410
  createElementVNode("view", {
415
411
  class: "nut-address__header-close",
416
412
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.handClose("cross"))
@@ -423,47 +419,61 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
423
419
  ])
424
420
  ])
425
421
  ]),
422
+ _cache[18] || (_cache[18] = createTextVNode()),
426
423
  ["custom", "custom2"].includes(_ctx.privateType) ? (openBlock(), createElementBlock("view", _hoisted_4, [
427
424
  createElementVNode("view", _hoisted_5, [
428
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, index2) => {
425
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, index) => {
429
426
  return openBlock(), createElementBlock("view", {
430
- key: index2,
431
- class: normalizeClass(["nut-address__region-item", index2 == _ctx.tabIndex ? "active" : ""]),
432
- onClick: ($event) => _ctx.changeRegionTab(item, index2)
427
+ key: index,
428
+ class: normalizeClass(["nut-address__region-item", index == _ctx.tabIndex ? "active" : ""]),
429
+ onClick: ($event) => _ctx.changeRegionTab(item, index)
433
430
  }, [
434
- createElementVNode("view", null, toDisplayString(_ctx.getTabName(item, index2)), 1)
431
+ createElementVNode("view", null, toDisplayString(_ctx.getTabName(item, index)), 1),
432
+ _cache[7] || (_cache[7] = createTextVNode()),
433
+ createElementVNode("view", {
434
+ class: normalizeClass({ "nut-address__region-line--mini": true, active: index == _ctx.tabIndex })
435
+ }, null, 2)
435
436
  ], 10, _hoisted_6);
436
437
  }), 128)),
438
+ _cache[10] || (_cache[10] = createTextVNode()),
437
439
  _ctx.tabIndex == _ctx.selectedRegion.length ? (openBlock(), createElementBlock("view", _hoisted_7, [
438
- createElementVNode("view", null, toDisplayString(_ctx.getTabName(null, _ctx.selectedRegion.length)), 1)
439
- ])) : createCommentVNode("", true),
440
- createElementVNode("view", {
441
- ref: "regionLine",
442
- class: "nut-address__region-line",
443
- style: normalizeStyle({ left: _ctx.lineDistance + "px" })
444
- }, null, 4)
440
+ createElementVNode("view", null, toDisplayString(_ctx.getTabName(null, _ctx.selectedRegion.length)), 1),
441
+ _cache[8] || (_cache[8] = createTextVNode()),
442
+ _cache[9] || (_cache[9] = createElementVNode("view", { class: "nut-address__region-line--mini active" }, null, -1))
443
+ ])) : createCommentVNode("", true)
445
444
  ], 512),
445
+ _cache[11] || (_cache[11] = createTextVNode()),
446
446
  _ctx.privateType == "custom" ? (openBlock(), createElementBlock("view", _hoisted_8, [
447
- createElementVNode("ul", _hoisted_9, [
448
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.regionList, (item, index2) => {
449
- var _a, _b;
450
- return openBlock(), createElementBlock("li", {
451
- key: index2,
452
- class: normalizeClass(["nut-address__detail-item", ((_a = _ctx.selectedRegion[_ctx.tabIndex]) == null ? void 0 : _a.id) == item.id ? "active" : ""]),
453
- onClick: ($event) => _ctx.nextAreaList(item)
454
- }, [
455
- createElementVNode("div", null, [
456
- ((_b = _ctx.selectedRegion[_ctx.tabIndex]) == null ? void 0 : _b.id) == item.id ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
457
- createVNode(_component_Check, {
458
- class: "nut-address-select-icon",
459
- size: "13px"
460
- })
461
- ]) : createCommentVNode("", true),
462
- createTextVNode(" " + toDisplayString(item.name), 1)
463
- ])
464
- ], 10, _hoisted_10);
465
- }), 128))
466
- ], 512)
447
+ createElementVNode("div", _hoisted_9, [
448
+ createVNode(_component_nut_scroll_view, {
449
+ "scroll-y": true,
450
+ style: { height: "100%" },
451
+ "scroll-top": _ctx.scrollTop,
452
+ onScroll: _ctx.scrollChange
453
+ }, {
454
+ default: withCtx(() => [
455
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.regionList, (item, index) => {
456
+ var _a, _b;
457
+ return openBlock(), createElementBlock("div", {
458
+ key: index,
459
+ class: normalizeClass(["nut-address__detail-item", ((_a = _ctx.selectedRegion[_ctx.tabIndex]) == null ? void 0 : _a.id) == item.id ? "active" : ""]),
460
+ onClick: ($event) => _ctx.nextAreaList(item)
461
+ }, [
462
+ createElementVNode("div", null, [
463
+ ((_b = _ctx.selectedRegion[_ctx.tabIndex]) == null ? void 0 : _b.id) == item.id ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
464
+ createVNode(_component_Check, {
465
+ class: "nut-address-select-icon",
466
+ width: "13px"
467
+ })
468
+ ]) : createCommentVNode("", true),
469
+ createTextVNode(" " + toDisplayString(item.name), 1)
470
+ ])
471
+ ], 10, _hoisted_10);
472
+ }), 128))
473
+ ]),
474
+ _: 3
475
+ }, 8, ["scroll-top", "onScroll"])
476
+ ])
467
477
  ])) : (openBlock(), createElementBlock("view", _hoisted_11, [
468
478
  createVNode(_component_nut_elevator, {
469
479
  height: _ctx.height,
@@ -471,31 +481,37 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
471
481
  onClickItem: _ctx.handleElevatorItem
472
482
  }, null, 8, ["height", "index-list", "onClickItem"])
473
483
  ]))
474
- ])) : (openBlock(), createElementBlock("view", _hoisted_12, [
484
+ ])) : _ctx.privateType == "exist" ? (openBlock(), createElementBlock("view", _hoisted_12, [
475
485
  createElementVNode("div", _hoisted_13, [
476
486
  createElementVNode("ul", _hoisted_14, [
477
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.existAddress, (item, index2) => {
487
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.existAddress, (item, index) => {
478
488
  return openBlock(), createElementBlock("li", {
479
- key: index2,
480
- class: normalizeClass(["nut-address__exist-group-item", item.selectedAddress ? "active" : ""]),
489
+ key: index,
490
+ class: normalizeClass(["nut-address__exist-group-item", [item.selectedAddress ? "active" : ""]]),
481
491
  onClick: ($event) => _ctx.selectedExist(item)
482
492
  }, [
483
493
  !item.selectedAddress ? renderSlot(_ctx.$slots, "unselected-icon", { key: 0 }, () => [
484
494
  createVNode(_component_Location2, {
485
495
  class: "nut-address-select-icon",
486
- size: "13px"
496
+ width: "13px"
487
497
  })
488
498
  ]) : createCommentVNode("", true),
499
+ _cache[14] || (_cache[14] = createTextVNode()),
489
500
  item.selectedAddress ? renderSlot(_ctx.$slots, "icon", { key: 1 }, () => [
490
501
  createVNode(_component_Check, {
491
502
  class: "nut-address-select-icon",
492
- size: "13px"
503
+ width: "13px"
493
504
  })
494
505
  ]) : createCommentVNode("", true),
506
+ _cache[15] || (_cache[15] = createTextVNode()),
495
507
  createElementVNode("div", _hoisted_16, [
496
- item.name ? (openBlock(), createElementBlock("div", _hoisted_17, toDisplayString(item.name), 1)) : createCommentVNode("", true),
497
- item.phone ? (openBlock(), createElementBlock("div", _hoisted_18, toDisplayString(item.phone), 1)) : createCommentVNode("", true),
498
- createElementVNode("div", _hoisted_19, [
508
+ item.name && item.phone ? (openBlock(), createElementBlock("div", _hoisted_17, [
509
+ createElementVNode("div", _hoisted_18, toDisplayString(item.name), 1),
510
+ _cache[12] || (_cache[12] = createTextVNode()),
511
+ createElementVNode("div", _hoisted_19, toDisplayString(item.phone), 1)
512
+ ])) : createCommentVNode("", true),
513
+ _cache[13] || (_cache[13] = createTextVNode()),
514
+ createElementVNode("div", _hoisted_20, [
499
515
  createElementVNode("view", null, toDisplayString(item.provinceName + item.cityName + item.countyName + item.townName + item.addressDetail), 1)
500
516
  ])
501
517
  ])
@@ -503,21 +519,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
503
519
  }), 128))
504
520
  ])
505
521
  ]),
522
+ _cache[16] || (_cache[16] = createTextVNode()),
506
523
  _ctx.isShowCustomAddress ? (openBlock(), createElementBlock("div", {
507
524
  key: 0,
508
525
  class: "nut-address__exist-choose",
509
526
  onClick: _cache[2] || (_cache[2] = (...args) => _ctx.switchModule && _ctx.switchModule(...args))
510
527
  }, [
511
- createElementVNode("div", _hoisted_20, toDisplayString(_ctx.customAndExistTitle || _ctx.translate("chooseAnotherAddress")), 1)
512
- ])) : createCommentVNode("", true)
513
- ])),
514
- renderSlot(_ctx.$slots, "bottom")
528
+ createElementVNode("div", _hoisted_21, toDisplayString(_ctx.customAndExistTitle || _ctx.translate("chooseAnotherAddress")), 1)
529
+ ])) : createCommentVNode("", true),
530
+ _cache[17] || (_cache[17] = createTextVNode()),
531
+ !_ctx.isShowCustomAddress ? renderSlot(_ctx.$slots, "bottom", { key: 1 }) : createCommentVNode("", true)
532
+ ])) : createCommentVNode("", true)
515
533
  ])
516
534
  ]),
517
535
  _: 3
518
- }, 8, ["visible", "lock-scroll", "round", "teleport-disable", "teleport", "z-index", "onClose", "onClickOverlay"]);
536
+ }, 8, ["visible", "lock-scroll", "catch-move", "round", "z-index", "onClose", "onClickOverlay"]);
519
537
  }
520
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
538
+ const index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
521
539
  export {
522
- index as default
540
+ index_taro as default
523
541
  };