@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
@@ -17,11 +17,32 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { toRef, ref, computed, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle, withModifiers, Fragment, renderList, createTextVNode, renderSlot } 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 Taro, { eventCenter, getCurrentInstance } from "@tarojs/taro";
41
+ import { toRef, ref, computed, onMounted, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createTextVNode, createElementVNode, normalizeStyle, withModifiers, Fragment, renderList, renderSlot } from "vue";
21
42
  import { c as createComponent } from "../component-DQf3CENX.js";
22
- import { a as isArray } from "../util-D1pvnUYu.js";
43
+ import { a as preventDefault } from "../util-2G3mRQeF.js";
23
44
  import { u as useTouch } from "../index-I8tfW3Kf.js";
24
- import { u as useRect } from "../index-B1qsj2XR.js";
45
+ import { u as useTaroRect } from "../index-m0Wcof-q.js";
25
46
  import { u as useFormDisabled } from "../common-BH7uB7Cn.js";
26
47
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
27
48
  const { componentName, create } = createComponent("range");
@@ -71,6 +92,11 @@ const _sfc_main = create({
71
92
  emits: ["change", "dragEnd", "dragStart", "update:modelValue"],
72
93
  setup(props, { emit }) {
73
94
  const disabled = useFormDisabled(toRef(props, "disabled"));
95
+ const refRandomId = Math.random().toString(36).slice(-8);
96
+ const state = ref({
97
+ width: 0,
98
+ height: 0
99
+ });
74
100
  const buttonIndex = ref(0);
75
101
  let startValue;
76
102
  let currentValue;
@@ -190,7 +216,7 @@ const _sfc_main = create({
190
216
  const format = (value) => {
191
217
  const { min, max, step } = props;
192
218
  value = Math.max(+min, Math.min(value, +max));
193
- return Math.round(value / +step) * +step;
219
+ return Math.round((value - +min) / +step) * +step + +min;
194
220
  };
195
221
  const isSameValue = (newValue, oldValue) => JSON.stringify(newValue) === JSON.stringify(oldValue);
196
222
  const handleOverlap = (value) => {
@@ -212,31 +238,52 @@ const _sfc_main = create({
212
238
  emit("change", value);
213
239
  }
214
240
  };
215
- const onClick = (event) => {
241
+ const onClick = (event) => __async(this, null, function* () {
216
242
  if (disabled.value) {
217
243
  return;
218
244
  }
219
245
  const { min, modelValue } = props;
220
- const rect = useRect(root);
221
- let delta = event.clientX - rect.left;
222
- let total = rect.width;
223
- if (props.vertical) {
224
- delta = event.clientY - rect.top;
225
- total = rect.height;
226
- }
227
- const value = Number(min) + delta / total * scope.value;
228
- if (isRange(modelValue)) {
229
- const [left, right] = modelValue;
230
- const middle = (left + right) / 2;
231
- if (value <= middle) {
232
- updateValue([value, right], true);
233
- } else {
234
- updateValue([left, value], true);
246
+ useTaroRect(root).then(
247
+ (rect) => {
248
+ state.value.width = rect.width;
249
+ state.value.height = rect.height;
250
+ let clientX, clientY;
251
+ switch (Taro.getEnv()) {
252
+ case Taro.ENV_TYPE.WEB:
253
+ clientX = event.clientX;
254
+ clientY = event.clientY;
255
+ break;
256
+ case Taro.ENV_TYPE.SWAN:
257
+ clientX = event.changedTouches[0].clientX;
258
+ clientY = event.changedTouches[0].clientY;
259
+ break;
260
+ default:
261
+ clientX = event.touches[0].clientX;
262
+ clientY = event.touches[0].clientY;
263
+ }
264
+ let delta = clientX - rect.left;
265
+ let total = rect.width;
266
+ if (props.vertical) {
267
+ delta = clientY - rect.top;
268
+ total = rect.height;
269
+ }
270
+ const value = Number(min) + delta / total * scope.value;
271
+ if (isRange(modelValue)) {
272
+ const [left, right] = modelValue;
273
+ const middle = (left + right) / 2;
274
+ if (value <= middle) {
275
+ updateValue([value, right], true);
276
+ } else {
277
+ updateValue([left, value], true);
278
+ }
279
+ } else {
280
+ updateValue(value, true);
281
+ }
282
+ },
283
+ () => {
235
284
  }
236
- } else {
237
- updateValue(value, true);
238
- }
239
- };
285
+ );
286
+ });
240
287
  const onTouchStart = (event) => {
241
288
  if (disabled.value) {
242
289
  return;
@@ -249,23 +296,34 @@ const _sfc_main = create({
249
296
  startValue = format(currentValue);
250
297
  }
251
298
  dragStatus.value = "start";
299
+ preventDefault(event, true);
300
+ };
301
+ const init = () => {
302
+ useTaroRect(root).then(
303
+ (rect) => {
304
+ state.value.width = rect == null ? void 0 : rect.width;
305
+ state.value.height = rect == null ? void 0 : rect.height;
306
+ },
307
+ () => {
308
+ }
309
+ );
252
310
  };
253
311
  const onTouchMove = (event) => {
254
312
  if (disabled.value) {
255
313
  return;
256
314
  }
315
+ preventDefault(event, true);
257
316
  if (dragStatus.value === "start") {
258
317
  emit("dragStart");
259
318
  }
260
319
  touch.move(event);
261
320
  dragStatus.value = "draging";
262
- const rect = useRect(root);
263
321
  let delta = touch.deltaX.value;
264
- let total = rect.width;
322
+ let total = state.value.width;
265
323
  let diff = delta / total * scope.value;
266
324
  if (props.vertical) {
267
325
  delta = touch.deltaY.value;
268
- total = rect.height;
326
+ total = state.value.height;
269
327
  diff = delta / total * scope.value;
270
328
  }
271
329
  if (isRange(startValue)) {
@@ -275,7 +333,7 @@ const _sfc_main = create({
275
333
  }
276
334
  updateValue(currentValue);
277
335
  };
278
- const onTouchEnd = () => {
336
+ const onTouchEnd = (event) => {
279
337
  if (disabled.value) {
280
338
  return;
281
339
  }
@@ -284,11 +342,22 @@ const _sfc_main = create({
284
342
  emit("dragEnd");
285
343
  }
286
344
  dragStatus.value = "";
345
+ preventDefault(event, true);
287
346
  };
288
347
  const curValue = (idx) => {
289
- const value = isArray(props.modelValue) && typeof idx === "number" ? props.modelValue[idx] : Number(props.modelValue);
348
+ const value = Array.isArray(props.modelValue) && typeof idx === "number" ? props.modelValue[idx] : Number(props.modelValue);
290
349
  return value;
291
350
  };
351
+ onMounted(() => {
352
+ Taro.nextTick(() => {
353
+ init();
354
+ });
355
+ eventCenter.once(getCurrentInstance().router.onReady, () => {
356
+ Taro.nextTick(() => {
357
+ init();
358
+ });
359
+ });
360
+ });
292
361
  return __spreadProps(__spreadValues({
293
362
  root,
294
363
  classes,
@@ -307,6 +376,7 @@ const _sfc_main = create({
307
376
  marksStyle,
308
377
  marksList,
309
378
  tickStyle,
379
+ refRandomId,
310
380
  disabled
311
381
  });
312
382
  }
@@ -315,21 +385,19 @@ const _hoisted_1 = {
315
385
  key: 0,
316
386
  class: "nut-range-min"
317
387
  };
318
- const _hoisted_2 = {
319
- key: 0,
320
- class: "nut-range-mark"
321
- };
322
- const _hoisted_3 = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
323
- const _hoisted_4 = {
388
+ const _hoisted_2 = ["id"];
389
+ const _hoisted_3 = { class: "nut-range-mark" };
390
+ const _hoisted_4 = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
391
+ const _hoisted_5 = {
324
392
  key: 0,
325
393
  class: "number"
326
394
  };
327
- const _hoisted_5 = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax"];
328
- const _hoisted_6 = {
395
+ const _hoisted_6 = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax"];
396
+ const _hoisted_7 = {
329
397
  key: 0,
330
398
  class: "number"
331
399
  };
332
- const _hoisted_7 = {
400
+ const _hoisted_8 = {
333
401
  key: 1,
334
402
  class: "nut-range-max"
335
403
  };
@@ -338,14 +406,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
338
406
  class: normalizeClass(_ctx.containerClasses)
339
407
  }, [
340
408
  !_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(+_ctx.min), 1)) : createCommentVNode("", true),
409
+ _cache[11] || (_cache[11] = createTextVNode()),
341
410
  createElementVNode("view", {
411
+ id: "root-" + _ctx.refRandomId,
342
412
  ref: "root",
343
413
  style: normalizeStyle(_ctx.wrapperStyle),
344
414
  class: normalizeClass(_ctx.classes),
345
415
  onClick: _cache[9] || (_cache[9] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
346
416
  }, [
347
- _ctx.marksList.length > 0 ? (openBlock(), createElementBlock("view", _hoisted_2, [
348
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.marksList, (marks) => {
417
+ createElementVNode("view", _hoisted_3, [
418
+ _ctx.marksList.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.marksList, (marks) => {
349
419
  return openBlock(), createElementBlock("span", {
350
420
  key: marks,
351
421
  class: normalizeClass(_ctx.markClassName(marks)),
@@ -357,8 +427,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
357
427
  style: normalizeStyle(_ctx.tickStyle(marks))
358
428
  }, null, 4)
359
429
  ], 6);
360
- }), 128))
361
- ])) : createCommentVNode("", true),
430
+ }), 128)) : createCommentVNode("", true)
431
+ ]),
432
+ _cache[10] || (_cache[10] = createTextVNode()),
362
433
  createElementVNode("view", {
363
434
  class: "nut-range-bar",
364
435
  style: normalizeStyle(_ctx.barStyle)
@@ -371,23 +442,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
371
442
  "nut-range-button-wrapper-left": index == 0,
372
443
  "nut-range-button-wrapper-right": index == 1
373
444
  }),
445
+ "catch-move": true,
374
446
  tabindex: _ctx.disabled ? -1 : 0,
375
447
  "aria-valuemin": +_ctx.min,
376
448
  "aria-valuenow": _ctx.curValue(index),
377
449
  "aria-valuemax": +_ctx.max,
378
450
  "aria-orientation": "horizontal",
379
- onTouchstart: withModifiers(
380
- (e) => {
381
- if (typeof index === "number") {
382
- _ctx.buttonIndex = index;
383
- }
384
- _ctx.onTouchStart(e);
385
- },
386
- ["stop", "prevent"]
387
- ),
388
- onTouchmove: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
389
- onTouchend: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
390
- onTouchcancel: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
451
+ onTouchstart: (e) => {
452
+ if (typeof index === "number") {
453
+ _ctx.buttonIndex = index;
454
+ }
455
+ _ctx.onTouchStart(e);
456
+ },
457
+ onTouchmove: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
458
+ onTouchend: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
459
+ onTouchcancel: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
391
460
  onClick: _cache[3] || (_cache[3] = (e) => e.stopPropagation())
392
461
  }, [
393
462
  _ctx.$slots.button ? renderSlot(_ctx.$slots, "button", { key: 0 }) : (openBlock(), createElementBlock("view", {
@@ -395,9 +464,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
395
464
  class: "nut-range-button",
396
465
  style: normalizeStyle(_ctx.buttonStyle)
397
466
  }, [
398
- !_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.curValue(index)), 1)) : createCommentVNode("", true)
467
+ !_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_5, toDisplayString(_ctx.curValue(index)), 1)) : createCommentVNode("", true)
399
468
  ], 4))
400
- ], 42, _hoisted_3);
469
+ ], 42, _hoisted_4);
401
470
  }), 64)) : (openBlock(), createElementBlock("view", {
402
471
  key: 1,
403
472
  role: "slider",
@@ -407,15 +476,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
407
476
  "aria-valuenow": _ctx.curValue(),
408
477
  "aria-valuemax": +_ctx.max,
409
478
  "aria-orientation": "horizontal",
410
- onTouchstart: _cache[4] || (_cache[4] = withModifiers(
411
- (e) => {
412
- _ctx.onTouchStart(e);
413
- },
414
- ["stop", "prevent"]
415
- )),
416
- onTouchmove: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
417
- onTouchend: _cache[6] || (_cache[6] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
418
- onTouchcancel: _cache[7] || (_cache[7] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
479
+ "catch-move": true,
480
+ onTouchstart: _cache[4] || (_cache[4] = (e) => {
481
+ _ctx.onTouchStart(e);
482
+ }),
483
+ onTouchmove: _cache[5] || (_cache[5] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
484
+ onTouchend: _cache[6] || (_cache[6] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
485
+ onTouchcancel: _cache[7] || (_cache[7] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
419
486
  onClick: _cache[8] || (_cache[8] = (e) => e.stopPropagation())
420
487
  }, [
421
488
  _ctx.$slots.button ? renderSlot(_ctx.$slots, "button", { key: 0 }) : (openBlock(), createElementBlock("view", {
@@ -423,15 +490,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
423
490
  class: "nut-range-button",
424
491
  style: normalizeStyle(_ctx.buttonStyle)
425
492
  }, [
426
- !_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_6, toDisplayString(_ctx.curValue()), 1)) : createCommentVNode("", true)
493
+ !_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_7, toDisplayString(_ctx.curValue()), 1)) : createCommentVNode("", true)
427
494
  ], 4))
428
- ], 40, _hoisted_5))
495
+ ], 40, _hoisted_6))
429
496
  ], 4)
