@nutui/nutui 4.3.14 → 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 (316) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +2 -2
  3. package/dist/nutui.es.js +2 -14
  4. package/dist/nutui.umd.js +19829 -1
  5. package/dist/packages/{Interceptor-CBzqGJrl.js → Interceptor-aNUpilAP.js} +1 -1
  6. package/dist/packages/actionsheet/ActionSheet.js +17 -11
  7. package/dist/packages/address/Address.js +139 -121
  8. package/dist/packages/addresslist/AddressList.js +22 -11
  9. package/dist/packages/animate/Animate.js +1 -1
  10. package/dist/packages/avatar/Avatar.js +1 -1
  11. package/dist/packages/avatarcropper/AvatarCropper.js +329 -126
  12. package/dist/packages/avatargroup/AvatarGroup.js +17 -10
  13. package/dist/packages/backtop/Backtop.js +42 -88
  14. package/dist/packages/badge/Badge.js +4 -2
  15. package/dist/packages/barrage/Barrage.js +76 -130
  16. package/dist/packages/button/Button.js +15 -8
  17. package/dist/packages/calendar/Calendar.js +173 -152
  18. package/dist/packages/calendarcard/CalendarCard.js +33 -61
  19. package/dist/packages/card/Card.js +12 -4
  20. package/dist/packages/cascader/Cascader.js +49 -37
  21. package/dist/packages/category/Category.js +13 -12
  22. package/dist/packages/categorypane/CategoryPane.js +13 -8
  23. package/dist/packages/cell/Cell.js +10 -16
  24. package/dist/packages/cellgroup/CellGroup.js +4 -2
  25. package/dist/packages/checkbox/Checkbox.js +1 -1
  26. package/dist/packages/circleprogress/CircleProgress.js +53 -69
  27. package/dist/packages/col/Col.js +1 -1
  28. package/dist/packages/collapse/Collapse.js +1 -1
  29. package/dist/packages/collapseitem/CollapseItem.js +74 -39
  30. package/dist/packages/comment/Comment.js +46 -24
  31. package/dist/packages/configprovider/ConfigProvider.js +1 -1
  32. package/dist/packages/countdown/Countdown.js +2 -2
  33. package/dist/packages/countup/Countup.js +53 -66
  34. package/dist/packages/datepicker/DatePicker.js +12 -7
  35. package/dist/packages/dialog/Dialog.js +27 -96
  36. package/dist/packages/dialog/index.mjs +1 -2
  37. package/dist/packages/divider/Divider.js +1 -1
  38. package/dist/packages/drag/Drag.js +95 -58
  39. package/dist/packages/ecard/Ecard.js +19 -16
  40. package/dist/packages/elevator/Elevator.js +86 -73
  41. package/dist/packages/ellipsis/Ellipsis.js +223 -121
  42. package/dist/packages/empty/Empty.js +5 -3
  43. package/dist/packages/fixednav/FixedNav.js +12 -7
  44. package/dist/packages/form/Form.js +2 -2
  45. package/dist/packages/formitem/FormItem.js +3 -1
  46. package/dist/packages/grid/Grid.js +1 -1
  47. package/dist/packages/griditem/GridItem.js +5 -15
  48. package/dist/packages/imagepreview/ImagePreview.js +192 -400
  49. package/dist/packages/imagepreview/index.mjs +1 -2
  50. package/dist/packages/{index-BOB4ytqZ.js → index-IxPZmHlb.js} +2 -2
  51. package/dist/packages/index-m0Wcof-q.js +69 -0
  52. package/dist/packages/{index-wLaOjIn1.js → index.taro-CNxLoYer.js} +6 -7
  53. package/dist/packages/index.taro.vue_vue_type_script_setup_true_lang-JJ7hr71Y.js +17 -0
  54. package/dist/packages/indicator/Indicator.js +2 -2
  55. package/dist/packages/input/Input.js +87 -70
  56. package/dist/packages/inputnumber/InputNumber.js +22 -14
  57. package/dist/packages/invoice/Invoice.js +3 -2
  58. package/dist/packages/list/List.js +114 -56
  59. package/dist/packages/menu/Menu.js +45 -40
  60. package/dist/packages/menuitem/MenuItem.js +53 -47
  61. package/dist/packages/navbar/Navbar.js +31 -17
  62. package/dist/packages/noticebar/Noticebar.js +68 -43
  63. package/dist/packages/notify/Notify.js +10 -157
  64. package/dist/packages/notify/index.mjs +1 -2
  65. package/dist/packages/numberkeyboard/NumberKeyboard.js +103 -109
  66. package/dist/packages/overlay/Overlay.js +6 -34
  67. package/dist/packages/pagination/Pagination.js +8 -5
  68. package/dist/packages/picker/Picker.js +113 -26
  69. package/dist/packages/popover/Popover.js +158 -88
  70. package/dist/packages/popup/Popup.js +1 -1
  71. package/dist/packages/price/Price.js +16 -3
  72. package/dist/packages/progress/Progress.js +7 -4
  73. package/dist/packages/radio/Radio.js +11 -12
  74. package/dist/packages/radiogroup/RadioGroup.js +2 -2
  75. package/dist/packages/{raf-c01wDYCo.js → raf-CzJhCkQo.js} +0 -9
  76. package/dist/packages/range/Range.js +139 -71
  77. package/dist/packages/rate/Rate.js +15 -49
  78. package/dist/packages/row/Row.js +1 -1
  79. package/dist/packages/searchbar/Searchbar.js +35 -27
  80. package/dist/packages/shortpassword/ShortPassword.js +51 -43
  81. package/dist/packages/sidenavbar/SideNavbar.js +3 -14
  82. package/dist/packages/sidenavbaritem/SideNavbarItem.js +2 -2
  83. package/dist/packages/signature/Signature.js +148 -106
  84. package/dist/packages/skeleton/Skeleton.js +6 -3
  85. package/dist/packages/sku/Sku.js +66 -42
  86. package/dist/packages/space/Space.js +2 -2
  87. package/dist/packages/step/Step.js +5 -2
  88. package/dist/packages/steps/Steps.js +1 -1
  89. package/dist/packages/sticky/Sticky.js +32 -71
  90. package/dist/packages/subsidenavbar/SubSideNavbar.js +13 -5
  91. package/dist/packages/swipe/Swipe.js +37 -14
  92. package/dist/packages/swipegroup/SwipeGroup.js +2 -2
  93. package/dist/packages/swiper/Swiper.js +73 -24
  94. package/dist/packages/switch/Switch.js +6 -4
  95. package/dist/packages/tabbar/Tabbar.js +23 -24
  96. package/dist/packages/tabbaritem/TabbarItem.js +8 -3
  97. package/dist/packages/table/Table.js +10 -6
  98. package/dist/packages/tabs/Tabs.js +146 -150
  99. package/dist/packages/tag/Tag.js +5 -5
  100. package/dist/packages/textarea/Textarea.js +144 -69
  101. package/dist/packages/timedetail/TimeDetail.js +2 -2
  102. package/dist/packages/timepannel/TimePannel.js +2 -2
  103. package/dist/packages/timeselect/TimeSelect.js +9 -11
  104. package/dist/packages/toast/Toast.js +50 -186
  105. package/dist/packages/toast/index.mjs +1 -2
  106. package/dist/packages/tour/Tour.js +145 -99
  107. package/dist/packages/trendarrow/TrendArrow.js +7 -4
  108. package/dist/packages/uploader/Uploader.js +263 -106
  109. package/dist/packages/{util-D1pvnUYu.js → util-2G3mRQeF.js} +5 -17
  110. package/dist/packages/watermark/Watermark.js +95 -35
  111. package/dist/smartips/web-types.json +380 -770
  112. package/dist/style.css +1 -1
  113. package/dist/styles/base-jda.css +1 -0
  114. package/dist/styles/themes/default.scss +0 -1
  115. package/dist/styles/themes/jda.scss +106 -0
  116. package/dist/styles/themes/jdb.scss +0 -1
  117. package/dist/styles/themes/jddkh.scss +0 -1
  118. package/dist/styles/themes/jdt.scss +0 -1
  119. package/dist/styles/variables-jda.scss +945 -0
  120. package/dist/types/__VUE/actionsheet/{index.vue.d.ts → index.taro.vue.d.ts} +5 -112
  121. package/dist/types/__VUE/address/{index.vue.d.ts → index.taro.vue.d.ts} +139 -412
  122. package/dist/types/__VUE/addresslist/components/{GeneralShell.vue.d.ts → GeneralShell.taro.vue.d.ts} +45 -134
  123. package/dist/types/__VUE/addresslist/components/ItemContents.taro.vue.d.ts +27 -0
  124. package/dist/types/__VUE/addresslist/{index.vue.d.ts → index.taro.vue.d.ts} +85 -155
  125. package/dist/types/__VUE/animate/{index.d.ts → index.taro.d.ts} +2 -2
  126. package/dist/types/__VUE/avatarcropper/{index.vue.d.ts → index.taro.vue.d.ts} +90 -147
  127. package/dist/types/__VUE/backtop/{backtop.vue.d.ts → backtop.taro.vue.d.ts} +8 -19
  128. package/dist/types/__VUE/backtop/{index.d.ts → index.taro.d.ts} +2 -2
  129. package/dist/types/__VUE/badge/{index.d.ts → index.taro.d.ts} +2 -2
  130. package/dist/types/__VUE/barrage/{index.vue.d.ts → index.taro.vue.d.ts} +10 -5
  131. package/dist/types/__VUE/button/{button.vue.d.ts → button.taro.vue.d.ts} +7 -1
  132. package/dist/types/__VUE/button/{index.d.ts → index.taro.d.ts} +2 -2
  133. package/dist/types/__VUE/calendar/{index.vue.d.ts → index.taro.vue.d.ts} +59 -94
  134. package/dist/types/__VUE/calendarcard/{index.d.ts → index.taro.d.ts} +2 -2
  135. package/dist/types/__VUE/calendaritem/{index.vue.d.ts → index.taro.vue.d.ts} +22 -4
  136. package/dist/types/__VUE/card/{index.vue.d.ts → index.taro.vue.d.ts} +13 -13
  137. package/dist/types/__VUE/cascader/{cascader-item.vue.d.ts → cascader-item.taro.vue.d.ts} +47 -229
  138. package/dist/types/__VUE/cascader/{index.vue.d.ts → index.taro.vue.d.ts} +50 -287
  139. package/dist/types/__VUE/category/{index.vue.d.ts → index.taro.vue.d.ts} +2 -2
  140. package/dist/types/__VUE/cell/{cell.vue.d.ts → cell.taro.vue.d.ts} +0 -15
  141. package/dist/types/__VUE/cell/{index.d.ts → index.taro.d.ts} +2 -2
  142. package/dist/types/__VUE/cellgroup/{index.d.ts → index.taro.d.ts} +2 -2
  143. package/dist/types/__VUE/circleprogress/{circle-progress.vue.d.ts → circle-progress.taro.vue.d.ts} +0 -4
  144. package/dist/types/__VUE/circleprogress/{index.d.ts → index.taro.d.ts} +2 -2
  145. package/dist/types/__VUE/col/{index.d.ts → index.taro.d.ts} +2 -2
  146. package/dist/types/__VUE/collapse/{index.d.ts → index.taro.d.ts} +2 -2
  147. package/dist/types/__VUE/collapseitem/collapse-item.taro.vue.d.ts +94 -0
  148. package/dist/types/__VUE/collapseitem/{index.d.ts → index.taro.d.ts} +2 -2
  149. package/dist/types/__VUE/comment/components/CmtBottom.taro.vue.d.ts +47 -0
  150. package/dist/types/__VUE/comment/components/CmtHeader.taro.vue.d.ts +122 -0
  151. package/dist/types/__VUE/comment/components/{CmtImages.vue.d.ts → CmtImages.taro.vue.d.ts} +2 -55
  152. package/dist/types/__VUE/comment/index.taro.vue.d.ts +333 -0
  153. package/dist/types/__VUE/countdown/{index.d.ts → index.taro.d.ts} +2 -2
  154. package/dist/types/__VUE/countup/{index.vue.d.ts → index.taro.vue.d.ts} +5 -7
  155. package/dist/types/__VUE/datepicker/{index.vue.d.ts → index.taro.vue.d.ts} +31 -2
  156. package/dist/types/__VUE/dialog/{index.vue.d.ts → index.taro.vue.d.ts} +52 -85
  157. package/dist/types/__VUE/divider/{index.d.ts → index.taro.d.ts} +2 -2
  158. package/dist/types/__VUE/drag/{index.vue.d.ts → index.taro.vue.d.ts} +2 -0
  159. package/dist/types/__VUE/elevator/{index.vue.d.ts → index.taro.vue.d.ts} +40 -5
  160. package/dist/types/__VUE/ellipsis/{index.vue.d.ts → index.taro.vue.d.ts} +11 -6
  161. package/dist/types/__VUE/empty/{index.d.ts → index.taro.d.ts} +2 -2
  162. package/dist/types/__VUE/fixednav/{index.vue.d.ts → index.taro.vue.d.ts} +2 -55
  163. package/dist/types/__VUE/form/{index.d.ts → index.taro.d.ts} +2 -2
  164. package/dist/types/__VUE/formitem/{index.d.ts → index.taro.d.ts} +2 -2
  165. package/dist/types/__VUE/grid/{index.d.ts → index.taro.d.ts} +2 -2
  166. package/dist/types/__VUE/griditem/{grid-item.vue.d.ts → grid-item.taro.vue.d.ts} +3 -21
  167. package/dist/types/__VUE/griditem/{index.d.ts → index.taro.d.ts} +2 -2
  168. package/dist/types/__VUE/imagepreview/index.taro.vue.d.ts +732 -0
  169. package/dist/types/__VUE/indicator/{index.d.ts → index.taro.d.ts} +2 -2
  170. package/dist/types/__VUE/input/{index.d.ts → index.taro.d.ts} +2 -2
  171. package/dist/types/__VUE/input/{input.vue.d.ts → input.taro.vue.d.ts} +14 -6
  172. package/dist/types/__VUE/inputnumber/{index.d.ts → index.taro.d.ts} +2 -2
  173. package/dist/types/__VUE/invoice/{index.d.ts → index.taro.d.ts} +2 -2
  174. package/dist/types/__VUE/layout/{index.d.ts → index.taro.d.ts} +1 -1
  175. package/dist/types/__VUE/list/{index.vue.d.ts → index.taro.vue.d.ts} +32 -4
  176. package/dist/types/__VUE/menu/index.taro.vue.d.ts +104 -0
  177. package/dist/types/__VUE/menuitem/{index.vue.d.ts → index.taro.vue.d.ts} +22 -114
  178. package/dist/types/__VUE/navbar/{index.d.ts → index.taro.d.ts} +2 -2
  179. package/dist/types/__VUE/noticebar/{index.vue.d.ts → index.taro.vue.d.ts} +9 -116
  180. package/dist/types/__VUE/notify/{index.vue.d.ts → index.taro.vue.d.ts} +2 -66
  181. package/dist/types/__VUE/numberkeyboard/{index.vue.d.ts → index.taro.vue.d.ts} +14 -60
  182. package/dist/types/__VUE/overlay/{index.d.ts → index.taro.d.ts} +2 -2
  183. package/dist/types/__VUE/picker/{index.vue.d.ts → index.taro.vue.d.ts} +31 -2
  184. package/dist/types/__VUE/popover/{index.vue.d.ts → index.taro.vue.d.ts} +4 -56
  185. package/dist/types/__VUE/popup/{index.vue.d.ts → index.taro.vue.d.ts} +3 -56
  186. package/dist/types/__VUE/price/{index.d.ts → index.taro.d.ts} +2 -2
  187. package/dist/types/__VUE/progress/{index.d.ts → index.taro.d.ts} +2 -2
  188. package/dist/types/__VUE/radio/{index.d.ts → index.taro.d.ts} +2 -2
  189. package/dist/types/__VUE/radiogroup/{index.d.ts → index.taro.d.ts} +2 -2
  190. package/dist/types/__VUE/range/{index.vue.d.ts → index.taro.vue.d.ts} +3 -2
  191. package/dist/types/__VUE/rate/{index.d.ts → index.taro.d.ts} +2 -2
  192. package/dist/types/__VUE/rate/rate.taro.vue.d.ts +95 -0
  193. package/dist/types/__VUE/row/{index.d.ts → index.taro.d.ts} +2 -2
  194. package/dist/types/__VUE/scroll-view/index.taro.vue.d.ts +9 -0
  195. package/dist/types/__VUE/searchbar/{index.vue.d.ts → index.taro.vue.d.ts} +23 -121
  196. package/dist/types/__VUE/shortpassword/{index.vue.d.ts → index.taro.vue.d.ts} +5 -112
  197. package/dist/types/__VUE/sidenavbar/{index.vue.d.ts → index.taro.vue.d.ts} +0 -9
  198. package/dist/types/__VUE/signature/{index.vue.d.ts → index.taro.vue.d.ts} +53 -31
  199. package/dist/types/__VUE/skeleton/{index.d.ts → index.taro.d.ts} +2 -2
  200. package/dist/types/__VUE/sku/components/{SkuHeader.vue.d.ts → SkuHeader.taro.vue.d.ts} +6 -6
  201. package/dist/types/__VUE/sku/{index.vue.d.ts → index.taro.vue.d.ts} +25 -62
  202. package/dist/types/__VUE/step/{index.d.ts → index.taro.d.ts} +2 -2
  203. package/dist/types/__VUE/steps/{index.d.ts → index.taro.d.ts} +2 -2
  204. package/dist/types/__VUE/sticky/{index.vue.d.ts → index.taro.vue.d.ts} +7 -26
  205. package/dist/types/__VUE/subsidenavbar/index.taro.vue.d.ts +45 -0
  206. package/dist/types/__VUE/swipe/{index.d.ts → index.taro.d.ts} +2 -2
  207. package/dist/types/__VUE/swipegroup/{index.d.ts → index.taro.d.ts} +2 -2
  208. package/dist/types/__VUE/swiper/{index.vue.d.ts → index.taro.vue.d.ts} +6 -5
  209. package/dist/types/__VUE/switch/{index.d.ts → index.taro.d.ts} +2 -2
  210. package/dist/types/__VUE/tabbar/{index.d.ts → index.taro.d.ts} +2 -2
  211. package/dist/types/__VUE/tabbaritem/{index.d.ts → index.taro.d.ts} +2 -2
  212. package/dist/types/__VUE/table/{index.vue.d.ts → index.taro.vue.d.ts} +2 -55
  213. package/dist/types/__VUE/tabs/{index.vue.d.ts → index.taro.vue.d.ts} +27 -118
  214. package/dist/types/__VUE/tag/{index.d.ts → index.taro.d.ts} +2 -2
  215. package/dist/types/__VUE/textarea/{index.d.ts → index.taro.d.ts} +2 -2
  216. package/dist/types/__VUE/textarea/{textarea.vue.d.ts → textarea.taro.vue.d.ts} +1 -1
  217. package/dist/types/__VUE/timeselect/{index.vue.d.ts → index.taro.vue.d.ts} +3 -66
  218. package/dist/types/__VUE/toast/{index.vue.d.ts → index.taro.vue.d.ts} +16 -12
  219. package/dist/types/__VUE/tour/{index.vue.d.ts → index.taro.vue.d.ts} +13 -121
  220. package/dist/types/__VUE/trendarrow/{index.d.ts → index.taro.d.ts} +2 -2
  221. package/dist/types/__VUE/uploader/{index.vue.d.ts → index.taro.vue.d.ts} +268 -286
  222. package/dist/types/__VUE/watermark/{index.d.ts → index.taro.d.ts} +2 -2
  223. package/dist/types/index.d.ts +145 -155
  224. package/package.json +1 -1
  225. package/dist/nutui.js +0 -15854
  226. package/dist/packages/audio/Audio.js +0 -271
  227. package/dist/packages/audio/index.mjs +0 -2
  228. package/dist/packages/audiooperate/AudioOperate.js +0 -125
  229. package/dist/packages/audiooperate/index.mjs +0 -2
  230. package/dist/packages/image/Image.js +0 -167
  231. package/dist/packages/image/index.mjs +0 -2
  232. package/dist/packages/index-B1qsj2XR.js +0 -33
  233. package/dist/packages/index-BvmDLUYP.js +0 -31
  234. package/dist/packages/index-aiGQ-EiA.js +0 -8
  235. package/dist/packages/infiniteloading/InfiniteLoading.js +0 -184
  236. package/dist/packages/infiniteloading/index.mjs +0 -2
  237. package/dist/packages/mountComponent-CLi4Nz91.js +0 -39
  238. package/dist/packages/pullrefresh/PullRefresh.js +0 -240
  239. package/dist/packages/pullrefresh/index.mjs +0 -2
  240. package/dist/packages/types-BMA1Y94E.js +0 -4
  241. package/dist/packages/video/Video.js +0 -449
  242. package/dist/packages/video/index.mjs +0 -2
  243. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +0 -134
  244. package/dist/types/__VUE/audio/index.vue.d.ts +0 -323
  245. package/dist/types/__VUE/audio/types.d.ts +0 -3
  246. package/dist/types/__VUE/audiooperate/index.vue.d.ts +0 -229
  247. package/dist/types/__VUE/collapseitem/collapse-item.vue.d.ts +0 -201
  248. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +0 -208
  249. package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +0 -248
  250. package/dist/types/__VUE/comment/index.vue.d.ts +0 -728
  251. package/dist/types/__VUE/dialog/index.d.ts +0 -44
  252. package/dist/types/__VUE/image/image.vue.d.ts +0 -111
  253. package/dist/types/__VUE/image/index.d.ts +0 -6
  254. package/dist/types/__VUE/image/types.d.ts +0 -2
  255. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +0 -267
  256. package/dist/types/__VUE/imagepreview/index.d.ts +0 -36
  257. package/dist/types/__VUE/imagepreview/index.vue.d.ts +0 -1088
  258. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +0 -140
  259. package/dist/types/__VUE/menu/index.vue.d.ts +0 -210
  260. package/dist/types/__VUE/notify/index.d.ts +0 -22
  261. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -200
  262. package/dist/types/__VUE/rate/rate.vue.d.ts +0 -208
  263. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +0 -152
  264. package/dist/types/__VUE/toast/index.d.ts +0 -12
  265. package/dist/types/__VUE/video/index.vue.d.ts +0 -149
  266. package/dist/packages/{index-Do4_KY74.js → index.taro-Do4_KY74.js} +0 -0
  267. package/dist/types/__VUE/animate/{animate.vue.d.ts → animate.taro.vue.d.ts} +0 -0
  268. package/dist/types/__VUE/avatar/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  269. package/dist/types/__VUE/avatargroup/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  270. package/dist/types/__VUE/badge/{badge.vue.d.ts → badge.taro.vue.d.ts} +0 -0
  271. package/dist/types/__VUE/calendarcard/{calendar-card.vue.d.ts → calendar-card.taro.vue.d.ts} +0 -0
  272. package/dist/types/__VUE/calendarcard/{icon.d.ts → icon.taro.d.ts} +0 -0
  273. package/dist/types/__VUE/categorypane/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  274. package/dist/types/__VUE/cellgroup/{cell-group.vue.d.ts → cell-group.taro.vue.d.ts} +0 -0
  275. package/dist/types/__VUE/checkbox/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  276. package/dist/types/__VUE/checkboxgroup/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  277. package/dist/types/__VUE/col/{col.vue.d.ts → col.taro.vue.d.ts} +0 -0
  278. package/dist/types/__VUE/collapse/{collapse.vue.d.ts → collapse.taro.vue.d.ts} +0 -0
  279. package/dist/types/__VUE/configprovider/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  280. package/dist/types/__VUE/countdown/{countdown.vue.d.ts → countdown.taro.vue.d.ts} +0 -0
  281. package/dist/types/__VUE/divider/{divider.vue.d.ts → divider.taro.vue.d.ts} +0 -0
  282. package/dist/types/__VUE/ecard/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  283. package/dist/types/__VUE/empty/{empty.vue.d.ts → empty.taro.vue.d.ts} +0 -0
  284. package/dist/types/__VUE/form/{form.vue.d.ts → form.taro.vue.d.ts} +0 -0
  285. package/dist/types/__VUE/formitem/{form-item.vue.d.ts → form-item.taro.vue.d.ts} +0 -0
  286. package/dist/types/__VUE/grid/{grid.vue.d.ts → grid.taro.vue.d.ts} +0 -0
  287. package/dist/types/__VUE/indicator/{indicator.vue.d.ts → indicator.taro.vue.d.ts} +0 -0
  288. package/dist/types/__VUE/inputnumber/{input-number.vue.d.ts → input-number.taro.vue.d.ts} +0 -0
  289. package/dist/types/__VUE/invoice/{invoice.vue.d.ts → invoice.taro.vue.d.ts} +0 -0
  290. package/dist/types/__VUE/layout/{layout.vue.d.ts → layout.taro.vue.d.ts} +0 -0
  291. package/dist/types/__VUE/navbar/{navbar.vue.d.ts → navbar.taro.vue.d.ts} +0 -0
  292. package/dist/types/__VUE/overlay/{overlay.vue.d.ts → overlay.taro.vue.d.ts} +0 -0
  293. package/dist/types/__VUE/pagination/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  294. package/dist/types/__VUE/price/{price.vue.d.ts → price.taro.vue.d.ts} +0 -0
  295. package/dist/types/__VUE/progress/{progress.vue.d.ts → progress.taro.vue.d.ts} +0 -0
  296. package/dist/types/__VUE/radio/{radio.vue.d.ts → radio.taro.vue.d.ts} +0 -0
  297. package/dist/types/__VUE/radiogroup/{radio-group.vue.d.ts → radio-group.taro.vue.d.ts} +0 -0
  298. package/dist/types/__VUE/row/{row.vue.d.ts → row.taro.vue.d.ts} +0 -0
  299. package/dist/types/__VUE/sidenavbaritem/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  300. package/dist/types/__VUE/skeleton/{skeleton.vue.d.ts → skeleton.taro.vue.d.ts} +2 -2
  301. package/dist/types/__VUE/sku/components/{SkuStepper.vue.d.ts → SkuStepper.taro.vue.d.ts} +0 -0
  302. package/dist/types/__VUE/space/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  303. package/dist/types/__VUE/step/{step.vue.d.ts → step.taro.vue.d.ts} +0 -0
  304. package/dist/types/__VUE/steps/{steps.vue.d.ts → steps.taro.vue.d.ts} +0 -0
  305. package/dist/types/__VUE/swipe/{swipe.vue.d.ts → swipe.taro.vue.d.ts} +0 -0
  306. package/dist/types/__VUE/swipegroup/{swipe-group.vue.d.ts → swipe-group.taro.vue.d.ts} +0 -0
  307. package/dist/types/__VUE/swiperitem/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  308. package/dist/types/__VUE/switch/{switch.vue.d.ts → switch.taro.vue.d.ts} +0 -0
  309. package/dist/types/__VUE/tabbar/{tabbar.vue.d.ts → tabbar.taro.vue.d.ts} +0 -0
  310. package/dist/types/__VUE/tabbaritem/{tabbar-item.vue.d.ts → tabbar-item.taro.vue.d.ts} +0 -0
  311. package/dist/types/__VUE/tabpane/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  312. package/dist/types/__VUE/tag/{tag.vue.d.ts → tag.taro.vue.d.ts} +0 -0
  313. package/dist/types/__VUE/timedetail/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  314. package/dist/types/__VUE/timepannel/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
  315. package/dist/types/__VUE/trendarrow/{trend-arrow.vue.d.ts → trend-arrow.taro.vue.d.ts} +1 -1
  316. package/dist/types/__VUE/watermark/{watermark.vue.d.ts → watermark.taro.vue.d.ts} +2 -2
