@nutui/nutui 3.1.21-beta.3 → 3.1.21

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 (274) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/dist/nutui.es.js +1452 -393
  3. package/dist/nutui.umd.js +1447 -388
  4. package/dist/packages/_es/ActionSheet.js +1 -1
  5. package/dist/packages/_es/Address.js +1 -1
  6. package/dist/packages/_es/AddressList.js +4 -2
  7. package/dist/packages/_es/Audio.js +29 -39
  8. package/dist/packages/_es/AudioOperate.js +1 -1
  9. package/dist/packages/_es/Avatar.js +1 -1
  10. package/dist/packages/_es/AvatarGroup.js +1 -1
  11. package/dist/packages/_es/BackTop.js +1 -1
  12. package/dist/packages/_es/Badge.js +1 -1
  13. package/dist/packages/_es/Barrage.js +9 -2
  14. package/dist/packages/_es/Button.js +1 -1
  15. package/dist/packages/_es/Calendar.js +1 -1
  16. package/dist/packages/_es/CalendarItem.js +1 -1
  17. package/dist/packages/_es/Card.js +1 -1
  18. package/dist/packages/_es/Cascader.js +1 -1
  19. package/dist/packages/_es/Category.js +1 -1
  20. package/dist/packages/_es/CategoryPane.js +1 -1
  21. package/dist/packages/_es/Cell.js +5 -3
  22. package/dist/packages/_es/CellGroup.js +1 -1
  23. package/dist/packages/_es/Checkbox.js +1 -1
  24. package/dist/packages/_es/CheckboxGroup.js +1 -1
  25. package/dist/packages/_es/CircleProgress.js +2 -2
  26. package/dist/packages/_es/Col.js +1 -1
  27. package/dist/packages/_es/Collapse.js +1 -1
  28. package/dist/packages/_es/CollapseItem.js +1 -1
  29. package/dist/packages/_es/Comment.js +1 -1
  30. package/dist/packages/_es/CountDown.js +1 -1
  31. package/dist/packages/_es/CountUp.js +1 -3
  32. package/dist/packages/_es/DatePicker.js +8 -8
  33. package/dist/packages/_es/Dialog.js +8 -6
  34. package/dist/packages/_es/Divider.js +47 -10
  35. package/dist/packages/_es/Drag.js +1 -1
  36. package/dist/packages/_es/Ecard.js +1 -1
  37. package/dist/packages/_es/Elevator.js +13 -9
  38. package/dist/packages/_es/Empty.js +1 -1
  39. package/dist/packages/_es/FixedNav.js +1 -1
  40. package/dist/packages/_es/Form.js +8 -3
  41. package/dist/packages/_es/FormItem.js +1 -1
  42. package/dist/packages/_es/Grid.js +1 -1
  43. package/dist/packages/_es/GridItem.js +1 -1
  44. package/dist/packages/_es/Icon.js +1 -1
  45. package/dist/packages/_es/ImagePreview.js +1 -1
  46. package/dist/packages/_es/Indicator.js +1 -1
  47. package/dist/packages/_es/InfiniteLoading.js +1 -1
  48. package/dist/packages/_es/Input.js +1 -1
  49. package/dist/packages/_es/InputNumber.js +1 -1
  50. package/dist/packages/_es/Layout.js +1 -1
  51. package/dist/packages/_es/List.js +3 -2
  52. package/dist/packages/_es/Menu.js +5 -1
  53. package/dist/packages/_es/MenuItem.js +4 -3
  54. package/dist/packages/_es/Navbar.js +119 -21
  55. package/dist/packages/_es/NoticeBar.js +1 -1
  56. package/dist/packages/_es/Notify.js +1 -1
  57. package/dist/packages/_es/NumberKeyboard.js +12 -2
  58. package/dist/packages/_es/OldPicker.js +1 -1
  59. package/dist/packages/_es/OverLay.js +1 -1
  60. package/dist/packages/_es/Pagination.js +1 -1
  61. package/dist/packages/_es/Picker.js +4 -2
  62. package/dist/packages/_es/Popover.js +890 -93
  63. package/dist/packages/_es/Popup.js +7 -4
  64. package/dist/packages/_es/Price.js +1 -1
  65. package/dist/packages/_es/Progress.js +3 -3
  66. package/dist/packages/_es/PullRefresh.js +1 -1
  67. package/dist/packages/_es/Radio.js +1 -1
  68. package/dist/packages/_es/RadioGroup.js +1 -1
  69. package/dist/packages/_es/Range.js +1 -1
  70. package/dist/packages/_es/Rate.js +1 -1
  71. package/dist/packages/_es/Row.js +3 -3
  72. package/dist/packages/_es/SearchBar.js +91 -25
  73. package/dist/packages/_es/ShortPassword.js +1 -1
  74. package/dist/packages/_es/SideNavBar.js +1 -1
  75. package/dist/packages/_es/SideNavBarItem.js +1 -1
  76. package/dist/packages/_es/Signature.js +1 -1
  77. package/dist/packages/_es/Skeleton.js +1 -1
  78. package/dist/packages/_es/Sku.js +1 -1
  79. package/dist/packages/_es/Step.js +1 -1
  80. package/dist/packages/_es/Steps.js +1 -1
  81. package/dist/packages/_es/Sticky.js +1 -1
  82. package/dist/packages/_es/SubSideNavBar.js +1 -1
  83. package/dist/packages/_es/Swipe.js +1 -1
  84. package/dist/packages/_es/Swiper.js +35 -16
  85. package/dist/packages/_es/SwiperItem.js +5 -2
  86. package/dist/packages/_es/Switch.js +1 -1
  87. package/dist/packages/_es/TabPane.js +7 -3
  88. package/dist/packages/_es/Tabbar.js +1 -1
  89. package/dist/packages/_es/TabbarItem.js +2 -1
  90. package/dist/packages/_es/Table.js +1 -1
  91. package/dist/packages/_es/Tabs.js +12 -7
  92. package/dist/packages/_es/Tag.js +1 -1
  93. package/dist/packages/_es/TextArea.js +1 -1
  94. package/dist/packages/_es/TimeDetail.js +1 -1
  95. package/dist/packages/_es/TimePannel.js +1 -1
  96. package/dist/packages/_es/TimeSelect.js +1 -1
  97. package/dist/packages/_es/Toast.js +1 -1
  98. package/dist/packages/_es/Uploader.js +5 -4
  99. package/dist/packages/_es/Video.js +1 -1
  100. package/dist/packages/_es/common.js +1 -1
  101. package/dist/packages/_es/component.js +2 -2
  102. package/dist/packages/_es/index.js +1 -1
  103. package/dist/packages/_es/index2.js +1 -1
  104. package/dist/packages/_es/index3.js +1 -1
  105. package/dist/packages/_es/index4.js +1 -1
  106. package/dist/packages/_es/index5.js +1 -1
  107. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  108. package/dist/packages/_es/pxCheck.js +1 -1
  109. package/dist/packages/_es/raf.js +1 -1
  110. package/dist/packages/addresslist/index.scss +2 -2
  111. package/dist/packages/card/index.scss +1 -1
  112. package/dist/packages/cell/index.scss +4 -0
  113. package/dist/packages/dialog/index.scss +0 -2
  114. package/dist/packages/divider/index.scss +9 -0
  115. package/dist/packages/formitem/index.scss +1 -0
  116. package/dist/packages/locale/index.d.ts +8 -3
  117. package/dist/packages/locale/{locale/lang → lang}/baseLang.d.ts +0 -0
  118. package/dist/packages/locale/lang/baseLang.js +1 -1
  119. package/dist/packages/locale/{locale/lang → lang}/en-US.d.ts +8 -0
  120. package/dist/packages/locale/lang/en-US.js +9 -1
  121. package/dist/packages/locale/lang/id-ID.d.ts +96 -0
  122. package/dist/packages/locale/lang/id-ID.js +104 -0
  123. package/dist/packages/locale/lang/index.js +1 -1
  124. package/dist/packages/locale/{locale/lang → lang}/zh-CN.d.ts +8 -0
  125. package/dist/packages/locale/lang/zh-CN.js +9 -1
  126. package/dist/packages/locale/{locale/lang → lang}/zh-TW.d.ts +8 -0
  127. package/dist/packages/locale/lang/zh-TW.js +9 -1
  128. package/dist/packages/menuitem/index.scss +0 -1
  129. package/dist/packages/navbar/index.scss +8 -1
  130. package/dist/packages/popover/index.scss +402 -81
  131. package/dist/packages/popup/index.scss +3 -0
  132. package/dist/packages/searchbar/index.scss +4 -0
  133. package/dist/packages/tabbar/index.scss +2 -2
  134. package/dist/packages/tabpane/index.scss +4 -2
  135. package/dist/packages/tabs/index.scss +3 -0
  136. package/dist/packages/timeselect/index.scss +3 -2
  137. package/dist/smartips/attributes.json +126 -34
  138. package/dist/smartips/tags.json +48 -23
  139. package/dist/style.css +1 -1
  140. package/dist/styles/themes/default.scss +46 -46
  141. package/dist/styles/themes/jdb.scss +46 -46
  142. package/dist/styles/themes/jdt.scss +46 -46
  143. package/dist/styles/variables-jdb.scss +15 -7
  144. package/dist/styles/variables-jdt.scss +15 -7
  145. package/dist/styles/variables.scss +15 -6
  146. package/dist/types/__VUE/actionsheet/{index.d.ts → index.vue.d.ts} +62 -114
  147. package/dist/types/__VUE/address/{index.d.ts → index.vue.d.ts} +78 -148
  148. package/dist/types/__VUE/addresslist/components/{GeneralShell.d.ts → GeneralShell.vue.d.ts} +6 -7
  149. package/dist/types/__VUE/addresslist/components/{ItemContents.d.ts → ItemContents.vue.d.ts} +8 -11
  150. package/dist/types/__VUE/addresslist/components/{LongPressShell.d.ts → LongPressShell.vue.d.ts} +6 -7
  151. package/dist/types/__VUE/addresslist/components/{SwipeShell.d.ts → SwipeShell.vue.d.ts} +6 -7
  152. package/dist/types/__VUE/addresslist/{index.d.ts → index.vue.d.ts} +14 -23
  153. package/dist/types/__VUE/audio/index.vue.d.ts +102 -0
  154. package/dist/types/__VUE/audiooperate/index.vue.d.ts +87 -0
  155. package/dist/types/__VUE/avatar/{index.d.ts → index.vue.d.ts} +19 -32
  156. package/dist/types/__VUE/avatargroup/{index.d.ts → index.vue.d.ts} +20 -35
  157. package/dist/types/__VUE/backtop/{index.d.ts → index.vue.d.ts} +19 -35
  158. package/dist/types/__VUE/badge/{index.d.ts → index.vue.d.ts} +20 -33
  159. package/dist/types/__VUE/barrage/{index.d.ts → index.vue.d.ts} +15 -26
  160. package/dist/types/__VUE/button/{index.d.ts → index.vue.d.ts} +34 -51
  161. package/dist/types/__VUE/button/type.d.ts +7 -0
  162. package/dist/types/__VUE/calendar/{index.d.ts → index.vue.d.ts} +32 -57
  163. package/dist/types/__VUE/calendaritem/{index.d.ts → index.vue.d.ts} +33 -58
  164. package/dist/types/__VUE/card/{index.d.ts → index.vue.d.ts} +19 -34
  165. package/dist/types/__VUE/cascader/{cascader-item.d.ts → cascader-item.vue.d.ts} +22 -23
  166. package/dist/types/__VUE/cascader/{index.d.ts → index.vue.d.ts} +62 -98
  167. package/dist/types/__VUE/category/{index.d.ts → index.vue.d.ts} +7 -10
  168. package/dist/types/__VUE/categorypane/{index.d.ts → index.vue.d.ts} +10 -15
  169. package/dist/types/__VUE/cell/{index.d.ts → index.vue.d.ts} +32 -40
  170. package/dist/types/__VUE/cellgroup/{index.d.ts → index.vue.d.ts} +8 -11
  171. package/dist/types/__VUE/checkbox/{index.d.ts → index.vue.d.ts} +21 -38
  172. package/dist/types/__VUE/checkboxgroup/{index.d.ts → index.vue.d.ts} +8 -11
  173. package/dist/types/__VUE/circleprogress/{index.d.ts → index.vue.d.ts} +18 -31
  174. package/dist/types/__VUE/col/{index.d.ts → index.vue.d.ts} +7 -10
  175. package/dist/types/__VUE/collapse/{index.d.ts → index.vue.d.ts} +24 -40
  176. package/dist/types/__VUE/collapseitem/{index.d.ts → index.vue.d.ts} +22 -30
  177. package/dist/types/__VUE/comment/components/{CmtBottom.d.ts → CmtBottom.vue.d.ts} +10 -15
  178. package/dist/types/__VUE/comment/components/{CmtHeader.d.ts → CmtHeader.vue.d.ts} +10 -15
  179. package/dist/types/__VUE/comment/components/{CmtImages.d.ts → CmtImages.vue.d.ts} +10 -15
  180. package/dist/types/__VUE/comment/{index.d.ts → index.vue.d.ts} +21 -38
  181. package/dist/types/__VUE/countdown/{index.d.ts → index.vue.d.ts} +21 -35
  182. package/dist/types/__VUE/countup/{index.d.ts → index.vue.d.ts} +41 -74
  183. package/dist/types/__VUE/datepicker/{index.d.ts → index.vue.d.ts} +68 -122
  184. package/dist/types/__VUE/dialog/index.d.ts +37 -302
  185. package/dist/types/__VUE/dialog/index.vue.d.ts +254 -0
  186. package/dist/types/__VUE/divider/{index.d.ts → index.vue.d.ts} +15 -15
  187. package/dist/types/__VUE/drag/{index.d.ts → index.vue.d.ts} +9 -19
  188. package/dist/types/__VUE/ecard/{index.d.ts → index.vue.d.ts} +24 -43
  189. package/dist/types/__VUE/elevator/{index.d.ts → index.vue.d.ts} +10 -14
  190. package/dist/types/__VUE/empty/{index.d.ts → index.vue.d.ts} +9 -14
  191. package/dist/types/__VUE/fixednav/{index.d.ts → index.vue.d.ts} +18 -34
  192. package/dist/types/__VUE/form/{index.d.ts → index.vue.d.ts} +5 -6
  193. package/dist/types/__VUE/formitem/{index.d.ts → index.vue.d.ts} +26 -45
  194. package/dist/types/__VUE/grid/{index.d.ts → index.vue.d.ts} +24 -40
  195. package/dist/types/__VUE/griditem/{index.d.ts → index.vue.d.ts} +19 -26
  196. package/dist/types/__VUE/icon/{index.d.ts → index.vue.d.ts} +15 -26
  197. package/dist/types/__VUE/imagepreview/index.d.ts +20 -121
  198. package/dist/types/__VUE/imagepreview/index.vue.d.ts +108 -0
  199. package/dist/types/__VUE/indicator/{index.d.ts → index.vue.d.ts} +13 -24
  200. package/dist/types/__VUE/infiniteloading/{index.d.ts → index.vue.d.ts} +26 -47
  201. package/dist/types/__VUE/input/{index.d.ts → index.vue.d.ts} +82 -145
  202. package/dist/types/__VUE/input/type.d.ts +13 -0
  203. package/dist/types/__VUE/inputnumber/{index.d.ts → index.vue.d.ts} +22 -39
  204. package/dist/types/__VUE/layout/{index.d.ts → index.vue.d.ts} +1 -1
  205. package/dist/types/__VUE/list/{index.d.ts → index.vue.d.ts} +10 -14
  206. package/dist/types/__VUE/menu/{index.d.ts → index.vue.d.ts} +16 -14
  207. package/dist/types/__VUE/menuitem/{index.d.ts → index.vue.d.ts} +17 -21
  208. package/dist/types/__VUE/navbar/{index.d.ts → index.vue.d.ts} +48 -26
  209. package/dist/types/__VUE/noticebar/{index.d.ts → index.vue.d.ts} +36 -65
  210. package/dist/types/__VUE/notify/index.d.ts +12 -109
  211. package/dist/types/__VUE/notify/index.vue.d.ts +101 -0
  212. package/dist/types/__VUE/numberkeyboard/{index.d.ts → index.vue.d.ts} +41 -43
  213. package/dist/types/__VUE/oldpicker/{Column.d.ts → Column.vue.d.ts} +17 -22
  214. package/dist/types/__VUE/oldpicker/{index.d.ts → index.vue.d.ts} +74 -127
  215. package/dist/types/__VUE/overlay/{index.d.ts → index.vue.d.ts} +19 -30
  216. package/dist/types/__VUE/pagination/{index.d.ts → index.vue.d.ts} +21 -38
  217. package/dist/types/__VUE/picker/{Column.d.ts → Column.vue.d.ts} +16 -18
  218. package/dist/types/__VUE/picker/{index.d.ts → index.vue.d.ts} +78 -128
  219. package/dist/types/__VUE/popover/{index.d.ts → index.vue.d.ts} +85 -109
  220. package/dist/types/__VUE/popover/type.d.ts +6 -0
  221. package/dist/types/__VUE/popup/{index.d.ts → index.vue.d.ts} +45 -80
  222. package/dist/types/__VUE/price/{index.d.ts → index.vue.d.ts} +17 -30
  223. package/dist/types/__VUE/progress/{index.d.ts → index.vue.d.ts} +29 -53
  224. package/dist/types/__VUE/pullrefresh/{index.d.ts → index.vue.d.ts} +18 -46
  225. package/dist/types/__VUE/radio/{index.d.ts → index.vue.d.ts} +19 -34
  226. package/dist/types/__VUE/radiogroup/{index.d.ts → index.vue.d.ts} +10 -15
  227. package/dist/types/__VUE/range/{index.d.ts → index.vue.d.ts} +34 -46
  228. package/dist/types/__VUE/range/type.d.ts +5 -0
  229. package/dist/types/__VUE/rate/{index.d.ts → index.vue.d.ts} +29 -54
  230. package/dist/types/__VUE/row/{index.d.ts → index.vue.d.ts} +15 -24
  231. package/dist/types/__VUE/searchbar/{index.d.ts → index.vue.d.ts} +62 -32
  232. package/dist/types/__VUE/shortpassword/{index.d.ts → index.vue.d.ts} +24 -43
  233. package/dist/types/__VUE/sidenavbar/{index.d.ts → index.vue.d.ts} +6 -7
  234. package/dist/types/__VUE/sidenavbaritem/{index.d.ts → index.vue.d.ts} +8 -11
  235. package/dist/types/__VUE/signature/{index.d.ts → index.vue.d.ts} +13 -22
  236. package/dist/types/__VUE/skeleton/common.d.ts +1 -1
  237. package/dist/types/__VUE/skeleton/{index.d.ts → index.vue.d.ts} +24 -43
  238. package/dist/types/__VUE/sku/components/{SkuHeader.d.ts → SkuHeader.vue.d.ts} +6 -7
  239. package/dist/types/__VUE/sku/components/{SkuOperate.d.ts → SkuOperate.vue.d.ts} +14 -23
  240. package/dist/types/__VUE/sku/components/{SkuSelect.d.ts → SkuSelect.vue.d.ts} +6 -7
  241. package/dist/types/__VUE/sku/components/{SkuStepper.d.ts → SkuStepper.vue.d.ts} +12 -19
  242. package/dist/types/__VUE/sku/{index.d.ts → index.vue.d.ts} +66 -124
  243. package/dist/types/__VUE/step/{index.d.ts → index.vue.d.ts} +15 -24
  244. package/dist/types/__VUE/steps/{index.d.ts → index.vue.d.ts} +9 -14
  245. package/dist/types/__VUE/sticky/{index.d.ts → index.vue.d.ts} +14 -21
  246. package/dist/types/__VUE/subsidenavbar/{index.d.ts → index.vue.d.ts} +10 -15
  247. package/dist/types/__VUE/swipe/{index.d.ts → index.vue.d.ts} +11 -18
  248. package/dist/types/__VUE/swiper/{index.d.ts → index.vue.d.ts} +31 -51
  249. package/dist/types/__VUE/swiperitem/{index.d.ts → index.vue.d.ts} +2 -2
  250. package/dist/types/__VUE/switch/{index.d.ts → index.vue.d.ts} +27 -50
  251. package/dist/types/__VUE/tabbar/{index.d.ts → index.vue.d.ts} +17 -30
  252. package/dist/types/__VUE/tabbaritem/{index.d.ts → index.vue.d.ts} +25 -40
  253. package/dist/types/__VUE/table/common.d.ts +1 -1
  254. package/dist/types/__VUE/table/{index.d.ts → index.vue.d.ts} +14 -23
  255. package/dist/types/__VUE/tabpane/{index.d.ts → index.vue.d.ts} +11 -15
  256. package/dist/types/__VUE/tabs/common.d.ts +4 -0
  257. package/dist/types/__VUE/tabs/{index.d.ts → index.vue.d.ts} +30 -42
  258. package/dist/types/__VUE/tag/{index.d.ts → index.vue.d.ts} +21 -34
  259. package/dist/types/__VUE/tag/type.d.ts +5 -0
  260. package/dist/types/__VUE/textarea/{index.d.ts → index.vue.d.ts} +26 -45
  261. package/dist/types/__VUE/timedetail/{index.d.ts → index.vue.d.ts} +8 -11
  262. package/dist/types/__VUE/timepannel/{index.d.ts → index.vue.d.ts} +8 -11
  263. package/dist/types/__VUE/timeselect/{index.d.ts → index.vue.d.ts} +17 -28
  264. package/dist/types/__VUE/toast/index.d.ts +12 -145
  265. package/dist/types/__VUE/toast/index.vue.d.ts +134 -0
  266. package/dist/types/__VUE/uploader/{index.d.ts → index.vue.d.ts} +59 -106
  267. package/dist/types/__VUE/uploader/type.d.ts +17 -0
  268. package/dist/types/__VUE/video/{index.d.ts → index.vue.d.ts} +10 -27
  269. package/dist/types/index.d.ts +7 -2
  270. package/dist/types/nutui.d.ts +92 -92
  271. package/package.json +5 -3
  272. package/dist/packages/locale/locale/index.d.ts +0 -8
  273. package/dist/types/__VUE/audio/index.d.ts +0 -92
  274. package/dist/types/__VUE/audiooperate/index.d.ts +0 -68
package/dist/nutui.es.js CHANGED
@@ -31,11 +31,11 @@ var __objRest = (source, exclude) => {
31
31
  return target;
32
32
  };