430
- ], 6),
431
- !_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_7, toDisplayString(+_ctx.max), 1)) : createCommentVNode("", true)
497
+ ], 14, _hoisted_2),
498
+ _cache[12] || (_cache[12] = createTextVNode()),
499
+ !_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_8, toDisplayString(+_ctx.max), 1)) : createCommentVNode("", true)
432
500
  ], 2);
433
501
  }
434
- const NutRange = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
502
+ const index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
435
503
  export {
436
- NutRange as default
504
+ index_taro as default
437
505
  };
@@ -17,27 +17,27 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, toRef, ref, openBlock, createElementBlock, Fragment, renderList, unref, normalizeStyle, createElementVNode, createBlock, resolveDynamicComponent, normalizeClass, createCommentVNode } from "vue";
21
- import { StarFillN } from "@nutui/icons-vue";
20
+ import { defineComponent, toRef, ref, openBlock, createElementBlock, Fragment, renderList, unref, normalizeStyle, createElementVNode, createBlock, resolveDynamicComponent, normalizeClass, createTextVNode, createCommentVNode } from "vue";
21
+ import { StarFillN } from "@nutui/icons-vue-taro";
22
22
  import { r as renderIcon } from "../renderIcon-CfE94nuJ.js";
23
23
  import { p as pxCheck } from "../pxCheck-DN6FYV6q.js";