@@ -17,19 +17,14 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, createElementVNode, unref, Fragment, renderList, renderSlot, toDisplayString } from "vue";
21
- import { k as isObject } from "../util-D1pvnUYu.js";
20
+ import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeStyle, createElementVNode, createTextVNode, renderSlot, toDisplayString } from "vue";
21
+ import Taro from "@tarojs/taro";
22
22
  import { w as withInstall } from "../with-install-Ch3FF0uS.js";
23
- const _hoisted_1 = { viewBox: "0 0 100 100" };
24
- const _hoisted_2 = ["id"];
25
- const _hoisted_3 = ["offset", "stop-color"];
26
- const _hoisted_4 = ["d", "stroke-width"];
27
- const _hoisted_5 = ["d", "stroke", "stroke-linecap", "stroke-width"];
28
- const _hoisted_6 = { class: "nut-circle-progress__text" };
23
+ const _hoisted_1 = { class: "nut-circle-progress__text" };
29
24
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
30
25
  name: "NutCircleProgress"
31
26
  }), {
32
- __name: "circle-progress",
27
+ __name: "circle-progress.taro",
33
28
  props: {
34
29
  progress: { default: 0 },
35
30
  strokeWidth: { default: 5 },
@@ -41,30 +36,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
41
36
  },
42
37
  setup(__props) {
43
38
  const props = __props;
39
+ const isIos = Taro.getSystemInfoSync().platform === "ios";
40
+ const currentRate = ref(props.progress);
44
41
  const refRandomId = Math.random().toString(36).slice(-8);
45
- const path = computed(() => {
46
- const isWise = props.clockwise ? 1 : 0;
47
- return `M 50 50 m 0 -45 a 45 45 0 1 ${isWise} 0 90 a 45 45 0 1, ${isWise} 0 -90`;
48
- });
49
- const hoverColor = computed(() => {
50
- return isObject(props.color) ? `url(#${refRandomId})` : props.color;
51
- });
52
- const hoverStyle = computed(() => {
53
- let perimeter = 283;
54
- let offset = perimeter * Number(props.progress) / 100;
55
- return {
56
- stroke: isObject(props.color) ? `url(#${refRandomId})` : props.color,
57
- strokeDasharray: `${offset}px ${perimeter}px`
58
- };
59
- });
60
- const pathStyle = computed(() => {
61
- return {
62
- stroke: props.pathColor
63
- };
64
- });
65
- const stop = computed(() => {
42
+ const isObject = (val) => val !== null && typeof val === "object";
43
+ const transColor = (color) => {
44
+ return color && color.replace("#", "%23");
45
+ };
46
+ const stop = () => {
66
47
  if (!isObject(props.color)) {
67
- return;
48
+ return [];
68
49
  }
69
50
  let color = props.color;
70
51
  const colorArr = Object.keys(color).sort((a, b) => parseFloat(a) - parseFloat(b));
@@ -79,50 +60,53 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
79
60
  stopArr.push(obj);
80
61
  });
81
62
  return stopArr;
63
+ };
64
+ const style = computed(() => {
65
+ let { strokeWidth } = props;
66
+ let stopArr = stop();
67
+ let stopDom = [];
68
+ if (stopArr) {
69
+ stopArr.map((item) => {
70
+ let obj = "";
71
+ obj = `%3Cstop offset='${item.key}' stop-color='${transColor(item.value)}'/%3E`;
72
+ stopDom.push(obj);
73
+ });
74
+ }
75
+ let perimeter = 283;
76
+ let progress = +currentRate.value;
77
+ let offset = perimeter * Number(format(parseFloat(progress.toFixed(1)))) / 100;
78
+ const isWise = props.clockwise ? 1 : 0;
79
+ const color = isObject(props.color) ? `url(%23${refRandomId})` : transColor(props.color);
80
+ let d = `M 50 50 m 0 -45 a 45 45 0 1 ${isWise} 0 90 a 45 45 0 1, ${isWise} 0 -90`;
81
+ const pa = `%3Cdefs%3E%3ClinearGradient id='${refRandomId}' x1='100%25' y1='0%25' x2='0%25' y2='0%25'%3E${stopDom}%3C/linearGradient%3E%3C/defs%3E`;
82
+ const path = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke='${transColor(props.pathColor)}' fill='none'/%3E`;
83
+ const path1 = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke-dasharray='${offset},${perimeter}' stroke-linecap='round' stroke='${color}' fill='none'/%3E`;
84
+ return {
85
+ background: `url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E${pa}${path}${path1}%3C/svg%3E")`,
86
+ width: "100%",
87
+ height: "100%",
88
+ transition: `${isIos ? "" : "background-image .3s ease 0s, "}stroke .3s ease 0s`
89
+ };
82
90
  });
91
+ const format = (progress) => Math.min(Math.max(+progress, 0), 100);
92
+ watch(
93
+ () => props.progress,
94
+ (value) => {
95
+ currentRate.value = Math.min(Math.max(+value, 0), 100);
96
+ }
97
+ );
83
98
  return (_ctx, _cache) => {
84
- return openBlock(), createElementBlock("div", {
99
+ return openBlock(), createElementBlock("view", {
85
100
  class: "nut-circle-progress",
86
101
  style: normalizeStyle({ height: Number(_ctx.radius) * 2 + "px", width: Number(_ctx.radius) * 2 + "px" })
87
102
  }, [
88
- (openBlock(), createElementBlock("svg", _hoisted_1, [
89
- createElementVNode("defs", null, [
90
- createElementVNode("linearGradient", {
91
- id: unref(refRandomId),
92
- x1: "100%",
93
- y1: "0%",
94
- x2: "0%",
95
- y2: "0%"
96
- }, [
97
- (openBlock(true), createElementBlock(Fragment, null, renderList(stop.value, (item, index) => {
98
- return openBlock(), createElementBlock("stop", {
99
- key: index,
100
- offset: item.key,
101
- "stop-color": item.value
102
- }, null, 8, _hoisted_3);
103
- }), 128))
104
- ], 8, _hoisted_2)
105
- ]),
106
- createElementVNode("path", {
107
- class: "nut-circle-progress__path",
108
- style: normalizeStyle(pathStyle.value),
109
- d: path.value,
110
- fill: "none",
111
- "stroke-width": _ctx.strokeWidth
112
- }, " > ", 12, _hoisted_4),
113
- createElementVNode("path", {
114
- class: "nut-circle-progress__hover",
115
- style: normalizeStyle(hoverStyle.value),
116
- d: path.value,
117
- fill: "none",
118
- stroke: hoverColor.value,
119
- "stroke-linecap": _ctx.strokeLinecap,
120
- "stroke-width": _ctx.strokeWidth
121
- }, null, 12, _hoisted_5)
122
- ])),
123
- createElementVNode("div", _hoisted_6, [
103
+ createElementVNode("div", {
104
+ style: normalizeStyle(style.value)
105
+ }, null, 4),
106
+ _cache[0] || (_cache[0] = createTextVNode()),
107
+ createElementVNode("div", _hoisted_1, [
124
108
  renderSlot(_ctx.$slots, "default", {}, () => [
125
- createElementVNode("div", null, toDisplayString(_ctx.progress) + "%", 1)
109
+ createElementVNode("span", null, toDisplayString(_ctx.progress) + "%", 1)
126
110
  ])
127
111
  ])
128
112
  ], 4);
@@ -24,7 +24,7 @@ const prefixCls = "nut-col";
24
24
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
25
25
  name: "NutCol"
26
26
  }), {
27
- __name: "col",
27
+ __name: "col.taro",
28
28
  props: {
29
29
  span: { default: 24 },
30
30
  offset: { default: 0 }
@@ -24,7 +24,7 @@ const _hoisted_1 = { class: "nut-collapse" };
24
24
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
25
25
  name: "NutCollapse"
26
26
  }), {
27
- __name: "collapse",
27
+ __name: "collapse.taro",
28
28
  props: {
29
29
  modelValue: { default: "" },
30
30
  accordion: { type: Boolean, default: false }
@@ -17,9 +17,10 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, ref, inject, computed, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, toDisplayString, createCommentVNode, normalizeStyle, createBlock, resolveDynamicComponent, unref } from "vue";
21
- import { DownArrow } from "@nutui/icons-vue";
20
+ import { defineComponent, useSlots, ref, inject, computed, onMounted, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createTextVNode, toDisplayString, createCommentVNode, normalizeStyle, createBlock, resolveDynamicComponent, unref } from "vue";
21
+ import { DownArrow } from "@nutui/icons-vue-taro";
22
22
  import { r as renderIcon } from "../renderIcon-CfE94nuJ.js";
23
+ import Taro from "@tarojs/taro";
23
24
  import { C as COLLAPSE_KEY } from "../types-BomhFk3T.js";
24
25
  import { w as withInstall } from "../with-install-Ch3FF0uS.js";
25
26
  const _hoisted_1 = { class: "nut-collapse-item__title-main" };
@@ -39,10 +40,11 @@ const _hoisted_7 = {
39
40
  class: "nut-collapse__item-extraWrapper"
40
41
  };
41
42
  const _hoisted_8 = { class: "nut-collapse__item-extraWrapper__extraRender" };
43
+ const _hoisted_9 = ["id"];
42
44
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
43
45
  name: "NutCollapseItem"
44
46
  }), {
45
- __name: "collapse-item",
47
+ __name: "collapse-item.taro",
46
48
  props: {
47
49
  title: { default: "" },
48
50
  value: { default: "" },
@@ -55,8 +57,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
55
57
  },
56
58
  setup(__props) {
57
59
  const props = __props;
60
+ const slots = useSlots();
58
61
  const wrapperRef = ref(null);
59
- const contentRef = ref(null);
62
+ const refRandomId = Math.random().toString(36).slice(-8);
63
+ const target = `#nut-collapse__item-${refRandomId}`;
64
+ const currentHeight = ref("auto");
65
+ const inAnimation = ref(false);
66
+ const timeoutId = ref("");
60
67
  const parent = inject(COLLAPSE_KEY);
61
68
  const classes = computed(() => {
62
69
  const prefixCls = "nut-collapse-item";
@@ -65,6 +72,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
65
72
  [prefixCls + "__border"]: props.border
66
73
  };
67
74
  });
75
+ onMounted(() => {
76
+ setTimeout(() => {
77
+ getRect(target).then((res) => {
78
+ if (res == null ? void 0 : res.height) {
79
+ currentHeight.value = `${res.height}px`;
80
+ }
81
+ });
82
+ }, 100);
83
+ });
84
+ watch(
85
+ () => {
86
+ var _a;
87
+ return (_a = slots.default) == null ? void 0 : _a.call(slots);
88
+ },
89
+ () => {
90
+ setTimeout(() => {
91
+ getRect(target).then((res) => {
92
+ if (res == null ? void 0 : res.height) {
93
+ currentHeight.value = `${res.height}px`;
94
+ }
95
+ });
96
+ }, 200);
97
+ }
98
+ );
99
+ const getRect = (selector) => {
100
+ return new Promise((resolve) => {
101
+ Taro.createSelectorQuery().select(selector).boundingClientRect().exec((rect = []) => {
102
+ resolve(rect[0]);
103
+ });
104
+ });
105
+ };
68
106
  const expanded = computed(() => {
69
107
  if (parent) {
70
108
  return parent.isExpanded(props.name);
@@ -72,44 +110,38 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
72
110
  return false;
73
111
  });
74
112
  const wrapperHeight = ref(expanded.value ? "auto" : "0px");
75
- const toggle = () => {
76
- parent && parent.updateVal(props.name);
77
- };
78
- const onTransitionEnd = () => {
79
- if (expanded.value) {
80
- wrapperHeight.value = "auto";
113
+ const handleClick = () => {
114
+ if (!inAnimation.value) {
115
+ parent && parent.updateVal(props.name);
81
116
  }
82
117
  };
83
- const open = () => {
84
- wrapperHeight.value = "0px";
85
- requestAnimationFrame(() => {
86
- requestAnimationFrame(() => {
87
- var _a;
88
- const height = (_a = contentRef.value) == null ? void 0 : _a.offsetHeight;
89
- wrapperHeight.value = height ? `${height}px` : "auto";
90
- });
91
- });
92
- };
93
- const close = () => {
94
- var _a;
95
- const height = (_a = contentRef.value) == null ? void 0 : _a.offsetHeight;
96
- wrapperHeight.value = height ? `${height}px` : "auto";
97
- requestAnimationFrame(() => {
98
- requestAnimationFrame(() => {
99
- wrapperHeight.value = "0px";
100
- });
101
- });
118
+ const toggle = (open) => {
119
+ if (timeoutId.value) {
120
+ clearTimeout(timeoutId.value);
121
+ timeoutId.value = "";
122
+ }
123
+ const start = open ? "0px" : currentHeight.value;
124
+ const end = open ? currentHeight.value : "0px";
125
+ inAnimation.value = true;
126
+ wrapperHeight.value = start;
127
+ setTimeout(() => {
128
+ wrapperHeight.value = end;
129
+ inAnimation.value = false;
130
+ if (open) {
131
+ timeoutId.value = setTimeout(() => {
132
+ wrapperHeight.value = "auto";
133
+ }, 300);
134
+ }
135
+ }, 100);
102
136
  };
103
- watch(expanded, (value) => {
104
- value ? open() : close();
105
- });
137
+ watch(expanded, toggle);
106
138
  return (_ctx, _cache) => {
107
139
  return openBlock(), createElementBlock("view", {
108
140
  class: normalizeClass(classes.value)
109
141
  }, [
110
142
  createElementVNode("view", {
111
143
  class: normalizeClass(["nut-collapse-item__title", { "nut-collapse-item__title--disabled": _ctx.disabled }]),
112
- onClick: toggle
144
+ onClick: handleClick
113
145
  }, [
114
146
  createElementVNode("view", _hoisted_1, [
115
147
  createElementVNode("view", _hoisted_2, [
@@ -118,9 +150,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
118
150
  class: "nut-collapse-item__title-mtitle",
119
151
  innerHTML: _ctx.title
120
152
  }, null, 8, _hoisted_3)),
153
+ _cache[0] || (_cache[0] = createTextVNode()),
121
154
  _ctx.label ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
122
155
  ])
123
156
  ]),
157
+ _cache[1] || (_cache[1] = createTextVNode()),
124
158
  _ctx.$slots.value ? (openBlock(), createElementBlock("view", _hoisted_5, [
125
159
  renderSlot(_ctx.$slots, "value")
126
160
  ])) : (openBlock(), createElementBlock("view", {
@@ -128,6 +162,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
128
162
  class: "nut-collapse-item__title-sub",
129
163
  innerHTML: _ctx.value
130
164
  }, null, 8, _hoisted_6)),
165
+ _cache[2] || (_cache[2] = createTextVNode()),
131
166
  createElementVNode("view", {
132
167
  class: normalizeClass(["nut-collapse-item__title-icon", { "nut-collapse-item__title-icon--expanded": expanded.value }]),
133
168
  style: normalizeStyle({ transform: "rotate(" + (expanded.value ? _ctx.rotate : 0) + "deg)" })
@@ -135,11 +170,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
135
170
  _ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", { key: 0 }) : (openBlock(), createBlock(resolveDynamicComponent(unref(renderIcon)(_ctx.icon)), { key: 1 }))
136
171
  ], 6)
137
172
  ], 2),
173
+ _cache[3] || (_cache[3] = createTextVNode()),
138
174
  _ctx.$slots.extra ? (openBlock(), createElementBlock("view", _hoisted_7, [
139
175
  createElementVNode("div", _hoisted_8, [
140
176
  renderSlot(_ctx.$slots, "extra")
141
177
  ])
142
178
  ])) : createCommentVNode("", true),
179
+ _cache[4] || (_cache[4] = createTextVNode()),
143
180
  createElementVNode("view", {
144
181
  ref_key: "wrapperRef",
145
182
  ref: wrapperRef,
@@ -147,17 +184,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
147
184
  style: normalizeStyle({
148
185
  willChange: "height",
149
186
  height: wrapperHeight.value
150
- }),
151
- onTransitionend: onTransitionEnd
187
+ })
152
188
  }, [
153
189
  createElementVNode("view", {
154
- ref_key: "contentRef",
155
- ref: contentRef,
190
+ id: `nut-collapse__item-${unref(refRandomId)}`,
156
191
  class: "nut-collapse__item-wrapper__content"
157
192
  }, [
158
193
  renderSlot(_ctx.$slots, "default")
159
- ], 512)
160
- ], 36)
194
+ ], 8, _hoisted_9)
195
+ ], 4)
161
196
  ], 2);
162
197
  };