33
33
  /*!
34
- * @nutui/nutui v3.1.21-beta.3 Wed May 18 2022 18:19:52 GMT+0800 (中国标准时间)
34
+ * @nutui/nutui v3.1.21 Mon May 30 2022 20:19:56 GMT+0800 (中国标准时间)
35
35
  * (c) 2022 @jdf2e.
36
36
  * Released under the MIT License.
37
37
  */
38
- import { reactive, ref, defineComponent, h, toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot, getCurrentInstance, Fragment, toDisplayString, createTextVNode, watch, onDeactivated, onBeforeUnmount, onMounted, onActivated, Transition, withCtx, withDirectives, withModifiers, vShow, onBeforeMount, Teleport, createVNode, inject, provide, unref, onUnmounted, shallowReactive, markRaw, isVNode, renderList, mergeProps, nextTick, watchEffect, createSlots, readonly, vModelText, toRaw, useSlots, render as render$1 } from "vue";
38
+ import { reactive, ref, defineComponent, h, toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot, getCurrentInstance, Fragment, toDisplayString, createTextVNode, watch, onDeactivated, onBeforeUnmount, onMounted, onActivated, Transition, withCtx, withDirectives, withModifiers, vShow, onBeforeMount, Teleport, createVNode, inject, provide, unref, onUnmounted, shallowReactive, markRaw, isVNode, nextTick, renderList, mergeProps, watchEffect, createSlots, readonly, vModelText, toRaw, useSlots, resolveDynamicComponent, render as render$1 } from "vue";
39
39
  class BaseLang {
40
40
  }
41
41
  class Lang$1 extends BaseLang {
@@ -125,6 +125,14 @@ class Lang$1 extends BaseLang {
125
125
  pullTxt: "\u677E\u5F00\u5237\u65B0",
126
126
  loadMoreTxt: "\u54CE\u5440\uFF0C\u8FD9\u91CC\u662F\u5E95\u90E8\u4E86\u5566"
127
127
  };
128
+ this.datepicker = {
129
+ year: "\u5E74",
130
+ month: "\u6708",
131
+ day: "\u65E5",
132
+ hour: "\u65F6",
133
+ min: "\u5206",
134
+ seconds: "\u79D2"
135
+ };
128
136
  }
129
137
  }
130
138
  class Lang extends BaseLang {
@@ -214,6 +222,14 @@ class Lang extends BaseLang {
214
222
  pullTxt: "Loose to refresh",
215
223
  loadMoreTxt: "Oops, this is the bottom"
216
224
  };
225
+ this.datepicker = {
226
+ year: "Year",
227
+ month: "Month",
228
+ day: "Day",
229
+ hour: "Hour",
230
+ min: "Minute",
231
+ seconds: "Second"
232
+ };
217
233
  }
218
234
  }