24
- import { u as useTouch } from "../index-I8tfW3Kf.js";
25
24
  import { u as useFormDisabled } from "../common-BH7uB7Cn.js";
26
25
  import { w as withInstall } from "../with-install-Ch3FF0uS.js";
27
- const _hoisted_1 = ["id"];
28
- const _hoisted_2 = { class: "nut-rate-item__icon--full" };
29
- const _hoisted_3 = {
26
+ const _hoisted_1 = { class: "nut-rate" };
27
+ const _hoisted_2 = ["id"];
28
+ const _hoisted_3 = { class: "nut-rate-item__icon--full" };
29
+ const _hoisted_4 = {
30
30
  key: 0,
31
31
  class: "nut-rate-item__icon--half"
32
32
  };
33
- const _hoisted_4 = {
33
+ const _hoisted_5 = {
34
34
  key: 1,
35
35
  class: "nut-rate-item__icon--half"
36
36
  };
37
37
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
38
38
  name: "NutRate"
39
39
  }), {
40
- __name: "rate",
40
+ __name: "rate.taro",
41
41
  props: {
42
42
  count: { default: 5 },
43
43
  modelValue: { default: 0 },
@@ -48,7 +48,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
48
48
  readonly: { type: Boolean, default: false },
49
49
  disabled: { type: Boolean, default: false },
50
50
  allowHalf: { type: Boolean, default: false },
51
- touchable: { type: Boolean, default: true },
52
51
  spacing: {}
53
52
  },
54
53
  emits: ["update:modelValue", "change"],
@@ -75,42 +74,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
75
74
  }