163
198
  }
@@ -1,9 +1,9 @@
1
- import { resolveComponent, openBlock, createElementBlock, createElementVNode, createCommentVNode, normalizeClass, toDisplayString, renderSlot, createVNode, ref, watch, onMounted, Fragment, renderList, createBlock, computed, withCtx, normalizeStyle, createTextVNode } from "vue";
2
- import { Right, Fabulous, Comment, MoreX } from "@nutui/icons-vue";
1
+ import { resolveComponent, openBlock, createElementBlock, createElementVNode, createCommentVNode, createTextVNode, normalizeClass, toDisplayString, renderSlot, createVNode, ref, watch, onMounted, Fragment, renderList, createBlock, computed, withCtx, normalizeStyle } from "vue";
2
+ import { Right, Fabulous, Comment, MoreX } from "@nutui/icons-vue-taro";
3
3
  import { c as createComponent } from "../component-DQf3CENX.js";
4
4
  import { Rate as _sfc_main$4 } from "../rate/Rate.js";
5
5
  import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
6
- import { u as useLocale } from "../index-BOB4ytqZ.js";
6
+ import { u as useLocale } from "../index-IxPZmHlb.js";
7
7
  const { create: create$3 } = createComponent("comment-header");
8
8
  const _sfc_main$3 = create$3({
9
9
  components: {
@@ -17,12 +17,7 @@ const _sfc_main$3 = create$3({
17
17
  },
18
18
  info: {
19
19
  type: Object,
20
- default: () => {
21
- }
22
- },
23
- labels: {
24
- type: Function,
25
- default: () => ""
20
+ default: () => ({})
26
21
  }
27
22
  },
28
23
  emits: ["handleClick"],
@@ -56,6 +51,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
56
51
  src: _ctx.info.avatar
57
52
  }, null, 8, _hoisted_3$3)) : createCommentVNode("", true)