219
235
  const TypeOfFun = (value) => {
@@ -530,7 +546,8 @@ const _sfc_main$1H = create$1H({
530
546
  replace: { type: Boolean, default: false },
531
547
  roundRadius: { type: [String, Number], default: "" },
532
548
  url: { type: String, default: "" },
533
- icon: { type: String, default: "" }
549
+ icon: { type: String, default: "" },
550
+ center: { type: Boolean, default: false }
534
551
  },
535
552
  emits: ["click"],
536
553
  setup(props, { emit }) {
@@ -538,7 +555,8 @@ const _sfc_main$1H = create$1H({
538
555
  const prefixCls = componentName$1l;
539
556
  return {
540
557
  [prefixCls]: true,
541
- [`${prefixCls}--clickable`]: props.isLink || props.to
558
+ [`${prefixCls}--clickable`]: props.isLink || props.to,
559
+ [`${prefixCls}--center`]: props.center
542
560
  };
543
561
  });
544
562
  const router = useRouter();
@@ -570,8 +588,8 @@ const _hoisted_2$11 = {
570
588
  key: 1,
571
589
  class: "nut-cell__title"
572
590
  };
573
- const _hoisted_3$P = { class: "title" };
574
- const _hoisted_4$E = { class: "nut-cell__title-desc" };
591
+ const _hoisted_3$O = { class: "title" };
592
+ const _hoisted_4$F = { class: "nut-cell__title-desc" };
575
593
  function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
576
594
  const _component_nut_icon = resolveComponent("nut-icon");
577
595
  return openBlock(), createElementBlock("view", {
@@ -589,8 +607,8 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
589
607
  ])) : createCommentVNode("", true),
590
608
  _ctx.title || _ctx.subTitle ? (openBlock(), createElementBlock("view", _hoisted_2$11, [
591
609
  _ctx.subTitle ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
592
- createElementVNode("view", _hoisted_3$P, toDisplayString(_ctx.title), 1),
593
- createElementVNode("view", _hoisted_4$E, toDisplayString(_ctx.subTitle), 1)
610
+ createElementVNode("view", _hoisted_3$O, toDisplayString(_ctx.title), 1),
611
+ createElementVNode("view", _hoisted_4$F, toDisplayString(_ctx.subTitle), 1)
594
612
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
595
613
  createTextVNode(toDisplayString(_ctx.title), 1)
596
614
  ], 64))
@@ -635,14 +653,14 @@ const _hoisted_2$10 = {
635
653
  key: 3,
636
654
  class: "nut-cell-group__desc"
637
655
  };
638
- const _hoisted_3$O = { class: "nut-cell-group__warp" };
656
+ const _hoisted_3$N = { class: "nut-cell-group__warp" };
639
657
  function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
640
658
  return openBlock(), createElementBlock("view", {
641
659
  class: normalizeClass(_ctx.classes)
642
660
  }, [
643
661
  _ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$1e, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
644
662
  _ctx.$slots.desc ? renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_2$10, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
645
- createElementVNode("view", _hoisted_3$O, [
663
+ createElementVNode("view", _hoisted_3$N, [
646
664
  renderSlot(_ctx.$slots, "default")
647
665
  ])
648
666
  ], 2);
@@ -818,6 +836,7 @@ const _sfc_main$1E = create$1E({
818
836
  props: __spreadValues({}, popupProps),
819
837
  emits: ["click", "click-close-icon", "open", "close", "opend", "closed", "update:visible", "click-overlay"],
820
838
  setup(props, { emit }) {
839
+ const popupRef = ref();
821
840
  const state = reactive({
822
841
  zIndex: props.zIndex ? props.zIndex : _zIndex,
823
842
  showSlot: true,
@@ -932,7 +951,8 @@ const _sfc_main$1E = create$1E({
932
951
  onClickCloseIcon,
933
952
  onClickOverlay,
934
953
  onOpened,
935
- onClosed
954
+ onClosed,
955
+ popupRef
936
956
  });
937
957
  }
938
958
  });
@@ -964,7 +984,8 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
964
984
  withDirectives(createElementVNode("view", {
965
985
  class: normalizeClass(_ctx.classes),
966
986
  style: normalizeStyle(_ctx.popStyle),
967
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
987
+ onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
988
+ ref: "popupRef"
968
989
  }, [
969
990
  _ctx.showSlot ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
970
991
  _ctx.closed ? (openBlock(), createElementBlock("view", {
@@ -1098,7 +1119,7 @@ const _sfc_main$1B = create$1B({
1098
1119
  type: String,
1099
1120
  default: "flex-start"
1100
1121
  },
1101
- wrap: {
1122
+ flexWrap: {
1102
1123
  type: String,
1103
1124
  default: "nowrap"
1104
1125
  }
@@ -1115,7 +1136,7 @@ const _sfc_main$1B = create$1B({
1115
1136
  ${getClass("", props.type)}
1116
1137
  ${getClass("justify", props.justify)}
1117
1138
  ${getClass("align", props.align)}
1118
- ${getClass("flex", props.wrap)}
1139
+ ${getClass("flex", props.flexWrap)}
1119
1140
  ${prefixCls}
1120
1141
  `;
1121
1142
  };
@@ -1214,14 +1235,14 @@ const _sfc_main$1A = create$1A({
1214
1235
  const style = {
1215
1236
  width: `${state.width}px`,
1216
1237
  height: `${state.height}px`,
1217
- [props.position]: `${offset.value}px`,
1238
+ [props.position]: `${offset2.value}px`,
1218
1239
  zIndex: +props.zIndex
1219
1240
  };
1220
1241
  if (state.transform)
1221
1242
  style.transform = `translate3d(0, ${state.transform}px, 0)`;
1222
1243
  return style;
1223
1244
  });
1224
- const offset = computed(() => {
1245
+ const offset2 = computed(() => {
1225
1246
  return props.position === "top" ? props.top : props.bottom;
1226
1247
  });
1227
1248
  const isHidden = (elementRef) => {
@@ -1261,21 +1282,21 @@ const _sfc_main$1A = create$1A({
1261
1282
  if (position === "top") {
1262
1283
  if (container) {
1263
1284
  const containerRect = useRect(container);
1264
- const diff = containerRect.bottom - +offset.value - state.height;
1265
- state.fixed = +offset.value > rootRect.top && containerRect.bottom > 0;
1285
+ const diff = containerRect.bottom - +offset2.value - state.height;
1286
+ state.fixed = +offset2.value > rootRect.top && containerRect.bottom > 0;
1266
1287
  state.transform = diff < 0 ? diff : 0;
1267
1288
  } else {
1268
- state.fixed = offset.value > rootRect.top;
1289
+ state.fixed = offset2.value > rootRect.top;
1269
1290
  }
1270
1291
  } else if (position === "bottom") {
1271
1292
  const clientHeight = document.documentElement.clientHeight;
1272
1293
  if (container) {
1273
1294
  const containerRect = useRect(container);
1274
- const diff = clientHeight - containerRect.top - +offset.value - state.height;
1275
- state.fixed = clientHeight - +offset.value < rootRect.bottom && clientHeight > containerRect.top;
1295
+ const diff = clientHeight - containerRect.top - +offset2.value - state.height;
1296
+ state.fixed = clientHeight - +offset2.value < rootRect.bottom && clientHeight > containerRect.top;
1276
1297
  state.transform = diff < 0 ? -diff : 0;
1277
1298
  } else {
1278
- state.fixed = clientHeight - +offset.value < rootRect.bottom;
1299
+ state.fixed = clientHeight - +offset2.value < rootRect.bottom;
1279
1300
  }
1280
1301
  }
1281
1302
  emit("scroll", {
@@ -1315,30 +1336,48 @@ const _sfc_main$1z = create$1z({
1315
1336
  hairline: {
1316
1337
  type: Boolean,
1317
1338
  default: true
1339
+ },
1340
+ direction: {
1341
+ type: String,
1342
+ default: "horizontal"
1318
1343
  }
1319
1344
  },
1320
1345
  components: {},
1321
1346
  setup(props, context) {
1322
1347
  const classes = computed(() => {
1323
1348
  const prefixCls = componentName$1e;
1324
- return {
1325
- [prefixCls]: true,
1326
- [`${prefixCls}-center`]: context.slots.default,
1327
- [`${prefixCls}-left`]: props.contentPosition === "left",
1328
- [`${prefixCls}-right`]: props.contentPosition === "right",
1329
- [`${prefixCls}-dashed`]: props.dashed,
1330
- [`${prefixCls}-hairline`]: props.hairline
1349
+ let defaultClassesObj = {
1350
+ [prefixCls]: true
1331
1351
  };
1352
+ let classesObj = {};
1353
+ if (props.direction === "horizontal") {
1354
+ classesObj = __spreadProps(__spreadValues({}, defaultClassesObj), {
1355
+ [`${prefixCls}-center`]: context.slots.default,
1356
+ [`${prefixCls}-left`]: props.contentPosition === "left",
1357
+ [`${prefixCls}-right`]: props.contentPosition === "right",
1358
+ [`${prefixCls}-dashed`]: props.dashed,
1359
+ [`${prefixCls}-hairline`]: props.hairline
1360
+ });
1361
+ } else {
1362
+ classesObj = __spreadProps(__spreadValues({}, defaultClassesObj), {
1363
+ [`${prefixCls}-vertical`]: props.direction === "vertical"
1364
+ });
1365
+ }
1366
+ return classesObj;
1332
1367
  });
1333
1368
  return { classes };
1334
1369
  }
1335
1370
  });
1336
1371
  function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
1337
- return openBlock(), createElementBlock("div", {
1372
+ return _ctx.direction === "horizontal" ? (openBlock(), createElementBlock("view", {
1373
+ key: 0,
1338
1374
  class: normalizeClass(_ctx.classes)
1339
1375
  }, [
1340
1376
  renderSlot(_ctx.$slots, "default")
1341
- ], 2);
1377
+ ], 2)) : (openBlock(), createElementBlock("view", {
1378
+ key: 1,
1379
+ class: normalizeClass(_ctx.classes)
1380
+ }, null, 2));
1342
1381
  }
1343
1382
  var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$1s]]);
1344
1383
  function flattenVNodes(children, childName) {
@@ -1613,6 +1652,7 @@ const _sfc_main$1w = create$1w({
1613
1652
  leftShow: { type: Boolean, default: true },
1614
1653
  title: { type: String, default: "" },
1615
1654
  titIcon: { type: String, default: "" },
1655
+ leftText: { type: String, default: "" },
1616
1656
  desc: { type: String, default: "" },
1617
1657
  fixed: {
1618
1658
  type: Boolean,
@@ -1621,19 +1661,49 @@ const _sfc_main$1w = create$1w({
1621
1661
  safeAreaInsetTop: {
1622
1662
  type: Boolean,
1623
1663
  default: false
1664
+ },
1665
+ border: {
1666
+ type: Boolean,
1667
+ default: false
1668
+ },
1669
+ placeholder: {
1670
+ type: Boolean,
1671
+ default: true
1672
+ },
1673
+ zIndex: {
1674
+ type: [Number, String],
1675
+ default: 10
1624
1676
  }
1625
1677
  },
1626
1678
  emits: ["on-click-back", "on-click-title", "on-click-icon", "on-click-right"],
1627
1679
  setup(props, { emit }) {
1628
- const { fixed, safeAreaInsetTop } = toRefs(props);
1680
+ const { border, fixed, safeAreaInsetTop, placeholder, zIndex } = toRefs(props);
1681
+ const navBarWrap = ref(null);
1682
+ const navBarHtml = ref(null);
1683
+ let navHeight = ref(0);
1629
1684
  const classes = computed(() => {
1630
1685
  const prefixCls = componentName$1b;
1631
1686
  return {
1632
1687
  [prefixCls]: true,
1688
+ [`${prefixCls}--border`]: border.value,
1633
1689
  [`${prefixCls}--fixed`]: fixed.value,
1634
1690
  [`${prefixCls}--safe-area-inset-top`]: safeAreaInsetTop.value
1635
1691
  };
1636
1692
  });
1693
+ const styles = computed(() => {
1694
+ return {
1695
+ zIndex: zIndex.value
1696
+ };
1697
+ });
1698
+ onMounted(() => {
1699
+ if (fixed.value && placeholder.value) {
1700
+ nextTick(() => {
1701
+ var _a;
1702
+ navHeight = (_a = navBarHtml == null ? void 0 : navBarHtml.value) == null ? void 0 : _a.getBoundingClientRect().height;
1703
+ navBarWrap.value.style.height = navHeight + "px";
1704
+ });
1705
+ }
1706
+ });
1637
1707
  function handleLeft() {
1638
1708
  emit("on-click-back");
1639
1709
  }
@@ -1647,7 +1717,10 @@ const _sfc_main$1w = create$1w({
1647
1717
  emit("on-click-right");
1648
1718
  }
1649
1719
  return {
1720
+ navBarWrap,
1721
+ navBarHtml,
1650
1722
  classes,
1723
+ styles,
1651
1724
  handleLeft,
1652
1725
  handleCenter,
1653
1726
  handleCenterIcon,
@@ -1655,28 +1728,93 @@ const _sfc_main$1w = create$1w({
1655
1728
  };
1656
1729
  }
1657
1730
  });
1658
- const _hoisted_1$1b = { class: "nut-navbar__left" };
1659
- const _hoisted_2$$ = { class: "nut-navbar__title" };
1660
- const _hoisted_3$N = { class: "nut-navbar__right" };
1731
+ const _hoisted_1$1b = {
1732
+ key: 0,
1733
+ class: "nut-navbar--placeholder",
1734
+ ref: "navBarWrap"
1735
+ };
1736
+ const _hoisted_2$$ = {
1737
+ key: 1,
1738
+ class: "nut-navbar__text"
1739
+ };
1740
+ const _hoisted_3$M = { class: "nut-navbar__title" };
1741
+ const _hoisted_4$E = {
1742
+ key: 0,
1743
+ class: "nut-navbar__text"
1744
+ };
1745
+ const _hoisted_5$s = {
1746
+ key: 1,
1747
+ class: "nut-navbar__text"
1748
+ };
1749
+ const _hoisted_6$o = { class: "nut-navbar__title" };
1750
+ const _hoisted_7$j = {
1751
+ key: 0,
1752
+ class: "nut-navbar__text"
1753
+ };
1661
1754
  function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
1662
1755
  const _component_nut_icon = resolveComponent("nut-icon");
1663
- return openBlock(), createElementBlock("view", {
1664
- class: normalizeClass(_ctx.classes)
1756
+ return _ctx.fixed && _ctx.placeholder ? (openBlock(), createElementBlock("view", _hoisted_1$1b, [
1757
+ createElementVNode("view", {
1758
+ class: normalizeClass(_ctx.classes),
1759
+ style: normalizeStyle(_ctx.styles),
1760
+ ref: "navBarHtml"
1761
+ }, [
1762
+ createElementVNode("view", {
1763
+ class: "nut-navbar__left",
1764
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleLeft && _ctx.handleLeft(...args))
1765
+ }, [
1766
+ _ctx.leftShow ? (openBlock(), createBlock(_component_nut_icon, {
1767
+ key: 0,
1768
+ color: "#979797",
1769
+ name: "left"
1770
+ })) : createCommentVNode("", true),
1771
+ _ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_2$$, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
1772
+ renderSlot(_ctx.$slots, "left")
1773
+ ]),
1774
+ createElementVNode("view", _hoisted_3$M, [
1775
+ _ctx.title ? (openBlock(), createElementBlock("view", {
1776
+ key: 0,
1777
+ class: "title",
1778
+ onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
1779
+ }, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
1780
+ _ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, {
1781
+ key: 1,
1782
+ class: "icon",
1783
+ name: _ctx.titIcon,
1784
+ onClick: _ctx.handleCenterIcon
1785
+ }, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
1786
+ renderSlot(_ctx.$slots, "content")
1787
+ ]),
1788
+ createElementVNode("view", {
1789
+ class: "nut-navbar__right",
1790
+ onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
1791
+ }, [
1792
+ _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_4$E, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
1793
+ renderSlot(_ctx.$slots, "right")
1794
+ ])
1795
+ ], 6)
1796
+ ], 512)) : (openBlock(), createElementBlock("view", {
1797
+ key: 1,
1798
+ class: normalizeClass(_ctx.classes),
1799
+ style: normalizeStyle(_ctx.styles)
1665
1800
  }, [
1666
- createElementVNode("view", _hoisted_1$1b, [
1801
+ createElementVNode("view", {
1802
+ class: "nut-navbar__left",
1803
+ onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleLeft && _ctx.handleLeft(...args))
1804
+ }, [
1667
1805
  _ctx.leftShow ? (openBlock(), createBlock(_component_nut_icon, {
1668
1806
  key: 0,
1669
1807
  color: "#979797",
1670
- name: "left",
1671
- onClick: _ctx.handleLeft
1672
- }, null, 8, ["onClick"])) : createCommentVNode("", true),
1808
+ name: "left"
1809
+ })) : createCommentVNode("", true),
1810
+ _ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_5$s, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
1673
1811
  renderSlot(_ctx.$slots, "left")
1674
1812
  ]),
1675
- createElementVNode("view", _hoisted_2$$, [
1813
+ createElementVNode("view", _hoisted_6$o, [
1676
1814
  _ctx.title ? (openBlock(), createElementBlock("view", {
1677
1815
  key: 0,
1678
1816
  class: "title",
1679
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
1817
+ onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
1680
1818
  }, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
1681
1819
  _ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, {
1682
1820
  key: 1,
@@ -1686,18 +1824,17 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
1686
1824
  }, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
1687
1825
  renderSlot(_ctx.$slots, "content")
1688
1826
  ]),
1689
- createElementVNode("view", _hoisted_3$N, [
1690
- _ctx.desc ? (openBlock(), createElementBlock("view", {
1691
- key: 0,
1692
- class: "right_text",
1693
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
1694
- }, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
1827
+ createElementVNode("view", {
1828
+ class: "nut-navbar__right",
1829
+ onClick: _cache[5] || (_cache[5] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
1830
+ }, [
1831
+ _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_7$j, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
1695
1832
  renderSlot(_ctx.$slots, "right")
1696
1833
  ])
1697
- ], 2);
1834
+ ], 6));
1698
1835
  }
1699
1836
  var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["render", _sfc_render$1q]]);
1700
- const { componentName: componentName$1a, create: create$1v, translate: translate$p } = createComponent("fixednav");
1837
+ const { componentName: componentName$1a, create: create$1v, translate: translate$r } = createComponent("fixednav");
1701
1838
  const _sfc_main$1v = create$1v({
1702
1839
  components: {
1703
1840
  [OverLay.name]: OverLay
@@ -1756,18 +1893,18 @@ const _sfc_main$1v = create$1v({
1756
1893
  event
1757
1894
  });
1758
1895
  };
1759
- return { classes, updateValue, selected, translate: translate$p };
1896
+ return { classes, updateValue, selected, translate: translate$r };
1760
1897
  }
1761
1898
  });
1762
1899
  const _hoisted_1$1a = { class: "nut-fixednav__list" };
1763
1900
  const _hoisted_2$_ = ["onClick"];
1764
- const _hoisted_3$M = ["src"];
1901
+ const _hoisted_3$L = ["src"];
1765
1902
  const _hoisted_4$D = { class: "span" };
1766
1903
  const _hoisted_5$r = {
1767
1904
  key: 0,
1768
1905
  class: "b"
1769
1906
  };
1770
- const _hoisted_6$o = { class: "text" };
1907
+ const _hoisted_6$n = { class: "text" };
1771
1908
  function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
1772
1909
  const _component_nut_overlay = resolveComponent("nut-overlay");
1773
1910
  const _component_nut_icon = resolveComponent("nut-icon");
@@ -1791,7 +1928,7 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
1791
1928
  }, [
1792
1929
  createElementVNode("img", {
1793
1930
  src: item.icon
1794
- }, null, 8, _hoisted_3$M),
1931
+ }, null, 8, _hoisted_3$L),
1795
1932
  createElementVNode("view", _hoisted_4$D, toDisplayString(item.text), 1),
1796
1933
  item.num ? (openBlock(), createElementBlock("view", _hoisted_5$r, toDisplayString(item.num), 1)) : createCommentVNode("", true)
1797
1934
  ], 8, _hoisted_2$_);
@@ -1807,7 +1944,7 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
1807
1944
  name: "left",
1808
1945
  color: "#fff"
1809
1946
  }),
1810
- createElementVNode("view", _hoisted_6$o, toDisplayString(_ctx.visible ? _ctx.activeText || _ctx.translate("activeText") : _ctx.unActiveText || _ctx.translate("unActiveText")), 1)
1947
+ createElementVNode("view", _hoisted_6$n, toDisplayString(_ctx.visible ? _ctx.activeText || _ctx.translate("activeText") : _ctx.unActiveText || _ctx.translate("unActiveText")), 1)
1811
1948
  ])
1812
1949
  ])
1813
1950
  ], 6);
@@ -1827,11 +1964,15 @@ const _sfc_main$1u = create$1u({
1827
1964
  duration: {
1828
1965
  type: [Number, String],
1829
1966
  default: 0
1967
+ },
1968
+ closeOnClickOverlay: {
1969
+ type: Boolean,
1970
+ default: true
1830
1971
  }
1831
1972
  },
1832
1973
  setup(props, { emit, slots }) {
1833
1974
  const barRef = ref();
1834
- const offset = ref(0);
1975
+ const offset2 = ref(0);
1835
1976
  const useChildren = () => {
1836
1977
  const publicChildren = reactive([]);
1837
1978
  const internalChildren = reactive([]);
@@ -1864,10 +2005,10 @@ const _sfc_main$1u = create$1u({
1864
2005
  const updateOffset = () => {
1865
2006
  if (barRef.value) {
1866
2007
  const rect = useRect(barRef);
1867
- offset.value = rect.bottom;
2008
+ offset2.value = rect.bottom;
1868
2009
  }
1869
2010
  };
1870
- linkChildren({ props, offset });
2011
+ linkChildren({ props, offset: offset2 });
1871
2012
  const toggleItem = (active) => {
1872
2013
  children.forEach((item, index) => {
1873
2014
  if (index === active) {
@@ -2046,7 +2187,8 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
2046
2187
  overlayClass: "nut-menu__overlay",
2047
2188
  overlay: _ctx.parent.props.overlay,
2048
2189
  onClosed: _ctx.handleClose,
2049
- isWrapTeleport: false
2190
+ isWrapTeleport: false,
2191
+ "close-on-click-overlay": _ctx.parent.props.closeOnClickOverlay
2050
2192
  }), {
2051
2193
  default: withCtx(() => [
2052
2194
  createElementVNode("view", _hoisted_1$18, [
@@ -2071,7 +2213,7 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
2071
2213
  ])
2072
2214
  ]),
2073
2215
  _: 3
2074
- }, 16, ["style", "overlayStyle", "visible", "duration", "overlay", "onClosed"])
2216
+ }, 16, ["style", "overlayStyle", "visible", "duration", "overlay", "onClosed", "close-on-click-overlay"])
2075
2217
  ], 2)), [
2076
2218
  [vShow, _ctx.state.showWrapper]
2077
2219
  ]);
@@ -2218,6 +2360,7 @@ const _sfc_main$1r = create$1r({
2218
2360
  setTimeout(() => {
2219
2361
  if (parent.children[value].href) {
2220
2362
  window.location.href = parent.children[value].href;
2363
+ return;
2221
2364
  }
2222
2365
  if (parent.children[value].to) {
2223
2366
  let to = parent.children[value].to;
@@ -2240,7 +2383,7 @@ const _hoisted_2$X = {
2240
2383
  key: 0,
2241
2384
  class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_num"
2242
2385
  };
2243
- const _hoisted_3$L = {
2386
+ const _hoisted_3$K = {
2244
2387
  key: 1,
2245
2388
  class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums"
2246
2389
  };
@@ -2249,7 +2392,7 @@ const _hoisted_4$C = {
2249
2392
  class: "nut-tabbar-item_icon-box_dot"
2250
2393
  };
2251
2394
  const _hoisted_5$q = { key: 2 };
2252
- const _hoisted_6$n = { key: 0 };
2395
+ const _hoisted_6$m = { key: 0 };
2253
2396
  function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
2254
2397
  const _component_nut_icon = resolveComponent("nut-icon");
2255
2398
  return openBlock(), createElementBlock("div", {
@@ -2261,7 +2404,7 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
2261
2404
  }, [
2262
2405
  createElementVNode("view", _hoisted_1$17, [
2263
2406
  !_ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
2264
- _ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2$X, toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (openBlock(), createElementBlock("view", _hoisted_3$L, toDisplayString("99+"))) : createCommentVNode("", true)
2407
+ _ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2$X, toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (openBlock(), createElementBlock("view", _hoisted_3$K, toDisplayString("99+"))) : createCommentVNode("", true)
2265
2408
  ], 64)) : createCommentVNode("", true),
2266
2409
  _ctx.dot ? (openBlock(), createElementBlock("div", _hoisted_4$C)) : createCommentVNode("", true),
2267
2410
  _ctx.icon ? (openBlock(), createElementBlock("view", _hoisted_5$q, [
@@ -2285,7 +2428,7 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
2285
2428
  createElementVNode("view", {
2286
2429
  class: normalizeClass(["nut-tabbar-item_icon-box_nav-word", { "nut-tabbar-item_icon-box_big-word": !_ctx.icon && !_ctx.activeImg }])
2287
2430
  }, [
2288
- _ctx.tabTitle ? (openBlock(), createElementBlock("view", _hoisted_6$n, toDisplayString(_ctx.tabTitle), 1)) : createCommentVNode("", true),
2431
+ _ctx.tabTitle ? (openBlock(), createElementBlock("view", _hoisted_6$m, toDisplayString(_ctx.tabTitle), 1)) : createCommentVNode("", true),
2289
2432
  !_ctx.tabTitle ? renderSlot(_ctx.$slots, "default", { key: 1 }) : createCommentVNode("", true)
2290
2433
  ], 2)
2291
2434
  ])
@@ -2330,7 +2473,8 @@ const _sfc_main$1q = create$1q({
2330
2473
  },
2331
2474
  scrollStart: false,
2332
2475
  currentIndex: 0,
2333
- currentData: {}
2476
+ currentData: {},
2477
+ currentKey: ""
2334
2478
  });
2335
2479
  const classes = computed(() => {
2336
2480
  const prefixCls = componentName$17;
@@ -2373,9 +2517,6 @@ const _sfc_main$1q = create$1q({
2373
2517
  if (!index && index !== 0) {
2374
2518
  return;
2375
2519
  }
2376
- if (!state.listHeight.length) {
2377
- calculateHeight();
2378
- }
2379
2520
  if (index < 0)
2380
2521
  index = 0;
2381
2522
  if (index > state.listHeight.length - 2)
@@ -2405,6 +2546,7 @@ const _sfc_main$1q = create$1q({
2405
2546
  const handleClickItem = (key, item) => {
2406
2547
  context.emit("click-item", key, item);
2407
2548
  state.currentData = item;
2549
+ state.currentKey = key;
2408
2550
  };
2409
2551
  const handleClickIndex = (key) => {
2410
2552
  context.emit("click-index", key);
@@ -2412,6 +2554,10 @@ const _sfc_main$1q = create$1q({
2412
2554
  useExpose({
2413
2555
  scrollTo
2414
2556
  });
2557
+ watch(() => state.listGroup.length, () => {
2558
+ state.listHeight = [];
2559
+ nextTick(calculateHeight);
2560
+ });
2415
2561
  return __spreadProps(__spreadValues({
2416
2562
  classes
2417
2563
  }, toRefs(state)), {
@@ -2427,7 +2573,7 @@ const _sfc_main$1q = create$1q({
2427
2573
  });
2428
2574
  const _hoisted_1$16 = { class: "nut-elevator__list__item__code" };
2429
2575
  const _hoisted_2$W = ["onClick", "innerHTML"];
2430
- const _hoisted_3$K = { class: "nut-elevator__bars__inner" };
2576
+ const _hoisted_3$J = { class: "nut-elevator__bars__inner" };
2431
2577
  const _hoisted_4$B = ["data-index", "onClick"];
2432
2578
  function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
2433
2579
  return openBlock(), createElementBlock("view", {
@@ -2442,19 +2588,20 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
2442
2588
  return openBlock(), createElementBlock("view", {
2443
2589
  class: "nut-elevator__list__item",
2444
2590
  key: item[_ctx.acceptKey],
2445
- ref_for: true,
2446
2591
  ref: _ctx.setListGroup
2447
2592
  }, [
2448
2593
  createElementVNode("view", _hoisted_1$16, toDisplayString(item[_ctx.acceptKey]), 1),
2449
2594
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (subitem) => {
2450
2595
  return openBlock(), createElementBlock("view", {
2451
- class: normalizeClass(["nut-elevator__list__item__name", { "nut-elevator__list__item__name--highcolor": _ctx.currentData.id === subitem.id }]),
2596
+ class: normalizeClass(["nut-elevator__list__item__name", {
2597
+ "nut-elevator__list__item__name--highcolor": _ctx.currentData.id === subitem.id && _ctx.currentKey === item[_ctx.acceptKey]
2598
+ }]),
2452
2599
  key: subitem["id"],
2453
2600
  onClick: ($event) => _ctx.handleClickItem(item[_ctx.acceptKey], subitem),
2454
2601
  innerHTML: subitem.name
2455
2602
  }, null, 10, _hoisted_2$W);
2456
2603
  }), 128))
2457
- ]);
2604
+ ], 512);
2458
2605
  }), 128))
2459
2606
  ], 4),
2460
2607
  _ctx.indexList.length ? withDirectives((openBlock(), createElementBlock("view", {
@@ -2469,7 +2616,7 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
2469
2616
  onTouchmove: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.touchMove && _ctx.touchMove(...args), ["stop", "prevent"])),
2470
2617
  onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
2471
2618
  }, [
2472
- createElementVNode("view", _hoisted_3$K, [
2619
+ createElementVNode("view", _hoisted_3$J, [
2473
2620
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.indexList, (item, index) => {
2474
2621
  return openBlock(), createElementBlock("view", {
2475
2622
  class: "nut-elevator__bars__inner__item",
@@ -2483,7 +2630,7 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
2483
2630
  ], 2);
2484
2631
  }
2485
2632
  var Elevator = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$1k]]);
2486
- const { componentName: componentName$16, create: create$1p, translate: translate$o } = createComponent("pagination");
2633
+ const { componentName: componentName$16, create: create$1p, translate: translate$q } = createComponent("pagination");
2487
2634
  const _sfc_main$1p = create$1p({
2488
2635
  props: {
2489
2636
  modelValue: {
@@ -2586,7 +2733,7 @@ const _sfc_main$1p = create$1p({
2586
2733
  mode,
2587
2734
  pages,
2588
2735
  forceEllipses,
2589
- translate: translate$o
2736
+ translate: translate$q
2590
2737
  };
2591
2738
  }
2592
2739
  });
@@ -2595,7 +2742,7 @@ const _hoisted_2$V = {
2595
2742
  key: 0,
2596
2743
  class: "nut-pagination-contain"
2597
2744
  };
2598
- const _hoisted_3$J = ["onClick"];
2745
+ const _hoisted_3$I = ["onClick"];
2599
2746
  const _hoisted_4$A = {
2600
2747
  key: 1,
2601
2748
  class: "nut-pagination-contain"
@@ -2621,7 +2768,7 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
2621
2768
  renderSlot(_ctx.$slots, "page", { item }, () => [
2622
2769
  createTextVNode(toDisplayString(item.text), 1)
2623
2770
  ])
2624
- ], 10, _hoisted_3$J);
2771
+ ], 10, _hoisted_3$I);
2625
2772
  }), 128))
2626
2773
  ])) : createCommentVNode("", true),
2627
2774
  _ctx.mode == "simple" ? (openBlock(), createElementBlock("view", _hoisted_4$A, [
@@ -2675,6 +2822,10 @@ const component$3 = {
2675
2822
  type: Boolean,
2676
2823
  default: true
2677
2824
  },
2825
+ autoHeight: {
2826
+ type: Boolean,
2827
+ default: false
2828
+ },
2678
2829
  background: {
2679
2830
  type: String,
2680
2831
  default: ""
@@ -2692,18 +2843,19 @@ const component$3 = {
2692
2843
  emits: ["update:modelValue", "click", "change"],
2693
2844
  setup(props, { emit, slots }) {
2694
2845
  provide("activeKey", { activeKey: computed(() => props.modelValue) });
2846
+ provide("autoHeight", { autoHeight: computed(() => props.autoHeight) });
2695
2847
  const titles = ref([]);
2696
2848
  const renderTitles = (vnodes) => {
2697
2849
  vnodes.forEach((vnode, index) => {
2698
- var _a, _b, _c, _d, _e;
2850
+ var _a, _b, _c, _d, _e, _f, _g;
2699
2851
  let type = vnode.type;
2700
2852
  type = type.name || type;
2701
2853
  if (type == "nut-tabpane") {
2702
2854
  let title = new Title();
2703
- if (((_a = vnode.props) == null ? void 0 : _a.title) || ((_b = vnode.props) == null ? void 0 : _b["pane-key"])) {
2704
- title.title = (_c = vnode.props) == null ? void 0 : _c.title;
2705
- title.paneKey = ((_d = vnode.props) == null ? void 0 : _d["pane-key"]) || index;
2706
- title.disabled = (_e = vnode.props) == null ? void 0 : _e.disabled;
2855
+ if (((_a = vnode.props) == null ? void 0 : _a.title) || ((_b = vnode.props) == null ? void 0 : _b["pane-key"]) || ((_c = vnode.props) == null ? void 0 : _c["paneKey"])) {
2856
+ title.title = (_d = vnode.props) == null ? void 0 : _d.title;
2857
+ title.paneKey = ((_e = vnode.props) == null ? void 0 : _e["pane-key"]) || ((_f = vnode.props) == null ? void 0 : _f["paneKey"]) || index;
2858
+ title.disabled = (_g = vnode.props) == null ? void 0 : _g.disabled;
2707
2859
  }
2708
2860
  titles.value.push(title);
2709
2861
  } else {
@@ -2816,7 +2968,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2816
2968
  }, null, 8, ["color"])
2817
2969
  ], 4)) : createCommentVNode("", true),
2818
2970
  createElementVNode("view", {
2819
- class: normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis && !_ctx.titleScroll && _ctx.direction == "horizontal" }])
2971
+ class: normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis }])
2820
2972
  }, toDisplayString(item.title), 3)
2821
2973
  ], 14, _hoisted_1$14);
2822
2974
  }), 128))
@@ -2851,12 +3003,16 @@ const _sfc_main$1n = create$1n({
2851
3003
  emits: ["click"],
2852
3004
  setup(props, { emit }) {
2853
3005
  const parent = inject("activeKey");
2854
- return { activeKey: parent.activeKey };
3006
+ const parentOption = inject("autoHeight");
3007
+ return {
3008
+ activeKey: parent.activeKey,
3009
+ autoHeight: parentOption.autoHeight
3010
+ };
2855
3011
  }
2856
3012
  });
2857
3013
  function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
2858
3014
  return openBlock(), createElementBlock("view", {
2859
- class: normalizeClass(["nut-tabpane", { active: _ctx.paneKey == _ctx.activeKey }])
3015
+ class: normalizeClass(["nut-tabpane", { inactive: _ctx.paneKey != _ctx.activeKey && _ctx.autoHeight }])
2860
3016
  }, [
2861
3017
  renderSlot(_ctx.$slots, "default")
2862
3018
  ], 2);
@@ -3084,7 +3240,7 @@ const _sfc_main$1j = create$1j({
3084
3240
  });
3085
3241
  const _hoisted_1$11 = ["ikey"];
3086
3242
  const _hoisted_2$S = { class: "nut-subsidenavbar__title__text" };
3087
- const _hoisted_3$I = { class: "nut-subsidenavbar__title__icon" };
3243
+ const _hoisted_3$H = { class: "nut-subsidenavbar__title__icon" };
3088
3244
  function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
3089
3245
  const _component_nut_icon = resolveComponent("nut-icon");
3090
3246
  return openBlock(), createElementBlock("view", {
@@ -3096,7 +3252,7 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
3096
3252
  onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
3097
3253
  }, [
3098
3254
  createElementVNode("span", _hoisted_2$S, toDisplayString(_ctx.title), 1),
3099
- createElementVNode("span", _hoisted_3$I, [
3255
+ createElementVNode("span", _hoisted_3$H, [
3100
3256
  createVNode(_component_nut_icon, {
3101
3257
  name: "down-arrow",
3102
3258
  class: normalizeClass(_ctx.direction)
@@ -3139,7 +3295,7 @@ function useTouch$2() {
3139
3295
  offsetY.value = 0;
3140
3296
  direction.value = "";
3141
3297
  };
3142
- const start = (event) => {
3298
+ const start2 = (event) => {
3143
3299
  reset();
3144
3300
  startX.value = event.touches[0].clientX;
3145
3301
  startY.value = event.touches[0].clientY;
@@ -3156,7 +3312,7 @@ function useTouch$2() {
3156
3312
  };
3157
3313
  return {
3158
3314
  move,
3159
- start,
3315
+ start: start2,
3160
3316
  reset,
3161
3317
  startX,
3162
3318
  startY,
@@ -3292,9 +3448,9 @@ const _sfc_main$1i = create$1i({
3292
3448
  let lowerBound = Number(min);
3293
3449
  let upperBound = Number(max);
3294
3450
  if (props.range) {
3295
- const [left, right] = modelValue;
3296
- lowerBound = left;
3297
- upperBound = right;
3451
+ const [left2, right2] = modelValue;
3452
+ lowerBound = left2;
3453
+ upperBound = right2;
3298
3454
  } else {
3299
3455
  upperBound = modelValue;
3300
3456
  }
@@ -3321,9 +3477,9 @@ const _sfc_main$1i = create$1i({
3321
3477
  let lowerBound = Number(min);
3322
3478
  let upperBound = Number(max);
3323
3479
  if (props.range) {
3324
- const [left, right] = modelValue;
3325
- lowerBound = left;
3326
- upperBound = right;
3480
+ const [left2, right2] = modelValue;
3481
+ lowerBound = left2;
3482
+ upperBound = right2;
3327
3483
  }
3328
3484
  let isActive = mark <= upperBound && mark >= lowerBound;
3329
3485
  let style = {
@@ -3343,7 +3499,7 @@ const _sfc_main$1i = create$1i({
3343
3499
  }
3344
3500
  return value;
3345
3501
  };
3346
- const updateValue = (value, end) => {
3502
+ const updateValue = (value, end2) => {
3347
3503
  if (isRange(value)) {
3348
3504
  value = handleOverlap(value).map(format);
3349
3505
  } else {
@@ -3352,7 +3508,7 @@ const _sfc_main$1i = create$1i({
3352
3508
  if (!isSameValue(value, props.modelValue)) {
3353
3509
  emit("update:modelValue", value);
3354
3510
  }
3355
- if (end && !isSameValue(value, startValue)) {
3511
+ if (end2 && !isSameValue(value, startValue)) {
3356
3512
  emit("change", value);
3357
3513
  }
3358
3514
  };
@@ -3370,12 +3526,12 @@ const _sfc_main$1i = create$1i({
3370
3526
  }
3371
3527
  const value = Number(min) + delta / total * scope.value;
3372
3528
  if (isRange(modelValue)) {
3373
- const [left, right] = modelValue;
3374
- const middle = (left + right) / 2;
3529
+ const [left2, right2] = modelValue;
3530
+ const middle = (left2 + right2) / 2;
3375
3531
  if (value <= middle) {
3376
- updateValue([value, right], true);
3532
+ updateValue([value, right2], true);
3377
3533
  } else {
3378
- updateValue([left, value], true);
3534
+ updateValue([left2, value], true);
3379
3535
  }
3380
3536
  } else {
3381
3537
  updateValue(value, true);
@@ -3464,13 +3620,13 @@ const _hoisted_2$R = {
3464
3620
  key: 0,
3465
3621
  class: "nut-range-mark"
3466
3622
  };
3467
- const _hoisted_3$H = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
3623
+ const _hoisted_3$G = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
3468
3624
  const _hoisted_4$z = {
3469
3625
  key: 0,
3470
3626
  class: "number"
3471
3627
  };
3472
3628
  const _hoisted_5$o = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax"];
3473
- const _hoisted_6$m = {
3629
+ const _hoisted_6$l = {
3474
3630
  key: 0,
3475
3631
  class: "number"
3476
3632
  };
@@ -3539,7 +3695,7 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
3539
3695
  }, [
3540
3696
  !_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_4$z, toDisplayString(_ctx.curValue(index)), 1)) : createCommentVNode("", true)
3541
3697
  ], 4))
3542
- ], 42, _hoisted_3$H);
3698
+ ], 42, _hoisted_3$G);
3543
3699
  }), 64)) : (openBlock(), createElementBlock("view", {
3544
3700
  key: 1,
3545
3701
  role: "slider",
@@ -3562,7 +3718,7 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
3562
3718
  class: "nut-range-button",
3563
3719
  style: normalizeStyle(_ctx.buttonStyle)
3564
3720
  }, [
3565
- !_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_6$m, toDisplayString(_ctx.curValue()), 1)) : createCommentVNode("", true)
3721
+ !_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_6$l, toDisplayString(_ctx.curValue()), 1)) : createCommentVNode("", true)
3566
3722
  ], 4))
3567
3723
  ], 40, _hoisted_5$o))
3568
3724
  ], 4)
@@ -3571,7 +3727,7 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
3571
3727
  ], 2);
3572
3728
  }
3573
3729
  var Range = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$1d]]);
3574
- const { create: create$1h, translate: translate$n } = createComponent("searchbar");
3730
+ const { create: create$1h, translate: translate$p } = createComponent("searchbar");
3575
3731
  const _sfc_main$1h = create$1h({
3576
3732
  props: {
3577
3733
  modelValue: {
@@ -3580,7 +3736,11 @@ const _sfc_main$1h = create$1h({
3580
3736
  },
3581
3737
  inputType: {
3582
3738
  type: String,
3583
- default: "text"
3739
+ default: "textarea"
3740
+ },
3741
+ label: {
3742
+ type: String,
3743
+ default: ""
3584
3744
  },
3585
3745
  maxLength: {
3586
3746
  type: [String, Number],
@@ -3601,9 +3761,35 @@ const _sfc_main$1h = create$1h({
3601
3761
  inputBackground: {
3602
3762
  type: String,
3603
3763
  default: ""
3764
+ },
3765
+ autofocus: {
3766
+ type: Boolean,
3767
+ default: false
3768
+ },
3769
+ disabled: {
3770
+ type: Boolean,
3771
+ default: false
3772
+ },
3773
+ readonly: {
3774
+ type: Boolean,
3775
+ default: false
3776
+ },
3777
+ inputAlign: {
3778
+ type: String,
3779
+ default: "left"
3604
3780
  }
3605
3781
  },
3606
- emits: ["change", "update:modelValue", "blur", "focus", "clear", "search"],
3782
+ emits: [
3783
+ "change",
3784
+ "update:modelValue",
3785
+ "blur",
3786
+ "focus",
3787
+ "clear",
3788
+ "search",
3789
+ "click-input",
3790
+ "click-left-icon",
3791
+ "click-right-icon"
3792
+ ],
3607
3793
  setup(props, { emit }) {
3608
3794
  const state = reactive({
3609
3795
  active: false
@@ -3652,7 +3838,29 @@ const _sfc_main$1h = create$1h({
3652
3838
  const handleSubmit = () => {
3653
3839
  emit("search", props.modelValue);
3654
3840
  };
3655
- return __spreadProps(__spreadValues({}, toRefs(state)), {
3841
+ const clickInput = (event) => {
3842
+ emit("click-input", event);
3843
+ };
3844
+ const leftIconClick = (event) => {
3845
+ emit("click-left-icon", props.modelValue, event);
3846
+ };
3847
+ const rightIconClick = (event) => {
3848
+ emit("click-right-icon", props.modelValue, event);
3849
+ };
3850
+ const styleSearchbar = computed(() => {
3851
+ return {
3852
+ "text-align": props.inputAlign
3853
+ };
3854
+ });
3855
+ const inputsearch = ref(null);
3856
+ onMounted(() => {
3857
+ if (props.autofocus) {
3858
+ inputsearch.value.focus();
3859
+ }
3860
+ });
3861
+ return __spreadProps(__spreadValues({
3862
+ inputsearch
3863
+ }, toRefs(state)), {
3656
3864
  valueChange,
3657
3865
  valueFocus,
3658
3866
  valueBlur,
@@ -3660,26 +3868,26 @@ const _sfc_main$1h = create$1h({
3660
3868
  handleSubmit,
3661
3869
  searchbarStyle,
3662
3870
  inputSearchbarStyle,
3663
- translate: translate$n
3871
+ translate: translate$p,
3872
+ clickInput,
3873
+ leftIconClick,
3874
+ rightIconClick,
3875
+ styleSearchbar
3664
3876
  });
3665
3877
  }
3666
3878
  });
3667
3879
  const _hoisted_1$$ = {
3668
3880
  key: 0,
3669
- class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
3881
+ class: "nut-searchbar__search-label"
3670
3882
  };
3671
3883
  const _hoisted_2$Q = {
3672
- key: 0,
3673
- class: "nut-searchbar__search-icon nut-searchbar__iptleft-search-icon"
3674
- };
3675
- const _hoisted_3$G = { class: "nut-searchbar__input-inner" };
3676
- const _hoisted_4$y = ["type", "maxlength", "placeholder", "value"];
3677
- const _hoisted_5$n = {
3678
3884
  key: 1,
3679
- class: "nut-searchbar__search-icon nut-searchbar__iptright-sarch-icon"
3885
+ class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
3680
3886
  };
3681
- const _hoisted_6$l = {
3682
- key: 1,
3887
+ const _hoisted_3$F = { class: "nut-searchbar__input-inner" };
3888
+ const _hoisted_4$y = ["type", "maxlength", "placeholder", "value", "disabled", "readonly"];
3889
+ const _hoisted_5$n = {
3890
+ key: 2,
3683
3891
  class: "nut-searchbar__search-icon nut-searchbar__right-search-icon"
3684
3892
  };
3685
3893
  function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
@@ -3688,35 +3896,45 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
3688
3896
  class: "nut-searchbar",
3689
3897
  style: normalizeStyle(_ctx.searchbarStyle)
3690
3898
  }, [
3691
- _ctx.$slots.leftout ? (openBlock(), createElementBlock("view", _hoisted_1$$, [
3899
+ _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$$, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
3900
+ _ctx.$slots.leftout ? (openBlock(), createElementBlock("view", _hoisted_2$Q, [
3692
3901
  renderSlot(_ctx.$slots, "leftout")
3693
3902
  ])) : createCommentVNode("", true),
3694
3903
  createElementVNode("view", {
3695
3904
  class: "nut-searchbar__search-input",
3696
3905
  style: normalizeStyle(_ctx.inputSearchbarStyle)
3697
3906
  }, [
3698
- _ctx.$slots.leftin ? (openBlock(), createElementBlock("view", _hoisted_2$Q, [
3907
+ _ctx.$slots.leftin ? (openBlock(), createElementBlock("view", {
3908
+ key: 0,
3909
+ class: "nut-searchbar__search-icon nut-searchbar__iptleft-search-icon",
3910
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.leftIconClick && _ctx.leftIconClick(...args))
3911
+ }, [
3699
3912
  renderSlot(_ctx.$slots, "leftin")
3700
3913
  ])) : createCommentVNode("", true),
3701
- createElementVNode("view", _hoisted_3$G, [
3914
+ createElementVNode("view", _hoisted_3$F, [
3702
3915
  createElementVNode("form", {
3703
3916
  action: "#",
3704
- onSubmit: _cache[3] || (_cache[3] = withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
3917
+ onSubmit: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
3705
3918
  }, [
3706
3919
  createElementVNode("input", {
3920
+ ref: "inputsearch",
3707
3921
  class: "nut-searchbar__input-bar",
3708
3922
  type: _ctx.inputType,
3709
3923
  maxlength: _ctx.maxLength,
3710
3924
  placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
3711
3925
  value: _ctx.modelValue,
3712
- onInput: _cache[0] || (_cache[0] = (...args) => _ctx.valueChange && _ctx.valueChange(...args)),
3713
- onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
3714
- onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
3715
- }, null, 40, _hoisted_4$y)
3926
+ disabled: _ctx.disabled,
3927
+ readonly: _ctx.readonly,
3928
+ onClick: _cache[1] || (_cache[1] = (...args) => _ctx.clickInput && _ctx.clickInput(...args)),
3929
+ onInput: _cache[2] || (_cache[2] = (...args) => _ctx.valueChange && _ctx.valueChange(...args)),
3930
+ onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
3931
+ onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args)),
3932
+ style: normalizeStyle(_ctx.styleSearchbar)
3933
+ }, null, 44, _hoisted_4$y)
3716
3934
  ], 32),
3717
3935
  _ctx.clearable ? withDirectives((openBlock(), createElementBlock("view", {
3718
3936
  key: 0,
3719
- onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleClear && _ctx.handleClear(...args)),
3937
+ onClick: _cache[6] || (_cache[6] = (...args) => _ctx.handleClear && _ctx.handleClear(...args)),
3720
3938
  class: "nut-searchbar__input-clear"
3721
3939
  }, [
3722
3940
  createVNode(_component_nut_icon, {
@@ -3728,11 +3946,15 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
3728
3946
  [vShow, _ctx.modelValue.length > 0]
3729
3947
  ]) : createCommentVNode("", true)
3730
3948
  ]),
3731
- _ctx.$slots.rightin ? (openBlock(), createElementBlock("view", _hoisted_5$n, [
3949
+ _ctx.$slots.rightin ? (openBlock(), createElementBlock("view", {
3950
+ key: 1,
3951
+ class: "nut-searchbar__search-icon nut-searchbar__iptright-sarch-icon",
3952
+ onClick: _cache[7] || (_cache[7] = (...args) => _ctx.rightIconClick && _ctx.rightIconClick(...args))
3953
+ }, [
3732
3954
  renderSlot(_ctx.$slots, "rightin")
3733
3955
  ])) : createCommentVNode("", true)
3734
3956
  ], 4),
3735
- _ctx.$slots.rightout ? (openBlock(), createElementBlock("view", _hoisted_6$l, [
3957
+ _ctx.$slots.rightout ? (openBlock(), createElementBlock("view", _hoisted_5$n, [
3736
3958
  renderSlot(_ctx.$slots, "rightout")
3737
3959
  ])) : createCommentVNode("", true)
3738
3960
  ], 4);
@@ -3854,7 +4076,7 @@ class Tree {
3854
4076
  return Array.isArray(children) && Boolean(children.length);
3855
4077
  }
3856
4078
  }
3857
- const { create: create$1g, translate: translate$m } = createComponent("cascader-item");
4079
+ const { create: create$1g, translate: translate$o } = createComponent("cascader-item");
3858
4080
  const _sfc_main$1g = create$1g({
3859
4081
  props: {
3860
4082
  visible: Boolean,
@@ -4046,7 +4268,7 @@ const _sfc_main$1g = create$1g({
4046
4268
  tabsCursor.value = tab.paneKey;
4047
4269
  },
4048
4270
  formatTabTitle(pane) {
4049
- return pane.selectedNode ? pane.selectedNode.text : translate$m("select");
4271
+ return pane.selectedNode ? pane.selectedNode.text : translate$o("select");
4050
4272
  },
4051
4273
  isSelected(pane, node) {
4052
4274
  return pane.selectedNode && pane.selectedNode.value === node.value;
@@ -4077,7 +4299,7 @@ const _hoisted_1$_ = {
4077
4299
  class: "nut-cascader-pane"
4078
4300
  };
4079
4301
  const _hoisted_2$P = ["aria-checked", "aria-disabled", "onClick"];
4080
- const _hoisted_3$F = { class: "nut-cascader-item__title" };
4302
+ const _hoisted_3$E = { class: "nut-cascader-item__title" };
4081
4303
  const _hoisted_4$x = /* @__PURE__ */ createElementVNode("view", { class: "nut-cascader-pane" }, null, -1);
4082
4304
  function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
4083
4305
  const _component_nut_icon = resolveComponent("nut-icon");
@@ -4107,7 +4329,7 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
4107
4329
  role: "menuitemradio",
4108
4330
  onClick: ($event) => _ctx.handleNode(node, false)
4109
4331
  }, [
4110
- createElementVNode("view", _hoisted_3$F, toDisplayString(node.text), 1),
4332
+ createElementVNode("view", _hoisted_3$E, toDisplayString(node.text), 1),
4111
4333
  node.loading ? (openBlock(), createBlock(_component_nut_icon, {
4112
4334
  key: 0,
4113
4335
  class: "nut-cascader-item__icon-loading",
@@ -4332,7 +4554,7 @@ function requestAniFrame() {
4332
4554
  }
4333
4555
  }
4334
4556
  var requestAniFrame$1 = requestAniFrame();
4335
- const { create: create$1e, translate: translate$l } = createComponent("calendar-item");
4557
+ const { create: create$1e, translate: translate$n } = createComponent("calendar-item");
4336
4558
  const _sfc_main$1e = create$1e({
4337
4559
  props: {
4338
4560
  type: {
@@ -4390,7 +4612,7 @@ const _sfc_main$1e = create$1e({
4390
4612
  },
4391
4613
  emits: ["choose", "update", "close", "select"],
4392
4614
  setup(props, { emit, slots }) {
4393
- const weeks = ref(translate$l("weekdays"));
4615
+ const weeks = ref(translate$n("weekdays"));
4394
4616
  const months = ref(null);
4395
4617
  const monthsPanel = ref(null);
4396
4618
  const weeksPanel = ref(null);
@@ -4572,7 +4794,7 @@ const _sfc_main$1e = create$1e({
4572
4794
  };
4573
4795
  const monthInfo = {
4574
4796
  curData,
4575
- title: translate$l("monthTitle", title.year, title.month),
4797
+ title: translate$n("monthTitle", title.year, title.month),
4576
4798
  monthData: [
4577
4799
  ...getPreDaysStatus(preMonthDays, "prev", { month: preMonth, year: preYear }, preCurrMonthDays),
4578
4800
  ...getDaysStatus(currMonthDays, "curr", title)
@@ -4645,11 +4867,11 @@ const _sfc_main$1e = create$1e({
4645
4867
  let current = 0;
4646
4868
  let lastCurrent = 0;
4647
4869
  state.monthsData.forEach((item, index) => {
4648
- if (item.title == translate$l("monthTitle", state.defaultData[0], state.defaultData[1])) {
4870
+ if (item.title == translate$n("monthTitle", state.defaultData[0], state.defaultData[1])) {
4649
4871
  current = index;
4650
4872
  }
4651
4873
  if (state.isRange) {
4652
- if (item.title == translate$l("monthTitle", state.defaultData[3], state.defaultData[4])) {
4874
+ if (item.title == translate$n("monthTitle", state.defaultData[3], state.defaultData[4])) {
4653
4875
  lastCurrent = index;
4654
4876
  }
4655
4877
  }
@@ -4774,7 +4996,7 @@ const _sfc_main$1e = create$1e({
4774
4996
  weeksPanel,
4775
4997
  viewArea
4776
4998
  }, toRefs(state)), toRefs(props)), {
4777
- translate: translate$l
4999
+ translate: translate$n
4778
5000
  });
4779
5001
  }
4780
5002
  });
@@ -4786,7 +5008,7 @@ const _hoisted_2$O = {
4786
5008
  key: 1,
4787
5009
  class: "calendar-top-slot"
4788
5010
  };
4789
- const _hoisted_3$E = {
5011
+ const _hoisted_3$D = {
4790
5012
  key: 2,
4791
5013
  class: "calendar-curr-month"
4792
5014
  };
@@ -4836,7 +5058,7 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
4836
5058
  _ctx.showTopBtn ? (openBlock(), createElementBlock("view", _hoisted_2$O, [
4837
5059
  renderSlot(_ctx.$slots, "btn")
4838
5060
  ])) : createCommentVNode("", true),
4839
- _ctx.showSubTitle ? (openBlock(), createElementBlock("view", _hoisted_3$E, toDisplayString(_ctx.yearMonthTitle), 1)) : createCommentVNode("", true),
5061
+ _ctx.showSubTitle ? (openBlock(), createElementBlock("view", _hoisted_3$D, toDisplayString(_ctx.yearMonthTitle), 1)) : createCommentVNode("", true),
4840
5062
  createElementVNode("view", _hoisted_4$w, [
4841
5063
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index) => {
4842
5064
  return openBlock(), createElementBlock("view", {
@@ -5519,7 +5741,7 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
5519
5741
  ], 32);
5520
5742
  }
5521
5743
  var column$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$17]]);
5522
- const { componentName: componentName$_, create: create$19, translate: translate$k } = createComponent("picker");
5744
+ const { componentName: componentName$_, create: create$19, translate: translate$m } = createComponent("picker");
5523
5745
  const _sfc_main$19 = create$19({
5524
5746
  components: {
5525
5747
  [column$1.name]: column$1,
@@ -5633,7 +5855,7 @@ const _sfc_main$19 = create$19({
5633
5855
  cursor = cursor.children[0];
5634
5856
  }
5635
5857
  } else {
5636
- defaultValues.value[columnIndex] = option.value ? option.value : "";
5858
+ defaultValues.value[columnIndex] = option.hasOwnProperty("value") ? option.value : "";
5637
5859
  }
5638
5860
  emit("change", {
5639
5861
  columnIndex,
@@ -5650,6 +5872,7 @@ const _sfc_main$19 = create$19({
5650
5872
  emit("update:visible", false);
5651
5873
  };
5652
5874
  onMounted(() => {
5875
+ console.log(11, props.columns);
5653
5876
  if (props.visible)
5654
5877
  state.show = props.visible;
5655
5878
  });
@@ -5670,6 +5893,7 @@ const _sfc_main$19 = create$19({
5670
5893
  }
5671
5894
  }, { immediate: true });
5672
5895
  watch(() => props.visible, (val) => {
5896
+ console.log("props\u66F4\u65B0", props.columns);
5673
5897
  state.show = val;
5674
5898
  });
5675
5899
  watch(() => props.columns, (val) => {
@@ -5686,13 +5910,13 @@ const _sfc_main$19 = create$19({
5686
5910
  changeHandler,
5687
5911
  confirmHandler,
5688
5912
  defaultValues,
5689
- translate: translate$k
5913
+ translate: translate$m
5690
5914
  });
5691
5915
  }
5692
5916
  });
5693
5917
  const _hoisted_1$W = { class: "nut-picker__bar" };
5694
5918
  const _hoisted_2$M = { class: "nut-picker__title" };
5695
- const _hoisted_3$D = { class: "nut-picker__column" };
5919
+ const _hoisted_3$C = { class: "nut-picker__column" };
5696
5920
  const _hoisted_4$v = /* @__PURE__ */ createElementVNode("view", { class: "nut-picker__hairline" }, null, -1);
5697
5921
  function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
5698
5922
  const _component_nut_picker_column = resolveComponent("nut-picker-column");
@@ -5724,7 +5948,7 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
5724
5948
  }, toDisplayString(_ctx.okText || _ctx.translate("confirm")), 1)
5725
5949
  ]),
5726
5950
  renderSlot(_ctx.$slots, "top"),
5727
- createElementVNode("view", _hoisted_3$D, [
5951
+ createElementVNode("view", _hoisted_3$C, [
5728
5952
  _hoisted_4$v,
5729
5953
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columnsList, (column2, columnIndex) => {
5730
5954
  return openBlock(), createElementBlock("view", {
@@ -5758,18 +5982,18 @@ function padZero$1(num, targetLength = 2) {
5758
5982
  }
5759
5983
  return str;
5760
5984
  }
5761
- const { componentName: componentName$Z, create: create$18 } = createComponent("datepicker");
5985
+ const { componentName: componentName$Z, create: create$18, translate: translate$l } = createComponent("datepicker");
5762
5986
  const currentYear = new Date().getFullYear();
5763
5987
  function isDate(val) {
5764
5988
  return Object.prototype.toString.call(val) === "[object Date]" && !isNaN(val.getTime());
5765
5989
  }
5766
5990
  const zhCNType = {
5767
- day: "\u65E5",
5768
- year: "\u5E74",
5769
- month: "\u6708",
5770
- hour: "\u65F6",
5771
- minute: "\u5206",
5772
- seconds: "\u79D2"
5991
+ day: translate$l("day"),
5992
+ year: translate$l("year"),
5993
+ month: translate$l("month"),
5994
+ hour: translate$l("hour"),
5995
+ minute: translate$l("minute"),
5996
+ seconds: translate$l("seconds")
5773
5997
  };
5774
5998
  const _sfc_main$18 = create$18({
5775
5999
  components: {
@@ -6238,7 +6462,7 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
6238
6462
  const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
6239
6463
  return value.replace(regExp, "");
6240
6464
  }
6241
- const { componentName: componentName$X, create: create$16, translate: translate$j } = createComponent("input");
6465
+ const { componentName: componentName$X, create: create$16, translate: translate$k } = createComponent("input");
6242
6466
  const _sfc_main$16 = create$16({
6243
6467
  props: {
6244
6468
  ref: {
@@ -6510,13 +6734,13 @@ const _sfc_main$16 = create$16({
6510
6734
  onClickInput,
6511
6735
  onClickLeftIcon,
6512
6736
  onClickRightIcon,
6513
- translate: translate$j
6737
+ translate: translate$k
6514
6738
  };
6515
6739
  }
6516
6740
  });
6517
6741
  const _hoisted_1$U = { class: "label-string" };
6518
6742
  const _hoisted_2$L = { class: "nut-input-value" };
6519
- const _hoisted_3$C = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
6743
+ const _hoisted_3$B = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
6520
6744
  const _hoisted_4$u = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
6521
6745
  const _hoisted_5$l = {
6522
6746
  key: 0,
@@ -6568,7 +6792,7 @@ function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
6568
6792
  onInput: _cache[1] || (_cache[1] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
6569
6793
  onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
6570
6794
  onBlur: _cache[3] || (_cache[3] = (...args) => _ctx.onBlur && _ctx.onBlur(...args))
6571
- }, null, 44, _hoisted_3$C)) : (openBlock(), createElementBlock("input", {
6795
+ }, null, 44, _hoisted_3$B)) : (openBlock(), createElementBlock("input", {
6572
6796
  key: 1,
6573
6797
  class: "input-text",
6574
6798
  ref: "inputRef",
@@ -6875,7 +7099,7 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
6875
7099
  ], 2);
6876
7100
  }
6877
7101
  var Rate = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$12]]);
6878
- const { create: create$12, translate: translate$i } = createComponent("shortpassword");
7102
+ const { create: create$12, translate: translate$j } = createComponent("shortpassword");
6879
7103
  const _sfc_main$12 = create$12({
6880
7104
  props: {
6881
7105
  title: {
@@ -6997,13 +7221,13 @@ const _sfc_main$12 = create$12({
6997
7221
  show,
6998
7222
  systemStyle,
6999
7223
  closeIcon,
7000
- translate: translate$i
7224
+ translate: translate$j
7001
7225
  };
7002
7226
  }
7003
7227
  });
7004
7228
  const _hoisted_1$S = { class: "nut-shortpsd-title" };
7005
7229
  const _hoisted_2$K = { class: "nut-shortpsd-subtitle" };
7006
- const _hoisted_3$B = { class: "nut-input-normalw" };
7230
+ const _hoisted_3$A = { class: "nut-input-normalw" };
7007
7231
  const _hoisted_4$t = /* @__PURE__ */ createElementVNode("div", { class: "nut-input-site" }, null, -1);
7008
7232
  const _hoisted_5$k = {
7009
7233
  key: 0,
@@ -7040,7 +7264,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
7040
7264
  default: withCtx(() => [
7041
7265
  createElementVNode("view", _hoisted_1$S, toDisplayString(_ctx.title || _ctx.translate("title")), 1),
7042
7266
  createElementVNode("view", _hoisted_2$K, toDisplayString(_ctx.desc || _ctx.translate("desc")), 1),
7043
- createElementVNode("div", _hoisted_3$B, [
7267
+ createElementVNode("div", _hoisted_3$A, [
7044
7268
  withDirectives(createElementVNode("input", {
7045
7269
  ref: "realpwd",
7046
7270
  class: "nut-input-real",
@@ -7096,7 +7320,7 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
7096
7320
  ]);
7097
7321
  }
7098
7322
  var ShortPassword = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$11]]);
7099
- const { componentName: componentName$T, create: create$11, translate: translate$h } = createComponent("textarea");
7323
+ const { componentName: componentName$T, create: create$11, translate: translate$i } = createComponent("textarea");
7100
7324
  const _sfc_main$11 = create$11({
7101
7325
  props: {
7102
7326
  modelValue: {
@@ -7220,7 +7444,7 @@ const _sfc_main$11 = create$11({
7220
7444
  change,
7221
7445
  focus,
7222
7446
  blur,
7223
- translate: translate$h
7447
+ translate: translate$i
7224
7448
  };
7225
7449
  }
7226
7450
  });
@@ -7333,16 +7557,17 @@ class Uploader$1 {
7333
7557
  }
7334
7558
  }
7335
7559
  }
7336
- const { componentName: componentName$S, create: create$10, translate: translate$g } = createComponent("uploader");
7560
+ const { translate: translate$h } = createComponent("uploader");
7337
7561
  class FileItem {
7338
7562
  constructor() {
7339
7563
  this.status = "ready";
7340
- this.message = translate$g("ready");
7564
+ this.message = translate$h("ready");
7341
7565
  this.uid = new Date().getTime().toString();
7342
7566
  this.percentage = 0;
7343
7567
  this.formData = new FormData();
7344
7568
  }
7345
7569
  }
7570
+ const { componentName: componentName$S, create: create$10, translate: translate$g } = createComponent("uploader");
7346
7571
  const _sfc_main$10 = create$10({
7347
7572
  props: {
7348
7573
  name: { type: String, default: "file" },
@@ -7563,7 +7788,7 @@ const _hoisted_1$Q = {
7563
7788
  class: "nut-uploader__slot"
7564
7789
  };
7565
7790
  const _hoisted_2$I = ["accept", "multiple", "name", "disabled"];
7566
- const _hoisted_3$A = ["accept", "multiple", "name", "disabled"];
7791
+ const _hoisted_3$z = ["accept", "multiple", "name", "disabled"];
7567
7792
  const _hoisted_4$s = {
7568
7793
  key: 0,
7569
7794
  class: "nut-uploader__preview-img"
@@ -7620,7 +7845,7 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
7620
7845
  name: _ctx.name,
7621
7846
  disabled: _ctx.disabled,
7622
7847
  onChange: _cache[1] || (_cache[1] = (...args) => _ctx.onChange && _ctx.onChange(...args))
7623
- }, null, 40, _hoisted_3$A))
7848
+ }, null, 40, _hoisted_3$z))
7624
7849
  ], 64)) : createCommentVNode("", true)
7625
7850
  ])) : createCommentVNode("", true),
7626
7851
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fileList, (item, index) => {
@@ -7762,6 +7987,14 @@ const _sfc_main$$ = create$$({
7762
7987
  isWrapTeleport: {
7763
7988
  type: Boolean,
7764
7989
  default: true
7990
+ },
7991
+ teleport: {
7992
+ type: [String, Element],
7993
+ default: "body"
7994
+ },
7995
+ popClass: {
7996
+ type: String,
7997
+ default: ""
7765
7998
  }
7766
7999
  },
7767
8000
  emits: ["input", "delete", "close", "update:value"],
@@ -7879,7 +8112,7 @@ const _hoisted_2$H = {
7879
8112
  key: 0,
7880
8113
  class: "number-board-header"
7881
8114
  };
7882
- const _hoisted_3$z = { class: "tit" };
8115
+ const _hoisted_3$y = { class: "tit" };
7883
8116
  const _hoisted_4$r = { class: "number-board-body" };
7884
8117
  const _hoisted_5$i = { class: "number-board" };
7885
8118
  const _hoisted_6$g = ["onTouchstart", "onTouchmove"];
@@ -7906,6 +8139,8 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
7906
8139
  visible: _ctx.show,
7907
8140
  "onUpdate:visible": _cache[6] || (_cache[6] = ($event) => _ctx.show = $event),
7908
8141
  position: "bottom",
8142
+ teleport: _ctx.teleport,
8143
+ popClass: _ctx.popClass,
7909
8144
  overlay: _ctx.overlay,
7910
8145
  onClickOverlay: _cache[7] || (_cache[7] = ($event) => _ctx.closeBoard()),
7911
8146
  isWrapTeleport: _ctx.isWrapTeleport,
@@ -7914,7 +8149,7 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
7914
8149
  default: withCtx(() => [
7915
8150
  createElementVNode("div", _hoisted_1$P, [
7916
8151
  _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2$H, [
7917
- createElementVNode("h3", _hoisted_3$z, toDisplayString(_ctx.title), 1),
8152
+ createElementVNode("h3", _hoisted_3$y, toDisplayString(_ctx.title), 1),
7918
8153
  createElementVNode("span", {
7919
8154
  class: "keyboard-close",
7920
8155
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.closeBoard())
@@ -7975,7 +8210,7 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
7975
8210
  ], 512)
7976
8211
  ]),
7977
8212
  _: 1
7978
- }, 8, ["visible", "overlay", "isWrapTeleport"]);
8213
+ }, 8, ["visible", "teleport", "popClass", "overlay", "isWrapTeleport"]);
7979
8214
  }
7980
8215
  var NumberKeyboard = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$_]]);
7981
8216
  const component$2 = {
@@ -8004,7 +8239,7 @@ const component$2 = {
8004
8239
  const findFormItem = (vnodes) => {
8005
8240
  let task = [];
8006
8241
  vnodes.forEach((vnode, index) => {
8007
- var _a, _b, _c;
8242
+ var _a, _b, _c, _d;
8008
8243
  let type = vnode.type;
8009
8244
  type = type.name || type;
8010
8245
  if (type == "nut-form-item") {
@@ -8014,6 +8249,11 @@ const component$2 = {
8014
8249
  });
8015
8250
  } else if (Array.isArray(vnode.children) && ((_c = vnode.children) == null ? void 0 : _c.length)) {
8016
8251
  task = task.concat(findFormItem(vnode.children));
8252
+ } else if (isObject(vnode.children) && Object.keys(vnode.children)) {
8253
+ if ((_d = vnode.children) == null ? void 0 : _d.default) {
8254
+ vnode.children = vnode.children.default();
8255
+ task = task.concat(findFormItem(vnode.children));
8256
+ }
8017
8257
  }
8018
8258
  });
8019
8259
  return task;
@@ -8620,7 +8860,7 @@ const _sfc_main$X = create$X({
8620
8860
  });
8621
8861
  const _hoisted_1$M = { class: "nut-oldpicker__bar" };
8622
8862
  const _hoisted_2$F = { class: "nut-oldpicker__title" };
8623
- const _hoisted_3$y = { class: "nut-oldpicker__column" };
8863
+ const _hoisted_3$x = { class: "nut-oldpicker__column" };
8624
8864
  const _hoisted_4$q = /* @__PURE__ */ createElementVNode("view", { class: "nut-oldpicker__hairline" }, null, -1);
8625
8865
  function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
8626
8866
  const _component_nut_oldpicker_column = resolveComponent("nut-oldpicker-column");
@@ -8651,7 +8891,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
8651
8891
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.confirm())
8652
8892
  }, toDisplayString(_ctx.okText), 1)
8653
8893
  ]),
8654
- createElementVNode("view", _hoisted_3$y, [
8894
+ createElementVNode("view", _hoisted_3$x, [
8655
8895
  _hoisted_4$q,
8656
8896
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columnList, (item, columnIndex) => {
8657
8897
  return openBlock(), createElementBlock("view", {
@@ -8747,24 +8987,24 @@ const _sfc_main$W = create$W({
8747
8987
  });
8748
8988
  const setoffset = (deltaX) => {
8749
8989
  position = deltaX > 0 ? "right" : "left";
8750
- let offset = deltaX;
8990
+ let offset2 = deltaX;
8751
8991
  switch (position) {
8752
8992
  case "left":
8753
8993
  if (opened && oldPosition === position) {
8754
- offset = -rightRefWidth.value;
8994
+ offset2 = -rightRefWidth.value;
8755
8995
  } else {
8756
- offset = Math.abs(deltaX) > rightRefWidth.value ? -rightRefWidth.value : deltaX;
8996
+ offset2 = Math.abs(deltaX) > rightRefWidth.value ? -rightRefWidth.value : deltaX;
8757
8997
  }
8758
8998
  break;
8759
8999
  case "right":
8760
9000
  if (opened && oldPosition === position) {
8761
- offset = leftRefWidth.value;
9001
+ offset2 = leftRefWidth.value;
8762
9002
  } else {
8763
- offset = Math.abs(deltaX) > leftRefWidth.value ? leftRefWidth.value : deltaX;
9003
+ offset2 = Math.abs(deltaX) > leftRefWidth.value ? leftRefWidth.value : deltaX;
8764
9004
  }
8765
9005
  break;
8766
9006
  }
8767
- state.offset = offset;
9007
+ state.offset = offset2;
8768
9008
  };
8769
9009
  const touch = useTouch$2();
8770
9010
  const touchMethods = {
@@ -8829,7 +9069,7 @@ const _hoisted_1$L = {
8829
9069
  ref: "leftRef"
8830
9070
  };
8831
9071
  const _hoisted_2$E = { class: "nut-swipe__content" };
8832
- const _hoisted_3$x = {
9072
+ const _hoisted_3$w = {
8833
9073
  class: "nut-swipe__right",
8834
9074
  ref: "rightRef"
8835
9075
  };
@@ -8848,7 +9088,7 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
8848
9088
  createElementVNode("view", _hoisted_2$E, [
8849
9089
  renderSlot(_ctx.$slots, "default")
8850
9090
  ]),
8851
- createElementVNode("view", _hoisted_3$x, [
9091
+ createElementVNode("view", _hoisted_3$w, [
8852
9092
  renderSlot(_ctx.$slots, "right")
8853
9093
  ], 512)
8854
9094
  ], 38);
@@ -8935,7 +9175,7 @@ const _hoisted_2$D = {
8935
9175
  key: 0,
8936
9176
  class: "nut-actionsheet-title"
8937
9177
  };
8938
- const _hoisted_3$w = { key: 1 };
9178
+ const _hoisted_3$v = { key: 1 };
8939
9179
  const _hoisted_4$p = {
8940
9180
  key: 0,
8941
9181
  class: "nut-actionsheet-item desc"
@@ -8965,7 +9205,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
8965
9205
  createElementVNode("view", _hoisted_1$K, [
8966
9206
  _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2$D, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
8967
9207
  renderSlot(_ctx.$slots, "default"),
8968
- !_ctx.slotDefault ? (openBlock(), createElementBlock("view", _hoisted_3$w, [
9208
+ !_ctx.slotDefault ? (openBlock(), createElementBlock("view", _hoisted_3$v, [
8969
9209
  _ctx.description ? (openBlock(), createElementBlock("view", _hoisted_4$p, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
8970
9210
  _ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_5$h, [
8971
9211
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index) => {
@@ -9067,11 +9307,11 @@ const _sfc_main$U = create$U({
9067
9307
  }
9068
9308
  }
9069
9309
  function scrollAnimation() {
9070
- let cid = requestAniFrame2()(function fn() {
9310
+ let cid = requestAniFrame2()(function fn2() {
9071
9311
  var t = props.duration - Math.max(0, state.startTime - +new Date() + props.duration);
9072
9312
  var y = t * -state.scrollTop / props.duration + state.scrollTop;
9073
9313
  scroll(y);
9074
- cid = requestAniFrame2()(fn);
9314
+ cid = requestAniFrame2()(fn2);
9075
9315
  if (t == props.duration || y == 0) {
9076
9316
  window.cancelAnimationFrame(cid);
9077
9317
  }
@@ -9359,7 +9599,7 @@ const _sfc_main$S = create$S({
9359
9599
  default: ""
9360
9600
  },
9361
9601
  content: {
9362
- type: String,
9602
+ type: [String, Object],
9363
9603
  default: ""
9364
9604
  },
9365
9605
  noFooter: {
@@ -9459,6 +9699,8 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
9459
9699
  "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.showPopup = $event),
9460
9700
  "close-on-click-overlay": _ctx.closeOnClickOverlay,
9461
9701
  "lock-scroll": _ctx.lockScroll,
9702
+ "pop-class": _ctx.overlayClass,
9703
+ style: normalizeStyle(_ctx.overlayStyle),
9462
9704
  round: "",
9463
9705
  onClickOverlay: _ctx.closed,
9464
9706
  onClickCloseIcon: _ctx.closed
@@ -9476,10 +9718,10 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
9476
9718
  class: "nut-dialog__content",
9477
9719
  style: normalizeStyle({ textAlign: _ctx.textAlign })
9478
9720
  }, [
9479
- _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock("view", {
9721
+ _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : typeof _ctx.content === "string" ? (openBlock(), createElementBlock("view", {
9480
9722
  key: 1,
9481
9723
  innerHTML: _ctx.content
9482
- }, null, 8, _hoisted_2$C))
9724
+ }, null, 8, _hoisted_2$C)) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.content), { key: 2 }))
9483
9725
  ], 4),
9484
9726
  !_ctx.noFooter ? (openBlock(), createElementBlock("view", {
9485
9727
  key: 1,
@@ -9516,7 +9758,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
9516
9758
  ], 2)
9517
9759
  ]),
9518
9760
  _: 3
9519
- }, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
9761
+ }, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "pop-class", "style", "onClickOverlay", "onClickCloseIcon"]);
9520
9762
  }
9521
9763
  var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$R]]);
9522
9764
  class DialogOptions {
@@ -9788,7 +10030,7 @@ const _sfc_main$R = create$R({
9788
10030
  });
9789
10031
  const _hoisted_1$I = { class: "top-box" };
9790
10032
  const _hoisted_2$B = { class: "top-text" };
9791
- const _hoisted_3$v = { class: "nut-infinite-container" };
10033
+ const _hoisted_3$u = { class: "nut-infinite-container" };
9792
10034
  const _hoisted_4$o = { class: "nut-infinite-bottom" };
9793
10035
  const _hoisted_5$g = {
9794
10036
  key: 0,
@@ -9821,7 +10063,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
9821
10063
  createElementVNode("view", _hoisted_2$B, toDisplayString(_ctx.pullTxt || _ctx.translate("pullTxt")), 1)
9822
10064
  ])
9823
10065
  ], 4),
9824
- createElementVNode("view", _hoisted_3$v, [
10066
+ createElementVNode("view", _hoisted_3$u, [
9825
10067
  renderSlot(_ctx.$slots, "default")
9826
10068
  ]),
9827
10069
  createElementVNode("view", _hoisted_4$o, [
@@ -10089,7 +10331,7 @@ function useTouch$1() {
10089
10331
  offsetY.value = 0;
10090
10332
  direction.value = "";
10091
10333
  };
10092
- const start = (event) => {
10334
+ const start2 = (event) => {
10093
10335
  reset();
10094
10336
  startX.value = event.touches[0].clientX;
10095
10337
  startY.value = event.touches[0].clientY;
@@ -10106,7 +10348,7 @@ function useTouch$1() {
10106
10348
  };
10107
10349
  return {
10108
10350
  move,
10109
- start,
10351
+ start: start2,
10110
10352
  reset,
10111
10353
  startX,
10112
10354
  startY,
@@ -10293,8 +10535,8 @@ const _sfc_main$P = create$P({
10293
10535
  const touchStart = (event) => {
10294
10536
  if (isTouchable()) {
10295
10537
  if (direction.value == "vertical") {
10296
- const top = "scrollTop" in scrollEl ? scrollEl.scrollTop : 0;
10297
- reachTop.value = Math.max(top, 0) == 0 ? true : false;
10538
+ const top2 = "scrollTop" in scrollEl ? scrollEl.scrollTop : 0;
10539
+ reachTop.value = Math.max(top2, 0) == 0 ? true : false;
10298
10540
  const { scrollHeight, clientHeight, scrollTop } = scrollEl;
10299
10541
  reachBottom.value = clientHeight + scrollTop == scrollHeight ? true : false;
10300
10542
  if (reachTop.value || reachBottom.value) {
@@ -10303,8 +10545,8 @@ const _sfc_main$P = create$P({
10303
10545
  }
10304
10546
  } else {
10305
10547
  const { scrollWidth, clientWidth, scrollLeft } = scrollEl;
10306
- const left = "scrollLeft" in scrollEl ? scrollEl.scrollLeft : 0;
10307
- reachLeft.value = Math.max(left, 0) == 0 ? true : false;
10548
+ const left2 = "scrollLeft" in scrollEl ? scrollEl.scrollLeft : 0;
10549
+ reachLeft.value = Math.max(left2, 0) == 0 ? true : false;
10308
10550
  reachRight.value = clientWidth + scrollLeft == scrollWidth ? true : false;
10309
10551
  if (reachLeft.value || reachRight.value) {
10310
10552
  state.duration = 0;
@@ -10654,7 +10896,7 @@ const _hoisted_2$A = {
10654
10896
  key: 1,
10655
10897
  class: "nut-toast-title"
10656
10898
  };
10657
- const _hoisted_3$u = ["innerHTML"];
10899
+ const _hoisted_3$t = ["innerHTML"];
10658
10900
  function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
10659
10901
  const _component_nut_icon = resolveComponent("nut-icon");
10660
10902
  return openBlock(), createBlock(Transition, {
@@ -10688,7 +10930,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
10688
10930
  createElementVNode("view", {
10689
10931
  class: "nut-toast-text",
10690
10932
  innerHTML: _ctx.msg
10691
- }, null, 8, _hoisted_3$u)
10933
+ }, null, 8, _hoisted_3$t)
10692
10934
  ], 4)
10693
10935
  ], 6), [
10694
10936
  [vShow, _ctx.state.mounted]
@@ -10820,45 +11062,31 @@ const _sfc_main$M = create$M({
10820
11062
  props: {
10821
11063
  url: {
10822
11064
  type: String,
10823
- default() {
10824
- return "";
10825
- }
11065
+ default: ""
10826
11066
  },
10827
11067
  muted: {
10828
11068
  type: Boolean,
10829
- default() {
10830
- return false;
10831
- }
11069
+ default: false
10832
11070
  },
10833
11071
  autoplay: {
10834
11072
  type: Boolean,
10835
- default() {
10836
- return false;
10837
- }
11073
+ default: false
10838
11074
  },
10839
11075
  loop: {
10840
11076
  type: Boolean,
10841
- default() {
10842
- return false;
10843
- }
11077
+ default: false
10844
11078
  },
10845
11079
  preload: {
10846
11080
  type: String,
10847
- default() {
10848
- return "auto";
10849
- }
11081
+ default: "auto"
10850
11082
  },
10851
11083
  second: {
10852
11084
  type: Number,
10853
- default() {
10854
- return 0;
10855
- }
11085
+ default: 0
10856
11086
  },
10857
11087
  type: {
10858
11088
  type: String,
10859
- default() {
10860
- return "progress";
10861
- }
11089
+ default: "progress"
10862
11090
  }
10863
11091
  },
10864
11092
  components: {},
@@ -10872,7 +11100,8 @@ const _sfc_main$M = create$M({
10872
11100
  duration: "00:00:00",
10873
11101
  second: 0,
10874
11102
  hanMuted: props.muted,
10875
- playing: props.autoplay
11103
+ playing: props.autoplay,
11104
+ handPlaying: false
10876
11105
  });
10877
11106
  onMounted(() => {
10878
11107
  var arr = ["webkitVisibilityState", "visibilitychange"];
@@ -10894,13 +11123,14 @@ const _sfc_main$M = create$M({
10894
11123
  console.log(e.message);
10895
11124
  }
10896
11125
  setTimeout(() => {
11126
+ const audioR = audioRef.value;
10897
11127
  if (props.autoplay) {
10898
- if (audioRef.value && audioRef.value.paused) {
10899
- audioRef.value.play();
11128
+ if (audioR && audioR.paused) {
11129
+ audioR.play();
10900
11130
  }
10901
11131
  }
10902
- audioData.second = audioRef.value.duration;
10903
- audioData.duration = formatSeconds(audioRef.value.duration);
11132
+ audioData.second = audioR.duration;
11133
+ audioData.duration = formatSeconds(audioR.duration);
10904
11134
  }, 500);
10905
11135
  });
10906
11136
  const onTimeupdate = (e) => {
@@ -10912,11 +11142,12 @@ const _sfc_main$M = create$M({
10912
11142
  emit("fastBack", audioData.currentTime);
10913
11143
  };
10914
11144
  const changeStatus = () => {
11145
+ const audioR = audioRef.value;
10915
11146
  if (audioData.playing) {
10916
- audioRef.value.pause();
11147
+ audioR.pause();
10917
11148
  audioData.handPlaying = false;
10918
11149
  } else {
10919
- audioRef.value.play();
11150
+ audioR.play();
10920
11151
  audioData.handPlaying = true;
10921
11152
  }
10922
11153
  audioData.playing = !audioData.playing;
@@ -10936,8 +11167,9 @@ const _sfc_main$M = create$M({
10936
11167
  emit("ended");
10937
11168
  };
10938
11169
  const progressChange = (val) => {
10939
- audioRef.value.currentTime = audioData.second * val / 100;
10940
- emit("changeProgress", audioRef.value.currentTime);
11170
+ const ar = audioRef.value;
11171
+ ar.currentTime = audioData.second * val / 100;
11172
+ emit("changeProgress", ar.currentTime);
10941
11173
  };
10942
11174
  const handleMute = () => {
10943
11175
  audioData.hanMuted = !audioData.hanMuted;
@@ -10948,19 +11180,19 @@ const _sfc_main$M = create$M({
10948
11180
  let theTime1 = 0;
10949
11181
  let theTime2 = 0;
10950
11182
  if (theTime > 60) {
10951
- theTime1 = parseInt(theTime / 60);
10952
- theTime = parseInt(theTime % 60);
11183
+ theTime1 = Math.floor(theTime / 60);
11184
+ theTime = Math.floor(theTime % 60);
10953
11185
  if (theTime1 > 60) {
10954
- theTime2 = parseInt(theTime1 / 60);
10955
- theTime1 = parseInt(theTime1 % 60);
11186
+ theTime2 = Math.floor(theTime1 / 60);
11187
+ theTime1 = Math.floor(theTime1 % 60);
10956
11188
  }
10957
11189
  }
10958
- let result = "" + parseInt(theTime);
10959
- if (result < 10) {
11190
+ let result = "";
11191
+ if (theTime < 10) {
10960
11192
  result = "0" + result;
10961
11193
  }
10962
11194
  if (theTime1 > 0) {
10963
- result = "" + parseInt(theTime1) + ":" + result;
11195
+ result = "" + theTime1 + ":" + result;
10964
11196
  if (theTime1 < 10) {
10965
11197
  result = "0" + result;
10966
11198
  }
@@ -10968,7 +11200,7 @@ const _sfc_main$M = create$M({
10968
11200
  result = "00:" + result;
10969
11201
  }
10970
11202
  if (theTime2 > 0) {
10971
- result = "" + parseInt(theTime2) + ":" + result;
11203
+ result = "" + theTime2 + ":" + result;
10972
11204
  if (theTime2 < 10) {
10973
11205
  result = "0" + result;
10974
11206
  }
@@ -11006,7 +11238,7 @@ const _hoisted_2$z = {
11006
11238
  key: 0,
11007
11239
  class: "progress-wrapper"
11008
11240
  };
11009
- const _hoisted_3$t = { class: "time" };
11241
+ const _hoisted_3$s = { class: "time" };
11010
11242
  const _hoisted_4$n = { class: "progress-bar-wrapper" };
11011
11243
  const _hoisted_5$f = /* @__PURE__ */ createElementVNode("div", { class: "custom-button" }, null, -1);
11012
11244
  const _hoisted_6$d = { class: "time" };
@@ -11020,7 +11252,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
11020
11252
  const _component_nut_icon = resolveComponent("nut-icon");
11021
11253
  return openBlock(), createElementBlock("div", _hoisted_1$E, [
11022
11254
  _ctx.type == "progress" ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
11023
- createElementVNode("div", _hoisted_3$t, toDisplayString(_ctx.currentDuration), 1),
11255
+ createElementVNode("div", _hoisted_3$s, toDisplayString(_ctx.currentDuration), 1),
11024
11256
  createElementVNode("div", _hoisted_4$n, [
11025
11257
  createVNode(_component_nut_range, {
11026
11258
  modelValue: _ctx.percent,
@@ -11097,7 +11329,7 @@ const _sfc_main$L = create$L({
11097
11329
  });
11098
11330
  const _hoisted_1$D = { class: "nut-audio-operate" };
11099
11331
  const _hoisted_2$y = /* @__PURE__ */ createTextVNode("\u5012\u9000");
11100
- const _hoisted_3$s = /* @__PURE__ */ createTextVNode("\u5FEB\u8FDB");
11332
+ const _hoisted_3$r = /* @__PURE__ */ createTextVNode("\u5FEB\u8FDB");
11101
11333
  const _hoisted_4$m = /* @__PURE__ */ createTextVNode("\u9759\u97F3");
11102
11334
  function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
11103
11335
  const _component_nut_button = resolveComponent("nut-button");
@@ -11147,7 +11379,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
11147
11379
  size: "small"
11148
11380
  }, {
11149
11381
  default: withCtx(() => [
11150
- _hoisted_3$s
11382
+ _hoisted_3$r
11151
11383
  ]),
11152
11384
  _: 1
11153
11385
  })) : createCommentVNode("", true),
@@ -11297,7 +11529,7 @@ const _hoisted_2$x = {
11297
11529
  key: 2,
11298
11530
  class: "text"
11299
11531
  };
11300
- const _hoisted_3$r = {
11532
+ const _hoisted_3$q = {
11301
11533
  key: 1,
11302
11534
  class: "text"
11303
11535
  };
@@ -11326,7 +11558,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
11326
11558
  renderSlot(_ctx.$slots, "default")
11327
11559
  ])) : createCommentVNode("", true)
11328
11560
  ], 64)) : createCommentVNode("", true),
11329
- _ctx.showMax ? (openBlock(), createElementBlock("view", _hoisted_3$r, toDisplayString(((_j = (_i = _ctx.avatarGroup) == null ? void 0 : _i.props) == null ? void 0 : _j.maxContent) ? (_l = (_k = _ctx.avatarGroup) == null ? void 0 : _k.props) == null ? void 0 : _l.maxContent : `+ ${_ctx.maxIndex - ((_n = (_m = _ctx.avatarGroup) == null ? void 0 : _m.props) == null ? void 0 : _n.maxCount)}`), 1)) : createCommentVNode("", true)
11561
+ _ctx.showMax ? (openBlock(), createElementBlock("view", _hoisted_3$q, toDisplayString(((_j = (_i = _ctx.avatarGroup) == null ? void 0 : _i.props) == null ? void 0 : _j.maxContent) ? (_l = (_k = _ctx.avatarGroup) == null ? void 0 : _k.props) == null ? void 0 : _l.maxContent : `+ ${_ctx.maxIndex - ((_n = (_m = _ctx.avatarGroup) == null ? void 0 : _m.props) == null ? void 0 : _n.maxCount)}`), 1)) : createCommentVNode("", true)
11330
11562
  ], 6)) : createCommentVNode("", true);
11331
11563
  }
11332
11564
  var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$J]]);
@@ -11416,7 +11648,7 @@ const _sfc_main$I = create$I({
11416
11648
  default: document.documentElement.clientHeight || document.body.clientHeight || 667
11417
11649
  }
11418
11650
  },
11419
- emits: ["scroll"],
11651
+ emits: ["scroll", "scroll-bottom"],
11420
11652
  setup(props, { emit }) {
11421
11653
  const list = ref(null);
11422
11654
  const state = reactive({
@@ -11427,7 +11659,7 @@ const _sfc_main$I = create$I({
11427
11659
  const visibleCount = computed(() => {
11428
11660
  return Math.ceil(props.containerHeight / props.height);
11429
11661
  });
11430
- const end = computed(() => {
11662
+ const end2 = computed(() => {
11431
11663
  return state.start + visibleCount.value;
11432
11664
  });
11433
11665
  const getTransform = computed(() => {
@@ -11443,14 +11675,15 @@ const _sfc_main$I = create$I({
11443
11675
  return state.list.length * props.height;
11444
11676
  });
11445
11677
  const visibleData = computed(() => {
11446
- return state.list.slice(state.start, Math.min(end.value, state.list.length));
11678
+ return state.list.slice(state.start, Math.min(end2.value, state.list.length));
11447
11679
  });
11448
11680
  const handleScrollEvent = () => {
11449
11681
  var _a;
11450
11682
  const scrollTop = (_a = list.value) == null ? void 0 : _a.scrollTop;
11451
11683
  state.start = Math.floor(scrollTop / props.height);
11452
- if (end.value > state.list.length) {
11684
+ if (end2.value > state.list.length) {
11453
11685
  emit("scroll");
11686
+ emit("scroll-bottom");
11454
11687
  }
11455
11688
  state.startOffset = scrollTop - scrollTop % props.height;
11456
11689
  };
@@ -11530,11 +11763,11 @@ const _sfc_main$H = create$H({
11530
11763
  default: ""
11531
11764
  },
11532
11765
  textColor: {
11533
- tyep: String,
11766
+ type: String,
11534
11767
  default: ""
11535
11768
  },
11536
11769
  textBackground: {
11537
- tyep: String,
11770
+ type: String,
11538
11771
  default: ""
11539
11772
  },
11540
11773
  iconName: {
@@ -11688,10 +11921,10 @@ const _sfc_main$G = create$G({
11688
11921
  });
11689
11922
  const hoverStyle = computed(() => {
11690
11923
  let perimeter = 283;
11691
- let offset = perimeter * Number(props.progress) / 100;
11924
+ let offset2 = perimeter * Number(props.progress) / 100;
11692
11925
  return {
11693
11926
  stroke: isObject(props.color) ? `url(#${refRandomId})` : props.color,
11694
- strokeDasharray: `${offset}px ${perimeter}px`
11927
+ strokeDasharray: `${offset2}px ${perimeter}px`
11695
11928
  };
11696
11929
  });
11697
11930
  const pathStyle = computed(() => {
@@ -11731,7 +11964,7 @@ const _sfc_main$G = create$G({
11731
11964
  });
11732
11965
  const _hoisted_1$A = { viewBox: "0 0 100 100" };
11733
11966
  const _hoisted_2$w = ["id"];
11734
- const _hoisted_3$q = ["offset", "stop-color"];
11967
+ const _hoisted_3$p = ["offset", "stop-color"];
11735
11968
  const _hoisted_4$l = ["d", "stroke-width"];
11736
11969
  const _hoisted_5$e = ["d", "stroke", "stroke-linecap", "stroke-width"];
11737
11970
  const _hoisted_6$c = { class: "nut-circleprogress-text" };
@@ -11755,7 +11988,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
11755
11988
  key: index,
11756
11989
  offset: item.key,
11757
11990
  "stop-color": item.value
11758
- }, null, 8, _hoisted_3$q);
11991
+ }, null, 8, _hoisted_3$p);
11759
11992
  }), 128))
11760
11993
  ], 8, _hoisted_2$w)
11761
11994
  ]),
@@ -12202,7 +12435,7 @@ const _sfc_main$E = create$E({
12202
12435
  });
12203
12436
  const _hoisted_1$y = { class: "nut-empty" };
12204
12437
  const _hoisted_2$u = ["src"];
12205
- const _hoisted_3$p = {
12438
+ const _hoisted_3$o = {
12206
12439
  key: 1,
12207
12440
  class: "nut-empty-description"
12208
12441
  };
@@ -12220,7 +12453,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
12220
12453
  }, null, 8, _hoisted_2$u)) : createCommentVNode("", true)
12221
12454
  ], 64))