76
75
  updateVal(value);
77
76
  };
78
- const getScoreByPosition = (x, rateRefs2, allowHalf) => {
79
- let v = 0;
80
- for (let index = rateRefs2.value.length - 1; index >= 0; index--) {
81
- const item = rateRefs2.value[index];
82
- if (x > item.offsetLeft) {
83
- if (allowHalf) {
84
- v = index + (x > item.offsetLeft + item.clientWidth / 2 ? 1 : 0.5);
85
- } else {
86
- v = index + 1;
87
- }
88
- break;
89
- }
90
- }
91
- return v;
92
- };
93
- const touch = useTouch();
94
- const onTouchStart = (event) => {
95
- if (!props.touchable || props.readonly) return;
96
- touch.start(event);
97
- };
98
- const onTouchMove = (event) => {
99
- if (!props.touchable) return;
100
- touch.move(event);
101
- if (touch.isHorizontal()) {
102
- if (rateRefs.value) {
103
- event.preventDefault();
104
- updateVal(getScoreByPosition(touch.moveX.value, rateRefs, props.allowHalf));
105
- }
106
- }
107
- };
108
77
  return (_ctx, _cache) => {
109
- return openBlock(), createElementBlock("view", {
110
- class: "nut-rate",
111
- onTouchstart: onTouchStart,
112
- onTouchmove: onTouchMove
113
- }, [
78
+ return openBlock(), createElementBlock("view", _hoisted_1, [
114
79
  (openBlock(true), createElementBlock(Fragment, null, renderList(Number(_ctx.count), (n) => {
115
80
  return openBlock(), createElementBlock("view", {
116
81
  id: "rateRefs-" + unref(refRandomId) + n,
@@ -121,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
121
86
  class: "nut-rate-item",
122
87
  style: normalizeStyle(n < Number(_ctx.count) ? { marginRight: unref(pxCheck)(_ctx.spacing) } : {})
123
88
  }, [
124
- createElementVNode("view", _hoisted_2, [
89
+ createElementVNode("view", _hoisted_3, [
125
90
  (openBlock(), createBlock(resolveDynamicComponent(
126
91
  unref(renderIcon)(_ctx.customIcon, {
127
92
  width: _ctx.size,
@@ -134,7 +99,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
134
99
  onClick: ($event) => onClick(1, n)
135
100
  }, null, 8, ["class", "onClick"]))
136
101
  ]),
137
- _ctx.allowHalf && Number(_ctx.modelValue) + 1 > n ? (openBlock(), createElementBlock("view", _hoisted_3, [
102
+ _cache[0] || (_cache[0] = createTextVNode()),
103
+ _ctx.allowHalf && Number(_ctx.modelValue) + 1 > n ? (openBlock(), createElementBlock("view", _hoisted_4, [
138
104
  (openBlock(), createBlock(resolveDynamicComponent(
139
105
  unref(renderIcon)(_ctx.customIcon, {
140
106
  width: _ctx.size,
@@ -146,15 +112,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
146
112
  class: "nut-rate-item__icon",
147
113
  onClick: ($event) => onClick(2, n)
148
114
  }, null, 8, ["onClick"]))
149
- ])) : _ctx.allowHalf && Number(_ctx.modelValue) + 1 < n ? (openBlock(), createElementBlock("view", _hoisted_4, [
115
+ ])) : _ctx.allowHalf && Number(_ctx.modelValue) + 1 < n ? (openBlock(), createElementBlock("view", _hoisted_5, [
150
116
  (openBlock(), createBlock(resolveDynamicComponent(unref(renderIcon)(_ctx.customIcon, { width: _ctx.size, height: _ctx.size, size: _ctx.size, color: _ctx.voidColor })), {
151
117
  class: "nut-rate-item__icon nut-rate-item__icon--disabled",
152
118
  onClick: ($event) => onClick(2, n)
153
119
  }, null, 8, ["onClick"]))
154
120
  ])) : createCommentVNode("", true)
155
- ], 12, _hoisted_1);
121
+ ], 12, _hoisted_2);
156
122
  }), 128))
157
- ], 32);
123
+ ]);
158
124
  };
159
125
  }
160
126
  }));
@@ -24,7 +24,7 @@ const prefixCls = "nut-row";
24
24
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
25
25
  name: "NutRow"
26
26
  }), {
27
- __name: "row",
27
+ __name: "row.taro",
28
28
  props: {
29
29
  type: { default: "" },
30
30
  gutter: { default: "" },
@@ -17,11 +17,11 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { toRef, reactive, computed, ref, onMounted, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createElementVNode, withModifiers, withDirectives, createBlock, resolveDynamicComponent, vShow } from "vue";
20
+ import { toRef, reactive, computed, ref, onMounted, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createCommentVNode, createTextVNode, createElementVNode, withModifiers, withDirectives, createBlock, resolveDynamicComponent, vShow } from "vue";
21
21
  import { c as createComponent } from "../component-DQf3CENX.js";
22
22
  import { r as renderIcon } from "../renderIcon-CfE94nuJ.js";
23
- import { CircleClose } from "@nutui/icons-vue";
24
- import { u as useLocale } from "../index-BOB4ytqZ.js";
23
+ import { CircleClose } from "@nutui/icons-vue-taro";
24
+ import { u as useLocale } from "../index-IxPZmHlb.js";
25
25
  import { u as useFormDisabled } from "../common-BH7uB7Cn.js";
26
26
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
27
27
  const { create } = createComponent("searchbar");
@@ -36,10 +36,6 @@ const _sfc_main = create({
36
36
  type: String,
37
37
  default: "text"
38
38
  },
39
- label: {
40
- type: String,
41
- default: ""
42
- },
43
39
  shape: {
44
40
  type: String,
45
41
  default: "round"
@@ -88,9 +84,17 @@ const _sfc_main = create({
88
84
  type: String,
89
85
  default: "left"
90
86
  },
87
+ confirmType: {
88
+ type: String,
89
+ default: "done"
90
+ },
91
91
  safeAreaInsetBottom: {
92
92
  type: Boolean,
93
93
  default: false
94
+ },
95
+ cursorSpacing: {
96
+ type: Number,
97
+ default: 0
94
98
  }
95
99
  },
96
100
  emits: [
@@ -201,19 +205,19 @@ const _sfc_main = create({
201
205
  });
202
206
  const _hoisted_1 = {
203
207
  key: 0,
204
- class: "nut-searchbar__search-label"
208
+ class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
205
209
  };
206
210
  const _hoisted_2 = {
207
- key: 1,
208
- class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
211
+ key: 0,
212
+ class: "nut-searchbar__search-icon nut-searchbar__iptleft-search-icon"
209
213
  };
210
- const _hoisted_3 = ["type", "maxlength", "placeholder", "value", "disabled", "readonly"];
214
+ const _hoisted_3 = ["type", "maxlength", "placeholder", "value", "confirm-type", "disabled", "readonly", "cursor-spacing"];
211
215
  const _hoisted_4 = {
212
216
  key: 1,
213
217
  class: "nut-searchbar__search-icon nut-searchbar__iptright-search-icon"
214
218
  };
215
219
  const _hoisted_5 = {
216
- key: 2,
220
+ key: 1,
217
221
  class: "nut-searchbar__search-icon nut-searchbar__right-search-icon"
218
222
  };
219
223
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -221,27 +225,25 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
221
225
  class: normalizeClass(["nut-searchbar", { "safe-area-inset-bottom": _ctx.safeAreaInsetBottom }]),
222
226
  style: normalizeStyle(_ctx.searchbarStyle)
223
227
  }, [
224
- _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
225
- _ctx.$slots.leftout ? (openBlock(), createElementBlock("view", _hoisted_2, [
228
+ _ctx.$slots.leftout ? (openBlock(), createElementBlock("view", _hoisted_1, [
226
229
  renderSlot(_ctx.$slots, "leftout")
227
230
  ])) : createCommentVNode("", true),
231
+ _cache[10] || (_cache[10] = createTextVNode()),
228
232
  createElementVNode("view", {
229
233
  class: normalizeClass([`nut-searchbar__search-input`, _ctx.shape]),
230
234
  style: normalizeStyle(__spreadValues(__spreadValues({}, _ctx.inputSearchbarStyle), _ctx.focusCss))
231
235
  }, [
232
- _ctx.$slots.leftin ? (openBlock(), createElementBlock("view", {
233
- key: 0,
234
- class: "nut-searchbar__search-icon nut-searchbar__iptleft-search-icon",
235
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.leftIconClick && _ctx.leftIconClick(...args))
236
- }, [
236
+ _ctx.$slots.leftin ? (openBlock(), createElementBlock("view", _hoisted_2, [
237
237
  renderSlot(_ctx.$slots, "leftin")
238
238
  ])) : createCommentVNode("", true),
239
+ _cache[8] || (_cache[8] = createTextVNode()),
239
240
  createElementVNode("view", {
240
241
  class: normalizeClass(["nut-searchbar__input-inner", _ctx.$slots.rightin && "nut-searchbar__input-inner-absolute"])
241
242
  }, [
242
243
  createElementVNode("form", {
243
244
  class: "nut-searchbar__input-form",
244
245
  action: "#",
246
+ onsubmit: "return false",
245
247
  onSubmit: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
246
248
  }, [
247
249
  createElementVNode("input", {
@@ -251,16 +253,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
251
253
  maxlength: _ctx.maxLength,
252
254
  placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
253
255
  value: _ctx.modelValue,
254
- disabled: _ctx.disabled,
255
- readonly: _ctx.readonly,
256
+ "confirm-type": _ctx.confirmType,
257
+ disabled: _ctx.disabled ? _ctx.disabled : void 0,
258
+ readonly: _ctx.readonly ? _ctx.readonly : void 0,
256
259
  style: normalizeStyle(_ctx.styleSearchbar),
257
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.clickInput && _ctx.clickInput(...args)),
258
- onInput: _cache[2] || (_cache[2] = (...args) => _ctx.valueChange && _ctx.valueChange(...args)),
259
- onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
260
- onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
260
+ "cursor-spacing": _ctx.cursorSpacing,
261
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.clickInput && _ctx.clickInput(...args)),
262
+ onInput: _cache[1] || (_cache[1] = (...args) => _ctx.valueChange && _ctx.valueChange(...args)),
263
+ onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
264
+ onBlur: _cache[3] || (_cache[3] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args)),
265
+ onConfirm: _cache[4] || (_cache[4] = (...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args))
261
266
  }, null, 46, _hoisted_3)
262
267
  ], 32)
263
268
  ], 2),
269
+ _cache[9] || (_cache[9] = createTextVNode()),
264
270
  createElementVNode("view", {
265
271
  class: normalizeClass(["nut-searchbar__input-inner-icon", _ctx.$slots.rightin && "nut-searchbar__input-inner-icon-absolute"])
266
272
  }, [
@@ -273,17 +279,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
273
279
  ], 512)), [
274
280
  [vShow, String(_ctx.modelValue).length > 0]
275
281
  ]) : createCommentVNode("", true),
282
+ _cache[7] || (_cache[7] = createTextVNode()),
276
283
  _ctx.$slots.rightin ? (openBlock(), createElementBlock("view", _hoisted_4, [
277
284
  renderSlot(_ctx.$slots, "rightin")
278
285
  ])) : createCommentVNode("", true)
279
286
  ], 2)
280
287
  ], 6),
288
+ _cache[11] || (_cache[11] = createTextVNode()),
281
289
  _ctx.$slots.rightout ? (openBlock(), createElementBlock("view", _hoisted_5, [
282
290
  renderSlot(_ctx.$slots, "rightout")
283
291
  ])) : createCommentVNode("", true)
284
292
  ], 6);
285
293
  }
286
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
294
+ const index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
287
295
  export {
288
- index as default
296
+ index_taro as default
289
297
  };