58
53
  ]),
54
+ _cache[6] || (_cache[6] = createTextVNode()),
59
55
  _ctx.type == "default" ? (openBlock(), createElementBlock("view", {
60
56
  key: 0,
61
57
  class: normalizeClass([`nut-comment-header__user-${_ctx.type}`])
@@ -64,8 +60,10 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
64
60
  class: normalizeClass([`nut-comment-header__user-${_ctx.type}-name`])
65
61
  }, [
66
62
  createElementVNode("span", null, toDisplayString(_ctx.info.nickName), 1),
63
+ _cache[3] || (_cache[3] = createTextVNode()),
67
64
  renderSlot(_ctx.$slots, "labels")
68
65
  ], 2),
66
+ _cache[4] || (_cache[4] = createTextVNode()),
69
67
  createElementVNode("view", _hoisted_4$3, [
70
68
  createVNode(_component_nut_rate, {
71
69
  modelValue: _ctx.info.score,
@@ -83,11 +81,14 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
83
81
  createElementVNode("span", {
84
82
  class: normalizeClass([`nut-comment-header__user-${_ctx.type}-name`])
85
83
  }, toDisplayString(_ctx.info.nickName), 3),
84
+ _cache[5] || (_cache[5] = createTextVNode()),
86
85
  renderSlot(_ctx.$slots, "labels")
87
86
  ], 2))
88
87
  ]),