12222
12455
  ], 4),
12223
- _ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("view", _hoisted_3$p, toDisplayString(_ctx.description || _ctx.translate("noData")), 1)),
12456
+ _ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("view", _hoisted_3$o, toDisplayString(_ctx.description || _ctx.translate("noData")), 1)),
12224
12457
  _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 2 }) : createCommentVNode("", true)
12225
12458
  ]);
12226
12459
  }
@@ -12453,7 +12686,7 @@ const _hoisted_1$x = {
12453
12686
  ref: "videocon"
12454
12687
  };
12455
12688
  const _hoisted_2$t = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
12456
- const _hoisted_3$o = ["src", "type"];
12689
+ const _hoisted_3$n = ["src", "type"];
12457
12690
  const _hoisted_4$k = { class: "current-time" };
12458
12691
  const _hoisted_5$d = { class: "progress-container" };
12459
12692
  const _hoisted_6$b = {
@@ -12487,7 +12720,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
12487
12720
  createElementVNode("source", {
12488
12721
  src: _ctx.source.src,
12489
12722
  type: _ctx.source.type
12490
- }, null, 8, _hoisted_3$o)
12723
+ }, null, 8, _hoisted_3$n)
12491
12724
  ], 40, _hoisted_2$t),
12492
12725
  _ctx.showToolbox && !_ctx.isDisabled ? (openBlock(), createElementBlock("div", {
12493
12726
  key: 0,
@@ -12663,7 +12896,7 @@ const _sfc_main$B = create$B({
12663
12896
  });
12664
12897
  const _hoisted_1$w = { class: "nut-step-head" };
12665
12898
  const _hoisted_2$s = /* @__PURE__ */ createElementVNode("view", { class: "nut-step-line" }, null, -1);
12666
- const _hoisted_3$n = {
12899
+ const _hoisted_3$m = {
12667
12900
  key: 2,
12668
12901
  class: "nut-step-inner"
12669
12902
  };
@@ -12692,7 +12925,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
12692
12925
  color: _ctx.iconColor,
12693
12926
  name: _ctx.icon,
12694
12927
  size: _ctx.size
12695
- }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3$n, toDisplayString(_ctx.index), 1))
12928
+ }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3$m, toDisplayString(_ctx.index), 1))
12696
12929
  ], 2)
12697
12930
  ]),
12698
12931
  createElementVNode("view", _hoisted_4$j, [
@@ -12738,7 +12971,7 @@ function useTouch() {
12738
12971
  state.offsetY = 0;
12739
12972
  state.direction = "";
12740
12973
  };
12741
- const start = (e) => {
12974
+ const start2 = (e) => {
12742
12975
  reset();
12743
12976
  state.startX = e.touches[0].clientX;
12744
12977
  state.startY = e.touches[0].clientY;
@@ -12754,7 +12987,7 @@ function useTouch() {
12754
12987
  };
12755
12988
  return {
12756
12989
  state,
12757
- start,
12990
+ start: start2,
12758
12991
  reset,
12759
12992
  move
12760
12993
  };
@@ -12825,6 +13058,7 @@ const _sfc_main$A = create$A({
12825
13058
  touchTime: 0,
12826
13059
  autoplayTimer: 0,
12827
13060
  children: [],
13061
+ childrenVNode: [],
12828
13062
  style: {}
12829
13063
  });
12830
13064
  const touch = useTouch();
@@ -12861,22 +13095,49 @@ const _sfc_main$A = create$A({
12861
13095
  };
12862
13096
  };
12863
13097
  const relation = (child) => {
12864
- if (child.proxy) {
12865
- state.children.push(child.proxy);
13098
+ var _a;
13099
+ let children = [];
13100
+ let slot = (_a = slots == null ? void 0 : slots.default) == null ? void 0 : _a.call(slots);
13101
+ slot = slot.filter((item) => item.children && Array.isArray(item.children));
13102
+ slot.forEach((item) => {
13103
+ children = children.concat(item.children);
13104
+ });
13105
+ if (!state.childrenVNode.length) {
13106
+ state.childrenVNode = children.slice();
13107
+ child.proxy && state.children.push(child.proxy);
13108
+ } else {
13109
+ if (state.childrenVNode.length > children.length) {
13110
+ state.children = state.children.filter((item) => child.proxy !== item);
13111
+ } else if (state.childrenVNode.length < children.length) {
13112
+ for (let i = 0; i < state.childrenVNode.length; i++) {
13113
+ if (children[i].key !== state.childrenVNode[i].key) {
13114
+ child.proxy && state.children.splice(i, 0, child.proxy);
13115
+ child.vnode && state.childrenVNode.splice(i, 0, child.vnode);
13116
+ break;
13117
+ }
13118
+ }
13119
+ if (state.childrenVNode.length !== children.length) {
13120
+ child.proxy && state.children.push(child.proxy);
13121
+ child.vnode && state.childrenVNode.push(child.vnode);
13122
+ }
13123
+ } else {
13124
+ state.childrenVNode = children.slice();
13125
+ child.proxy && state.children.push(child.proxy);
13126
+ }
12866
13127
  }
12867
13128
  };
12868
13129
  const range = (num, min, max) => {
12869
13130
  return Math.min(Math.max(num, min), max);
12870
13131
  };
12871
- const requestFrame = (fn) => {
12872
- window.requestAnimationFrame.call(window, fn);
13132
+ const requestFrame = (fn2) => {
13133
+ window.requestAnimationFrame.call(window, fn2);
12873
13134
  };
12874
- const getOffset = (active, offset = 0) => {
13135
+ const getOffset = (active, offset2 = 0) => {
12875
13136
  let currentPosition = active * size.value;
12876
13137
  if (!props.loop) {
12877
13138
  currentPosition = Math.min(currentPosition, -minOffset.value);
12878
13139
  }
12879
- let targetOffset = offset - currentPosition;
13140
+ let targetOffset = offset2 - currentPosition;
12880
13141
  if (!props.loop) {
12881
13142
  targetOffset = range(targetOffset, minOffset.value, 0);
12882
13143
  }
@@ -12892,12 +13153,12 @@ const _sfc_main$A = create$A({
12892
13153
  }
12893
13154
  return active;
12894
13155
  };
12895
- const move = ({ pace = 0, offset = 0, isEmit = false }) => {
13156
+ const move = ({ pace = 0, offset: offset2 = 0, isEmit = false }) => {
12896
13157
  if (childCount.value <= 1)
12897
13158
  return;
12898
13159
  const { active } = state;
12899
13160
  const targetActive = getActive(pace);
12900
- const targetOffset = getOffset(targetActive, offset);
13161
+ const targetOffset = getOffset(targetActive, offset2);
12901
13162
  if (props.loop) {
12902
13163
  if (state.children[0] && targetOffset !== minOffset.value) {
12903
13164
  const rightBound = targetOffset < minOffset.value;
@@ -13022,9 +13283,9 @@ const _sfc_main$A = create$A({
13022
13283
  const isShouldMove = Math.abs(speed) > 0.3 || Math.abs(delTa.value) > +(size.value / 2).toFixed(2);
13023
13284
  if (isShouldMove && isCorrectDirection.value) {
13024
13285
  let pace = 0;
13025
- const offset = isVertical.value ? touch.state.offsetY : touch.state.offsetX;
13286
+ const offset2 = isVertical.value ? touch.state.offsetY : touch.state.offsetX;
13026
13287
  if (props.loop) {
13027
- pace = offset > 0 ? delTa.value > 0 ? -1 : 1 : 0;
13288
+ pace = offset2 > 0 ? delTa.value > 0 ? -1 : 1 : 0;
13028
13289
  } else {
13029
13290
  pace = -Math[delTa.value > 0 ? "ceil" : "floor"](delTa.value / size.value);
13030
13291
  }
@@ -13049,16 +13310,6 @@ const _sfc_main$A = create$A({
13049
13310
  next,
13050
13311
  to
13051
13312
  });
13052
- onMounted(() => {
13053
- nextTick(() => {
13054
- init();
13055
- });
13056
- });
13057
- onActivated(() => {
13058
- nextTick(() => {
13059
- init();
13060
- });
13061
- });
13062
13313
  onDeactivated(() => {
13063
13314
  stopAutoPlay();
13064
13315
  });
@@ -13072,7 +13323,7 @@ const _sfc_main$A = create$A({
13072
13323
  });
13073
13324
  watch(() => state.children.length, () => {
13074
13325
  nextTick(() => {
13075
- init(state.active);
13326
+ init();
13076
13327
  });
13077
13328
  });
13078
13329
  watch(() => props.autoPlay, (val) => {
@@ -13123,8 +13374,9 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
13123
13374
  style: normalizeStyle({
13124
13375
  backgroundColor: _ctx.activePagination === index ? _ctx.paginationColor : "#ddd"
13125
13376
  }),
13377
+ class: normalizeClass({ active: _ctx.activePagination === index }),
13126
13378
  key: index
13127
- }, null, 4);
13379
+ }, null, 6);
13128
13380
  }), 128))
13129
13381
  ], 2)) : createCommentVNode("", true)
13130
13382
  ], 34);
@@ -13155,9 +13407,12 @@ const _sfc_main$z = create$z({
13155
13407
  }
13156
13408
  return style2;
13157
13409
  });
13158
- const setOffset = (offset) => {
13159
- state.offset = offset;
13410
+ const setOffset = (offset2) => {
13411
+ state.offset = offset2;
13160
13412
  };
13413
+ onUnmounted(() => {
13414
+ parent["relation"](getCurrentInstance(), "unmount");
13415
+ });
13161
13416
  useExpose({ setOffset });
13162
13417
  return {
13163
13418
  style,
@@ -14019,7 +14274,6 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
14019
14274
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.machineNum, (val, index) => {
14020
14275
  return openBlock(), createElementBlock("view", {
14021
14276
  class: "run-number-machine-img-li",
14022
- ref_for: true,
14023
14277
  ref: "run-number-machine-img-li",
14024
14278
  key: "mImg" + index,
14025
14279
  style: normalizeStyle({
@@ -14074,7 +14328,6 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
14074
14328
  }, [
14075
14329
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val, index) => {
14076
14330
  return openBlock(), createElementBlock("view", {
14077
- ref_for: true,
14078
14331
  ref: _ctx.setRef,
14079
14332
  class: "numberItem",
14080
14333
  key: val,
@@ -14274,7 +14527,7 @@ const _sfc_main$v = create$v({
14274
14527
  }
14275
14528
  return format;
14276
14529
  };
14277
- const start = () => {
14530
+ const start2 = () => {
14278
14531
  if (!state.counting && !props.autoStart) {
14279
14532
  state.counting = true;
14280
14533
  state.handleEndTime = Date.now() + Number(state.restTime);
@@ -14329,7 +14582,7 @@ const _sfc_main$v = create$v({
14329
14582
  slots,
14330
14583
  classes,
14331
14584
  getTimeStamp,
14332
- start,
14585
+ start: start2,
14333
14586
  pause,
14334
14587
  renderTime,
14335
14588
  translate: translate$a,
@@ -14414,7 +14667,7 @@ const _sfc_main$u = create$u({
14414
14667
  });
14415
14668
  const _hoisted_1$r = { class: "nut-badge" };
14416
14669
  const _hoisted_2$o = { class: "slot-icons" };
14417
- const _hoisted_3$m = ["textContent"];
14670
+ const _hoisted_3$l = ["textContent"];
14418
14671
  function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
14419
14672
  return openBlock(), createElementBlock("view", _hoisted_1$r, [
14420
14673
  createElementVNode("view", _hoisted_2$o, [
@@ -14425,7 +14678,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
14425
14678
  textContent: toDisplayString(_ctx.content),
14426
14679
  class: normalizeClass(["nut-badge__content sup", { "is-dot": _ctx.dot }]),
14427
14680
  style: normalizeStyle(_ctx.stl)
14428
- }, null, 14, _hoisted_3$m), [
14681
+ }, null, 14, _hoisted_3$l), [
14429
14682
  [vShow, !_ctx.hidden && (_ctx.content || _ctx.dot)]
14430
14683
  ])
14431
14684
  ]);
@@ -14459,14 +14712,14 @@ const _sfc_main$t = create$t({
14459
14712
  },
14460
14713
  emits: ["close", "click"],
14461
14714
  setup(props, { emit }) {
14462
- const { type, color, plain, round, mark, textColor } = toRefs(props);
14715
+ const { type, color, plain, round: round2, mark, textColor } = toRefs(props);
14463
14716
  const classes = computed(() => {
14464
14717
  const prefixCls = componentName$q;
14465
14718
  return {
14466
14719
  [prefixCls]: true,
14467
14720
  [`${prefixCls}--${type.value}`]: type.value,
14468
14721
  [`${prefixCls}--plain`]: plain.value,
14469
- [`${prefixCls}--round`]: round.value,
14722
+ [`${prefixCls}--round`]: round2.value,
14470
14723
  [`${prefixCls}--mark`]: mark.value
14471
14724
  };
14472
14725
  });
@@ -14523,6 +14776,774 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
14523
14776
  ], 6);
14524
14777
  }
14525
14778
  var Tag = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$t]]);
14779
+ function getWindow(node) {
14780
+ if (node == null) {
14781
+ return window;
14782
+ }
14783
+ if (node.toString() !== "[object Window]") {
14784
+ var ownerDocument = node.ownerDocument;
14785
+ return ownerDocument ? ownerDocument.defaultView || window : window;
14786
+ }
14787
+ return node;
14788
+ }
14789
+ function isElement(node) {
14790
+ var OwnElement = getWindow(node).Element;
14791
+ return node instanceof OwnElement || node instanceof Element;
14792
+ }
14793
+ function isHTMLElement(node) {
14794
+ var OwnElement = getWindow(node).HTMLElement;
14795
+ return node instanceof OwnElement || node instanceof HTMLElement;
14796
+ }
14797
+ function isShadowRoot(node) {
14798
+ if (typeof ShadowRoot === "undefined") {
14799
+ return false;
14800
+ }
14801
+ var OwnElement = getWindow(node).ShadowRoot;
14802
+ return node instanceof OwnElement || node instanceof ShadowRoot;
14803
+ }
14804
+ var round = Math.round;
14805
+ function getBoundingClientRect(element, includeScale) {
14806
+ if (includeScale === void 0) {
14807
+ includeScale = false;
14808
+ }
14809
+ var rect = element.getBoundingClientRect();
14810
+ var scaleX = 1;
14811
+ var scaleY = 1;
14812
+ if (isHTMLElement(element) && includeScale) {
14813
+ var offsetHeight = element.offsetHeight;
14814
+ var offsetWidth = element.offsetWidth;
14815
+ if (offsetWidth > 0) {
14816
+ scaleX = round(rect.width) / offsetWidth || 1;
14817
+ }
14818
+ if (offsetHeight > 0) {
14819
+ scaleY = round(rect.height) / offsetHeight || 1;
14820
+ }
14821
+ }
14822
+ return {
14823
+ width: rect.width / scaleX,
14824
+ height: rect.height / scaleY,
14825
+ top: rect.top / scaleY,
14826
+ right: rect.right / scaleX,
14827
+ bottom: rect.bottom / scaleY,
14828
+ left: rect.left / scaleX,
14829
+ x: rect.left / scaleX,
14830
+ y: rect.top / scaleY
14831
+ };
14832
+ }
14833
+ function getWindowScroll(node) {
14834
+ var win = getWindow(node);
14835
+ var scrollLeft = win.pageXOffset;
14836
+ var scrollTop = win.pageYOffset;
14837
+ return {
14838
+ scrollLeft,
14839
+ scrollTop
14840
+ };
14841
+ }
14842
+ function getHTMLElementScroll(element) {
14843
+ return {
14844
+ scrollLeft: element.scrollLeft,
14845
+ scrollTop: element.scrollTop
14846
+ };
14847
+ }
14848
+ function getNodeScroll(node) {
14849
+ if (node === getWindow(node) || !isHTMLElement(node)) {
14850
+ return getWindowScroll(node);
14851
+ } else {
14852
+ return getHTMLElementScroll(node);
14853
+ }
14854
+ }
14855
+ function getNodeName(element) {
14856
+ return element ? (element.nodeName || "").toLowerCase() : null;
14857
+ }
14858
+ function getDocumentElement(element) {
14859
+ return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
14860
+ }
14861
+ function getWindowScrollBarX(element) {
14862
+ return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
14863
+ }
14864
+ function getComputedStyle(element) {
14865
+ return getWindow(element).getComputedStyle(element);
14866
+ }
14867
+ function isScrollParent(element) {
14868
+ var _getComputedStyle = getComputedStyle(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
14869
+ return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
14870
+ }
14871
+ function isElementScaled(element) {
14872
+ var rect = element.getBoundingClientRect();
14873
+ var scaleX = round(rect.width) / element.offsetWidth || 1;
14874
+ var scaleY = round(rect.height) / element.offsetHeight || 1;
14875
+ return scaleX !== 1 || scaleY !== 1;
14876
+ }
14877
+ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
14878
+ if (isFixed === void 0) {
14879
+ isFixed = false;
14880
+ }
14881
+ var isOffsetParentAnElement = isHTMLElement(offsetParent);
14882
+ var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
14883
+ var documentElement = getDocumentElement(offsetParent);
14884
+ var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
14885
+ var scroll = {
14886
+ scrollLeft: 0,
14887
+ scrollTop: 0
14888
+ };
14889
+ var offsets = {
14890
+ x: 0,
14891
+ y: 0
14892
+ };
14893
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
14894
+ if (getNodeName(offsetParent) !== "body" || isScrollParent(documentElement)) {
14895
+ scroll = getNodeScroll(offsetParent);
14896
+ }
14897
+ if (isHTMLElement(offsetParent)) {
14898
+ offsets = getBoundingClientRect(offsetParent, true);
14899
+ offsets.x += offsetParent.clientLeft;
14900
+ offsets.y += offsetParent.clientTop;
14901
+ } else if (documentElement) {
14902
+ offsets.x = getWindowScrollBarX(documentElement);
14903
+ }
14904
+ }
14905
+ return {
14906
+ x: rect.left + scroll.scrollLeft - offsets.x,
14907
+ y: rect.top + scroll.scrollTop - offsets.y,
14908
+ width: rect.width,
14909
+ height: rect.height
14910
+ };
14911
+ }
14912
+ function getLayoutRect(element) {
14913
+ var clientRect = getBoundingClientRect(element);
14914
+ var width = element.offsetWidth;
14915
+ var height = element.offsetHeight;
14916
+ if (Math.abs(clientRect.width - width) <= 1) {
14917
+ width = clientRect.width;
14918
+ }
14919
+ if (Math.abs(clientRect.height - height) <= 1) {
14920
+ height = clientRect.height;
14921
+ }
14922
+ return {
14923
+ x: element.offsetLeft,
14924
+ y: element.offsetTop,
14925
+ width,
14926
+ height
14927
+ };
14928
+ }
14929
+ function getParentNode(element) {
14930
+ if (getNodeName(element) === "html") {
14931
+ return element;
14932
+ }
14933
+ return element.assignedSlot || element.parentNode || (isShadowRoot(element) ? element.host : null) || getDocumentElement(element);
14934
+ }
14935
+ function getScrollParent(node) {
14936
+ if (["html", "body", "#document"].indexOf(getNodeName(node)) >= 0) {
14937
+ return node.ownerDocument.body;
14938
+ }
14939
+ if (isHTMLElement(node) && isScrollParent(node)) {
14940
+ return node;
14941
+ }
14942
+ return getScrollParent(getParentNode(node));
14943
+ }
14944
+ function listScrollParents(element, list) {
14945
+ var _element$ownerDocumen;
14946
+ if (list === void 0) {
14947
+ list = [];
14948
+ }
14949
+ var scrollParent = getScrollParent(element);
14950
+ var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
14951
+ var win = getWindow(scrollParent);
14952
+ var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
14953
+ var updatedList = list.concat(target);
14954
+ return isBody ? updatedList : updatedList.concat(listScrollParents(getParentNode(target)));
14955
+ }
14956
+ function isTableElement(element) {
14957
+ return ["table", "td", "th"].indexOf(getNodeName(element)) >= 0;
14958
+ }
14959
+ function getTrueOffsetParent(element) {
14960
+ if (!isHTMLElement(element) || getComputedStyle(element).position === "fixed") {
14961
+ return null;
14962
+ }
14963
+ return element.offsetParent;
14964
+ }
14965
+ function getContainingBlock(element) {
14966
+ var isFirefox = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1;
14967
+ var isIE = navigator.userAgent.indexOf("Trident") !== -1;
14968
+ if (isIE && isHTMLElement(element)) {
14969
+ var elementCss = getComputedStyle(element);
14970
+ if (elementCss.position === "fixed") {
14971
+ return null;
14972
+ }
14973
+ }
14974
+ var currentNode = getParentNode(element);
14975
+ if (isShadowRoot(currentNode)) {
14976
+ currentNode = currentNode.host;
14977
+ }
14978
+ while (isHTMLElement(currentNode) && ["html", "body"].indexOf(getNodeName(currentNode)) < 0) {
14979
+ var css = getComputedStyle(currentNode);
14980
+ if (css.transform !== "none" || css.perspective !== "none" || css.contain === "paint" || ["transform", "perspective"].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === "filter" || isFirefox && css.filter && css.filter !== "none") {
14981
+ return currentNode;
14982
+ } else {
14983
+ currentNode = currentNode.parentNode;
14984
+ }
14985
+ }
14986
+ return null;
14987
+ }
14988
+ function getOffsetParent(element) {
14989
+ var window2 = getWindow(element);
14990
+ var offsetParent = getTrueOffsetParent(element);
14991
+ while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === "static") {
14992
+ offsetParent = getTrueOffsetParent(offsetParent);
14993
+ }
14994
+ if (offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle(offsetParent).position === "static")) {
14995
+ return window2;
14996
+ }
14997
+ return offsetParent || getContainingBlock(element) || window2;
14998
+ }
14999
+ var top = "top";
15000
+ var bottom = "bottom";
15001
+ var right = "right";
15002
+ var left = "left";
15003
+ var auto = "auto";
15004
+ var basePlacements = [top, bottom, right, left];
15005
+ var start = "start";
15006
+ var end = "end";
15007
+ var placements = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
15008
+ return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
15009
+ }, []);
15010
+ var beforeRead = "beforeRead";
15011
+ var read = "read";
15012
+ var afterRead = "afterRead";
15013
+ var beforeMain = "beforeMain";
15014
+ var main = "main";
15015
+ var afterMain = "afterMain";
15016
+ var beforeWrite = "beforeWrite";
15017
+ var write = "write";
15018
+ var afterWrite = "afterWrite";
15019
+ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
15020
+ function order(modifiers) {
15021
+ var map = /* @__PURE__ */ new Map();
15022
+ var visited = /* @__PURE__ */ new Set();
15023
+ var result = [];
15024
+ modifiers.forEach(function(modifier) {
15025
+ map.set(modifier.name, modifier);
15026
+ });
15027
+ function sort(modifier) {
15028
+ visited.add(modifier.name);
15029
+ var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
15030
+ requires.forEach(function(dep) {
15031
+ if (!visited.has(dep)) {
15032
+ var depModifier = map.get(dep);
15033
+ if (depModifier) {
15034
+ sort(depModifier);
15035
+ }
15036
+ }
15037
+ });
15038
+ result.push(modifier);
15039
+ }
15040
+ modifiers.forEach(function(modifier) {
15041
+ if (!visited.has(modifier.name)) {
15042
+ sort(modifier);
15043
+ }
15044
+ });
15045
+ return result;
15046
+ }
15047
+ function orderModifiers(modifiers) {
15048
+ var orderedModifiers = order(modifiers);
15049
+ return modifierPhases.reduce(function(acc, phase) {
15050
+ return acc.concat(orderedModifiers.filter(function(modifier) {
15051
+ return modifier.phase === phase;
15052
+ }));
15053
+ }, []);
15054
+ }
15055
+ function debounce(fn2) {
15056
+ var pending;
15057
+ return function() {
15058
+ if (!pending) {
15059
+ pending = new Promise(function(resolve) {
15060
+ Promise.resolve().then(function() {
15061
+ pending = void 0;
15062
+ resolve(fn2());
15063
+ });
15064
+ });
15065
+ }
15066
+ return pending;
15067
+ };
15068
+ }
15069
+ function getBasePlacement(placement) {
15070
+ return placement.split("-")[0];
15071
+ }
15072
+ function mergeByName(modifiers) {
15073
+ var merged = modifiers.reduce(function(merged2, current) {
15074
+ var existing = merged2[current.name];
15075
+ merged2[current.name] = existing ? Object.assign({}, existing, current, {
15076
+ options: Object.assign({}, existing.options, current.options),
15077
+ data: Object.assign({}, existing.data, current.data)
15078
+ }) : current;
15079
+ return merged2;
15080
+ }, {});
15081
+ return Object.keys(merged).map(function(key) {
15082
+ return merged[key];
15083
+ });
15084
+ }
15085
+ function getVariation(placement) {
15086
+ return placement.split("-")[1];
15087
+ }
15088
+ function getMainAxisFromPlacement(placement) {
15089
+ return ["top", "bottom"].indexOf(placement) >= 0 ? "x" : "y";
15090
+ }
15091
+ function computeOffsets(_ref) {
15092
+ var reference = _ref.reference, element = _ref.element, placement = _ref.placement;
15093
+ var basePlacement = placement ? getBasePlacement(placement) : null;
15094
+ var variation = placement ? getVariation(placement) : null;
15095
+ var commonX = reference.x + reference.width / 2 - element.width / 2;
15096
+ var commonY = reference.y + reference.height / 2 - element.height / 2;
15097
+ var offsets;
15098
+ switch (basePlacement) {
15099
+ case top:
15100
+ offsets = {
15101
+ x: commonX,
15102
+ y: reference.y - element.height
15103
+ };
15104
+ break;
15105
+ case bottom:
15106
+ offsets = {
15107
+ x: commonX,
15108
+ y: reference.y + reference.height
15109
+ };
15110
+ break;
15111
+ case right:
15112
+ offsets = {
15113
+ x: reference.x + reference.width,
15114
+ y: commonY
15115
+ };
15116
+ break;
15117
+ case left:
15118
+ offsets = {
15119
+ x: reference.x - element.width,
15120
+ y: commonY
15121
+ };
15122
+ break;
15123
+ default:
15124
+ offsets = {
15125
+ x: reference.x,
15126
+ y: reference.y
15127
+ };
15128
+ }
15129
+ var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
15130
+ if (mainAxis != null) {
15131
+ var len = mainAxis === "y" ? "height" : "width";
15132
+ switch (variation) {
15133
+ case start:
15134
+ offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
15135
+ break;
15136
+ case end:
15137
+ offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
15138
+ break;
15139
+ }
15140
+ }
15141
+ return offsets;
15142
+ }
15143
+ var DEFAULT_OPTIONS = {
15144
+ placement: "bottom",
15145
+ modifiers: [],
15146
+ strategy: "absolute"
15147
+ };
15148
+ function areValidElements() {
15149
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15150
+ args[_key] = arguments[_key];
15151
+ }
15152
+ return !args.some(function(element) {
15153
+ return !(element && typeof element.getBoundingClientRect === "function");
15154
+ });
15155
+ }
15156
+ function popperGenerator(generatorOptions) {
15157
+ if (generatorOptions === void 0) {
15158
+ generatorOptions = {};
15159
+ }
15160
+ var _generatorOptions = generatorOptions, _generatorOptions$def = _generatorOptions.defaultModifiers, defaultModifiers2 = _generatorOptions$def === void 0 ? [] : _generatorOptions$def, _generatorOptions$def2 = _generatorOptions.defaultOptions, defaultOptions2 = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
15161
+ return function createPopper2(reference, popper, options) {
15162
+ if (options === void 0) {
15163
+ options = defaultOptions2;
15164
+ }
15165
+ var state = {
15166
+ placement: "bottom",
15167
+ orderedModifiers: [],
15168
+ options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions2),
15169
+ modifiersData: {},
15170
+ elements: {
15171
+ reference,
15172
+ popper
15173
+ },
15174
+ attributes: {},
15175
+ styles: {}
15176
+ };
15177
+ var effectCleanupFns = [];
15178
+ var isDestroyed = false;
15179
+ var instance = {
15180
+ state,
15181
+ setOptions: function setOptions(setOptionsAction) {
15182
+ var options2 = typeof setOptionsAction === "function" ? setOptionsAction(state.options) : setOptionsAction;
15183
+ cleanupModifierEffects();
15184
+ state.options = Object.assign({}, defaultOptions2, state.options, options2);
15185
+ state.scrollParents = {
15186
+ reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
15187
+ popper: listScrollParents(popper)
15188
+ };
15189
+ var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers2, state.options.modifiers)));
15190
+ state.orderedModifiers = orderedModifiers.filter(function(m) {
15191
+ return m.enabled;
15192
+ });
15193
+ runModifierEffects();
15194
+ return instance.update();
15195
+ },
15196
+ forceUpdate: function forceUpdate() {
15197
+ if (isDestroyed) {
15198
+ return;
15199
+ }
15200
+ var _state$elements = state.elements, reference2 = _state$elements.reference, popper2 = _state$elements.popper;
15201
+ if (!areValidElements(reference2, popper2)) {
15202
+ return;
15203
+ }
15204
+ state.rects = {
15205
+ reference: getCompositeRect(reference2, getOffsetParent(popper2), state.options.strategy === "fixed"),
15206
+ popper: getLayoutRect(popper2)
15207
+ };
15208
+ state.reset = false;
15209
+ state.placement = state.options.placement;
15210
+ state.orderedModifiers.forEach(function(modifier) {
15211
+ return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
15212
+ });
15213
+ for (var index = 0; index < state.orderedModifiers.length; index++) {
15214
+ if (state.reset === true) {
15215
+ state.reset = false;
15216
+ index = -1;
15217
+ continue;
15218
+ }
15219
+ var _state$orderedModifie = state.orderedModifiers[index], fn2 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name = _state$orderedModifie.name;
15220
+ if (typeof fn2 === "function") {
15221
+ state = fn2({
15222
+ state,
15223
+ options: _options,
15224
+ name,
15225
+ instance
15226
+ }) || state;
15227
+ }
15228
+ }
15229
+ },
15230
+ update: debounce(function() {
15231
+ return new Promise(function(resolve) {
15232
+ instance.forceUpdate();
15233
+ resolve(state);
15234
+ });
15235
+ }),
15236
+ destroy: function destroy() {
15237
+ cleanupModifierEffects();
15238
+ isDestroyed = true;
15239
+ }
15240
+ };
15241
+ if (!areValidElements(reference, popper)) {
15242
+ return instance;
15243
+ }
15244
+ instance.setOptions(options).then(function(state2) {
15245
+ if (!isDestroyed && options.onFirstUpdate) {
15246
+ options.onFirstUpdate(state2);
15247
+ }
15248
+ });
15249
+ function runModifierEffects() {
15250
+ state.orderedModifiers.forEach(function(_ref3) {
15251
+ var name = _ref3.name, _ref3$options = _ref3.options, options2 = _ref3$options === void 0 ? {} : _ref3$options, effect2 = _ref3.effect;
15252
+ if (typeof effect2 === "function") {
15253
+ var cleanupFn = effect2({
15254
+ state,
15255
+ name,
15256
+ instance,
15257
+ options: options2
15258
+ });
15259
+ var noopFn = function noopFn2() {
15260
+ };
15261
+ effectCleanupFns.push(cleanupFn || noopFn);
15262
+ }
15263
+ });
15264
+ }
15265
+ function cleanupModifierEffects() {
15266
+ effectCleanupFns.forEach(function(fn2) {
15267
+ return fn2();
15268
+ });
15269
+ effectCleanupFns = [];
15270
+ }
15271
+ return instance;
15272
+ };
15273
+ }
15274
+ var passive = {
15275
+ passive: true
15276
+ };
15277
+ function effect$1(_ref) {
15278
+ var state = _ref.state, instance = _ref.instance, options = _ref.options;
15279
+ var _options$scroll = options.scroll, scroll = _options$scroll === void 0 ? true : _options$scroll, _options$resize = options.resize, resize = _options$resize === void 0 ? true : _options$resize;
15280
+ var window2 = getWindow(state.elements.popper);
15281
+ var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
15282
+ if (scroll) {
15283
+ scrollParents.forEach(function(scrollParent) {
15284
+ scrollParent.addEventListener("scroll", instance.update, passive);
15285
+ });
15286
+ }
15287
+ if (resize) {
15288
+ window2.addEventListener("resize", instance.update, passive);
15289
+ }
15290
+ return function() {
15291
+ if (scroll) {
15292
+ scrollParents.forEach(function(scrollParent) {
15293
+ scrollParent.removeEventListener("scroll", instance.update, passive);
15294
+ });
15295
+ }
15296
+ if (resize) {
15297
+ window2.removeEventListener("resize", instance.update, passive);
15298
+ }
15299
+ };
15300
+ }
15301
+ var eventListeners = {
15302
+ name: "eventListeners",
15303
+ enabled: true,
15304
+ phase: "write",
15305
+ fn: function fn() {
15306
+ },
15307
+ effect: effect$1,
15308
+ data: {}
15309
+ };
15310
+ function popperOffsets(_ref) {
15311
+ var state = _ref.state, name = _ref.name;
15312
+ state.modifiersData[name] = computeOffsets({
15313
+ reference: state.rects.reference,
15314
+ element: state.rects.popper,
15315
+ strategy: "absolute",
15316
+ placement: state.placement
15317
+ });
15318
+ }
15319
+ var popperOffsets$1 = {
15320
+ name: "popperOffsets",
15321
+ enabled: true,
15322
+ phase: "read",
15323
+ fn: popperOffsets,
15324
+ data: {}
15325
+ };
15326
+ var unsetSides = {
15327
+ top: "auto",
15328
+ right: "auto",
15329
+ bottom: "auto",
15330
+ left: "auto"
15331
+ };
15332
+ function roundOffsetsByDPR(_ref) {
15333
+ var x = _ref.x, y = _ref.y;
15334
+ var win = window;
15335
+ var dpr = win.devicePixelRatio || 1;
15336
+ return {
15337
+ x: round(x * dpr) / dpr || 0,
15338
+ y: round(y * dpr) / dpr || 0
15339
+ };
15340
+ }
15341
+ function mapToStyles(_ref2) {
15342
+ var _Object$assign2;
15343
+ var popper = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed;
15344
+ var _offsets$x = offsets.x, x = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y = _offsets$y === void 0 ? 0 : _offsets$y;
15345
+ var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
15346
+ x,
15347
+ y
15348
+ }) : {
15349
+ x,
15350
+ y
15351
+ };
15352
+ x = _ref3.x;
15353
+ y = _ref3.y;
15354
+ var hasX = offsets.hasOwnProperty("x");
15355
+ var hasY = offsets.hasOwnProperty("y");
15356
+ var sideX = left;
15357
+ var sideY = top;
15358
+ var win = window;
15359
+ if (adaptive) {
15360
+ var offsetParent = getOffsetParent(popper);
15361
+ var heightProp = "clientHeight";
15362
+ var widthProp = "clientWidth";
15363
+ if (offsetParent === getWindow(popper)) {
15364
+ offsetParent = getDocumentElement(popper);
15365
+ if (getComputedStyle(offsetParent).position !== "static" && position === "absolute") {
15366
+ heightProp = "scrollHeight";
15367
+ widthProp = "scrollWidth";
15368
+ }
15369
+ }
15370
+ offsetParent = offsetParent;
15371
+ if (placement === top || (placement === left || placement === right) && variation === end) {
15372
+ sideY = bottom;
15373
+ var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : offsetParent[heightProp];
15374
+ y -= offsetY - popperRect.height;
15375
+ y *= gpuAcceleration ? 1 : -1;
15376
+ }
15377
+ if (placement === left || (placement === top || placement === bottom) && variation === end) {
15378
+ sideX = right;
15379
+ var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : offsetParent[widthProp];
15380
+ x -= offsetX - popperRect.width;
15381
+ x *= gpuAcceleration ? 1 : -1;
15382
+ }
15383
+ }
15384
+ var commonStyles = Object.assign({
15385
+ position
15386
+ }, adaptive && unsetSides);
15387
+ var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
15388
+ x,
15389
+ y
15390
+ }) : {
15391
+ x,
15392
+ y
15393
+ };
15394
+ x = _ref4.x;
15395
+ y = _ref4.y;
15396
+ if (gpuAcceleration) {
15397
+ var _Object$assign;
15398
+ return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
15399
+ }
15400
+ return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
15401
+ }
15402
+ function computeStyles(_ref5) {
15403
+ var state = _ref5.state, options = _ref5.options;
15404
+ var _options$gpuAccelerat = options.gpuAcceleration, gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat, _options$adaptive = options.adaptive, adaptive = _options$adaptive === void 0 ? true : _options$adaptive, _options$roundOffsets = options.roundOffsets, roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
15405
+ var commonStyles = {
15406
+ placement: getBasePlacement(state.placement),
15407
+ variation: getVariation(state.placement),
15408
+ popper: state.elements.popper,
15409
+ popperRect: state.rects.popper,
15410
+ gpuAcceleration,
15411
+ isFixed: state.options.strategy === "fixed"
15412
+ };
15413
+ if (state.modifiersData.popperOffsets != null) {
15414
+ state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
15415
+ offsets: state.modifiersData.popperOffsets,
15416
+ position: state.options.strategy,
15417
+ adaptive,
15418
+ roundOffsets
15419
+ })));
15420
+ }
15421
+ if (state.modifiersData.arrow != null) {
15422
+ state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
15423
+ offsets: state.modifiersData.arrow,
15424
+ position: "absolute",
15425
+ adaptive: false,
15426
+ roundOffsets
15427
+ })));
15428
+ }
15429
+ state.attributes.popper = Object.assign({}, state.attributes.popper, {
15430
+ "data-popper-placement": state.placement
15431
+ });
15432
+ }
15433
+ var computeStyles$1 = {
15434
+ name: "computeStyles",
15435
+ enabled: true,
15436
+ phase: "beforeWrite",
15437
+ fn: computeStyles,
15438
+ data: {}
15439
+ };
15440
+ function applyStyles(_ref) {
15441
+ var state = _ref.state;
15442
+ Object.keys(state.elements).forEach(function(name) {
15443
+ var style = state.styles[name] || {};
15444
+ var attributes = state.attributes[name] || {};
15445
+ var element = state.elements[name];
15446
+ if (!isHTMLElement(element) || !getNodeName(element)) {
15447
+ return;
15448
+ }
15449
+ Object.assign(element.style, style);
15450
+ Object.keys(attributes).forEach(function(name2) {
15451
+ var value = attributes[name2];
15452
+ if (value === false) {
15453
+ element.removeAttribute(name2);
15454
+ } else {
15455
+ element.setAttribute(name2, value === true ? "" : value);
15456
+ }
15457
+ });
15458
+ });
15459
+ }
15460
+ function effect(_ref2) {
15461
+ var state = _ref2.state;
15462
+ var initialStyles = {
15463
+ popper: {
15464
+ position: state.options.strategy,
15465
+ left: "0",
15466
+ top: "0",
15467
+ margin: "0"
15468
+ },
15469
+ arrow: {
15470
+ position: "absolute"
15471
+ },
15472
+ reference: {}
15473
+ };
15474
+ Object.assign(state.elements.popper.style, initialStyles.popper);
15475
+ state.styles = initialStyles;
15476
+ if (state.elements.arrow) {
15477
+ Object.assign(state.elements.arrow.style, initialStyles.arrow);
15478
+ }
15479
+ return function() {
15480
+ Object.keys(state.elements).forEach(function(name) {
15481
+ var element = state.elements[name];
15482
+ var attributes = state.attributes[name] || {};
15483
+ var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]);
15484
+ var style = styleProperties.reduce(function(style2, property) {
15485
+ style2[property] = "";
15486
+ return style2;
15487
+ }, {});
15488
+ if (!isHTMLElement(element) || !getNodeName(element)) {
15489
+ return;
15490
+ }
15491
+ Object.assign(element.style, style);
15492
+ Object.keys(attributes).forEach(function(attribute) {
15493
+ element.removeAttribute(attribute);
15494
+ });
15495
+ });
15496
+ };
15497
+ }
15498
+ var applyStyles$1 = {
15499
+ name: "applyStyles",
15500
+ enabled: true,
15501
+ phase: "write",
15502
+ fn: applyStyles,
15503
+ effect,
15504
+ requires: ["computeStyles"]
15505
+ };
15506
+ var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1];
15507
+ var createPopper = /* @__PURE__ */ popperGenerator({
15508
+ defaultModifiers
15509
+ });
15510
+ function distanceAndSkiddingToXY(placement, rects, offset2) {
15511
+ var basePlacement = getBasePlacement(placement);
15512
+ var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
15513
+ var _ref = typeof offset2 === "function" ? offset2(Object.assign({}, rects, {
15514
+ placement
15515
+ })) : offset2, skidding = _ref[0], distance = _ref[1];
15516
+ skidding = skidding || 0;
15517
+ distance = (distance || 0) * invertDistance;
15518
+ return [left, right].indexOf(basePlacement) >= 0 ? {
15519
+ x: distance,
15520
+ y: skidding
15521
+ } : {
15522
+ x: skidding,
15523
+ y: distance
15524
+ };
15525
+ }
15526
+ function offset(_ref2) {
15527
+ var state = _ref2.state, options = _ref2.options, name = _ref2.name;
15528
+ var _options$offset = options.offset, offset2 = _options$offset === void 0 ? [0, 0] : _options$offset;
15529
+ var data = placements.reduce(function(acc, placement) {
15530
+ acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset2);
15531
+ return acc;
15532
+ }, {});
15533
+ var _data$state$placement = data[state.placement], x = _data$state$placement.x, y = _data$state$placement.y;
15534
+ if (state.modifiersData.popperOffsets != null) {
15535
+ state.modifiersData.popperOffsets.x += x;
15536
+ state.modifiersData.popperOffsets.y += y;
15537
+ }
15538
+ state.modifiersData[name] = data;
15539
+ }
15540
+ var offsetModifier = {
15541
+ name: "offset",
15542
+ enabled: true,
15543
+ phase: "main",
15544
+ requires: ["popperOffsets"],
15545
+ fn: offset
15546
+ };
14526
15547
  const { componentName: componentName$p, create: create$s } = createComponent("popover");