88
+ _cache[7] || (_cache[7] = createTextVNode()),
89
89
  _ctx.info.time ? (openBlock(), createElementBlock("view", _hoisted_5$1, toDisplayString(_ctx.info.time), 1)) : createCommentVNode("", true)
90
90
  ])) : createCommentVNode("", true),
91
+ _cache[10] || (_cache[10] = createTextVNode()),
91
92
  _ctx.type == "complex" ? (openBlock(), createElementBlock("view", {
92
93
  key: 1,
93
94
  class: normalizeClass([`nut-comment-header__${_ctx.type}-score`])
@@ -99,9 +100,11 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
99
100
  spacing: "3",
100
101
  readonly: ""
101
102
  }, null, 8, ["modelValue"]),
103
+ _cache[8] || (_cache[8] = createTextVNode()),
102
104
  createElementVNode("i", {
103
105
  class: normalizeClass([`nut-comment-header__${_ctx.type}-score-i`])
104
106
  }, null, 2),
107
+ _cache[9] || (_cache[9] = createTextVNode()),
105
108
  createElementVNode("view", {
106
109
  class: normalizeClass([`nut-comment-header__${_ctx.type}-score-size`])
107
110
  }, toDisplayString(_ctx.info.size), 3)
@@ -152,9 +155,9 @@ const _sfc_main$2 = create$2({
152
155
  }
153
156
  totalImages.value = props.videos.concat(props.images);
154
157
  });