14527
15548
  const _sfc_main$s = create$s({
14528
15549
  inheritAttrs: false,
@@ -14542,81 +15563,103 @@ const _sfc_main$s = create$s({
14542
15563
  location: {
14543
15564
  type: String,
14544
15565
  default: "bottom"
15566
+ },
15567
+ offset: {
15568
+ type: Array,
15569
+ default: [0, 12]
15570
+ },
15571
+ customClass: {
15572
+ type: String,
15573
+ default: ""
15574
+ },
15575
+ showArrow: {
15576
+ type: Boolean,
15577
+ default: true
14545
15578
  }
14546
15579
  }),
14547
- emits: ["update", "update:visible", "close", "choose", "openPopover"],
15580
+ emits: ["update", "update:visible", "close", "choose", "open"],
14548
15581
  setup(props, { emit }) {
15582
+ let popper;
14549
15583
  const reference = ref();
14550
- const state = reactive({
14551
- elWidth: 0,
14552
- elHeight: 0
14553
- });
15584
+ const popoverRef = ref();
14554
15585
  const showPopup = ref(props.visible);
14555
15586
  const { theme, location: location2 } = toRefs(props);
14556
15587
  const classes = computed(() => {
14557
15588
  const prefixCls = componentName$p;
14558
- return {
14559
- [prefixCls]: true,
14560
- [`${prefixCls}--${theme.value}`]: theme.value
14561
- };
15589
+ return `${prefixCls} ${prefixCls}--${theme.value}`;
14562
15590
  });
14563
15591
  const popoverContent = computed(() => {
14564
- const prefixCls = "popoverContent";
15592
+ const prefixCls = "popover-content";
14565
15593
  return {
14566
15594
  [prefixCls]: true,
14567
15595
  [`${prefixCls}--${location2.value}`]: location2.value
14568
15596
  };
14569
15597
  });
14570
15598
  const popoverArrow = computed(() => {
14571
- const prefixCls = "popoverArrow";
15599
+ const prefixCls = "popover-arrow";
14572
15600
  return {
14573
15601
  [prefixCls]: true,
14574
15602
  [`${prefixCls}--${location2.value}`]: location2.value
14575
15603
  };
14576
15604
  });
14577
- function getReference() {
14578
- state.elWidth = reference.value.offsetWidth;
14579
- state.elHeight = reference.value.offsetHeight;
14580
- }
14581
- const getStyle = computed(() => {
14582
- const style = {};
14583
- if (location2.value == "top") {
14584
- style.bottom = state.elHeight + 20 + "px";
14585
- style.left = 0 + "px";
14586
- } else if (location2.value == "right") {
14587
- style.top = 0 + "px";
14588
- style.right = -state.elWidth + "px";
14589
- } else if (location2.value == "left") {
14590
- style.top = 0 + "px";
14591
- style.left = -state.elWidth + "px";
14592
- } else {
14593
- style.top = state.elHeight + 20 + "px";
14594
- style.left = 0 + "px";
15605
+ const createPopperInstance = () => {
15606
+ console.log(reference.value, popoverRef.value);
15607
+ if (reference.value && popoverRef.value) {
15608
+ return createPopper(reference.value, popoverRef.value.popupRef, {
15609
+ placement: props.location,
15610
+ modifiers: [
15611
+ {
15612
+ name: "computeStyles",
15613
+ options: {
15614
+ adaptive: false,
15615
+ gpuAcceleration: false
15616
+ }
15617
+ },
15618
+ Object.assign({}, offsetModifier, {
15619
+ options: {
15620
+ offset: props.offset
15621
+ }
15622
+ })
15623
+ ]
15624
+ });
14595
15625
  }
14596
- return style;
14597
- });
14598
- const getArrowStyle = computed(() => {
14599
- const style = {};
14600
- if (location2.value == "top") {
14601
- style.bottom = -20 + "px";
14602
- style.left = state.elWidth / 2 + "px";
14603
- } else if (location2.value == "right") {
14604
- style.top = 20 + "px";
14605
- style.left = -20 + "px";
14606
- } else if (location2.value == "left") {
14607
- style.top = 20 + "px";
14608
- style.right = -20 + "px";
14609
- } else {
14610
- style.left = state.elWidth / 2 + "px";
14611
- style.top = -20 + "px";
15626
+ return null;
15627
+ };
15628
+ const clickOverlay = () => {
15629
+ console.log("\u5173\u95ED");
15630
+ };
15631
+ const uploadLocation = () => {
15632
+ nextTick(() => {
15633
+ if (!showPopup.value)
15634
+ return;
15635
+ if (!popper) {
15636
+ popper = createPopperInstance();
15637
+ console.log(popper);
15638
+ } else {
15639
+ popper.setOptions({
15640
+ placement: props.location
15641
+ });
15642
+ }
15643
+ });
15644
+ };
15645
+ const clickAway = (event) => {
15646
+ const element = reference.value;
15647
+ if (element && !element.contains(event.target)) {
15648
+ closePopover();
14612
15649
  }
14613
- return style;
14614
- });
15650
+ };
14615
15651
  onMounted(() => {
14616
- getReference();
15652
+ window.addEventListener("click", clickAway, true);
15653
+ });
15654
+ onUnmounted(() => {
15655
+ window.removeEventListener("click", clickAway, true);
14617
15656
  });
14618
15657
  watch(() => props.visible, (value) => {
14619
15658
  showPopup.value = value;
15659
+ uploadLocation();
15660
+ });
15661
+ watch(() => props.location, (value) => {
15662
+ uploadLocation();
14620
15663
  });
14621
15664
  const update = (val) => {
14622
15665
  emit("update", val);
@@ -14644,57 +15687,64 @@ const _sfc_main$s = create$s({
14644
15687
  popoverArrow,
14645
15688
  closePopover,
14646
15689
  chooseItem,
14647
- getReference,
14648
15690
  reference,
14649
- getStyle,
14650
- getArrowStyle
15691
+ popoverRef,
15692
+ clickOverlay
14651
15693
  };
14652
15694
  }
14653
15695
  });
14654
- const _hoisted_1$q = { ref: "reference" };
14655
- const _hoisted_2$n = ["onClick"];
14656
- const _hoisted_3$l = { class: "title-name" };
15696
+ const _hoisted_1$q = ["onClick"];
15697
+ const _hoisted_2$n = { class: "popover-menu-name" };
14657
15698
  function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
14658
15699
  const _component_nut_icon = resolveComponent("nut-icon");
14659
- return openBlock(), createElementBlock("view", {
14660
- onClick: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.openPopover && _ctx.openPopover(...args), ["stop"])),
14661
- class: normalizeClass(_ctx.classes)
14662
- }, [
14663
- createElementVNode("div", _hoisted_1$q, [
15700
+ const _component_nut_popup = resolveComponent("nut-popup");
15701
+ return openBlock(), createElementBlock(Fragment, null, [
15702
+ createElementVNode("view", {
15703
+ style: { "display": "inline-block" },
15704
+ class: normalizeClass(_ctx.customClass),
15705
+ onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.openPopover && _ctx.openPopover(...args), ["stop"])),
15706
+ ref: "reference"
15707
+ }, [
14664
15708
  renderSlot(_ctx.$slots, "reference")
14665
- ], 512),
14666
- _ctx.showPopup ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
14667
- createElementVNode("view", {
14668
- class: "more-background",
14669
- onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.closePopover && _ctx.closePopover(...args), ["stop"]))
14670
- }),
14671
- createElementVNode("view", {
14672
- class: normalizeClass(_ctx.popoverContent),
14673
- style: normalizeStyle(_ctx.getStyle)
14674
- }, [
14675
- createElementVNode("view", {
14676
- class: normalizeClass(_ctx.popoverArrow),
14677
- style: normalizeStyle(_ctx.getArrowStyle)
14678
- }, null, 6),
15709
+ ], 2),
15710
+ createVNode(_component_nut_popup, {
15711
+ ref: "popoverRef",
15712
+ "pop-class": _ctx.classes,
15713
+ visible: _ctx.showPopup,
15714
+ "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.showPopup = $event),
15715
+ overlay: false,
15716
+ onClickOverlay: _ctx.clickOverlay
15717
+ }, {
15718
+ default: withCtx(() => [
15719
+ _ctx.showArrow ? (openBlock(), createElementBlock("view", {
15720
+ key: 0,
15721
+ class: normalizeClass(_ctx.popoverArrow)
15722
+ }, null, 2)) : createCommentVNode("", true),
14679
15723
  renderSlot(_ctx.$slots, "content"),
14680
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index) => {
14681
- return openBlock(), createElementBlock("view", {
14682
- key: index,
14683
- class: normalizeClass({ "title-item": true, disabled: item.disabled }),
14684
- onClick: withModifiers(($event) => _ctx.chooseItem(item, index), ["stop"])
14685
- }, [
14686
- item.icon ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
14687
- createVNode(_component_nut_icon, {
14688
- class: "item-img",
14689
- name: item.icon
14690
- }, null, 8, ["name"])
14691
- ]) : createCommentVNode("", true),
14692
- createElementVNode("view", _hoisted_3$l, toDisplayString(item.name), 1)
14693
- ], 10, _hoisted_2$n);
14694
- }), 128))
14695
- ], 6)
14696
- ], 64)) : createCommentVNode("", true)
14697
- ], 2);
15724
+ createElementVNode("view", {
15725
+ class: normalizeClass(["popover-menu", _ctx.popoverContent]),
15726
+ ref: "popoverMenu"
15727
+ }, [
15728
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index) => {
15729
+ return openBlock(), createElementBlock("view", {
15730
+ key: index,
15731
+ class: normalizeClass([item.className, { "popover-menu-item": true, disabled: item.disabled }]),
15732
+ onClick: withModifiers(($event) => _ctx.chooseItem(item, index), ["stop"])
15733
+ }, [
15734
+ item.icon ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
15735
+ createVNode(_component_nut_icon, {
15736
+ class: "item-img",
15737
+ name: item.icon
15738
+ }, null, 8, ["name"])
15739
+ ]) : createCommentVNode("", true),
15740
+ createElementVNode("view", _hoisted_2$n, toDisplayString(item.name), 1)
15741
+ ], 10, _hoisted_1$q);
15742
+ }), 128))
15743
+ ], 2)
15744
+ ]),
15745
+ _: 3
15746
+ }, 8, ["pop-class", "visible", "onClickOverlay"])
15747
+ ], 64);
14698
15748
  }
14699
15749
  var Popover = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s]]);
14700
15750
  const component$1 = {
@@ -14741,7 +15791,7 @@ const component$1 = {
14741
15791
  }
14742
15792
  },
14743
15793
  setup(props) {
14744
- const { avatarShape, round, avatarSize } = toRefs(props);
15794
+ const { avatarShape, round: round2, avatarSize } = toRefs(props);
14745
15795
  const avatarClass = computed(() => {
14746
15796
  const prefixCls = "avatarClass";
14747
15797
  return {
@@ -14753,7 +15803,7 @@ const component$1 = {
14753
15803
  const prefixCls = "blockClass";
14754
15804
  return {
14755
15805
  [prefixCls]: true,
14756
- [`${prefixCls}--round`]: round.value
15806
+ [`${prefixCls}--round`]: round2.value
14757
15807
  };
14758
15808
  });
14759
15809
  const getStyle = () => {
@@ -15906,7 +16956,7 @@ const _sfc_main$m = create$m({
15906
16956
  let timer = 0;
15907
16957
  const danmuList = ref(props.danmu);
15908
16958
  const rows = ref(props.rows);
15909
- const top = ref(props.top);
16959
+ const top2 = ref(props.top);
15910
16960
  const index = ref(0);
15911
16961
  const speeds = props.speeds;
15912
16962
  const danmuCWidth = ref(0);
@@ -15927,7 +16977,11 @@ const _sfc_main$m = create$m({
15927
16977
  });
15928
16978
  const add = (word) => {
15929
16979
  const _index = index.value % danmuList.value.length;
15930
- danmuList.value.splice(_index, 0, word);
16980
+ if (!props.loop && index.value === danmuList.value.length) {
16981
+ danmuList.value.splice(danmuList.value.length, 0, word);
16982
+ } else {
16983
+ danmuList.value.splice(_index, 0, word);
16984
+ }
15931
16985
  };
15932
16986
  const run = () => {
15933
16987
  clearInterval(timer);
@@ -15938,6 +16992,9 @@ const _sfc_main$m = create$m({
15938
16992
  }, props.frequency);
15939
16993
  };
15940
16994
  const play = () => {
16995
+ if (!props.loop && index.value >= danmuList.value.length) {
16996
+ return;
16997
+ }
15941
16998
  const _index = props.loop ? index.value % danmuList.value.length : index.value;
15942
16999
  let el = document.createElement(`view`);
15943
17000
  el.innerHTML = danmuList.value[_index];
@@ -15948,7 +17005,7 @@ const _sfc_main$m = create$m({
15948
17005
  const height = el.offsetHeight;
15949
17006
  el.classList.add("move");
15950
17007
  el.style.animationDuration = `${speeds}ms`;
15951
- el.style.top = _index % rows.value * (height + top.value) + 20 + "px";
17008
+ el.style.top = _index % rows.value * (height + top2.value) + 20 + "px";
15952
17009
  el.style.width = width + 20 + "px";
15953
17010
  el.style.setProperty("--move-distance", `-${danmuCWidth.value}px`);
15954
17011
  el.dataset.index = `${_index}`;
@@ -17550,12 +18607,14 @@ const _sfc_main$6 = create$6({
17550
18607
  fullAddress: "\u5317\u4EAC\u5E02\u901A\u5DDE\u533A\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5"
17551
18608
  });
17552
18609
  const trowelData = () => {
18610
+ console.log("props.data", props.data);
17553
18611
  if (Object.keys(props.dataMapOptions).length > 0 && props.data.length > 0) {
17554
18612
  dataArray.value = props.data.map((item, index) => {
17555
18613
  return floatData(dataInfo, item, props.dataMapOptions);
17556
18614
  });
17557
18615
  }
17558
18616
  };
18617
+ watch(() => props.data, () => trowelData(), { deep: true });
17559
18618
  const clickDelIcon = (event, item) => {
17560
18619
  emit("handelDelIcon", event, item);
17561
18620
  event.stopPropagation();
@@ -18289,6 +19348,6 @@ function install(app) {
18289
19348
  }
18290
19349
  });
18291
19350
  }
18292
- const version = "3.1.21-beta.3";
19351
+ const version = "3.1.21";
18293
19352
  var nutui_vue_build = { install, version, Locale };
18294
19353
  export { ActionSheet, Address, AddressList, Audio, AudioOperate, Avatar, AvatarGroup, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cascader, Category, CategoryPane, Cell, CellGroup, _sfc_main$1c as Checkbox, _sfc_main$1b as CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, Comment, CountDown, CountUp, DatePicker, _Dialog as Dialog, Divider, Drag, Ecard, Elevator, Empty, FixedNav, Form, FormItem, _sfc_main$1y as Grid, GridItem, _sfc_main$1J as Icon, _ImagePreview as ImagePreview, Indicator, InfiniteLoading, Input, InputNumber, _sfc_main$1D as Layout, List, Locale, Menu, MenuItem, Navbar, NoticeBar, NotifyFunction as Notify, NumberKeyboard, OldPicker, OverLay, Pagination, Picker, Popover, Popup, Price, Progress, PullRefresh, _sfc_main$15 as Radio, _sfc_main$14 as RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, SideNavBar, SideNavBarItem, Signature, Skeleton, Sku, Step, _sfc_main$C as Steps, _sfc_main$1A as Sticky, SubSideNavBar, Swipe, Swiper, SwiperItem, Switch, TabPane, Tabbar, TabbarItem, Table, Tabs, Tag, TextArea, TimeDetail, TimePannel, TimeSelect, ToastFunction as Toast, Uploader, Video, nutui_vue_build as default, install, version };