155
- const showImages = (type, index2) => {
158
+ const showImages = (type, index) => {
156
159
  const { videos, images } = props;
157
- const i = type == "img" ? index2 - videos.length : index2;
160
+ const i = type == "img" ? index - videos.length : index;
158
161
  emit("clickImages", {
159
162
  type,
160
163
  index: i,
@@ -177,31 +180,35 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
177
180
  return openBlock(), createElementBlock("view", {
178
181
  class: normalizeClass(`nut-comment-images nut-comment-images--${_ctx.type}`)
179
182
  }, [
180
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.videos, (itV, index2) => {
183
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.videos, (itV, index) => {
181
184
  return openBlock(), createElementBlock("view", {
182
185
  key: itV.id,
183
186
  class: "nut-comment-images__item nut-comment-images__item--video",
184
- onClick: ($event) => _ctx.showImages("video", index2)
187
+ onClick: ($event) => _ctx.showImages("video", index)
185
188
  }, [
186
189
  createElementVNode("img", {
187
190
  src: itV.mainUrl
188
191
  }, null, 8, _hoisted_2$2),
189
- _cache[0] || (_cache[0] = createElementVNode("view", { class: "nut-comment-images__play" }, null, -1))
192
+ _cache[0] || (_cache[0] = createTextVNode()),
193
+ _cache[1] || (_cache[1] = createElementVNode("view", { class: "nut-comment-images__play" }, null, -1))
190
194
  ], 8, _hoisted_1$2);
191
195
  }), 128)),
192
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.images, (itI, index2) => {
193
- return openBlock(), createElementBlock(Fragment, { key: index2 }, [
194
- _ctx.type == "multi" && _ctx.videos.length + index2 < 9 || _ctx.type != "multi" ? (openBlock(), createElementBlock("view", {
196
+ _cache[4] || (_cache[4] = createTextVNode()),
197
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.images, (itI, index) => {
198
+ return openBlock(), createElementBlock(Fragment, { key: index }, [
199
+ _ctx.type == "multi" && _ctx.videos.length + index < 9 || _ctx.type != "multi" ? (openBlock(), createElementBlock("view", {
195
200
  key: 0,
196
201
  class: "nut-comment-images__item nut-comment-images__item--imgbox",
197
- onClick: ($event) => _ctx.showImages("img", index2 + _ctx.videos.length)
202
+ onClick: ($event) => _ctx.showImages("img", index + _ctx.videos.length)
198
203
  }, [
199
204
  createElementVNode("img", {
200
205
  src: itI.smallImgUrl ? itI.smallImgUrl : itI.imgUrl
201
206
  }, null, 8, _hoisted_4$2),
202
- _ctx.type == "multi" && _ctx.totalImages.length > 9 && _ctx.videos.length + index2 > 7 ? (openBlock(), createElementBlock("view", _hoisted_5, [
207
+ _cache[3] || (_cache[3] = createTextVNode()),
208
+ _ctx.type == "multi" && _ctx.totalImages.length > 9 && _ctx.videos.length + index > 7 ? (openBlock(), createElementBlock("view", _hoisted_5, [
203
209
  createElementVNode("span", null, "共 " + toDisplayString(_ctx.totalImages.length) + " 张", 1),
204
- createVNode(_component_Right, { style: { "width": "12px" } })
210
+ _cache[2] || (_cache[2] = createTextVNode()),
211
+ createVNode(_component_Right, { size: "12px" })
205
212
  ])) : createCommentVNode("", true)
206
213
  ], 8, _hoisted_3$2)) : createCommentVNode("", true)
207
214
  ], 64);
@@ -256,7 +263,10 @@ const _sfc_main$1 = create$1({
256
263
  }
257
264
  });
258
265
  const _hoisted_1$1 = { class: "nut-comment-bottom" };
259
- const _hoisted_2$1 = { key: 0 };
266
+ const _hoisted_2$1 = {
267
+ key: 0,
268
+ style: { "display": "inline" }
269
+ };
260
270
  const _hoisted_3$1 = { class: "nut-comment-bottom__cpx" };
261
271
  const _hoisted_4$1 = ["onClick"];
262
272
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
@@ -270,6 +280,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
270
280
  }, [
271
281
  _ctx.type != "complex" ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(_ctx.info.size), 1)) : createCommentVNode("", true)
272
282
  ]),
283
+ _cache[5] || (_cache[5] = createTextVNode()),
273
284
  createElementVNode("view", _hoisted_3$1, [
274
285
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.mergeOp, (name, i) => {
275
286
  return openBlock(), createElementBlock("view", {
@@ -279,10 +290,13 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
279
290
  }, [
280
291
  name != "more" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
281
292
  createElementVNode("span", null, toDisplayString(_ctx.info[name]), 1),
293
+ _cache[2] || (_cache[2] = createTextVNode()),
282
294
  name == "like" ? (openBlock(), createBlock(_component_Fabulous, { key: 0 })) : (openBlock(), createBlock(_component_Comment, { key: 1 }))
283
295
  ], 64)) : createCommentVNode("", true),
296
+ _cache[4] || (_cache[4] = createTextVNode()),
284
297
  name == "more" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
285
298
  createVNode(_component_MoreX),
299
+ _cache[3] || (_cache[3] = createTextVNode()),
286
300
  _ctx.showPopver ? (openBlock(), createElementBlock("view", {
287
301
  key: 0,
288
302
  class: "nut-comment-bottom__cpx-item-popover",
@@ -387,35 +401,42 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
387
401
  ]),
388
402
  _: 3
389
403
  }, 8, ["type", "info", "labels", "onHandleClick"]),
404
+ _cache[5] || (_cache[5] = createTextVNode()),
390
405
  renderSlot(_ctx.$slots, "feature"),
406
+ _cache[6] || (_cache[6] = createTextVNode()),
391
407
  createElementVNode("view", {
392
408
  class: "nut-comment__main",
393
409
  style: normalizeStyle(`-webkit-line-clamp:${_ctx.conEllipsis}`),
394
410
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
395
411
  innerHTML: _ctx.info.content
396
412
  }, null, 12, _hoisted_2),
413
+ _cache[7] || (_cache[7] = createTextVNode()),
397
414
  createVNode(_component_comment_images, {
398
415
  images: _ctx.images,
399
416
  videos: _ctx.videos,
400
417
  type: _ctx.imagesRows,
401
418
  onClickImages: _ctx.clickImages
402
419
  }, null, 8, ["images", "videos", "type", "onClickImages"]),
420
+ _cache[8] || (_cache[8] = createTextVNode()),
403
421
  _ctx.follow && _ctx.follow.days > 0 ? (openBlock(), createElementBlock("view", {
404
422
  key: 0,
405
423
  class: "nut-comment__follow",
406
424
  onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
407
425
  }, [
408
426
  createElementVNode("view", _hoisted_3, toDisplayString(_ctx.translate("additionalReview", _ctx.follow.days)), 1),
427
+ _cache[3] || (_cache[3] = createTextVNode()),
409
428
  createElementVNode("view", _hoisted_4, toDisplayString(_ctx.follow.content), 1),
429
+ _cache[4] || (_cache[4] = createTextVNode()),
410
430
  _ctx.follow.images && _ctx.follow.images.length > 0 ? (openBlock(), createElementBlock("view", {
411
431
  key: 0,
412
432
  class: "nut-comment__follow-img",
413
433
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.clickImages(_ctx.follow.images))
414
434
  }, [
415
435
  createTextVNode(toDisplayString(_ctx.translate("additionalImages", _ctx.follow.images.length)) + " ", 1),
416
- createVNode(_component_Right, { width: "12px" })
436
+ createVNode(_component_Right, { size: "12px" })
417
437
  ])) : createCommentVNode("", true)
418
438
  ])) : createCommentVNode("", true),
439
+ _cache[9] || (_cache[9] = createTextVNode()),
419
440
  createVNode(_component_comment_bottom, {
420
441
  type: _ctx.headerType,
421
442
  info: _ctx.info,
@@ -423,10 +444,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
423
444
  onClickOperate: _ctx.clickOperate,
424
445
  onHandleClick: _ctx.handleClick
425
446
  }, null, 8, ["type", "info", "operation", "onClickOperate", "onHandleClick"]),
447
+ _cache[10] || (_cache[10] = createTextVNode()),
426
448
  renderSlot(_ctx.$slots, "comment-shop-reply")
427
449
  ])) : createCommentVNode("", true);
428
450
  }
429
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
451
+ const index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
430
452
  export {
431
- index as default
453
+ index_taro as default
432
454
  };
@@ -56,7 +56,7 @@ const component = (tag) => {
56
56
  };
57
57
  };
58
58
  const { create } = createComponent("config-provider");
59
- const _sfc_main = create(component("div"));
59
+ const _sfc_main = create(component("view"));
60
60
  export {
61
61
  _sfc_main as default
62
62
  };
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { defineComponent, ref, computed, onBeforeMount, watch, openBlock, createElementBlock, renderSlot, createElementVNode } from "vue";
21
- import { p as padZero } from "../util-D1pvnUYu.js";
21
+ import { p as padZero } from "../util-2G3mRQeF.js";
22
22
  import { w as withInstall } from "../with-install-Ch3FF0uS.js";
23
23
  const getTimeStamp = (timeStr) => {
24
24
  if (!timeStr) return Date.now();
@@ -88,7 +88,7 @@ const _hoisted_2 = ["innerHTML"];
88
88
  const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
89
89
  name: "NutCountdown"
90
90
  }), {
91
- __name: "countdown",
91
+ __name: "countdown.taro",
92
92
  props: {
93
93
  modelValue: {},
94
94
  paused: { type: Boolean, default: false },