@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.umd.js CHANGED
@@ -31,7 +31,7 @@ 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
  */
@@ -128,6 +128,14 @@ var __objRest = (source, exclude) => {
128
128
  pullTxt: "\u677E\u5F00\u5237\u65B0",
129
129
  loadMoreTxt: "\u54CE\u5440\uFF0C\u8FD9\u91CC\u662F\u5E95\u90E8\u4E86\u5566"
130
130
  };
131
+ this.datepicker = {
132
+ year: "\u5E74",
133
+ month: "\u6708",
134
+ day: "\u65E5",
135
+ hour: "\u65F6",
136
+ min: "\u5206",
137
+ seconds: "\u79D2"
138
+ };
131
139
  }
132
140
  }
133
141
  class Lang extends BaseLang {
@@ -217,6 +225,14 @@ var __objRest = (source, exclude) => {
217
225
  pullTxt: "Loose to refresh",
218
226
  loadMoreTxt: "Oops, this is the bottom"
219
227
  };
228
+ this.datepicker = {
229
+ year: "Year",
230
+ month: "Month",
231
+ day: "Day",
232
+ hour: "Hour",
233
+ min: "Minute",
234
+ seconds: "Second"
235
+ };
220
236
  }
221
237
  }
222
238
  const TypeOfFun = (value) => {
@@ -533,7 +549,8 @@ var __objRest = (source, exclude) => {
533
549
  replace: { type: Boolean, default: false },
534
550
  roundRadius: { type: [String, Number], default: "" },
535
551
  url: { type: String, default: "" },
536
- icon: { type: String, default: "" }
552
+ icon: { type: String, default: "" },
553
+ center: { type: Boolean, default: false }
537
554
  },
538
555
  emits: ["click"],
539
556
  setup(props, { emit }) {
@@ -541,7 +558,8 @@ var __objRest = (source, exclude) => {
541
558
  const prefixCls = componentName$1l;
542
559
  return {
543
560
  [prefixCls]: true,
544
- [`${prefixCls}--clickable`]: props.isLink || props.to
561
+ [`${prefixCls}--clickable`]: props.isLink || props.to,
562
+ [`${prefixCls}--center`]: props.center
545
563
  };
546
564
  });
547
565
  const router = useRouter();
@@ -573,8 +591,8 @@ var __objRest = (source, exclude) => {
573
591
  key: 1,
574
592
  class: "nut-cell__title"
575
593
  };
576
- const _hoisted_3$P = { class: "title" };
577
- const _hoisted_4$E = { class: "nut-cell__title-desc" };
594
+ const _hoisted_3$O = { class: "title" };
595
+ const _hoisted_4$F = { class: "nut-cell__title-desc" };
578
596
  function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
579
597
  const _component_nut_icon = vue.resolveComponent("nut-icon");
580
598
  return vue.openBlock(), vue.createElementBlock("view", {
@@ -592,8 +610,8 @@ var __objRest = (source, exclude) => {
592
610
  ])) : vue.createCommentVNode("", true),
593
611
  _ctx.title || _ctx.subTitle ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$11, [
594
612
  _ctx.subTitle ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
595
- vue.createElementVNode("view", _hoisted_3$P, vue.toDisplayString(_ctx.title), 1),
596
- vue.createElementVNode("view", _hoisted_4$E, vue.toDisplayString(_ctx.subTitle), 1)
613
+ vue.createElementVNode("view", _hoisted_3$O, vue.toDisplayString(_ctx.title), 1),
614
+ vue.createElementVNode("view", _hoisted_4$F, vue.toDisplayString(_ctx.subTitle), 1)
597
615
  ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
598
616
  vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
599
617
  ], 64))
@@ -638,14 +656,14 @@ var __objRest = (source, exclude) => {
638
656
  key: 3,
639
657
  class: "nut-cell-group__desc"
640
658
  };
641
- const _hoisted_3$O = { class: "nut-cell-group__warp" };
659
+ const _hoisted_3$N = { class: "nut-cell-group__warp" };
642
660
  function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
643
661
  return vue.openBlock(), vue.createElementBlock("view", {
644
662
  class: vue.normalizeClass(_ctx.classes)
645
663
  }, [
646
664
  _ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1e, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
647
665
  _ctx.$slots.desc ? vue.renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$10, vue.toDisplayString(_ctx.desc), 1)) : vue.createCommentVNode("", true),
648
- vue.createElementVNode("view", _hoisted_3$O, [
666
+ vue.createElementVNode("view", _hoisted_3$N, [
649
667
  vue.renderSlot(_ctx.$slots, "default")
650
668
  ])
651
669
  ], 2);
@@ -821,6 +839,7 @@ var __objRest = (source, exclude) => {
821
839
  props: __spreadValues({}, popupProps),
822
840
  emits: ["click", "click-close-icon", "open", "close", "opend", "closed", "update:visible", "click-overlay"],
823
841
  setup(props, { emit }) {
842
+ const popupRef = vue.ref();
824
843
  const state = vue.reactive({
825
844
  zIndex: props.zIndex ? props.zIndex : _zIndex,
826
845
  showSlot: true,
@@ -935,7 +954,8 @@ var __objRest = (source, exclude) => {
935
954
  onClickCloseIcon,
936
955
  onClickOverlay,
937
956
  onOpened,
938
- onClosed
957
+ onClosed,
958
+ popupRef
939
959
  });
940
960
  }
941
961
  });
@@ -967,7 +987,8 @@ var __objRest = (source, exclude) => {
967
987
  vue.withDirectives(vue.createElementVNode("view", {
968
988
  class: vue.normalizeClass(_ctx.classes),
969
989
  style: vue.normalizeStyle(_ctx.popStyle),
970
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
990
+ onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
991
+ ref: "popupRef"
971
992
  }, [
972
993
  _ctx.showSlot ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : vue.createCommentVNode("", true),
973
994
  _ctx.closed ? (vue.openBlock(), vue.createElementBlock("view", {
@@ -1101,7 +1122,7 @@ var __objRest = (source, exclude) => {
1101
1122
  type: String,
1102
1123
  default: "flex-start"
1103
1124
  },
1104
- wrap: {
1125
+ flexWrap: {
1105
1126
  type: String,
1106
1127
  default: "nowrap"
1107
1128
  }
@@ -1118,7 +1139,7 @@ var __objRest = (source, exclude) => {
1118
1139
  ${getClass("", props.type)}
1119
1140
  ${getClass("justify", props.justify)}
1120
1141
  ${getClass("align", props.align)}
1121
- ${getClass("flex", props.wrap)}
1142
+ ${getClass("flex", props.flexWrap)}
1122
1143
  ${prefixCls}
1123
1144
  `;
1124
1145
  };
@@ -1217,14 +1238,14 @@ var __objRest = (source, exclude) => {
1217
1238
  const style = {
1218
1239
  width: `${state.width}px`,
1219
1240
  height: `${state.height}px`,
1220
- [props.position]: `${offset.value}px`,
1241
+ [props.position]: `${offset2.value}px`,
1221
1242
  zIndex: +props.zIndex
1222
1243
  };
1223
1244
  if (state.transform)
1224
1245
  style.transform = `translate3d(0, ${state.transform}px, 0)`;
1225
1246
  return style;
1226
1247
  });
1227
- const offset = vue.computed(() => {
1248
+ const offset2 = vue.computed(() => {
1228
1249
  return props.position === "top" ? props.top : props.bottom;
1229
1250
  });
1230
1251
  const isHidden = (elementRef) => {
@@ -1264,21 +1285,21 @@ var __objRest = (source, exclude) => {
1264
1285
  if (position === "top") {
1265
1286
  if (container) {
1266
1287
  const containerRect = useRect(container);
1267
- const diff = containerRect.bottom - +offset.value - state.height;
1268
- state.fixed = +offset.value > rootRect.top && containerRect.bottom > 0;
1288
+ const diff = containerRect.bottom - +offset2.value - state.height;
1289
+ state.fixed = +offset2.value > rootRect.top && containerRect.bottom > 0;
1269
1290
  state.transform = diff < 0 ? diff : 0;
1270
1291
  } else {
1271
- state.fixed = offset.value > rootRect.top;
1292
+ state.fixed = offset2.value > rootRect.top;
1272
1293
  }
1273
1294
  } else if (position === "bottom") {
1274
1295
  const clientHeight = document.documentElement.clientHeight;
1275
1296
  if (container) {
1276
1297
  const containerRect = useRect(container);
1277
- const diff = clientHeight - containerRect.top - +offset.value - state.height;
1278
- state.fixed = clientHeight - +offset.value < rootRect.bottom && clientHeight > containerRect.top;
1298
+ const diff = clientHeight - containerRect.top - +offset2.value - state.height;
1299
+ state.fixed = clientHeight - +offset2.value < rootRect.bottom && clientHeight > containerRect.top;
1279
1300
  state.transform = diff < 0 ? -diff : 0;
1280
1301
  } else {
1281
- state.fixed = clientHeight - +offset.value < rootRect.bottom;
1302
+ state.fixed = clientHeight - +offset2.value < rootRect.bottom;
1282
1303
  }
1283
1304
  }
1284
1305
  emit("scroll", {
@@ -1318,30 +1339,48 @@ var __objRest = (source, exclude) => {
1318
1339
  hairline: {
1319
1340
  type: Boolean,
1320
1341
  default: true
1342
+ },
1343
+ direction: {
1344
+ type: String,
1345
+ default: "horizontal"
1321
1346
  }
1322
1347
  },
1323
1348
  components: {},
1324
1349
  setup(props, context) {
1325
1350
  const classes = vue.computed(() => {
1326
1351
  const prefixCls = componentName$1e;
1327
- return {
1328
- [prefixCls]: true,
1329
- [`${prefixCls}-center`]: context.slots.default,
1330
- [`${prefixCls}-left`]: props.contentPosition === "left",
1331
- [`${prefixCls}-right`]: props.contentPosition === "right",
1332
- [`${prefixCls}-dashed`]: props.dashed,
1333
- [`${prefixCls}-hairline`]: props.hairline
1352
+ let defaultClassesObj = {
1353
+ [prefixCls]: true
1334
1354
  };
1355
+ let classesObj = {};
1356
+ if (props.direction === "horizontal") {
1357
+ classesObj = __spreadProps(__spreadValues({}, defaultClassesObj), {
1358
+ [`${prefixCls}-center`]: context.slots.default,
1359
+ [`${prefixCls}-left`]: props.contentPosition === "left",
1360
+ [`${prefixCls}-right`]: props.contentPosition === "right",
1361
+ [`${prefixCls}-dashed`]: props.dashed,
1362
+ [`${prefixCls}-hairline`]: props.hairline
1363
+ });
1364
+ } else {
1365
+ classesObj = __spreadProps(__spreadValues({}, defaultClassesObj), {
1366
+ [`${prefixCls}-vertical`]: props.direction === "vertical"
1367
+ });
1368
+ }
1369
+ return classesObj;
1335
1370
  });
1336
1371
  return { classes };
1337
1372
  }
1338
1373
  });
1339
1374
  function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
1340
- return vue.openBlock(), vue.createElementBlock("div", {
1375
+ return _ctx.direction === "horizontal" ? (vue.openBlock(), vue.createElementBlock("view", {
1376
+ key: 0,
1341
1377
  class: vue.normalizeClass(_ctx.classes)
1342
1378
  }, [
1343
1379
  vue.renderSlot(_ctx.$slots, "default")
1344
- ], 2);
1380
+ ], 2)) : (vue.openBlock(), vue.createElementBlock("view", {
1381
+ key: 1,
1382
+ class: vue.normalizeClass(_ctx.classes)
1383
+ }, null, 2));
1345
1384
  }
1346
1385
  var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$1s]]);
1347
1386
  function flattenVNodes(children, childName) {
@@ -1616,6 +1655,7 @@ var __objRest = (source, exclude) => {
1616
1655
  leftShow: { type: Boolean, default: true },
1617
1656
  title: { type: String, default: "" },
1618
1657
  titIcon: { type: String, default: "" },
1658
+ leftText: { type: String, default: "" },
1619
1659
  desc: { type: String, default: "" },
1620
1660
  fixed: {
1621
1661
  type: Boolean,
@@ -1624,19 +1664,49 @@ var __objRest = (source, exclude) => {
1624
1664
  safeAreaInsetTop: {
1625
1665
  type: Boolean,
1626
1666
  default: false
1667
+ },
1668
+ border: {
1669
+ type: Boolean,
1670
+ default: false
1671
+ },
1672
+ placeholder: {
1673
+ type: Boolean,
1674
+ default: true
1675
+ },
1676
+ zIndex: {
1677
+ type: [Number, String],
1678
+ default: 10
1627
1679
  }
1628
1680
  },
1629
1681
  emits: ["on-click-back", "on-click-title", "on-click-icon", "on-click-right"],
1630
1682
  setup(props, { emit }) {
1631
- const { fixed, safeAreaInsetTop } = vue.toRefs(props);
1683
+ const { border, fixed, safeAreaInsetTop, placeholder, zIndex } = vue.toRefs(props);
1684
+ const navBarWrap = vue.ref(null);
1685
+ const navBarHtml = vue.ref(null);
1686
+ let navHeight = vue.ref(0);
1632
1687
  const classes = vue.computed(() => {
1633
1688
  const prefixCls = componentName$1b;
1634
1689
  return {
1635
1690
  [prefixCls]: true,
1691
+ [`${prefixCls}--border`]: border.value,
1636
1692
  [`${prefixCls}--fixed`]: fixed.value,
1637
1693
  [`${prefixCls}--safe-area-inset-top`]: safeAreaInsetTop.value
1638
1694
  };
1639
1695
  });
1696
+ const styles = vue.computed(() => {
1697
+ return {
1698
+ zIndex: zIndex.value
1699
+ };
1700
+ });
1701
+ vue.onMounted(() => {
1702
+ if (fixed.value && placeholder.value) {
1703
+ vue.nextTick(() => {
1704
+ var _a;
1705
+ navHeight = (_a = navBarHtml == null ? void 0 : navBarHtml.value) == null ? void 0 : _a.getBoundingClientRect().height;
1706
+ navBarWrap.value.style.height = navHeight + "px";
1707
+ });
1708
+ }
1709
+ });
1640
1710
  function handleLeft() {
1641
1711
  emit("on-click-back");
1642
1712
  }
@@ -1650,7 +1720,10 @@ var __objRest = (source, exclude) => {
1650
1720
  emit("on-click-right");
1651
1721
  }
1652
1722
  return {
1723
+ navBarWrap,
1724
+ navBarHtml,
1653
1725
  classes,
1726
+ styles,
1654
1727
  handleLeft,
1655
1728
  handleCenter,
1656
1729
  handleCenterIcon,
@@ -1658,28 +1731,93 @@ var __objRest = (source, exclude) => {
1658
1731
  };
1659
1732
  }
1660
1733
  });
1661
- const _hoisted_1$1b = { class: "nut-navbar__left" };
1662
- const _hoisted_2$$ = { class: "nut-navbar__title" };
1663
- const _hoisted_3$N = { class: "nut-navbar__right" };
1734
+ const _hoisted_1$1b = {
1735
+ key: 0,
1736
+ class: "nut-navbar--placeholder",
1737
+ ref: "navBarWrap"
1738
+ };
1739
+ const _hoisted_2$$ = {
1740
+ key: 1,
1741
+ class: "nut-navbar__text"
1742
+ };
1743
+ const _hoisted_3$M = { class: "nut-navbar__title" };
1744
+ const _hoisted_4$E = {
1745
+ key: 0,
1746
+ class: "nut-navbar__text"
1747
+ };
1748
+ const _hoisted_5$s = {
1749
+ key: 1,
1750
+ class: "nut-navbar__text"
1751
+ };
1752
+ const _hoisted_6$o = { class: "nut-navbar__title" };
1753
+ const _hoisted_7$j = {
1754
+ key: 0,
1755
+ class: "nut-navbar__text"
1756
+ };
1664
1757
  function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
1665
1758
  const _component_nut_icon = vue.resolveComponent("nut-icon");
1666
- return vue.openBlock(), vue.createElementBlock("view", {
1667
- class: vue.normalizeClass(_ctx.classes)
1759
+ return _ctx.fixed && _ctx.placeholder ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1b, [
1760
+ vue.createElementVNode("view", {
1761
+ class: vue.normalizeClass(_ctx.classes),
1762
+ style: vue.normalizeStyle(_ctx.styles),
1763
+ ref: "navBarHtml"
1764
+ }, [
1765
+ vue.createElementVNode("view", {
1766
+ class: "nut-navbar__left",
1767
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleLeft && _ctx.handleLeft(...args))
1768
+ }, [
1769
+ _ctx.leftShow ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
1770
+ key: 0,
1771
+ color: "#979797",
1772
+ name: "left"
1773
+ })) : vue.createCommentVNode("", true),
1774
+ _ctx.leftText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$$, vue.toDisplayString(_ctx.leftText), 1)) : vue.createCommentVNode("", true),
1775
+ vue.renderSlot(_ctx.$slots, "left")
1776
+ ]),
1777
+ vue.createElementVNode("view", _hoisted_3$M, [
1778
+ _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", {
1779
+ key: 0,
1780
+ class: "title",
1781
+ onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
1782
+ }, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
1783
+ _ctx.titIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
1784
+ key: 1,
1785
+ class: "icon",
1786
+ name: _ctx.titIcon,
1787
+ onClick: _ctx.handleCenterIcon
1788
+ }, null, 8, ["name", "onClick"])) : vue.createCommentVNode("", true),
1789
+ vue.renderSlot(_ctx.$slots, "content")
1790
+ ]),
1791
+ vue.createElementVNode("view", {
1792
+ class: "nut-navbar__right",
1793
+ onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
1794
+ }, [
1795
+ _ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$E, vue.toDisplayString(_ctx.desc), 1)) : vue.createCommentVNode("", true),
1796
+ vue.renderSlot(_ctx.$slots, "right")
1797
+ ])
1798
+ ], 6)
1799
+ ], 512)) : (vue.openBlock(), vue.createElementBlock("view", {
1800
+ key: 1,
1801
+ class: vue.normalizeClass(_ctx.classes),
1802
+ style: vue.normalizeStyle(_ctx.styles)
1668
1803
  }, [
1669
- vue.createElementVNode("view", _hoisted_1$1b, [
1804
+ vue.createElementVNode("view", {
1805
+ class: "nut-navbar__left",
1806
+ onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleLeft && _ctx.handleLeft(...args))
1807
+ }, [
1670
1808
  _ctx.leftShow ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
1671
1809
  key: 0,
1672
1810
  color: "#979797",
1673
- name: "left",
1674
- onClick: _ctx.handleLeft
1675
- }, null, 8, ["onClick"])) : vue.createCommentVNode("", true),
1811
+ name: "left"
1812
+ })) : vue.createCommentVNode("", true),
1813
+ _ctx.leftText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$s, vue.toDisplayString(_ctx.leftText), 1)) : vue.createCommentVNode("", true),
1676
1814
  vue.renderSlot(_ctx.$slots, "left")
1677
1815
  ]),
1678
- vue.createElementVNode("view", _hoisted_2$$, [
1816
+ vue.createElementVNode("view", _hoisted_6$o, [
1679
1817
  _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", {
1680
1818
  key: 0,
1681
1819
  class: "title",
1682
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
1820
+ onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
1683
1821
  }, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
1684
1822
  _ctx.titIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
1685
1823
  key: 1,
@@ -1689,18 +1827,17 @@ var __objRest = (source, exclude) => {
1689
1827
  }, null, 8, ["name", "onClick"])) : vue.createCommentVNode("", true),
1690
1828
  vue.renderSlot(_ctx.$slots, "content")
1691
1829
  ]),
1692
- vue.createElementVNode("view", _hoisted_3$N, [
1693
- _ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", {
1694
- key: 0,
1695
- class: "right_text",
1696
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
1697
- }, vue.toDisplayString(_ctx.desc), 1)) : vue.createCommentVNode("", true),
1830
+ vue.createElementVNode("view", {
1831
+ class: "nut-navbar__right",
1832
+ onClick: _cache[5] || (_cache[5] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
1833
+ }, [
1834
+ _ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$j, vue.toDisplayString(_ctx.desc), 1)) : vue.createCommentVNode("", true),
1698
1835
  vue.renderSlot(_ctx.$slots, "right")
1699
1836
  ])
1700
- ], 2);
1837
+ ], 6));
1701
1838
  }
1702
1839
  var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["render", _sfc_render$1q]]);
1703
- const { componentName: componentName$1a, create: create$1v, translate: translate$p } = createComponent("fixednav");
1840
+ const { componentName: componentName$1a, create: create$1v, translate: translate$r } = createComponent("fixednav");
1704
1841
  const _sfc_main$1v = create$1v({
1705
1842
  components: {
1706
1843
  [OverLay.name]: OverLay
@@ -1759,18 +1896,18 @@ var __objRest = (source, exclude) => {
1759
1896
  event
1760
1897
  });
1761
1898
  };
1762
- return { classes, updateValue, selected, translate: translate$p };
1899
+ return { classes, updateValue, selected, translate: translate$r };
1763
1900
  }
1764
1901
  });
1765
1902
  const _hoisted_1$1a = { class: "nut-fixednav__list" };
1766
1903
  const _hoisted_2$_ = ["onClick"];
1767
- const _hoisted_3$M = ["src"];
1904
+ const _hoisted_3$L = ["src"];
1768
1905
  const _hoisted_4$D = { class: "span" };
1769
1906
  const _hoisted_5$r = {
1770
1907
  key: 0,
1771
1908
  class: "b"
1772
1909
  };
1773
- const _hoisted_6$o = { class: "text" };
1910
+ const _hoisted_6$n = { class: "text" };
1774
1911
  function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
1775
1912
  const _component_nut_overlay = vue.resolveComponent("nut-overlay");
1776
1913
  const _component_nut_icon = vue.resolveComponent("nut-icon");
@@ -1794,7 +1931,7 @@ var __objRest = (source, exclude) => {
1794
1931
  }, [
1795
1932
  vue.createElementVNode("img", {
1796
1933
  src: item.icon
1797
- }, null, 8, _hoisted_3$M),
1934
+ }, null, 8, _hoisted_3$L),
1798
1935
  vue.createElementVNode("view", _hoisted_4$D, vue.toDisplayString(item.text), 1),
1799
1936
  item.num ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$r, vue.toDisplayString(item.num), 1)) : vue.createCommentVNode("", true)
1800
1937
  ], 8, _hoisted_2$_);
@@ -1810,7 +1947,7 @@ var __objRest = (source, exclude) => {
1810
1947
  name: "left",
1811
1948
  color: "#fff"
1812
1949
  }),
1813
- vue.createElementVNode("view", _hoisted_6$o, vue.toDisplayString(_ctx.visible ? _ctx.activeText || _ctx.translate("activeText") : _ctx.unActiveText || _ctx.translate("unActiveText")), 1)
1950
+ vue.createElementVNode("view", _hoisted_6$n, vue.toDisplayString(_ctx.visible ? _ctx.activeText || _ctx.translate("activeText") : _ctx.unActiveText || _ctx.translate("unActiveText")), 1)
1814
1951
  ])
1815
1952
  ])
1816
1953
  ], 6);
@@ -1830,11 +1967,15 @@ var __objRest = (source, exclude) => {
1830
1967
  duration: {
1831
1968
  type: [Number, String],
1832
1969
  default: 0
1970
+ },
1971
+ closeOnClickOverlay: {
1972
+ type: Boolean,
1973
+ default: true
1833
1974
  }
1834
1975
  },
1835
1976
  setup(props, { emit, slots }) {
1836
1977
  const barRef = vue.ref();
1837
- const offset = vue.ref(0);
1978
+ const offset2 = vue.ref(0);
1838
1979
  const useChildren = () => {
1839
1980
  const publicChildren = vue.reactive([]);
1840
1981
  const internalChildren = vue.reactive([]);
@@ -1867,10 +2008,10 @@ var __objRest = (source, exclude) => {
1867
2008
  const updateOffset = () => {
1868
2009
  if (barRef.value) {
1869
2010
  const rect = useRect(barRef);
1870
- offset.value = rect.bottom;
2011
+ offset2.value = rect.bottom;
1871
2012
  }
1872
2013
  };
1873
- linkChildren({ props, offset });
2014
+ linkChildren({ props, offset: offset2 });
1874
2015
  const toggleItem = (active) => {
1875
2016
  children.forEach((item, index) => {
1876
2017
  if (index === active) {
@@ -2049,7 +2190,8 @@ var __objRest = (source, exclude) => {
2049
2190
  overlayClass: "nut-menu__overlay",
2050
2191
  overlay: _ctx.parent.props.overlay,
2051
2192
  onClosed: _ctx.handleClose,
2052
- isWrapTeleport: false
2193
+ isWrapTeleport: false,
2194
+ "close-on-click-overlay": _ctx.parent.props.closeOnClickOverlay
2053
2195
  }), {
2054
2196
  default: vue.withCtx(() => [
2055
2197
  vue.createElementVNode("view", _hoisted_1$18, [
@@ -2074,7 +2216,7 @@ var __objRest = (source, exclude) => {
2074
2216
  ])
2075
2217
  ]),
2076
2218
  _: 3
2077
- }, 16, ["style", "overlayStyle", "visible", "duration", "overlay", "onClosed"])
2219
+ }, 16, ["style", "overlayStyle", "visible", "duration", "overlay", "onClosed", "close-on-click-overlay"])
2078
2220
  ], 2)), [
2079
2221
  [vue.vShow, _ctx.state.showWrapper]
2080
2222
  ]);
@@ -2221,6 +2363,7 @@ var __objRest = (source, exclude) => {
2221
2363
  setTimeout(() => {
2222
2364
  if (parent.children[value].href) {
2223
2365
  window.location.href = parent.children[value].href;
2366
+ return;
2224
2367
  }
2225
2368
  if (parent.children[value].to) {
2226
2369
  let to = parent.children[value].to;
@@ -2243,7 +2386,7 @@ var __objRest = (source, exclude) => {
2243
2386
  key: 0,
2244
2387
  class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_num"
2245
2388
  };
2246
- const _hoisted_3$L = {
2389
+ const _hoisted_3$K = {
2247
2390
  key: 1,
2248
2391
  class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums"
2249
2392
  };
@@ -2252,7 +2395,7 @@ var __objRest = (source, exclude) => {
2252
2395
  class: "nut-tabbar-item_icon-box_dot"
2253
2396
  };
2254
2397
  const _hoisted_5$q = { key: 2 };
2255
- const _hoisted_6$n = { key: 0 };
2398
+ const _hoisted_6$m = { key: 0 };
2256
2399
  function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
2257
2400
  const _component_nut_icon = vue.resolveComponent("nut-icon");
2258
2401
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -2264,7 +2407,7 @@ var __objRest = (source, exclude) => {
2264
2407
  }, [
2265
2408
  vue.createElementVNode("view", _hoisted_1$17, [
2266
2409
  !_ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
2267
- _ctx.num && _ctx.num <= 99 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$X, vue.toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$L, vue.toDisplayString("99+"))) : vue.createCommentVNode("", true)
2410
+ _ctx.num && _ctx.num <= 99 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$X, vue.toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$K, vue.toDisplayString("99+"))) : vue.createCommentVNode("", true)
2268
2411
  ], 64)) : vue.createCommentVNode("", true),
2269
2412
  _ctx.dot ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$C)) : vue.createCommentVNode("", true),
2270
2413
  _ctx.icon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$q, [
@@ -2288,7 +2431,7 @@ var __objRest = (source, exclude) => {
2288
2431
  vue.createElementVNode("view", {
2289
2432
  class: vue.normalizeClass(["nut-tabbar-item_icon-box_nav-word", { "nut-tabbar-item_icon-box_big-word": !_ctx.icon && !_ctx.activeImg }])
2290
2433
  }, [
2291
- _ctx.tabTitle ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$n, vue.toDisplayString(_ctx.tabTitle), 1)) : vue.createCommentVNode("", true),
2434
+ _ctx.tabTitle ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$m, vue.toDisplayString(_ctx.tabTitle), 1)) : vue.createCommentVNode("", true),
2292
2435
  !_ctx.tabTitle ? vue.renderSlot(_ctx.$slots, "default", { key: 1 }) : vue.createCommentVNode("", true)
2293
2436
  ], 2)
2294
2437
  ])
@@ -2333,7 +2476,8 @@ var __objRest = (source, exclude) => {
2333
2476
  },
2334
2477
  scrollStart: false,
2335
2478
  currentIndex: 0,
2336
- currentData: {}
2479
+ currentData: {},
2480
+ currentKey: ""
2337
2481
  });
2338
2482
  const classes = vue.computed(() => {
2339
2483
  const prefixCls = componentName$17;
@@ -2376,9 +2520,6 @@ var __objRest = (source, exclude) => {
2376
2520
  if (!index && index !== 0) {
2377
2521
  return;
2378
2522
  }
2379
- if (!state.listHeight.length) {
2380
- calculateHeight();
2381
- }
2382
2523
  if (index < 0)
2383
2524
  index = 0;
2384
2525
  if (index > state.listHeight.length - 2)
@@ -2408,6 +2549,7 @@ var __objRest = (source, exclude) => {
2408
2549
  const handleClickItem = (key, item) => {
2409
2550
  context.emit("click-item", key, item);
2410
2551
  state.currentData = item;
2552
+ state.currentKey = key;
2411
2553
  };
2412
2554
  const handleClickIndex = (key) => {
2413
2555
  context.emit("click-index", key);
@@ -2415,6 +2557,10 @@ var __objRest = (source, exclude) => {
2415
2557
  useExpose({
2416
2558
  scrollTo
2417
2559
  });
2560
+ vue.watch(() => state.listGroup.length, () => {
2561
+ state.listHeight = [];
2562
+ vue.nextTick(calculateHeight);
2563
+ });
2418
2564
  return __spreadProps(__spreadValues({
2419
2565
  classes
2420
2566
  }, vue.toRefs(state)), {
@@ -2430,7 +2576,7 @@ var __objRest = (source, exclude) => {
2430
2576
  });
2431
2577
  const _hoisted_1$16 = { class: "nut-elevator__list__item__code" };
2432
2578
  const _hoisted_2$W = ["onClick", "innerHTML"];
2433
- const _hoisted_3$K = { class: "nut-elevator__bars__inner" };
2579
+ const _hoisted_3$J = { class: "nut-elevator__bars__inner" };
2434
2580
  const _hoisted_4$B = ["data-index", "onClick"];
2435
2581
  function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
2436
2582
  return vue.openBlock(), vue.createElementBlock("view", {
@@ -2445,19 +2591,20 @@ var __objRest = (source, exclude) => {
2445
2591
  return vue.openBlock(), vue.createElementBlock("view", {
2446
2592
  class: "nut-elevator__list__item",
2447
2593
  key: item[_ctx.acceptKey],
2448
- ref_for: true,
2449
2594
  ref: _ctx.setListGroup
2450
2595
  }, [
2451
2596
  vue.createElementVNode("view", _hoisted_1$16, vue.toDisplayString(item[_ctx.acceptKey]), 1),
2452
2597
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.list, (subitem) => {
2453
2598
  return vue.openBlock(), vue.createElementBlock("view", {
2454
- class: vue.normalizeClass(["nut-elevator__list__item__name", { "nut-elevator__list__item__name--highcolor": _ctx.currentData.id === subitem.id }]),
2599
+ class: vue.normalizeClass(["nut-elevator__list__item__name", {
2600
+ "nut-elevator__list__item__name--highcolor": _ctx.currentData.id === subitem.id && _ctx.currentKey === item[_ctx.acceptKey]
2601
+ }]),
2455
2602
  key: subitem["id"],
2456
2603
  onClick: ($event) => _ctx.handleClickItem(item[_ctx.acceptKey], subitem),
2457
2604
  innerHTML: subitem.name
2458
2605
  }, null, 10, _hoisted_2$W);
2459
2606
  }), 128))
2460
- ]);
2607
+ ], 512);
2461
2608
  }), 128))
2462
2609
  ], 4),
2463
2610
  _ctx.indexList.length ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("view", {
@@ -2472,7 +2619,7 @@ var __objRest = (source, exclude) => {
2472
2619
  onTouchmove: _cache[1] || (_cache[1] = vue.withModifiers((...args) => _ctx.touchMove && _ctx.touchMove(...args), ["stop", "prevent"])),
2473
2620
  onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
2474
2621
  }, [
2475
- vue.createElementVNode("view", _hoisted_3$K, [
2622
+ vue.createElementVNode("view", _hoisted_3$J, [
2476
2623
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.indexList, (item, index) => {
2477
2624
  return vue.openBlock(), vue.createElementBlock("view", {
2478
2625
  class: "nut-elevator__bars__inner__item",
@@ -2486,7 +2633,7 @@ var __objRest = (source, exclude) => {
2486
2633
  ], 2);
2487
2634
  }
2488
2635
  var Elevator = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["render", _sfc_render$1k]]);
2489
- const { componentName: componentName$16, create: create$1p, translate: translate$o } = createComponent("pagination");
2636
+ const { componentName: componentName$16, create: create$1p, translate: translate$q } = createComponent("pagination");
2490
2637
  const _sfc_main$1p = create$1p({
2491
2638
  props: {
2492
2639
  modelValue: {
@@ -2589,7 +2736,7 @@ var __objRest = (source, exclude) => {
2589
2736
  mode,
2590
2737
  pages,
2591
2738
  forceEllipses,
2592
- translate: translate$o
2739
+ translate: translate$q
2593
2740
  };
2594
2741
  }
2595
2742
  });
@@ -2598,7 +2745,7 @@ var __objRest = (source, exclude) => {
2598
2745
  key: 0,
2599
2746
  class: "nut-pagination-contain"
2600
2747
  };
2601
- const _hoisted_3$J = ["onClick"];
2748
+ const _hoisted_3$I = ["onClick"];
2602
2749
  const _hoisted_4$A = {
2603
2750
  key: 1,
2604
2751
  class: "nut-pagination-contain"
@@ -2624,7 +2771,7 @@ var __objRest = (source, exclude) => {
2624
2771
  vue.renderSlot(_ctx.$slots, "page", { item }, () => [
2625
2772
  vue.createTextVNode(vue.toDisplayString(item.text), 1)
2626
2773
  ])
2627
- ], 10, _hoisted_3$J);
2774
+ ], 10, _hoisted_3$I);
2628
2775
  }), 128))
2629
2776
  ])) : vue.createCommentVNode("", true),
2630
2777
  _ctx.mode == "simple" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$A, [
@@ -2678,6 +2825,10 @@ var __objRest = (source, exclude) => {
2678
2825
  type: Boolean,
2679
2826
  default: true
2680
2827
  },
2828
+ autoHeight: {
2829
+ type: Boolean,
2830
+ default: false
2831
+ },
2681
2832
  background: {
2682
2833
  type: String,
2683
2834
  default: ""
@@ -2695,18 +2846,19 @@ var __objRest = (source, exclude) => {
2695
2846
  emits: ["update:modelValue", "click", "change"],
2696
2847
  setup(props, { emit, slots }) {
2697
2848
  vue.provide("activeKey", { activeKey: vue.computed(() => props.modelValue) });
2849
+ vue.provide("autoHeight", { autoHeight: vue.computed(() => props.autoHeight) });
2698
2850
  const titles = vue.ref([]);
2699
2851
  const renderTitles = (vnodes) => {
2700
2852
  vnodes.forEach((vnode, index) => {
2701
- var _a, _b, _c, _d, _e;
2853
+ var _a, _b, _c, _d, _e, _f, _g;
2702
2854
  let type = vnode.type;
2703
2855
  type = type.name || type;
2704
2856
  if (type == "nut-tabpane") {
2705
2857
  let title = new Title();
2706
- if (((_a = vnode.props) == null ? void 0 : _a.title) || ((_b = vnode.props) == null ? void 0 : _b["pane-key"])) {
2707
- title.title = (_c = vnode.props) == null ? void 0 : _c.title;
2708
- title.paneKey = ((_d = vnode.props) == null ? void 0 : _d["pane-key"]) || index;
2709
- title.disabled = (_e = vnode.props) == null ? void 0 : _e.disabled;
2858
+ 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"])) {
2859
+ title.title = (_d = vnode.props) == null ? void 0 : _d.title;
2860
+ title.paneKey = ((_e = vnode.props) == null ? void 0 : _e["pane-key"]) || ((_f = vnode.props) == null ? void 0 : _f["paneKey"]) || index;
2861
+ title.disabled = (_g = vnode.props) == null ? void 0 : _g.disabled;
2710
2862
  }
2711
2863
  titles.value.push(title);
2712
2864
  } else {
@@ -2819,7 +2971,7 @@ var __objRest = (source, exclude) => {
2819
2971
  }, null, 8, ["color"])
2820
2972
  ], 4)) : vue.createCommentVNode("", true),
2821
2973
  vue.createElementVNode("view", {
2822
- class: vue.normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis && !_ctx.titleScroll && _ctx.direction == "horizontal" }])
2974
+ class: vue.normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis }])
2823
2975
  }, vue.toDisplayString(item.title), 3)
2824
2976
  ], 14, _hoisted_1$14);
2825
2977
  }), 128))
@@ -2854,12 +3006,16 @@ var __objRest = (source, exclude) => {
2854
3006
  emits: ["click"],
2855
3007
  setup(props, { emit }) {
2856
3008
  const parent = vue.inject("activeKey");
2857
- return { activeKey: parent.activeKey };
3009
+ const parentOption = vue.inject("autoHeight");
3010
+ return {
3011
+ activeKey: parent.activeKey,
3012
+ autoHeight: parentOption.autoHeight
3013
+ };
2858
3014
  }
2859
3015
  });
2860
3016
  function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
2861
3017
  return vue.openBlock(), vue.createElementBlock("view", {
2862
- class: vue.normalizeClass(["nut-tabpane", { active: _ctx.paneKey == _ctx.activeKey }])
3018
+ class: vue.normalizeClass(["nut-tabpane", { inactive: _ctx.paneKey != _ctx.activeKey && _ctx.autoHeight }])
2863
3019
  }, [
2864
3020
  vue.renderSlot(_ctx.$slots, "default")
2865
3021
  ], 2);
@@ -3087,7 +3243,7 @@ var __objRest = (source, exclude) => {
3087
3243
  });
3088
3244
  const _hoisted_1$11 = ["ikey"];
3089
3245
  const _hoisted_2$S = { class: "nut-subsidenavbar__title__text" };
3090
- const _hoisted_3$I = { class: "nut-subsidenavbar__title__icon" };
3246
+ const _hoisted_3$H = { class: "nut-subsidenavbar__title__icon" };
3091
3247
  function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
3092
3248
  const _component_nut_icon = vue.resolveComponent("nut-icon");
3093
3249
  return vue.openBlock(), vue.createElementBlock("view", {
@@ -3099,7 +3255,7 @@ var __objRest = (source, exclude) => {
3099
3255
  onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
3100
3256
  }, [
3101
3257
  vue.createElementVNode("span", _hoisted_2$S, vue.toDisplayString(_ctx.title), 1),
3102
- vue.createElementVNode("span", _hoisted_3$I, [
3258
+ vue.createElementVNode("span", _hoisted_3$H, [
3103
3259
  vue.createVNode(_component_nut_icon, {
3104
3260
  name: "down-arrow",
3105
3261
  class: vue.normalizeClass(_ctx.direction)
@@ -3142,7 +3298,7 @@ var __objRest = (source, exclude) => {
3142
3298
  offsetY.value = 0;
3143
3299
  direction.value = "";
3144
3300
  };
3145
- const start = (event) => {
3301
+ const start2 = (event) => {
3146
3302
  reset();
3147
3303
  startX.value = event.touches[0].clientX;
3148
3304
  startY.value = event.touches[0].clientY;
@@ -3159,7 +3315,7 @@ var __objRest = (source, exclude) => {
3159
3315
  };
3160
3316
  return {
3161
3317
  move,
3162
- start,
3318
+ start: start2,
3163
3319
  reset,
3164
3320
  startX,
3165
3321
  startY,
@@ -3295,9 +3451,9 @@ var __objRest = (source, exclude) => {
3295
3451
  let lowerBound = Number(min);
3296
3452
  let upperBound = Number(max);
3297
3453
  if (props.range) {
3298
- const [left, right] = modelValue;
3299
- lowerBound = left;
3300
- upperBound = right;
3454
+ const [left2, right2] = modelValue;
3455
+ lowerBound = left2;
3456
+ upperBound = right2;
3301
3457
  } else {
3302
3458
  upperBound = modelValue;
3303
3459
  }
@@ -3324,9 +3480,9 @@ var __objRest = (source, exclude) => {
3324
3480
  let lowerBound = Number(min);
3325
3481
  let upperBound = Number(max);
3326
3482
  if (props.range) {
3327
- const [left, right] = modelValue;
3328
- lowerBound = left;
3329
- upperBound = right;
3483
+ const [left2, right2] = modelValue;
3484
+ lowerBound = left2;
3485
+ upperBound = right2;
3330
3486
  }
3331
3487
  let isActive = mark <= upperBound && mark >= lowerBound;
3332
3488
  let style = {
@@ -3346,7 +3502,7 @@ var __objRest = (source, exclude) => {
3346
3502
  }
3347
3503
  return value;
3348
3504
  };
3349
- const updateValue = (value, end) => {
3505
+ const updateValue = (value, end2) => {
3350
3506
  if (isRange(value)) {
3351
3507
  value = handleOverlap(value).map(format);
3352
3508
  } else {
@@ -3355,7 +3511,7 @@ var __objRest = (source, exclude) => {
3355
3511
  if (!isSameValue(value, props.modelValue)) {
3356
3512
  emit("update:modelValue", value);
3357
3513
  }
3358
- if (end && !isSameValue(value, startValue)) {
3514
+ if (end2 && !isSameValue(value, startValue)) {
3359
3515
  emit("change", value);
3360
3516
  }
3361
3517
  };
@@ -3373,12 +3529,12 @@ var __objRest = (source, exclude) => {
3373
3529
  }
3374
3530
  const value = Number(min) + delta / total * scope.value;
3375
3531
  if (isRange(modelValue)) {
3376
- const [left, right] = modelValue;
3377
- const middle = (left + right) / 2;
3532
+ const [left2, right2] = modelValue;
3533
+ const middle = (left2 + right2) / 2;
3378
3534
  if (value <= middle) {
3379
- updateValue([value, right], true);
3535
+ updateValue([value, right2], true);
3380
3536
  } else {
3381
- updateValue([left, value], true);
3537
+ updateValue([left2, value], true);
3382
3538
  }
3383
3539
  } else {
3384
3540
  updateValue(value, true);
@@ -3467,13 +3623,13 @@ var __objRest = (source, exclude) => {
3467
3623
  key: 0,
3468
3624
  class: "nut-range-mark"
3469
3625
  };
3470
- const _hoisted_3$H = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
3626
+ const _hoisted_3$G = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
3471
3627
  const _hoisted_4$z = {
3472
3628
  key: 0,
3473
3629
  class: "number"
3474
3630
  };
3475
3631
  const _hoisted_5$o = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax"];
3476
- const _hoisted_6$m = {
3632
+ const _hoisted_6$l = {
3477
3633
  key: 0,
3478
3634
  class: "number"
3479
3635
  };
@@ -3542,7 +3698,7 @@ var __objRest = (source, exclude) => {
3542
3698
  }, [
3543
3699
  !_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$z, vue.toDisplayString(_ctx.curValue(index)), 1)) : vue.createCommentVNode("", true)
3544
3700
  ], 4))
3545
- ], 42, _hoisted_3$H);
3701
+ ], 42, _hoisted_3$G);
3546
3702
  }), 64)) : (vue.openBlock(), vue.createElementBlock("view", {
3547
3703
  key: 1,
3548
3704
  role: "slider",
@@ -3565,7 +3721,7 @@ var __objRest = (source, exclude) => {
3565
3721
  class: "nut-range-button",
3566
3722
  style: vue.normalizeStyle(_ctx.buttonStyle)
3567
3723
  }, [
3568
- !_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$m, vue.toDisplayString(_ctx.curValue()), 1)) : vue.createCommentVNode("", true)
3724
+ !_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$l, vue.toDisplayString(_ctx.curValue()), 1)) : vue.createCommentVNode("", true)
3569
3725
  ], 4))
3570
3726
  ], 40, _hoisted_5$o))
3571
3727
  ], 4)
@@ -3574,7 +3730,7 @@ var __objRest = (source, exclude) => {
3574
3730
  ], 2);
3575
3731
  }
3576
3732
  var Range = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["render", _sfc_render$1d]]);
3577
- const { create: create$1h, translate: translate$n } = createComponent("searchbar");
3733
+ const { create: create$1h, translate: translate$p } = createComponent("searchbar");
3578
3734
  const _sfc_main$1h = create$1h({
3579
3735
  props: {
3580
3736
  modelValue: {
@@ -3583,7 +3739,11 @@ var __objRest = (source, exclude) => {
3583
3739
  },
3584
3740
  inputType: {
3585
3741
  type: String,
3586
- default: "text"
3742
+ default: "textarea"
3743
+ },
3744
+ label: {
3745
+ type: String,
3746
+ default: ""
3587
3747
  },
3588
3748
  maxLength: {
3589
3749
  type: [String, Number],
@@ -3604,9 +3764,35 @@ var __objRest = (source, exclude) => {
3604
3764
  inputBackground: {
3605
3765
  type: String,
3606
3766
  default: ""
3767
+ },
3768
+ autofocus: {
3769
+ type: Boolean,
3770
+ default: false
3771
+ },
3772
+ disabled: {
3773
+ type: Boolean,
3774
+ default: false
3775
+ },
3776
+ readonly: {
3777
+ type: Boolean,
3778
+ default: false
3779
+ },
3780
+ inputAlign: {
3781
+ type: String,
3782
+ default: "left"
3607
3783
  }
3608
3784
  },
3609
- emits: ["change", "update:modelValue", "blur", "focus", "clear", "search"],
3785
+ emits: [
3786
+ "change",
3787
+ "update:modelValue",
3788
+ "blur",
3789
+ "focus",
3790
+ "clear",
3791
+ "search",
3792
+ "click-input",
3793
+ "click-left-icon",
3794
+ "click-right-icon"
3795
+ ],
3610
3796
  setup(props, { emit }) {
3611
3797
  const state = vue.reactive({
3612
3798
  active: false
@@ -3655,7 +3841,29 @@ var __objRest = (source, exclude) => {
3655
3841
  const handleSubmit = () => {
3656
3842
  emit("search", props.modelValue);
3657
3843
  };
3658
- return __spreadProps(__spreadValues({}, vue.toRefs(state)), {
3844
+ const clickInput = (event) => {
3845
+ emit("click-input", event);
3846
+ };
3847
+ const leftIconClick = (event) => {
3848
+ emit("click-left-icon", props.modelValue, event);
3849
+ };
3850
+ const rightIconClick = (event) => {
3851
+ emit("click-right-icon", props.modelValue, event);
3852
+ };
3853
+ const styleSearchbar = vue.computed(() => {
3854
+ return {
3855
+ "text-align": props.inputAlign
3856
+ };
3857
+ });
3858
+ const inputsearch = vue.ref(null);
3859
+ vue.onMounted(() => {
3860
+ if (props.autofocus) {
3861
+ inputsearch.value.focus();
3862
+ }
3863
+ });
3864
+ return __spreadProps(__spreadValues({
3865
+ inputsearch
3866
+ }, vue.toRefs(state)), {
3659
3867
  valueChange,
3660
3868
  valueFocus,
3661
3869
  valueBlur,
@@ -3663,26 +3871,26 @@ var __objRest = (source, exclude) => {
3663
3871
  handleSubmit,
3664
3872
  searchbarStyle,
3665
3873
  inputSearchbarStyle,
3666
- translate: translate$n
3874
+ translate: translate$p,
3875
+ clickInput,
3876
+ leftIconClick,
3877
+ rightIconClick,
3878
+ styleSearchbar
3667
3879
  });
3668
3880
  }
3669
3881
  });
3670
3882
  const _hoisted_1$$ = {
3671
3883
  key: 0,
3672
- class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
3884
+ class: "nut-searchbar__search-label"
3673
3885
  };
3674
3886
  const _hoisted_2$Q = {
3675
- key: 0,
3676
- class: "nut-searchbar__search-icon nut-searchbar__iptleft-search-icon"
3677
- };
3678
- const _hoisted_3$G = { class: "nut-searchbar__input-inner" };
3679
- const _hoisted_4$y = ["type", "maxlength", "placeholder", "value"];
3680
- const _hoisted_5$n = {
3681
3887
  key: 1,
3682
- class: "nut-searchbar__search-icon nut-searchbar__iptright-sarch-icon"
3888
+ class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
3683
3889
  };
3684
- const _hoisted_6$l = {
3685
- key: 1,
3890
+ const _hoisted_3$F = { class: "nut-searchbar__input-inner" };
3891
+ const _hoisted_4$y = ["type", "maxlength", "placeholder", "value", "disabled", "readonly"];
3892
+ const _hoisted_5$n = {
3893
+ key: 2,
3686
3894
  class: "nut-searchbar__search-icon nut-searchbar__right-search-icon"
3687
3895
  };
3688
3896
  function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
@@ -3691,35 +3899,45 @@ var __objRest = (source, exclude) => {
3691
3899
  class: "nut-searchbar",
3692
3900
  style: vue.normalizeStyle(_ctx.searchbarStyle)
3693
3901
  }, [
3694
- _ctx.$slots.leftout ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$$, [
3902
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$$, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
3903
+ _ctx.$slots.leftout ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$Q, [
3695
3904
  vue.renderSlot(_ctx.$slots, "leftout")
3696
3905
  ])) : vue.createCommentVNode("", true),
3697
3906
  vue.createElementVNode("view", {
3698
3907
  class: "nut-searchbar__search-input",
3699
3908
  style: vue.normalizeStyle(_ctx.inputSearchbarStyle)
3700
3909
  }, [
3701
- _ctx.$slots.leftin ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$Q, [
3910
+ _ctx.$slots.leftin ? (vue.openBlock(), vue.createElementBlock("view", {
3911
+ key: 0,
3912
+ class: "nut-searchbar__search-icon nut-searchbar__iptleft-search-icon",
3913
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.leftIconClick && _ctx.leftIconClick(...args))
3914
+ }, [
3702
3915
  vue.renderSlot(_ctx.$slots, "leftin")
3703
3916
  ])) : vue.createCommentVNode("", true),
3704
- vue.createElementVNode("view", _hoisted_3$G, [
3917
+ vue.createElementVNode("view", _hoisted_3$F, [
3705
3918
  vue.createElementVNode("form", {
3706
3919
  action: "#",
3707
- onSubmit: _cache[3] || (_cache[3] = vue.withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
3920
+ onSubmit: _cache[5] || (_cache[5] = vue.withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
3708
3921
  }, [
3709
3922
  vue.createElementVNode("input", {
3923
+ ref: "inputsearch",
3710
3924
  class: "nut-searchbar__input-bar",
3711
3925
  type: _ctx.inputType,
3712
3926
  maxlength: _ctx.maxLength,
3713
3927
  placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
3714
3928
  value: _ctx.modelValue,
3715
- onInput: _cache[0] || (_cache[0] = (...args) => _ctx.valueChange && _ctx.valueChange(...args)),
3716
- onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
3717
- onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
3718
- }, null, 40, _hoisted_4$y)
3929
+ disabled: _ctx.disabled,
3930
+ readonly: _ctx.readonly,
3931
+ onClick: _cache[1] || (_cache[1] = (...args) => _ctx.clickInput && _ctx.clickInput(...args)),
3932
+ onInput: _cache[2] || (_cache[2] = (...args) => _ctx.valueChange && _ctx.valueChange(...args)),
3933
+ onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
3934
+ onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args)),
3935
+ style: vue.normalizeStyle(_ctx.styleSearchbar)
3936
+ }, null, 44, _hoisted_4$y)
3719
3937
  ], 32),
3720
3938
  _ctx.clearable ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("view", {
3721
3939
  key: 0,
3722
- onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleClear && _ctx.handleClear(...args)),
3940
+ onClick: _cache[6] || (_cache[6] = (...args) => _ctx.handleClear && _ctx.handleClear(...args)),
3723
3941
  class: "nut-searchbar__input-clear"
3724
3942
  }, [
3725
3943
  vue.createVNode(_component_nut_icon, {
@@ -3731,11 +3949,15 @@ var __objRest = (source, exclude) => {
3731
3949
  [vue.vShow, _ctx.modelValue.length > 0]
3732
3950
  ]) : vue.createCommentVNode("", true)
3733
3951
  ]),
3734
- _ctx.$slots.rightin ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$n, [
3952
+ _ctx.$slots.rightin ? (vue.openBlock(), vue.createElementBlock("view", {
3953
+ key: 1,
3954
+ class: "nut-searchbar__search-icon nut-searchbar__iptright-sarch-icon",
3955
+ onClick: _cache[7] || (_cache[7] = (...args) => _ctx.rightIconClick && _ctx.rightIconClick(...args))
3956
+ }, [
3735
3957
  vue.renderSlot(_ctx.$slots, "rightin")
3736
3958
  ])) : vue.createCommentVNode("", true)
3737
3959
  ], 4),
3738
- _ctx.$slots.rightout ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$l, [
3960
+ _ctx.$slots.rightout ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$n, [
3739
3961
  vue.renderSlot(_ctx.$slots, "rightout")
3740
3962
  ])) : vue.createCommentVNode("", true)
3741
3963
  ], 4);
@@ -3857,7 +4079,7 @@ var __objRest = (source, exclude) => {
3857
4079
  return Array.isArray(children) && Boolean(children.length);
3858
4080
  }
3859
4081
  }
3860
- const { create: create$1g, translate: translate$m } = createComponent("cascader-item");
4082
+ const { create: create$1g, translate: translate$o } = createComponent("cascader-item");
3861
4083
  const _sfc_main$1g = create$1g({
3862
4084
  props: {
3863
4085
  visible: Boolean,
@@ -4049,7 +4271,7 @@ var __objRest = (source, exclude) => {
4049
4271
  tabsCursor.value = tab.paneKey;
4050
4272
  },
4051
4273
  formatTabTitle(pane) {
4052
- return pane.selectedNode ? pane.selectedNode.text : translate$m("select");
4274
+ return pane.selectedNode ? pane.selectedNode.text : translate$o("select");
4053
4275
  },
4054
4276
  isSelected(pane, node) {
4055
4277
  return pane.selectedNode && pane.selectedNode.value === node.value;
@@ -4080,7 +4302,7 @@ var __objRest = (source, exclude) => {
4080
4302
  class: "nut-cascader-pane"
4081
4303
  };
4082
4304
  const _hoisted_2$P = ["aria-checked", "aria-disabled", "onClick"];
4083
- const _hoisted_3$F = { class: "nut-cascader-item__title" };
4305
+ const _hoisted_3$E = { class: "nut-cascader-item__title" };
4084
4306
  const _hoisted_4$x = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-cascader-pane" }, null, -1);
4085
4307
  function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
4086
4308
  const _component_nut_icon = vue.resolveComponent("nut-icon");
@@ -4110,7 +4332,7 @@ var __objRest = (source, exclude) => {
4110
4332
  role: "menuitemradio",
4111
4333
  onClick: ($event) => _ctx.handleNode(node, false)
4112
4334
  }, [
4113
- vue.createElementVNode("view", _hoisted_3$F, vue.toDisplayString(node.text), 1),
4335
+ vue.createElementVNode("view", _hoisted_3$E, vue.toDisplayString(node.text), 1),
4114
4336
  node.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
4115
4337
  key: 0,
4116
4338
  class: "nut-cascader-item__icon-loading",
@@ -4335,7 +4557,7 @@ var __objRest = (source, exclude) => {
4335
4557
  }
4336
4558
  }
4337
4559
  var requestAniFrame$1 = requestAniFrame();
4338
- const { create: create$1e, translate: translate$l } = createComponent("calendar-item");
4560
+ const { create: create$1e, translate: translate$n } = createComponent("calendar-item");
4339
4561
  const _sfc_main$1e = create$1e({
4340
4562
  props: {
4341
4563
  type: {
@@ -4393,7 +4615,7 @@ var __objRest = (source, exclude) => {
4393
4615
  },
4394
4616
  emits: ["choose", "update", "close", "select"],
4395
4617
  setup(props, { emit, slots }) {
4396
- const weeks = vue.ref(translate$l("weekdays"));
4618
+ const weeks = vue.ref(translate$n("weekdays"));
4397
4619
  const months = vue.ref(null);
4398
4620
  const monthsPanel = vue.ref(null);
4399
4621
  const weeksPanel = vue.ref(null);
@@ -4575,7 +4797,7 @@ var __objRest = (source, exclude) => {
4575
4797
  };
4576
4798
  const monthInfo = {
4577
4799
  curData,
4578
- title: translate$l("monthTitle", title.year, title.month),
4800
+ title: translate$n("monthTitle", title.year, title.month),
4579
4801
  monthData: [
4580
4802
  ...getPreDaysStatus(preMonthDays, "prev", { month: preMonth, year: preYear }, preCurrMonthDays),
4581
4803
  ...getDaysStatus(currMonthDays, "curr", title)
@@ -4648,11 +4870,11 @@ var __objRest = (source, exclude) => {
4648
4870
  let current = 0;
4649
4871
  let lastCurrent = 0;
4650
4872
  state.monthsData.forEach((item, index) => {
4651
- if (item.title == translate$l("monthTitle", state.defaultData[0], state.defaultData[1])) {
4873
+ if (item.title == translate$n("monthTitle", state.defaultData[0], state.defaultData[1])) {
4652
4874
  current = index;
4653
4875
  }
4654
4876
  if (state.isRange) {
4655
- if (item.title == translate$l("monthTitle", state.defaultData[3], state.defaultData[4])) {
4877
+ if (item.title == translate$n("monthTitle", state.defaultData[3], state.defaultData[4])) {
4656
4878
  lastCurrent = index;
4657
4879
  }
4658
4880
  }
@@ -4777,7 +4999,7 @@ var __objRest = (source, exclude) => {
4777
4999
  weeksPanel,
4778
5000
  viewArea
4779
5001
  }, vue.toRefs(state)), vue.toRefs(props)), {
4780
- translate: translate$l
5002
+ translate: translate$n
4781
5003
  });
4782
5004
  }
4783
5005
  });
@@ -4789,7 +5011,7 @@ var __objRest = (source, exclude) => {
4789
5011
  key: 1,
4790
5012
  class: "calendar-top-slot"
4791
5013
  };
4792
- const _hoisted_3$E = {
5014
+ const _hoisted_3$D = {
4793
5015
  key: 2,
4794
5016
  class: "calendar-curr-month"
4795
5017
  };
@@ -4839,7 +5061,7 @@ var __objRest = (source, exclude) => {
4839
5061
  _ctx.showTopBtn ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$O, [
4840
5062
  vue.renderSlot(_ctx.$slots, "btn")
4841
5063
  ])) : vue.createCommentVNode("", true),
4842
- _ctx.showSubTitle ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$E, vue.toDisplayString(_ctx.yearMonthTitle), 1)) : vue.createCommentVNode("", true),
5064
+ _ctx.showSubTitle ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$D, vue.toDisplayString(_ctx.yearMonthTitle), 1)) : vue.createCommentVNode("", true),
4843
5065
  vue.createElementVNode("view", _hoisted_4$w, [
4844
5066
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.weeks, (item, index) => {
4845
5067
  return vue.openBlock(), vue.createElementBlock("view", {
@@ -5522,7 +5744,7 @@ var __objRest = (source, exclude) => {
5522
5744
  ], 32);
5523
5745
  }
5524
5746
  var column$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["render", _sfc_render$17]]);
5525
- const { componentName: componentName$_, create: create$19, translate: translate$k } = createComponent("picker");
5747
+ const { componentName: componentName$_, create: create$19, translate: translate$m } = createComponent("picker");
5526
5748
  const _sfc_main$19 = create$19({
5527
5749
  components: {
5528
5750
  [column$1.name]: column$1,
@@ -5636,7 +5858,7 @@ var __objRest = (source, exclude) => {
5636
5858
  cursor = cursor.children[0];
5637
5859
  }
5638
5860
  } else {
5639
- defaultValues.value[columnIndex] = option.value ? option.value : "";
5861
+ defaultValues.value[columnIndex] = option.hasOwnProperty("value") ? option.value : "";
5640
5862
  }
5641
5863
  emit("change", {
5642
5864
  columnIndex,
@@ -5653,6 +5875,7 @@ var __objRest = (source, exclude) => {
5653
5875
  emit("update:visible", false);
5654
5876
  };
5655
5877
  vue.onMounted(() => {
5878
+ console.log(11, props.columns);
5656
5879
  if (props.visible)
5657
5880
  state.show = props.visible;
5658
5881
  });
@@ -5673,6 +5896,7 @@ var __objRest = (source, exclude) => {
5673
5896
  }
5674
5897
  }, { immediate: true });
5675
5898
  vue.watch(() => props.visible, (val) => {
5899
+ console.log("props\u66F4\u65B0", props.columns);
5676
5900
  state.show = val;
5677
5901
  });
5678
5902
  vue.watch(() => props.columns, (val) => {
@@ -5689,13 +5913,13 @@ var __objRest = (source, exclude) => {
5689
5913
  changeHandler,
5690
5914
  confirmHandler,
5691
5915
  defaultValues,
5692
- translate: translate$k
5916
+ translate: translate$m
5693
5917
  });
5694
5918
  }
5695
5919
  });
5696
5920
  const _hoisted_1$W = { class: "nut-picker__bar" };
5697
5921
  const _hoisted_2$M = { class: "nut-picker__title" };
5698
- const _hoisted_3$D = { class: "nut-picker__column" };
5922
+ const _hoisted_3$C = { class: "nut-picker__column" };
5699
5923
  const _hoisted_4$v = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-picker__hairline" }, null, -1);
5700
5924
  function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
5701
5925
  const _component_nut_picker_column = vue.resolveComponent("nut-picker-column");
@@ -5727,7 +5951,7 @@ var __objRest = (source, exclude) => {
5727
5951
  }, vue.toDisplayString(_ctx.okText || _ctx.translate("confirm")), 1)
5728
5952
  ]),
5729
5953
  vue.renderSlot(_ctx.$slots, "top"),
5730
- vue.createElementVNode("view", _hoisted_3$D, [
5954
+ vue.createElementVNode("view", _hoisted_3$C, [
5731
5955
  _hoisted_4$v,
5732
5956
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.columnsList, (column2, columnIndex) => {
5733
5957
  return vue.openBlock(), vue.createElementBlock("view", {
@@ -5761,18 +5985,18 @@ var __objRest = (source, exclude) => {
5761
5985
  }
5762
5986
  return str;
5763
5987
  }
5764
- const { componentName: componentName$Z, create: create$18 } = createComponent("datepicker");
5988
+ const { componentName: componentName$Z, create: create$18, translate: translate$l } = createComponent("datepicker");
5765
5989
  const currentYear = new Date().getFullYear();
5766
5990
  function isDate(val) {
5767
5991
  return Object.prototype.toString.call(val) === "[object Date]" && !isNaN(val.getTime());
5768
5992
  }
5769
5993
  const zhCNType = {
5770
- day: "\u65E5",
5771
- year: "\u5E74",
5772
- month: "\u6708",
5773
- hour: "\u65F6",
5774
- minute: "\u5206",
5775
- seconds: "\u79D2"
5994
+ day: translate$l("day"),
5995
+ year: translate$l("year"),
5996
+ month: translate$l("month"),
5997
+ hour: translate$l("hour"),
5998
+ minute: translate$l("minute"),
5999
+ seconds: translate$l("seconds")
5776
6000
  };
5777
6001
  const _sfc_main$18 = create$18({
5778
6002
  components: {
@@ -6241,7 +6465,7 @@ var __objRest = (source, exclude) => {
6241
6465
  const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
6242
6466
  return value.replace(regExp, "");
6243
6467
  }
6244
- const { componentName: componentName$X, create: create$16, translate: translate$j } = createComponent("input");
6468
+ const { componentName: componentName$X, create: create$16, translate: translate$k } = createComponent("input");
6245
6469
  const _sfc_main$16 = create$16({
6246
6470
  props: {
6247
6471
  ref: {
@@ -6513,13 +6737,13 @@ var __objRest = (source, exclude) => {
6513
6737
  onClickInput,
6514
6738
  onClickLeftIcon,
6515
6739
  onClickRightIcon,
6516
- translate: translate$j
6740
+ translate: translate$k
6517
6741
  };
6518
6742
  }
6519
6743
  });
6520
6744
  const _hoisted_1$U = { class: "label-string" };
6521
6745
  const _hoisted_2$L = { class: "nut-input-value" };
6522
- const _hoisted_3$C = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
6746
+ const _hoisted_3$B = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
6523
6747
  const _hoisted_4$u = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
6524
6748
  const _hoisted_5$l = {
6525
6749
  key: 0,
@@ -6571,7 +6795,7 @@ var __objRest = (source, exclude) => {
6571
6795
  onInput: _cache[1] || (_cache[1] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
6572
6796
  onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
6573
6797
  onBlur: _cache[3] || (_cache[3] = (...args) => _ctx.onBlur && _ctx.onBlur(...args))
6574
- }, null, 44, _hoisted_3$C)) : (vue.openBlock(), vue.createElementBlock("input", {
6798
+ }, null, 44, _hoisted_3$B)) : (vue.openBlock(), vue.createElementBlock("input", {
6575
6799
  key: 1,
6576
6800
  class: "input-text",
6577
6801
  ref: "inputRef",
@@ -6878,7 +7102,7 @@ var __objRest = (source, exclude) => {
6878
7102
  ], 2);
6879
7103
  }
6880
7104
  var Rate = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc_render$12]]);
6881
- const { create: create$12, translate: translate$i } = createComponent("shortpassword");
7105
+ const { create: create$12, translate: translate$j } = createComponent("shortpassword");
6882
7106
  const _sfc_main$12 = create$12({
6883
7107
  props: {
6884
7108
  title: {
@@ -7000,13 +7224,13 @@ var __objRest = (source, exclude) => {
7000
7224
  show,
7001
7225
  systemStyle,
7002
7226
  closeIcon,
7003
- translate: translate$i
7227
+ translate: translate$j
7004
7228
  };
7005
7229
  }
7006
7230
  });
7007
7231
  const _hoisted_1$S = { class: "nut-shortpsd-title" };
7008
7232
  const _hoisted_2$K = { class: "nut-shortpsd-subtitle" };
7009
- const _hoisted_3$B = { class: "nut-input-normalw" };
7233
+ const _hoisted_3$A = { class: "nut-input-normalw" };
7010
7234
  const _hoisted_4$t = /* @__PURE__ */ vue.createElementVNode("div", { class: "nut-input-site" }, null, -1);
7011
7235
  const _hoisted_5$k = {
7012
7236
  key: 0,
@@ -7043,7 +7267,7 @@ var __objRest = (source, exclude) => {
7043
7267
  default: vue.withCtx(() => [
7044
7268
  vue.createElementVNode("view", _hoisted_1$S, vue.toDisplayString(_ctx.title || _ctx.translate("title")), 1),
7045
7269
  vue.createElementVNode("view", _hoisted_2$K, vue.toDisplayString(_ctx.desc || _ctx.translate("desc")), 1),
7046
- vue.createElementVNode("div", _hoisted_3$B, [
7270
+ vue.createElementVNode("div", _hoisted_3$A, [
7047
7271
  vue.withDirectives(vue.createElementVNode("input", {
7048
7272
  ref: "realpwd",
7049
7273
  class: "nut-input-real",
@@ -7099,7 +7323,7 @@ var __objRest = (source, exclude) => {
7099
7323
  ]);
7100
7324
  }
7101
7325
  var ShortPassword = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$11]]);
7102
- const { componentName: componentName$T, create: create$11, translate: translate$h } = createComponent("textarea");
7326
+ const { componentName: componentName$T, create: create$11, translate: translate$i } = createComponent("textarea");
7103
7327
  const _sfc_main$11 = create$11({
7104
7328
  props: {
7105
7329
  modelValue: {
@@ -7223,7 +7447,7 @@ var __objRest = (source, exclude) => {
7223
7447
  change,
7224
7448
  focus,
7225
7449
  blur,
7226
- translate: translate$h
7450
+ translate: translate$i
7227
7451
  };
7228
7452
  }
7229
7453
  });
@@ -7336,16 +7560,17 @@ var __objRest = (source, exclude) => {
7336
7560
  }
7337
7561
  }
7338
7562
  }
7339
- const { componentName: componentName$S, create: create$10, translate: translate$g } = createComponent("uploader");
7563
+ const { translate: translate$h } = createComponent("uploader");
7340
7564
  class FileItem {
7341
7565
  constructor() {
7342
7566
  this.status = "ready";
7343
- this.message = translate$g("ready");
7567
+ this.message = translate$h("ready");
7344
7568
  this.uid = new Date().getTime().toString();
7345
7569
  this.percentage = 0;
7346
7570
  this.formData = new FormData();
7347
7571
  }
7348
7572
  }
7573
+ const { componentName: componentName$S, create: create$10, translate: translate$g } = createComponent("uploader");
7349
7574
  const _sfc_main$10 = create$10({
7350
7575
  props: {
7351
7576
  name: { type: String, default: "file" },
@@ -7566,7 +7791,7 @@ var __objRest = (source, exclude) => {
7566
7791
  class: "nut-uploader__slot"
7567
7792
  };
7568
7793
  const _hoisted_2$I = ["accept", "multiple", "name", "disabled"];
7569
- const _hoisted_3$A = ["accept", "multiple", "name", "disabled"];
7794
+ const _hoisted_3$z = ["accept", "multiple", "name", "disabled"];
7570
7795
  const _hoisted_4$s = {
7571
7796
  key: 0,
7572
7797
  class: "nut-uploader__preview-img"
@@ -7623,7 +7848,7 @@ var __objRest = (source, exclude) => {
7623
7848
  name: _ctx.name,
7624
7849
  disabled: _ctx.disabled,
7625
7850
  onChange: _cache[1] || (_cache[1] = (...args) => _ctx.onChange && _ctx.onChange(...args))
7626
- }, null, 40, _hoisted_3$A))
7851
+ }, null, 40, _hoisted_3$z))
7627
7852
  ], 64)) : vue.createCommentVNode("", true)
7628
7853
  ])) : vue.createCommentVNode("", true),
7629
7854
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.fileList, (item, index) => {
@@ -7765,6 +7990,14 @@ var __objRest = (source, exclude) => {
7765
7990
  isWrapTeleport: {
7766
7991
  type: Boolean,
7767
7992
  default: true
7993
+ },
7994
+ teleport: {
7995
+ type: [String, Element],
7996
+ default: "body"
7997
+ },
7998
+ popClass: {
7999
+ type: String,
8000
+ default: ""
7768
8001
  }
7769
8002
  },
7770
8003
  emits: ["input", "delete", "close", "update:value"],
@@ -7882,7 +8115,7 @@ var __objRest = (source, exclude) => {
7882
8115
  key: 0,
7883
8116
  class: "number-board-header"
7884
8117
  };
7885
- const _hoisted_3$z = { class: "tit" };
8118
+ const _hoisted_3$y = { class: "tit" };
7886
8119
  const _hoisted_4$r = { class: "number-board-body" };
7887
8120
  const _hoisted_5$i = { class: "number-board" };
7888
8121
  const _hoisted_6$g = ["onTouchstart", "onTouchmove"];
@@ -7909,6 +8142,8 @@ var __objRest = (source, exclude) => {
7909
8142
  visible: _ctx.show,
7910
8143
  "onUpdate:visible": _cache[6] || (_cache[6] = ($event) => _ctx.show = $event),
7911
8144
  position: "bottom",
8145
+ teleport: _ctx.teleport,
8146
+ popClass: _ctx.popClass,
7912
8147
  overlay: _ctx.overlay,
7913
8148
  onClickOverlay: _cache[7] || (_cache[7] = ($event) => _ctx.closeBoard()),
7914
8149
  isWrapTeleport: _ctx.isWrapTeleport,
@@ -7917,7 +8152,7 @@ var __objRest = (source, exclude) => {
7917
8152
  default: vue.withCtx(() => [
7918
8153
  vue.createElementVNode("div", _hoisted_1$P, [
7919
8154
  _ctx.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$H, [
7920
- vue.createElementVNode("h3", _hoisted_3$z, vue.toDisplayString(_ctx.title), 1),
8155
+ vue.createElementVNode("h3", _hoisted_3$y, vue.toDisplayString(_ctx.title), 1),
7921
8156
  vue.createElementVNode("span", {
7922
8157
  class: "keyboard-close",
7923
8158
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.closeBoard())
@@ -7978,7 +8213,7 @@ var __objRest = (source, exclude) => {
7978
8213
  ], 512)
7979
8214
  ]),
7980
8215
  _: 1
7981
- }, 8, ["visible", "overlay", "isWrapTeleport"]);
8216
+ }, 8, ["visible", "teleport", "popClass", "overlay", "isWrapTeleport"]);
7982
8217
  }
7983
8218
  var NumberKeyboard = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$_]]);
7984
8219
  const component$2 = {
@@ -8007,7 +8242,7 @@ var __objRest = (source, exclude) => {
8007
8242
  const findFormItem = (vnodes) => {
8008
8243
  let task = [];
8009
8244
  vnodes.forEach((vnode, index) => {
8010
- var _a, _b, _c;
8245
+ var _a, _b, _c, _d;
8011
8246
  let type = vnode.type;
8012
8247
  type = type.name || type;
8013
8248
  if (type == "nut-form-item") {
@@ -8017,6 +8252,11 @@ var __objRest = (source, exclude) => {
8017
8252
  });
8018
8253
  } else if (Array.isArray(vnode.children) && ((_c = vnode.children) == null ? void 0 : _c.length)) {
8019
8254
  task = task.concat(findFormItem(vnode.children));
8255
+ } else if (isObject(vnode.children) && Object.keys(vnode.children)) {
8256
+ if ((_d = vnode.children) == null ? void 0 : _d.default) {
8257
+ vnode.children = vnode.children.default();
8258
+ task = task.concat(findFormItem(vnode.children));
8259
+ }
8020
8260
  }
8021
8261
  });
8022
8262
  return task;
@@ -8623,7 +8863,7 @@ var __objRest = (source, exclude) => {
8623
8863
  });
8624
8864
  const _hoisted_1$M = { class: "nut-oldpicker__bar" };
8625
8865
  const _hoisted_2$F = { class: "nut-oldpicker__title" };
8626
- const _hoisted_3$y = { class: "nut-oldpicker__column" };
8866
+ const _hoisted_3$x = { class: "nut-oldpicker__column" };
8627
8867
  const _hoisted_4$q = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-oldpicker__hairline" }, null, -1);
8628
8868
  function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
8629
8869
  const _component_nut_oldpicker_column = vue.resolveComponent("nut-oldpicker-column");
@@ -8654,7 +8894,7 @@ var __objRest = (source, exclude) => {
8654
8894
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.confirm())
8655
8895
  }, vue.toDisplayString(_ctx.okText), 1)
8656
8896
  ]),
8657
- vue.createElementVNode("view", _hoisted_3$y, [
8897
+ vue.createElementVNode("view", _hoisted_3$x, [
8658
8898
  _hoisted_4$q,
8659
8899
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.columnList, (item, columnIndex) => {
8660
8900
  return vue.openBlock(), vue.createElementBlock("view", {
@@ -8750,24 +8990,24 @@ var __objRest = (source, exclude) => {
8750
8990
  });
8751
8991
  const setoffset = (deltaX) => {
8752
8992
  position = deltaX > 0 ? "right" : "left";
8753
- let offset = deltaX;
8993
+ let offset2 = deltaX;
8754
8994
  switch (position) {
8755
8995
  case "left":
8756
8996
  if (opened && oldPosition === position) {
8757
- offset = -rightRefWidth.value;
8997
+ offset2 = -rightRefWidth.value;
8758
8998
  } else {
8759
- offset = Math.abs(deltaX) > rightRefWidth.value ? -rightRefWidth.value : deltaX;
8999
+ offset2 = Math.abs(deltaX) > rightRefWidth.value ? -rightRefWidth.value : deltaX;
8760
9000
  }
8761
9001
  break;
8762
9002
  case "right":
8763
9003
  if (opened && oldPosition === position) {
8764
- offset = leftRefWidth.value;
9004
+ offset2 = leftRefWidth.value;
8765
9005
  } else {
8766
- offset = Math.abs(deltaX) > leftRefWidth.value ? leftRefWidth.value : deltaX;
9006
+ offset2 = Math.abs(deltaX) > leftRefWidth.value ? leftRefWidth.value : deltaX;
8767
9007
  }
8768
9008
  break;
8769
9009
  }
8770
- state.offset = offset;
9010
+ state.offset = offset2;
8771
9011
  };
8772
9012
  const touch = useTouch$2();
8773
9013
  const touchMethods = {
@@ -8832,7 +9072,7 @@ var __objRest = (source, exclude) => {
8832
9072
  ref: "leftRef"
8833
9073
  };
8834
9074
  const _hoisted_2$E = { class: "nut-swipe__content" };
8835
- const _hoisted_3$x = {
9075
+ const _hoisted_3$w = {
8836
9076
  class: "nut-swipe__right",
8837
9077
  ref: "rightRef"
8838
9078
  };
@@ -8851,7 +9091,7 @@ var __objRest = (source, exclude) => {
8851
9091
  vue.createElementVNode("view", _hoisted_2$E, [
8852
9092
  vue.renderSlot(_ctx.$slots, "default")
8853
9093
  ]),
8854
- vue.createElementVNode("view", _hoisted_3$x, [
9094
+ vue.createElementVNode("view", _hoisted_3$w, [
8855
9095
  vue.renderSlot(_ctx.$slots, "right")
8856
9096
  ], 512)
8857
9097
  ], 38);
@@ -8938,7 +9178,7 @@ var __objRest = (source, exclude) => {
8938
9178
  key: 0,
8939
9179
  class: "nut-actionsheet-title"
8940
9180
  };
8941
- const _hoisted_3$w = { key: 1 };
9181
+ const _hoisted_3$v = { key: 1 };
8942
9182
  const _hoisted_4$p = {
8943
9183
  key: 0,
8944
9184
  class: "nut-actionsheet-item desc"
@@ -8968,7 +9208,7 @@ var __objRest = (source, exclude) => {
8968
9208
  vue.createElementVNode("view", _hoisted_1$K, [
8969
9209
  _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$D, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
8970
9210
  vue.renderSlot(_ctx.$slots, "default"),
8971
- !_ctx.slotDefault ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$w, [
9211
+ !_ctx.slotDefault ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$v, [
8972
9212
  _ctx.description ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$p, vue.toDisplayString(_ctx.description), 1)) : vue.createCommentVNode("", true),
8973
9213
  _ctx.menuItems.length ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$h, [
8974
9214
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.menuItems, (item, index) => {
@@ -9362,7 +9602,7 @@ var __objRest = (source, exclude) => {
9362
9602
  default: ""
9363
9603
  },
9364
9604
  content: {
9365
- type: String,
9605
+ type: [String, Object],
9366
9606
  default: ""
9367
9607
  },
9368
9608
  noFooter: {
@@ -9462,6 +9702,8 @@ var __objRest = (source, exclude) => {
9462
9702
  "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.showPopup = $event),
9463
9703
  "close-on-click-overlay": _ctx.closeOnClickOverlay,
9464
9704
  "lock-scroll": _ctx.lockScroll,
9705
+ "pop-class": _ctx.overlayClass,
9706
+ style: vue.normalizeStyle(_ctx.overlayStyle),
9465
9707
  round: "",
9466
9708
  onClickOverlay: _ctx.closed,
9467
9709
  onClickCloseIcon: _ctx.closed
@@ -9479,10 +9721,10 @@ var __objRest = (source, exclude) => {
9479
9721
  class: "nut-dialog__content",
9480
9722
  style: vue.normalizeStyle({ textAlign: _ctx.textAlign })
9481
9723
  }, [
9482
- _ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(), vue.createElementBlock("view", {
9724
+ _ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : typeof _ctx.content === "string" ? (vue.openBlock(), vue.createElementBlock("view", {
9483
9725
  key: 1,
9484
9726
  innerHTML: _ctx.content
9485
- }, null, 8, _hoisted_2$C))
9727
+ }, null, 8, _hoisted_2$C)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.content), { key: 2 }))
9486
9728
  ], 4),
9487
9729
  !_ctx.noFooter ? (vue.openBlock(), vue.createElementBlock("view", {
9488
9730
  key: 1,
@@ -9519,7 +9761,7 @@ var __objRest = (source, exclude) => {
9519
9761
  ], 2)
9520
9762
  ]),
9521
9763
  _: 3
9522
- }, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
9764
+ }, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "pop-class", "style", "onClickOverlay", "onClickCloseIcon"]);
9523
9765
  }
9524
9766
  var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$R]]);
9525
9767
  class DialogOptions {
@@ -9791,7 +10033,7 @@ var __objRest = (source, exclude) => {
9791
10033
  });
9792
10034
  const _hoisted_1$I = { class: "top-box" };
9793
10035
  const _hoisted_2$B = { class: "top-text" };
9794
- const _hoisted_3$v = { class: "nut-infinite-container" };
10036
+ const _hoisted_3$u = { class: "nut-infinite-container" };
9795
10037
  const _hoisted_4$o = { class: "nut-infinite-bottom" };
9796
10038
  const _hoisted_5$g = {
9797
10039
  key: 0,
@@ -9824,7 +10066,7 @@ var __objRest = (source, exclude) => {
9824
10066
  vue.createElementVNode("view", _hoisted_2$B, vue.toDisplayString(_ctx.pullTxt || _ctx.translate("pullTxt")), 1)
9825
10067
  ])
9826
10068
  ], 4),
9827
- vue.createElementVNode("view", _hoisted_3$v, [
10069
+ vue.createElementVNode("view", _hoisted_3$u, [
9828
10070
  vue.renderSlot(_ctx.$slots, "default")
9829
10071
  ]),
9830
10072
  vue.createElementVNode("view", _hoisted_4$o, [
@@ -10092,7 +10334,7 @@ var __objRest = (source, exclude) => {
10092
10334
  offsetY.value = 0;
10093
10335
  direction.value = "";
10094
10336
  };
10095
- const start = (event) => {
10337
+ const start2 = (event) => {
10096
10338
  reset();
10097
10339
  startX.value = event.touches[0].clientX;
10098
10340
  startY.value = event.touches[0].clientY;
@@ -10109,7 +10351,7 @@ var __objRest = (source, exclude) => {
10109
10351
  };
10110
10352
  return {
10111
10353
  move,
10112
- start,
10354
+ start: start2,
10113
10355
  reset,
10114
10356
  startX,
10115
10357
  startY,
@@ -10296,8 +10538,8 @@ var __objRest = (source, exclude) => {
10296
10538
  const touchStart = (event) => {
10297
10539
  if (isTouchable()) {
10298
10540
  if (direction.value == "vertical") {
10299
- const top = "scrollTop" in scrollEl ? scrollEl.scrollTop : 0;
10300
- reachTop.value = Math.max(top, 0) == 0 ? true : false;
10541
+ const top2 = "scrollTop" in scrollEl ? scrollEl.scrollTop : 0;
10542
+ reachTop.value = Math.max(top2, 0) == 0 ? true : false;
10301
10543
  const { scrollHeight, clientHeight, scrollTop } = scrollEl;
10302
10544
  reachBottom.value = clientHeight + scrollTop == scrollHeight ? true : false;
10303
10545
  if (reachTop.value || reachBottom.value) {
@@ -10306,8 +10548,8 @@ var __objRest = (source, exclude) => {
10306
10548
  }
10307
10549
  } else {
10308
10550
  const { scrollWidth, clientWidth, scrollLeft } = scrollEl;
10309
- const left = "scrollLeft" in scrollEl ? scrollEl.scrollLeft : 0;
10310
- reachLeft.value = Math.max(left, 0) == 0 ? true : false;
10551
+ const left2 = "scrollLeft" in scrollEl ? scrollEl.scrollLeft : 0;
10552
+ reachLeft.value = Math.max(left2, 0) == 0 ? true : false;
10311
10553
  reachRight.value = clientWidth + scrollLeft == scrollWidth ? true : false;
10312
10554
  if (reachLeft.value || reachRight.value) {
10313
10555
  state.duration = 0;
@@ -10657,7 +10899,7 @@ var __objRest = (source, exclude) => {
10657
10899
  key: 1,
10658
10900
  class: "nut-toast-title"
10659
10901
  };
10660
- const _hoisted_3$u = ["innerHTML"];
10902
+ const _hoisted_3$t = ["innerHTML"];
10661
10903
  function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
10662
10904
  const _component_nut_icon = vue.resolveComponent("nut-icon");
10663
10905
  return vue.openBlock(), vue.createBlock(vue.Transition, {
@@ -10691,7 +10933,7 @@ var __objRest = (source, exclude) => {
10691
10933
  vue.createElementVNode("view", {
10692
10934
  class: "nut-toast-text",
10693
10935
  innerHTML: _ctx.msg
10694
- }, null, 8, _hoisted_3$u)
10936
+ }, null, 8, _hoisted_3$t)
10695
10937
  ], 4)
10696
10938
  ], 6), [
10697
10939
  [vue.vShow, _ctx.state.mounted]
@@ -10823,45 +11065,31 @@ var __objRest = (source, exclude) => {
10823
11065
  props: {
10824
11066
  url: {
10825
11067
  type: String,
10826
- default() {
10827
- return "";
10828
- }
11068
+ default: ""
10829
11069
  },
10830
11070
  muted: {
10831
11071
  type: Boolean,
10832
- default() {
10833
- return false;
10834
- }
11072
+ default: false
10835
11073
  },
10836
11074
  autoplay: {
10837
11075
  type: Boolean,
10838
- default() {
10839
- return false;
10840
- }
11076
+ default: false
10841
11077
  },
10842
11078
  loop: {
10843
11079
  type: Boolean,
10844
- default() {
10845
- return false;
10846
- }
11080
+ default: false
10847
11081
  },
10848
11082
  preload: {
10849
11083
  type: String,
10850
- default() {
10851
- return "auto";
10852
- }
11084
+ default: "auto"
10853
11085
  },
10854
11086
  second: {
10855
11087
  type: Number,
10856
- default() {
10857
- return 0;
10858
- }
11088
+ default: 0
10859
11089
  },
10860
11090
  type: {
10861
11091
  type: String,
10862
- default() {
10863
- return "progress";
10864
- }
11092
+ default: "progress"
10865
11093
  }
10866
11094
  },
10867
11095
  components: {},
@@ -10875,7 +11103,8 @@ var __objRest = (source, exclude) => {
10875
11103
  duration: "00:00:00",
10876
11104
  second: 0,
10877
11105
  hanMuted: props.muted,
10878
- playing: props.autoplay
11106
+ playing: props.autoplay,
11107
+ handPlaying: false
10879
11108
  });
10880
11109
  vue.onMounted(() => {
10881
11110
  var arr = ["webkitVisibilityState", "visibilitychange"];
@@ -10897,13 +11126,14 @@ var __objRest = (source, exclude) => {
10897
11126
  console.log(e.message);
10898
11127
  }
10899
11128
  setTimeout(() => {
11129
+ const audioR = audioRef.value;
10900
11130
  if (props.autoplay) {
10901
- if (audioRef.value && audioRef.value.paused) {
10902
- audioRef.value.play();
11131
+ if (audioR && audioR.paused) {
11132
+ audioR.play();
10903
11133
  }
10904
11134
  }
10905
- audioData.second = audioRef.value.duration;
10906
- audioData.duration = formatSeconds(audioRef.value.duration);
11135
+ audioData.second = audioR.duration;
11136
+ audioData.duration = formatSeconds(audioR.duration);
10907
11137
  }, 500);
10908
11138
  });
10909
11139
  const onTimeupdate = (e) => {
@@ -10915,11 +11145,12 @@ var __objRest = (source, exclude) => {
10915
11145
  emit("fastBack", audioData.currentTime);
10916
11146
  };
10917
11147
  const changeStatus = () => {
11148
+ const audioR = audioRef.value;
10918
11149
  if (audioData.playing) {
10919
- audioRef.value.pause();
11150
+ audioR.pause();
10920
11151
  audioData.handPlaying = false;
10921
11152
  } else {
10922
- audioRef.value.play();
11153
+ audioR.play();
10923
11154
  audioData.handPlaying = true;
10924
11155
  }
10925
11156
  audioData.playing = !audioData.playing;
@@ -10939,8 +11170,9 @@ var __objRest = (source, exclude) => {
10939
11170
  emit("ended");
10940
11171
  };
10941
11172
  const progressChange = (val) => {
10942
- audioRef.value.currentTime = audioData.second * val / 100;
10943
- emit("changeProgress", audioRef.value.currentTime);
11173
+ const ar = audioRef.value;
11174
+ ar.currentTime = audioData.second * val / 100;
11175
+ emit("changeProgress", ar.currentTime);
10944
11176
  };
10945
11177
  const handleMute = () => {
10946
11178
  audioData.hanMuted = !audioData.hanMuted;
@@ -10951,19 +11183,19 @@ var __objRest = (source, exclude) => {
10951
11183
  let theTime1 = 0;
10952
11184
  let theTime2 = 0;
10953
11185
  if (theTime > 60) {
10954
- theTime1 = parseInt(theTime / 60);
10955
- theTime = parseInt(theTime % 60);
11186
+ theTime1 = Math.floor(theTime / 60);
11187
+ theTime = Math.floor(theTime % 60);
10956
11188
  if (theTime1 > 60) {
10957
- theTime2 = parseInt(theTime1 / 60);
10958
- theTime1 = parseInt(theTime1 % 60);
11189
+ theTime2 = Math.floor(theTime1 / 60);
11190
+ theTime1 = Math.floor(theTime1 % 60);
10959
11191
  }
10960
11192
  }
10961
- let result = "" + parseInt(theTime);
10962
- if (result < 10) {
11193
+ let result = "";
11194
+ if (theTime < 10) {
10963
11195
  result = "0" + result;
10964
11196
  }
10965
11197
  if (theTime1 > 0) {
10966
- result = "" + parseInt(theTime1) + ":" + result;
11198
+ result = "" + theTime1 + ":" + result;
10967
11199
  if (theTime1 < 10) {
10968
11200
  result = "0" + result;
10969
11201
  }
@@ -10971,7 +11203,7 @@ var __objRest = (source, exclude) => {
10971
11203
  result = "00:" + result;
10972
11204
  }
10973
11205
  if (theTime2 > 0) {
10974
- result = "" + parseInt(theTime2) + ":" + result;
11206
+ result = "" + theTime2 + ":" + result;
10975
11207
  if (theTime2 < 10) {
10976
11208
  result = "0" + result;
10977
11209
  }
@@ -11009,7 +11241,7 @@ var __objRest = (source, exclude) => {
11009
11241
  key: 0,
11010
11242
  class: "progress-wrapper"
11011
11243
  };
11012
- const _hoisted_3$t = { class: "time" };
11244
+ const _hoisted_3$s = { class: "time" };
11013
11245
  const _hoisted_4$n = { class: "progress-bar-wrapper" };
11014
11246
  const _hoisted_5$f = /* @__PURE__ */ vue.createElementVNode("div", { class: "custom-button" }, null, -1);
11015
11247
  const _hoisted_6$d = { class: "time" };
@@ -11023,7 +11255,7 @@ var __objRest = (source, exclude) => {
11023
11255
  const _component_nut_icon = vue.resolveComponent("nut-icon");
11024
11256
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [
11025
11257
  _ctx.type == "progress" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$z, [
11026
- vue.createElementVNode("div", _hoisted_3$t, vue.toDisplayString(_ctx.currentDuration), 1),
11258
+ vue.createElementVNode("div", _hoisted_3$s, vue.toDisplayString(_ctx.currentDuration), 1),
11027
11259
  vue.createElementVNode("div", _hoisted_4$n, [
11028
11260
  vue.createVNode(_component_nut_range, {
11029
11261
  modelValue: _ctx.percent,
@@ -11100,7 +11332,7 @@ var __objRest = (source, exclude) => {
11100
11332
  });
11101
11333
  const _hoisted_1$D = { class: "nut-audio-operate" };
11102
11334
  const _hoisted_2$y = /* @__PURE__ */ vue.createTextVNode("\u5012\u9000");
11103
- const _hoisted_3$s = /* @__PURE__ */ vue.createTextVNode("\u5FEB\u8FDB");
11335
+ const _hoisted_3$r = /* @__PURE__ */ vue.createTextVNode("\u5FEB\u8FDB");
11104
11336
  const _hoisted_4$m = /* @__PURE__ */ vue.createTextVNode("\u9759\u97F3");
11105
11337
  function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
11106
11338
  const _component_nut_button = vue.resolveComponent("nut-button");
@@ -11150,7 +11382,7 @@ var __objRest = (source, exclude) => {
11150
11382
  size: "small"
11151
11383
  }, {
11152
11384
  default: vue.withCtx(() => [
11153
- _hoisted_3$s
11385
+ _hoisted_3$r
11154
11386
  ]),
11155
11387
  _: 1
11156
11388
  })) : vue.createCommentVNode("", true),
@@ -11300,7 +11532,7 @@ var __objRest = (source, exclude) => {
11300
11532
  key: 2,
11301
11533
  class: "text"
11302
11534
  };
11303
- const _hoisted_3$r = {
11535
+ const _hoisted_3$q = {
11304
11536
  key: 1,
11305
11537
  class: "text"
11306
11538
  };
@@ -11329,7 +11561,7 @@ var __objRest = (source, exclude) => {
11329
11561
  vue.renderSlot(_ctx.$slots, "default")
11330
11562
  ])) : vue.createCommentVNode("", true)
11331
11563
  ], 64)) : vue.createCommentVNode("", true),
11332
- _ctx.showMax ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$r, vue.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)) : vue.createCommentVNode("", true)
11564
+ _ctx.showMax ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$q, vue.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)) : vue.createCommentVNode("", true)
11333
11565
  ], 6)) : vue.createCommentVNode("", true);
11334
11566
  }
11335
11567
  var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$J]]);
@@ -11419,7 +11651,7 @@ var __objRest = (source, exclude) => {
11419
11651
  default: document.documentElement.clientHeight || document.body.clientHeight || 667
11420
11652
  }
11421
11653
  },
11422
- emits: ["scroll"],
11654
+ emits: ["scroll", "scroll-bottom"],
11423
11655
  setup(props, { emit }) {
11424
11656
  const list = vue.ref(null);
11425
11657
  const state = vue.reactive({
@@ -11430,7 +11662,7 @@ var __objRest = (source, exclude) => {
11430
11662
  const visibleCount = vue.computed(() => {
11431
11663
  return Math.ceil(props.containerHeight / props.height);
11432
11664
  });
11433
- const end = vue.computed(() => {
11665
+ const end2 = vue.computed(() => {
11434
11666
  return state.start + visibleCount.value;
11435
11667
  });
11436
11668
  const getTransform = vue.computed(() => {
@@ -11446,14 +11678,15 @@ var __objRest = (source, exclude) => {
11446
11678
  return state.list.length * props.height;
11447
11679
  });
11448
11680
  const visibleData = vue.computed(() => {
11449
- return state.list.slice(state.start, Math.min(end.value, state.list.length));
11681
+ return state.list.slice(state.start, Math.min(end2.value, state.list.length));
11450
11682
  });
11451
11683
  const handleScrollEvent = () => {
11452
11684
  var _a;
11453
11685
  const scrollTop = (_a = list.value) == null ? void 0 : _a.scrollTop;
11454
11686
  state.start = Math.floor(scrollTop / props.height);
11455
- if (end.value > state.list.length) {
11687
+ if (end2.value > state.list.length) {
11456
11688
  emit("scroll");
11689
+ emit("scroll-bottom");
11457
11690
  }
11458
11691
  state.startOffset = scrollTop - scrollTop % props.height;
11459
11692
  };
@@ -11533,11 +11766,11 @@ var __objRest = (source, exclude) => {
11533
11766
  default: ""
11534
11767
  },
11535
11768
  textColor: {
11536
- tyep: String,
11769
+ type: String,
11537
11770
  default: ""
11538
11771
  },
11539
11772
  textBackground: {
11540
- tyep: String,
11773
+ type: String,
11541
11774
  default: ""
11542
11775
  },
11543
11776
  iconName: {
@@ -11691,10 +11924,10 @@ var __objRest = (source, exclude) => {
11691
11924
  });
11692
11925
  const hoverStyle = vue.computed(() => {
11693
11926
  let perimeter = 283;
11694
- let offset = perimeter * Number(props.progress) / 100;
11927
+ let offset2 = perimeter * Number(props.progress) / 100;
11695
11928
  return {
11696
11929
  stroke: isObject(props.color) ? `url(#${refRandomId})` : props.color,
11697
- strokeDasharray: `${offset}px ${perimeter}px`
11930
+ strokeDasharray: `${offset2}px ${perimeter}px`
11698
11931
  };
11699
11932
  });
11700
11933
  const pathStyle = vue.computed(() => {
@@ -11734,7 +11967,7 @@ var __objRest = (source, exclude) => {
11734
11967
  });
11735
11968
  const _hoisted_1$A = { viewBox: "0 0 100 100" };
11736
11969
  const _hoisted_2$w = ["id"];
11737
- const _hoisted_3$q = ["offset", "stop-color"];
11970
+ const _hoisted_3$p = ["offset", "stop-color"];
11738
11971
  const _hoisted_4$l = ["d", "stroke-width"];
11739
11972
  const _hoisted_5$e = ["d", "stroke", "stroke-linecap", "stroke-width"];
11740
11973
  const _hoisted_6$c = { class: "nut-circleprogress-text" };
@@ -11758,7 +11991,7 @@ var __objRest = (source, exclude) => {
11758
11991
  key: index,
11759
11992
  offset: item.key,
11760
11993
  "stop-color": item.value
11761
- }, null, 8, _hoisted_3$q);
11994
+ }, null, 8, _hoisted_3$p);
11762
11995
  }), 128))
11763
11996
  ], 8, _hoisted_2$w)
11764
11997
  ]),
@@ -12205,7 +12438,7 @@ var __objRest = (source, exclude) => {
12205
12438
  });
12206
12439
  const _hoisted_1$y = { class: "nut-empty" };
12207
12440
  const _hoisted_2$u = ["src"];
12208
- const _hoisted_3$p = {
12441
+ const _hoisted_3$o = {
12209
12442
  key: 1,
12210
12443
  class: "nut-empty-description"
12211
12444
  };
@@ -12223,7 +12456,7 @@ var __objRest = (source, exclude) => {
12223
12456
  }, null, 8, _hoisted_2$u)) : vue.createCommentVNode("", true)
12224
12457
  ], 64))
12225
12458
  ], 4),
12226
- _ctx.$slots.description ? vue.renderSlot(_ctx.$slots, "description", { key: 0 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$p, vue.toDisplayString(_ctx.description || _ctx.translate("noData")), 1)),
12459
+ _ctx.$slots.description ? vue.renderSlot(_ctx.$slots, "description", { key: 0 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$o, vue.toDisplayString(_ctx.description || _ctx.translate("noData")), 1)),
12227
12460
  _ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 2 }) : vue.createCommentVNode("", true)
12228
12461
  ]);
12229
12462
  }
@@ -12456,7 +12689,7 @@ var __objRest = (source, exclude) => {
12456
12689
  ref: "videocon"
12457
12690
  };
12458
12691
  const _hoisted_2$t = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
12459
- const _hoisted_3$o = ["src", "type"];
12692
+ const _hoisted_3$n = ["src", "type"];
12460
12693
  const _hoisted_4$k = { class: "current-time" };
12461
12694
  const _hoisted_5$d = { class: "progress-container" };
12462
12695
  const _hoisted_6$b = {
@@ -12490,7 +12723,7 @@ var __objRest = (source, exclude) => {
12490
12723
  vue.createElementVNode("source", {
12491
12724
  src: _ctx.source.src,
12492
12725
  type: _ctx.source.type
12493
- }, null, 8, _hoisted_3$o)
12726
+ }, null, 8, _hoisted_3$n)
12494
12727
  ], 40, _hoisted_2$t),
12495
12728
  _ctx.showToolbox && !_ctx.isDisabled ? (vue.openBlock(), vue.createElementBlock("div", {
12496
12729
  key: 0,
@@ -12666,7 +12899,7 @@ var __objRest = (source, exclude) => {
12666
12899
  });
12667
12900
  const _hoisted_1$w = { class: "nut-step-head" };
12668
12901
  const _hoisted_2$s = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-step-line" }, null, -1);
12669
- const _hoisted_3$n = {
12902
+ const _hoisted_3$m = {
12670
12903
  key: 2,
12671
12904
  class: "nut-step-inner"
12672
12905
  };
@@ -12695,7 +12928,7 @@ var __objRest = (source, exclude) => {
12695
12928
  color: _ctx.iconColor,
12696
12929
  name: _ctx.icon,
12697
12930
  size: _ctx.size
12698
- }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [], 64)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$n, vue.toDisplayString(_ctx.index), 1))
12931
+ }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [], 64)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$m, vue.toDisplayString(_ctx.index), 1))
12699
12932
  ], 2)
12700
12933
  ]),
12701
12934
  vue.createElementVNode("view", _hoisted_4$j, [
@@ -12741,7 +12974,7 @@ var __objRest = (source, exclude) => {
12741
12974
  state.offsetY = 0;
12742
12975
  state.direction = "";
12743
12976
  };
12744
- const start = (e) => {
12977
+ const start2 = (e) => {
12745
12978
  reset();
12746
12979
  state.startX = e.touches[0].clientX;
12747
12980
  state.startY = e.touches[0].clientY;
@@ -12757,7 +12990,7 @@ var __objRest = (source, exclude) => {
12757
12990
  };
12758
12991
  return {
12759
12992
  state,
12760
- start,
12993
+ start: start2,
12761
12994
  reset,
12762
12995
  move
12763
12996
  };
@@ -12828,6 +13061,7 @@ var __objRest = (source, exclude) => {
12828
13061
  touchTime: 0,
12829
13062
  autoplayTimer: 0,
12830
13063
  children: [],
13064
+ childrenVNode: [],
12831
13065
  style: {}
12832
13066
  });
12833
13067
  const touch = useTouch();
@@ -12864,8 +13098,35 @@ var __objRest = (source, exclude) => {
12864
13098
  };
12865
13099
  };
12866
13100
  const relation = (child) => {
12867
- if (child.proxy) {
12868
- state.children.push(child.proxy);
13101
+ var _a;
13102
+ let children = [];
13103
+ let slot = (_a = slots == null ? void 0 : slots.default) == null ? void 0 : _a.call(slots);
13104
+ slot = slot.filter((item) => item.children && Array.isArray(item.children));
13105
+ slot.forEach((item) => {
13106
+ children = children.concat(item.children);
13107
+ });
13108
+ if (!state.childrenVNode.length) {
13109
+ state.childrenVNode = children.slice();
13110
+ child.proxy && state.children.push(child.proxy);
13111
+ } else {
13112
+ if (state.childrenVNode.length > children.length) {
13113
+ state.children = state.children.filter((item) => child.proxy !== item);
13114
+ } else if (state.childrenVNode.length < children.length) {
13115
+ for (let i = 0; i < state.childrenVNode.length; i++) {
13116
+ if (children[i].key !== state.childrenVNode[i].key) {
13117
+ child.proxy && state.children.splice(i, 0, child.proxy);
13118
+ child.vnode && state.childrenVNode.splice(i, 0, child.vnode);
13119
+ break;
13120
+ }
13121
+ }
13122
+ if (state.childrenVNode.length !== children.length) {
13123
+ child.proxy && state.children.push(child.proxy);
13124
+ child.vnode && state.childrenVNode.push(child.vnode);
13125
+ }
13126
+ } else {
13127
+ state.childrenVNode = children.slice();
13128
+ child.proxy && state.children.push(child.proxy);
13129
+ }
12869
13130
  }
12870
13131
  };
12871
13132
  const range = (num, min, max) => {
@@ -12874,12 +13135,12 @@ var __objRest = (source, exclude) => {
12874
13135
  const requestFrame = (fn) => {
12875
13136
  window.requestAnimationFrame.call(window, fn);
12876
13137
  };
12877
- const getOffset = (active, offset = 0) => {
13138
+ const getOffset = (active, offset2 = 0) => {
12878
13139
  let currentPosition = active * size.value;
12879
13140
  if (!props.loop) {
12880
13141
  currentPosition = Math.min(currentPosition, -minOffset.value);
12881
13142
  }
12882
- let targetOffset = offset - currentPosition;
13143
+ let targetOffset = offset2 - currentPosition;
12883
13144
  if (!props.loop) {
12884
13145
  targetOffset = range(targetOffset, minOffset.value, 0);
12885
13146
  }
@@ -12895,12 +13156,12 @@ var __objRest = (source, exclude) => {
12895
13156
  }
12896
13157
  return active;
12897
13158
  };
12898
- const move = ({ pace = 0, offset = 0, isEmit = false }) => {
13159
+ const move = ({ pace = 0, offset: offset2 = 0, isEmit = false }) => {
12899
13160
  if (childCount.value <= 1)
12900
13161
  return;
12901
13162
  const { active } = state;
12902
13163
  const targetActive = getActive(pace);
12903
- const targetOffset = getOffset(targetActive, offset);
13164
+ const targetOffset = getOffset(targetActive, offset2);
12904
13165
  if (props.loop) {
12905
13166
  if (state.children[0] && targetOffset !== minOffset.value) {
12906
13167
  const rightBound = targetOffset < minOffset.value;
@@ -13025,9 +13286,9 @@ var __objRest = (source, exclude) => {
13025
13286
  const isShouldMove = Math.abs(speed) > 0.3 || Math.abs(delTa.value) > +(size.value / 2).toFixed(2);
13026
13287
  if (isShouldMove && isCorrectDirection.value) {
13027
13288
  let pace = 0;
13028
- const offset = isVertical.value ? touch.state.offsetY : touch.state.offsetX;
13289
+ const offset2 = isVertical.value ? touch.state.offsetY : touch.state.offsetX;
13029
13290
  if (props.loop) {
13030
- pace = offset > 0 ? delTa.value > 0 ? -1 : 1 : 0;
13291
+ pace = offset2 > 0 ? delTa.value > 0 ? -1 : 1 : 0;
13031
13292
  } else {
13032
13293
  pace = -Math[delTa.value > 0 ? "ceil" : "floor"](delTa.value / size.value);
13033
13294
  }
@@ -13052,16 +13313,6 @@ var __objRest = (source, exclude) => {
13052
13313
  next,
13053
13314
  to
13054
13315
  });
13055
- vue.onMounted(() => {
13056
- vue.nextTick(() => {
13057
- init();
13058
- });
13059
- });
13060
- vue.onActivated(() => {
13061
- vue.nextTick(() => {
13062
- init();
13063
- });
13064
- });
13065
13316
  vue.onDeactivated(() => {
13066
13317
  stopAutoPlay();
13067
13318
  });
@@ -13075,7 +13326,7 @@ var __objRest = (source, exclude) => {
13075
13326
  });
13076
13327
  vue.watch(() => state.children.length, () => {
13077
13328
  vue.nextTick(() => {
13078
- init(state.active);
13329
+ init();
13079
13330
  });
13080
13331
  });
13081
13332
  vue.watch(() => props.autoPlay, (val) => {
@@ -13126,8 +13377,9 @@ var __objRest = (source, exclude) => {
13126
13377
  style: vue.normalizeStyle({
13127
13378
  backgroundColor: _ctx.activePagination === index ? _ctx.paginationColor : "#ddd"
13128
13379
  }),
13380
+ class: vue.normalizeClass({ active: _ctx.activePagination === index }),
13129
13381
  key: index
13130
- }, null, 4);
13382
+ }, null, 6);
13131
13383
  }), 128))
13132
13384
  ], 2)) : vue.createCommentVNode("", true)
13133
13385
  ], 34);
@@ -13158,9 +13410,12 @@ var __objRest = (source, exclude) => {
13158
13410
  }
13159
13411
  return style2;
13160
13412
  });
13161
- const setOffset = (offset) => {
13162
- state.offset = offset;
13413
+ const setOffset = (offset2) => {
13414
+ state.offset = offset2;
13163
13415
  };
13416
+ vue.onUnmounted(() => {
13417
+ parent["relation"](vue.getCurrentInstance(), "unmount");
13418
+ });
13164
13419
  useExpose({ setOffset });
13165
13420
  return {
13166
13421
  style,
@@ -14022,7 +14277,6 @@ var __objRest = (source, exclude) => {
14022
14277
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.machineNum, (val, index) => {
14023
14278
  return vue.openBlock(), vue.createElementBlock("view", {
14024
14279
  class: "run-number-machine-img-li",
14025
- ref_for: true,
14026
14280
  ref: "run-number-machine-img-li",
14027
14281
  key: "mImg" + index,
14028
14282
  style: vue.normalizeStyle({
@@ -14077,7 +14331,6 @@ var __objRest = (source, exclude) => {
14077
14331
  }, [
14078
14332
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.num_total_len, (val, index) => {
14079
14333
  return vue.openBlock(), vue.createElementBlock("view", {
14080
- ref_for: true,
14081
14334
  ref: _ctx.setRef,
14082
14335
  class: "numberItem",
14083
14336
  key: val,
@@ -14277,7 +14530,7 @@ var __objRest = (source, exclude) => {
14277
14530
  }
14278
14531
  return format;
14279
14532
  };
14280
- const start = () => {
14533
+ const start2 = () => {
14281
14534
  if (!state.counting && !props.autoStart) {
14282
14535
  state.counting = true;
14283
14536
  state.handleEndTime = Date.now() + Number(state.restTime);
@@ -14332,7 +14585,7 @@ var __objRest = (source, exclude) => {
14332
14585
  slots,
14333
14586
  classes,
14334
14587
  getTimeStamp,
14335
- start,
14588
+ start: start2,
14336
14589
  pause,
14337
14590
  renderTime,
14338
14591
  translate: translate$a,
@@ -14417,7 +14670,7 @@ var __objRest = (source, exclude) => {
14417
14670
  });
14418
14671
  const _hoisted_1$r = { class: "nut-badge" };
14419
14672
  const _hoisted_2$o = { class: "slot-icons" };
14420
- const _hoisted_3$m = ["textContent"];
14673
+ const _hoisted_3$l = ["textContent"];
14421
14674
  function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
14422
14675
  return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$r, [
14423
14676
  vue.createElementVNode("view", _hoisted_2$o, [
@@ -14428,7 +14681,7 @@ var __objRest = (source, exclude) => {
14428
14681
  textContent: vue.toDisplayString(_ctx.content),
14429
14682
  class: vue.normalizeClass(["nut-badge__content sup", { "is-dot": _ctx.dot }]),
14430
14683
  style: vue.normalizeStyle(_ctx.stl)
14431
- }, null, 14, _hoisted_3$m), [
14684
+ }, null, 14, _hoisted_3$l), [
14432
14685
  [vue.vShow, !_ctx.hidden && (_ctx.content || _ctx.dot)]
14433
14686
  ])
14434
14687
  ]);
@@ -14462,14 +14715,14 @@ var __objRest = (source, exclude) => {
14462
14715
  },
14463
14716
  emits: ["close", "click"],
14464
14717
  setup(props, { emit }) {
14465
- const { type, color, plain, round, mark, textColor } = vue.toRefs(props);
14718
+ const { type, color, plain, round: round2, mark, textColor } = vue.toRefs(props);
14466
14719
  const classes = vue.computed(() => {
14467
14720
  const prefixCls = componentName$q;
14468
14721
  return {
14469
14722
  [prefixCls]: true,
14470
14723
  [`${prefixCls}--${type.value}`]: type.value,
14471
14724
  [`${prefixCls}--plain`]: plain.value,
14472
- [`${prefixCls}--round`]: round.value,
14725
+ [`${prefixCls}--round`]: round2.value,
14473
14726
  [`${prefixCls}--mark`]: mark.value
14474
14727
  };
14475
14728
  });
@@ -14526,6 +14779,774 @@ var __objRest = (source, exclude) => {
14526
14779
  ], 6);
14527
14780
  }
14528
14781
  var Tag = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$t]]);
14782
+ function getWindow(node) {
14783
+ if (node == null) {
14784
+ return window;
14785
+ }
14786
+ if (node.toString() !== "[object Window]") {
14787
+ var ownerDocument = node.ownerDocument;
14788
+ return ownerDocument ? ownerDocument.defaultView || window : window;
14789
+ }
14790
+ return node;
14791
+ }
14792
+ function isElement(node) {
14793
+ var OwnElement = getWindow(node).Element;
14794
+ return node instanceof OwnElement || node instanceof Element;
14795
+ }
14796
+ function isHTMLElement(node) {
14797
+ var OwnElement = getWindow(node).HTMLElement;
14798
+ return node instanceof OwnElement || node instanceof HTMLElement;
14799
+ }
14800
+ function isShadowRoot(node) {
14801
+ if (typeof ShadowRoot === "undefined") {
14802
+ return false;
14803
+ }
14804
+ var OwnElement = getWindow(node).ShadowRoot;
14805
+ return node instanceof OwnElement || node instanceof ShadowRoot;
14806
+ }
14807
+ var round = Math.round;
14808
+ function getBoundingClientRect(element, includeScale) {
14809
+ if (includeScale === void 0) {
14810
+ includeScale = false;
14811
+ }
14812
+ var rect = element.getBoundingClientRect();
14813
+ var scaleX = 1;
14814
+ var scaleY = 1;
14815
+ if (isHTMLElement(element) && includeScale) {
14816
+ var offsetHeight = element.offsetHeight;
14817
+ var offsetWidth = element.offsetWidth;
14818
+ if (offsetWidth > 0) {
14819
+ scaleX = round(rect.width) / offsetWidth || 1;
14820
+ }
14821
+ if (offsetHeight > 0) {
14822
+ scaleY = round(rect.height) / offsetHeight || 1;
14823
+ }
14824
+ }
14825
+ return {
14826
+ width: rect.width / scaleX,
14827
+ height: rect.height / scaleY,
14828
+ top: rect.top / scaleY,
14829
+ right: rect.right / scaleX,
14830
+ bottom: rect.bottom / scaleY,
14831
+ left: rect.left / scaleX,
14832
+ x: rect.left / scaleX,
14833
+ y: rect.top / scaleY
14834
+ };
14835
+ }
14836
+ function getWindowScroll(node) {
14837
+ var win = getWindow(node);
14838
+ var scrollLeft = win.pageXOffset;
14839
+ var scrollTop = win.pageYOffset;
14840
+ return {
14841
+ scrollLeft,
14842
+ scrollTop
14843
+ };
14844
+ }
14845
+ function getHTMLElementScroll(element) {
14846
+ return {
14847
+ scrollLeft: element.scrollLeft,
14848
+ scrollTop: element.scrollTop
14849
+ };
14850
+ }
14851
+ function getNodeScroll(node) {
14852
+ if (node === getWindow(node) || !isHTMLElement(node)) {
14853
+ return getWindowScroll(node);
14854
+ } else {
14855
+ return getHTMLElementScroll(node);
14856
+ }
14857
+ }
14858
+ function getNodeName(element) {
14859
+ return element ? (element.nodeName || "").toLowerCase() : null;
14860
+ }
14861
+ function getDocumentElement(element) {
14862
+ return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
14863
+ }
14864
+ function getWindowScrollBarX(element) {
14865
+ return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
14866
+ }
14867
+ function getComputedStyle(element) {
14868
+ return getWindow(element).getComputedStyle(element);
14869
+ }
14870
+ function isScrollParent(element) {
14871
+ var _getComputedStyle = getComputedStyle(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
14872
+ return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
14873
+ }
14874
+ function isElementScaled(element) {
14875
+ var rect = element.getBoundingClientRect();
14876
+ var scaleX = round(rect.width) / element.offsetWidth || 1;
14877
+ var scaleY = round(rect.height) / element.offsetHeight || 1;
14878
+ return scaleX !== 1 || scaleY !== 1;
14879
+ }
14880
+ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
14881
+ if (isFixed === void 0) {
14882
+ isFixed = false;
14883
+ }
14884
+ var isOffsetParentAnElement = isHTMLElement(offsetParent);
14885
+ var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
14886
+ var documentElement = getDocumentElement(offsetParent);
14887
+ var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
14888
+ var scroll = {
14889
+ scrollLeft: 0,
14890
+ scrollTop: 0
14891
+ };
14892
+ var offsets = {
14893
+ x: 0,
14894
+ y: 0
14895
+ };
14896
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
14897
+ if (getNodeName(offsetParent) !== "body" || isScrollParent(documentElement)) {
14898
+ scroll = getNodeScroll(offsetParent);
14899
+ }
14900
+ if (isHTMLElement(offsetParent)) {
14901
+ offsets = getBoundingClientRect(offsetParent, true);
14902
+ offsets.x += offsetParent.clientLeft;
14903
+ offsets.y += offsetParent.clientTop;
14904
+ } else if (documentElement) {
14905
+ offsets.x = getWindowScrollBarX(documentElement);
14906
+ }
14907
+ }
14908
+ return {
14909
+ x: rect.left + scroll.scrollLeft - offsets.x,
14910
+ y: rect.top + scroll.scrollTop - offsets.y,
14911
+ width: rect.width,
14912
+ height: rect.height
14913
+ };
14914
+ }
14915
+ function getLayoutRect(element) {
14916
+ var clientRect = getBoundingClientRect(element);
14917
+ var width = element.offsetWidth;
14918
+ var height = element.offsetHeight;
14919
+ if (Math.abs(clientRect.width - width) <= 1) {
14920
+ width = clientRect.width;
14921
+ }
14922
+ if (Math.abs(clientRect.height - height) <= 1) {
14923
+ height = clientRect.height;
14924
+ }
14925
+ return {
14926
+ x: element.offsetLeft,
14927
+ y: element.offsetTop,
14928
+ width,
14929
+ height
14930
+ };
14931
+ }
14932
+ function getParentNode(element) {
14933
+ if (getNodeName(element) === "html") {
14934
+ return element;
14935
+ }
14936
+ return element.assignedSlot || element.parentNode || (isShadowRoot(element) ? element.host : null) || getDocumentElement(element);
14937
+ }
14938
+ function getScrollParent(node) {
14939
+ if (["html", "body", "#document"].indexOf(getNodeName(node)) >= 0) {
14940
+ return node.ownerDocument.body;
14941
+ }
14942
+ if (isHTMLElement(node) && isScrollParent(node)) {
14943
+ return node;
14944
+ }
14945
+ return getScrollParent(getParentNode(node));
14946
+ }
14947
+ function listScrollParents(element, list) {
14948
+ var _element$ownerDocumen;
14949
+ if (list === void 0) {
14950
+ list = [];
14951
+ }
14952
+ var scrollParent = getScrollParent(element);
14953
+ var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
14954
+ var win = getWindow(scrollParent);
14955
+ var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
14956
+ var updatedList = list.concat(target);
14957
+ return isBody ? updatedList : updatedList.concat(listScrollParents(getParentNode(target)));
14958
+ }
14959
+ function isTableElement(element) {
14960
+ return ["table", "td", "th"].indexOf(getNodeName(element)) >= 0;
14961
+ }
14962
+ function getTrueOffsetParent(element) {
14963
+ if (!isHTMLElement(element) || getComputedStyle(element).position === "fixed") {
14964
+ return null;
14965
+ }
14966
+ return element.offsetParent;
14967
+ }
14968
+ function getContainingBlock(element) {
14969
+ var isFirefox = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1;
14970
+ var isIE = navigator.userAgent.indexOf("Trident") !== -1;
14971
+ if (isIE && isHTMLElement(element)) {
14972
+ var elementCss = getComputedStyle(element);
14973
+ if (elementCss.position === "fixed") {
14974
+ return null;
14975
+ }
14976
+ }
14977
+ var currentNode = getParentNode(element);
14978
+ if (isShadowRoot(currentNode)) {
14979
+ currentNode = currentNode.host;
14980
+ }
14981
+ while (isHTMLElement(currentNode) && ["html", "body"].indexOf(getNodeName(currentNode)) < 0) {
14982
+ var css = getComputedStyle(currentNode);
14983
+ 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") {
14984
+ return currentNode;
14985
+ } else {
14986
+ currentNode = currentNode.parentNode;
14987
+ }
14988
+ }
14989
+ return null;
14990
+ }
14991
+ function getOffsetParent(element) {
14992
+ var window2 = getWindow(element);
14993
+ var offsetParent = getTrueOffsetParent(element);
14994
+ while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === "static") {
14995
+ offsetParent = getTrueOffsetParent(offsetParent);
14996
+ }
14997
+ if (offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle(offsetParent).position === "static")) {
14998
+ return window2;
14999
+ }
15000
+ return offsetParent || getContainingBlock(element) || window2;
15001
+ }
15002
+ var top = "top";
15003
+ var bottom = "bottom";
15004
+ var right = "right";
15005
+ var left = "left";
15006
+ var auto = "auto";
15007
+ var basePlacements = [top, bottom, right, left];
15008
+ var start = "start";
15009
+ var end = "end";
15010
+ var placements = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
15011
+ return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
15012
+ }, []);
15013
+ var beforeRead = "beforeRead";
15014
+ var read = "read";
15015
+ var afterRead = "afterRead";
15016
+ var beforeMain = "beforeMain";
15017
+ var main = "main";
15018
+ var afterMain = "afterMain";
15019
+ var beforeWrite = "beforeWrite";
15020
+ var write = "write";
15021
+ var afterWrite = "afterWrite";
15022
+ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
15023
+ function order(modifiers) {
15024
+ var map = /* @__PURE__ */ new Map();
15025
+ var visited = /* @__PURE__ */ new Set();
15026
+ var result = [];
15027
+ modifiers.forEach(function(modifier) {
15028
+ map.set(modifier.name, modifier);
15029
+ });
15030
+ function sort(modifier) {
15031
+ visited.add(modifier.name);
15032
+ var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
15033
+ requires.forEach(function(dep) {
15034
+ if (!visited.has(dep)) {
15035
+ var depModifier = map.get(dep);
15036
+ if (depModifier) {
15037
+ sort(depModifier);
15038
+ }
15039
+ }
15040
+ });
15041
+ result.push(modifier);
15042
+ }
15043
+ modifiers.forEach(function(modifier) {
15044
+ if (!visited.has(modifier.name)) {
15045
+ sort(modifier);
15046
+ }
15047
+ });
15048
+ return result;
15049
+ }
15050
+ function orderModifiers(modifiers) {
15051
+ var orderedModifiers = order(modifiers);
15052
+ return modifierPhases.reduce(function(acc, phase) {
15053
+ return acc.concat(orderedModifiers.filter(function(modifier) {
15054
+ return modifier.phase === phase;
15055
+ }));
15056
+ }, []);
15057
+ }
15058
+ function debounce(fn) {
15059
+ var pending;
15060
+ return function() {
15061
+ if (!pending) {
15062
+ pending = new Promise(function(resolve) {
15063
+ Promise.resolve().then(function() {
15064
+ pending = void 0;
15065
+ resolve(fn());
15066
+ });
15067
+ });
15068
+ }
15069
+ return pending;
15070
+ };
15071
+ }
15072
+ function getBasePlacement(placement) {
15073
+ return placement.split("-")[0];
15074
+ }
15075
+ function mergeByName(modifiers) {
15076
+ var merged = modifiers.reduce(function(merged2, current) {
15077
+ var existing = merged2[current.name];
15078
+ merged2[current.name] = existing ? Object.assign({}, existing, current, {
15079
+ options: Object.assign({}, existing.options, current.options),
15080
+ data: Object.assign({}, existing.data, current.data)
15081
+ }) : current;
15082
+ return merged2;
15083
+ }, {});
15084
+ return Object.keys(merged).map(function(key) {
15085
+ return merged[key];
15086
+ });
15087
+ }
15088
+ function getVariation(placement) {
15089
+ return placement.split("-")[1];
15090
+ }
15091
+ function getMainAxisFromPlacement(placement) {
15092
+ return ["top", "bottom"].indexOf(placement) >= 0 ? "x" : "y";
15093
+ }
15094
+ function computeOffsets(_ref) {
15095
+ var reference = _ref.reference, element = _ref.element, placement = _ref.placement;
15096
+ var basePlacement = placement ? getBasePlacement(placement) : null;
15097
+ var variation = placement ? getVariation(placement) : null;
15098
+ var commonX = reference.x + reference.width / 2 - element.width / 2;
15099
+ var commonY = reference.y + reference.height / 2 - element.height / 2;
15100
+ var offsets;
15101
+ switch (basePlacement) {
15102
+ case top:
15103
+ offsets = {
15104
+ x: commonX,
15105
+ y: reference.y - element.height
15106
+ };
15107
+ break;
15108
+ case bottom:
15109
+ offsets = {
15110
+ x: commonX,
15111
+ y: reference.y + reference.height
15112
+ };
15113
+ break;
15114
+ case right:
15115
+ offsets = {
15116
+ x: reference.x + reference.width,
15117
+ y: commonY
15118
+ };
15119
+ break;
15120
+ case left:
15121
+ offsets = {
15122
+ x: reference.x - element.width,
15123
+ y: commonY
15124
+ };
15125
+ break;
15126
+ default:
15127
+ offsets = {
15128
+ x: reference.x,
15129
+ y: reference.y
15130
+ };
15131
+ }
15132
+ var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
15133
+ if (mainAxis != null) {
15134
+ var len = mainAxis === "y" ? "height" : "width";
15135
+ switch (variation) {
15136
+ case start:
15137
+ offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
15138
+ break;
15139
+ case end:
15140
+ offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
15141
+ break;
15142
+ }
15143
+ }
15144
+ return offsets;
15145
+ }
15146
+ var DEFAULT_OPTIONS = {
15147
+ placement: "bottom",
15148
+ modifiers: [],
15149
+ strategy: "absolute"
15150
+ };
15151
+ function areValidElements() {
15152
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15153
+ args[_key] = arguments[_key];
15154
+ }
15155
+ return !args.some(function(element) {
15156
+ return !(element && typeof element.getBoundingClientRect === "function");
15157
+ });
15158
+ }
15159
+ function popperGenerator(generatorOptions) {
15160
+ if (generatorOptions === void 0) {
15161
+ generatorOptions = {};
15162
+ }
15163
+ 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;
15164
+ return function createPopper2(reference, popper, options) {
15165
+ if (options === void 0) {
15166
+ options = defaultOptions2;
15167
+ }
15168
+ var state = {
15169
+ placement: "bottom",
15170
+ orderedModifiers: [],
15171
+ options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions2),
15172
+ modifiersData: {},
15173
+ elements: {
15174
+ reference,
15175
+ popper
15176
+ },
15177
+ attributes: {},
15178
+ styles: {}
15179
+ };
15180
+ var effectCleanupFns = [];
15181
+ var isDestroyed = false;
15182
+ var instance = {
15183
+ state,
15184
+ setOptions: function setOptions(setOptionsAction) {
15185
+ var options2 = typeof setOptionsAction === "function" ? setOptionsAction(state.options) : setOptionsAction;
15186
+ cleanupModifierEffects();
15187
+ state.options = Object.assign({}, defaultOptions2, state.options, options2);
15188
+ state.scrollParents = {
15189
+ reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
15190
+ popper: listScrollParents(popper)
15191
+ };
15192
+ var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers2, state.options.modifiers)));
15193
+ state.orderedModifiers = orderedModifiers.filter(function(m) {
15194
+ return m.enabled;
15195
+ });
15196
+ runModifierEffects();
15197
+ return instance.update();
15198
+ },
15199
+ forceUpdate: function forceUpdate() {
15200
+ if (isDestroyed) {
15201
+ return;
15202
+ }
15203
+ var _state$elements = state.elements, reference2 = _state$elements.reference, popper2 = _state$elements.popper;
15204
+ if (!areValidElements(reference2, popper2)) {
15205
+ return;
15206
+ }
15207
+ state.rects = {
15208
+ reference: getCompositeRect(reference2, getOffsetParent(popper2), state.options.strategy === "fixed"),
15209
+ popper: getLayoutRect(popper2)
15210
+ };
15211
+ state.reset = false;
15212
+ state.placement = state.options.placement;
15213
+ state.orderedModifiers.forEach(function(modifier) {
15214
+ return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
15215
+ });
15216
+ for (var index = 0; index < state.orderedModifiers.length; index++) {
15217
+ if (state.reset === true) {
15218
+ state.reset = false;
15219
+ index = -1;
15220
+ continue;
15221
+ }
15222
+ var _state$orderedModifie = state.orderedModifiers[index], fn = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name = _state$orderedModifie.name;
15223
+ if (typeof fn === "function") {
15224
+ state = fn({
15225
+ state,
15226
+ options: _options,
15227
+ name,
15228
+ instance
15229
+ }) || state;
15230
+ }
15231
+ }
15232
+ },
15233
+ update: debounce(function() {
15234
+ return new Promise(function(resolve) {
15235
+ instance.forceUpdate();
15236
+ resolve(state);
15237
+ });
15238
+ }),
15239
+ destroy: function destroy() {
15240
+ cleanupModifierEffects();
15241
+ isDestroyed = true;
15242
+ }
15243
+ };
15244
+ if (!areValidElements(reference, popper)) {
15245
+ return instance;
15246
+ }
15247
+ instance.setOptions(options).then(function(state2) {
15248
+ if (!isDestroyed && options.onFirstUpdate) {
15249
+ options.onFirstUpdate(state2);
15250
+ }
15251
+ });
15252
+ function runModifierEffects() {
15253
+ state.orderedModifiers.forEach(function(_ref3) {
15254
+ var name = _ref3.name, _ref3$options = _ref3.options, options2 = _ref3$options === void 0 ? {} : _ref3$options, effect2 = _ref3.effect;
15255
+ if (typeof effect2 === "function") {
15256
+ var cleanupFn = effect2({
15257
+ state,
15258
+ name,
15259
+ instance,
15260
+ options: options2
15261
+ });
15262
+ var noopFn = function noopFn2() {
15263
+ };
15264
+ effectCleanupFns.push(cleanupFn || noopFn);
15265
+ }
15266
+ });
15267
+ }
15268
+ function cleanupModifierEffects() {
15269
+ effectCleanupFns.forEach(function(fn) {
15270
+ return fn();
15271
+ });
15272
+ effectCleanupFns = [];
15273
+ }
15274
+ return instance;
15275
+ };
15276
+ }
15277
+ var passive = {
15278
+ passive: true
15279
+ };
15280
+ function effect$1(_ref) {
15281
+ var state = _ref.state, instance = _ref.instance, options = _ref.options;
15282
+ 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;
15283
+ var window2 = getWindow(state.elements.popper);
15284
+ var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
15285
+ if (scroll) {
15286
+ scrollParents.forEach(function(scrollParent) {
15287
+ scrollParent.addEventListener("scroll", instance.update, passive);
15288
+ });
15289
+ }
15290
+ if (resize) {
15291
+ window2.addEventListener("resize", instance.update, passive);
15292
+ }
15293
+ return function() {
15294
+ if (scroll) {
15295
+ scrollParents.forEach(function(scrollParent) {
15296
+ scrollParent.removeEventListener("scroll", instance.update, passive);
15297
+ });
15298
+ }
15299
+ if (resize) {
15300
+ window2.removeEventListener("resize", instance.update, passive);
15301
+ }
15302
+ };
15303
+ }
15304
+ var eventListeners = {
15305
+ name: "eventListeners",
15306
+ enabled: true,
15307
+ phase: "write",
15308
+ fn: function fn() {
15309
+ },
15310
+ effect: effect$1,
15311
+ data: {}
15312
+ };
15313
+ function popperOffsets(_ref) {
15314
+ var state = _ref.state, name = _ref.name;
15315
+ state.modifiersData[name] = computeOffsets({
15316
+ reference: state.rects.reference,
15317
+ element: state.rects.popper,
15318
+ strategy: "absolute",
15319
+ placement: state.placement
15320
+ });
15321
+ }
15322
+ var popperOffsets$1 = {
15323
+ name: "popperOffsets",
15324
+ enabled: true,
15325
+ phase: "read",
15326
+ fn: popperOffsets,
15327
+ data: {}
15328
+ };
15329
+ var unsetSides = {
15330
+ top: "auto",
15331
+ right: "auto",
15332
+ bottom: "auto",
15333
+ left: "auto"
15334
+ };
15335
+ function roundOffsetsByDPR(_ref) {
15336
+ var x = _ref.x, y = _ref.y;
15337
+ var win = window;
15338
+ var dpr = win.devicePixelRatio || 1;
15339
+ return {
15340
+ x: round(x * dpr) / dpr || 0,
15341
+ y: round(y * dpr) / dpr || 0
15342
+ };
15343
+ }
15344
+ function mapToStyles(_ref2) {
15345
+ var _Object$assign2;
15346
+ 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;
15347
+ 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;
15348
+ var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
15349
+ x,
15350
+ y
15351
+ }) : {
15352
+ x,
15353
+ y
15354
+ };
15355
+ x = _ref3.x;
15356
+ y = _ref3.y;
15357
+ var hasX = offsets.hasOwnProperty("x");
15358
+ var hasY = offsets.hasOwnProperty("y");
15359
+ var sideX = left;
15360
+ var sideY = top;
15361
+ var win = window;
15362
+ if (adaptive) {
15363
+ var offsetParent = getOffsetParent(popper);
15364
+ var heightProp = "clientHeight";
15365
+ var widthProp = "clientWidth";
15366
+ if (offsetParent === getWindow(popper)) {
15367
+ offsetParent = getDocumentElement(popper);
15368
+ if (getComputedStyle(offsetParent).position !== "static" && position === "absolute") {
15369
+ heightProp = "scrollHeight";
15370
+ widthProp = "scrollWidth";
15371
+ }
15372
+ }
15373
+ offsetParent = offsetParent;
15374
+ if (placement === top || (placement === left || placement === right) && variation === end) {
15375
+ sideY = bottom;
15376
+ var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : offsetParent[heightProp];
15377
+ y -= offsetY - popperRect.height;
15378
+ y *= gpuAcceleration ? 1 : -1;
15379
+ }
15380
+ if (placement === left || (placement === top || placement === bottom) && variation === end) {
15381
+ sideX = right;
15382
+ var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : offsetParent[widthProp];
15383
+ x -= offsetX - popperRect.width;
15384
+ x *= gpuAcceleration ? 1 : -1;
15385
+ }
15386
+ }
15387
+ var commonStyles = Object.assign({
15388
+ position
15389
+ }, adaptive && unsetSides);
15390
+ var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
15391
+ x,
15392
+ y
15393
+ }) : {
15394
+ x,
15395
+ y
15396
+ };
15397
+ x = _ref4.x;
15398
+ y = _ref4.y;
15399
+ if (gpuAcceleration) {
15400
+ var _Object$assign;
15401
+ 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));
15402
+ }
15403
+ return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
15404
+ }
15405
+ function computeStyles(_ref5) {
15406
+ var state = _ref5.state, options = _ref5.options;
15407
+ 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;
15408
+ var commonStyles = {
15409
+ placement: getBasePlacement(state.placement),
15410
+ variation: getVariation(state.placement),
15411
+ popper: state.elements.popper,
15412
+ popperRect: state.rects.popper,
15413
+ gpuAcceleration,
15414
+ isFixed: state.options.strategy === "fixed"
15415
+ };
15416
+ if (state.modifiersData.popperOffsets != null) {
15417
+ state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
15418
+ offsets: state.modifiersData.popperOffsets,
15419
+ position: state.options.strategy,
15420
+ adaptive,
15421
+ roundOffsets
15422
+ })));
15423
+ }
15424
+ if (state.modifiersData.arrow != null) {
15425
+ state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
15426
+ offsets: state.modifiersData.arrow,
15427
+ position: "absolute",
15428
+ adaptive: false,
15429
+ roundOffsets
15430
+ })));
15431
+ }
15432
+ state.attributes.popper = Object.assign({}, state.attributes.popper, {
15433
+ "data-popper-placement": state.placement
15434
+ });
15435
+ }
15436
+ var computeStyles$1 = {
15437
+ name: "computeStyles",
15438
+ enabled: true,
15439
+ phase: "beforeWrite",
15440
+ fn: computeStyles,
15441
+ data: {}
15442
+ };
15443
+ function applyStyles(_ref) {
15444
+ var state = _ref.state;
15445
+ Object.keys(state.elements).forEach(function(name) {
15446
+ var style = state.styles[name] || {};
15447
+ var attributes = state.attributes[name] || {};
15448
+ var element = state.elements[name];
15449
+ if (!isHTMLElement(element) || !getNodeName(element)) {
15450
+ return;
15451
+ }
15452
+ Object.assign(element.style, style);
15453
+ Object.keys(attributes).forEach(function(name2) {
15454
+ var value = attributes[name2];
15455
+ if (value === false) {
15456
+ element.removeAttribute(name2);
15457
+ } else {
15458
+ element.setAttribute(name2, value === true ? "" : value);
15459
+ }
15460
+ });
15461
+ });
15462
+ }
15463
+ function effect(_ref2) {
15464
+ var state = _ref2.state;
15465
+ var initialStyles = {
15466
+ popper: {
15467
+ position: state.options.strategy,
15468
+ left: "0",
15469
+ top: "0",
15470
+ margin: "0"
15471
+ },
15472
+ arrow: {
15473
+ position: "absolute"
15474
+ },
15475
+ reference: {}
15476
+ };
15477
+ Object.assign(state.elements.popper.style, initialStyles.popper);
15478
+ state.styles = initialStyles;
15479
+ if (state.elements.arrow) {
15480
+ Object.assign(state.elements.arrow.style, initialStyles.arrow);
15481
+ }
15482
+ return function() {
15483
+ Object.keys(state.elements).forEach(function(name) {
15484
+ var element = state.elements[name];
15485
+ var attributes = state.attributes[name] || {};
15486
+ var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]);
15487
+ var style = styleProperties.reduce(function(style2, property) {
15488
+ style2[property] = "";
15489
+ return style2;
15490
+ }, {});
15491
+ if (!isHTMLElement(element) || !getNodeName(element)) {
15492
+ return;
15493
+ }
15494
+ Object.assign(element.style, style);
15495
+ Object.keys(attributes).forEach(function(attribute) {
15496
+ element.removeAttribute(attribute);
15497
+ });
15498
+ });
15499
+ };
15500
+ }
15501
+ var applyStyles$1 = {
15502
+ name: "applyStyles",
15503
+ enabled: true,
15504
+ phase: "write",
15505
+ fn: applyStyles,
15506
+ effect,
15507
+ requires: ["computeStyles"]
15508
+ };
15509
+ var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1];
15510
+ var createPopper = /* @__PURE__ */ popperGenerator({
15511
+ defaultModifiers
15512
+ });
15513
+ function distanceAndSkiddingToXY(placement, rects, offset2) {
15514
+ var basePlacement = getBasePlacement(placement);
15515
+ var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
15516
+ var _ref = typeof offset2 === "function" ? offset2(Object.assign({}, rects, {
15517
+ placement
15518
+ })) : offset2, skidding = _ref[0], distance = _ref[1];
15519
+ skidding = skidding || 0;
15520
+ distance = (distance || 0) * invertDistance;
15521
+ return [left, right].indexOf(basePlacement) >= 0 ? {
15522
+ x: distance,
15523
+ y: skidding
15524
+ } : {
15525
+ x: skidding,
15526
+ y: distance
15527
+ };
15528
+ }
15529
+ function offset(_ref2) {
15530
+ var state = _ref2.state, options = _ref2.options, name = _ref2.name;
15531
+ var _options$offset = options.offset, offset2 = _options$offset === void 0 ? [0, 0] : _options$offset;
15532
+ var data = placements.reduce(function(acc, placement) {
15533
+ acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset2);
15534
+ return acc;
15535
+ }, {});
15536
+ var _data$state$placement = data[state.placement], x = _data$state$placement.x, y = _data$state$placement.y;
15537
+ if (state.modifiersData.popperOffsets != null) {
15538
+ state.modifiersData.popperOffsets.x += x;
15539
+ state.modifiersData.popperOffsets.y += y;
15540
+ }
15541
+ state.modifiersData[name] = data;
15542
+ }
15543
+ var offsetModifier = {
15544
+ name: "offset",
15545
+ enabled: true,
15546
+ phase: "main",
15547
+ requires: ["popperOffsets"],
15548
+ fn: offset
15549
+ };
14529
15550
  const { componentName: componentName$p, create: create$s } = createComponent("popover");
14530
15551
  const _sfc_main$s = create$s({
14531
15552
  inheritAttrs: false,
@@ -14545,81 +15566,103 @@ var __objRest = (source, exclude) => {
14545
15566
  location: {
14546
15567
  type: String,
14547
15568
  default: "bottom"
15569
+ },
15570
+ offset: {
15571
+ type: Array,
15572
+ default: [0, 12]
15573
+ },
15574
+ customClass: {
15575
+ type: String,
15576
+ default: ""
15577
+ },
15578
+ showArrow: {
15579
+ type: Boolean,
15580
+ default: true
14548
15581
  }
14549
15582
  }),
14550
- emits: ["update", "update:visible", "close", "choose", "openPopover"],
15583
+ emits: ["update", "update:visible", "close", "choose", "open"],
14551
15584
  setup(props, { emit }) {
15585
+ let popper;
14552
15586
  const reference = vue.ref();
14553
- const state = vue.reactive({
14554
- elWidth: 0,
14555
- elHeight: 0
14556
- });
15587
+ const popoverRef = vue.ref();
14557
15588
  const showPopup = vue.ref(props.visible);
14558
15589
  const { theme, location: location2 } = vue.toRefs(props);
14559
15590
  const classes = vue.computed(() => {
14560
15591
  const prefixCls = componentName$p;
14561
- return {
14562
- [prefixCls]: true,
14563
- [`${prefixCls}--${theme.value}`]: theme.value
14564
- };
15592
+ return `${prefixCls} ${prefixCls}--${theme.value}`;
14565
15593
  });
14566
15594
  const popoverContent = vue.computed(() => {
14567
- const prefixCls = "popoverContent";
15595
+ const prefixCls = "popover-content";
14568
15596
  return {
14569
15597
  [prefixCls]: true,
14570
15598
  [`${prefixCls}--${location2.value}`]: location2.value
14571
15599
  };
14572
15600
  });
14573
15601
  const popoverArrow = vue.computed(() => {
14574
- const prefixCls = "popoverArrow";
15602
+ const prefixCls = "popover-arrow";
14575
15603
  return {
14576
15604
  [prefixCls]: true,
14577
15605
  [`${prefixCls}--${location2.value}`]: location2.value
14578
15606
  };
14579
15607
  });
14580
- function getReference() {
14581
- state.elWidth = reference.value.offsetWidth;
14582
- state.elHeight = reference.value.offsetHeight;
14583
- }
14584
- const getStyle = vue.computed(() => {
14585
- const style = {};
14586
- if (location2.value == "top") {
14587
- style.bottom = state.elHeight + 20 + "px";
14588
- style.left = 0 + "px";
14589
- } else if (location2.value == "right") {
14590
- style.top = 0 + "px";
14591
- style.right = -state.elWidth + "px";
14592
- } else if (location2.value == "left") {
14593
- style.top = 0 + "px";
14594
- style.left = -state.elWidth + "px";
14595
- } else {
14596
- style.top = state.elHeight + 20 + "px";
14597
- style.left = 0 + "px";
15608
+ const createPopperInstance = () => {
15609
+ console.log(reference.value, popoverRef.value);
15610
+ if (reference.value && popoverRef.value) {
15611
+ return createPopper(reference.value, popoverRef.value.popupRef, {
15612
+ placement: props.location,
15613
+ modifiers: [
15614
+ {
15615
+ name: "computeStyles",
15616
+ options: {
15617
+ adaptive: false,
15618
+ gpuAcceleration: false
15619
+ }
15620
+ },
15621
+ Object.assign({}, offsetModifier, {
15622
+ options: {
15623
+ offset: props.offset
15624
+ }
15625
+ })
15626
+ ]
15627
+ });
14598
15628
  }
14599
- return style;
14600
- });
14601
- const getArrowStyle = vue.computed(() => {
14602
- const style = {};
14603
- if (location2.value == "top") {
14604
- style.bottom = -20 + "px";
14605
- style.left = state.elWidth / 2 + "px";
14606
- } else if (location2.value == "right") {
14607
- style.top = 20 + "px";
14608
- style.left = -20 + "px";
14609
- } else if (location2.value == "left") {
14610
- style.top = 20 + "px";
14611
- style.right = -20 + "px";
14612
- } else {
14613
- style.left = state.elWidth / 2 + "px";
14614
- style.top = -20 + "px";
15629
+ return null;
15630
+ };
15631
+ const clickOverlay = () => {
15632
+ console.log("\u5173\u95ED");
15633
+ };
15634
+ const uploadLocation = () => {
15635
+ vue.nextTick(() => {
15636
+ if (!showPopup.value)
15637
+ return;
15638
+ if (!popper) {
15639
+ popper = createPopperInstance();
15640
+ console.log(popper);
15641
+ } else {
15642
+ popper.setOptions({
15643
+ placement: props.location
15644
+ });
15645
+ }
15646
+ });
15647
+ };
15648
+ const clickAway = (event) => {
15649
+ const element = reference.value;
15650
+ if (element && !element.contains(event.target)) {
15651
+ closePopover();
14615
15652
  }
14616
- return style;
14617
- });
15653
+ };
14618
15654
  vue.onMounted(() => {
14619
- getReference();
15655
+ window.addEventListener("click", clickAway, true);
15656
+ });
15657
+ vue.onUnmounted(() => {
15658
+ window.removeEventListener("click", clickAway, true);
14620
15659
  });
14621
15660
  vue.watch(() => props.visible, (value) => {
14622
15661
  showPopup.value = value;
15662
+ uploadLocation();
15663
+ });
15664
+ vue.watch(() => props.location, (value) => {
15665
+ uploadLocation();
14623
15666
  });
14624
15667
  const update = (val) => {
14625
15668
  emit("update", val);
@@ -14647,57 +15690,64 @@ var __objRest = (source, exclude) => {
14647
15690
  popoverArrow,
14648
15691
  closePopover,
14649
15692
  chooseItem,
14650
- getReference,
14651
15693
  reference,
14652
- getStyle,
14653
- getArrowStyle
15694
+ popoverRef,
15695
+ clickOverlay
14654
15696
  };
14655
15697
  }
14656
15698
  });
14657
- const _hoisted_1$q = { ref: "reference" };
14658
- const _hoisted_2$n = ["onClick"];
14659
- const _hoisted_3$l = { class: "title-name" };
15699
+ const _hoisted_1$q = ["onClick"];
15700
+ const _hoisted_2$n = { class: "popover-menu-name" };
14660
15701
  function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
14661
15702
  const _component_nut_icon = vue.resolveComponent("nut-icon");
14662
- return vue.openBlock(), vue.createElementBlock("view", {
14663
- onClick: _cache[1] || (_cache[1] = vue.withModifiers((...args) => _ctx.openPopover && _ctx.openPopover(...args), ["stop"])),
14664
- class: vue.normalizeClass(_ctx.classes)
14665
- }, [
14666
- vue.createElementVNode("div", _hoisted_1$q, [
15703
+ const _component_nut_popup = vue.resolveComponent("nut-popup");
15704
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
15705
+ vue.createElementVNode("view", {
15706
+ style: { "display": "inline-block" },
15707
+ class: vue.normalizeClass(_ctx.customClass),
15708
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.openPopover && _ctx.openPopover(...args), ["stop"])),
15709
+ ref: "reference"
15710
+ }, [
14667
15711
  vue.renderSlot(_ctx.$slots, "reference")
14668
- ], 512),
14669
- _ctx.showPopup ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
14670
- vue.createElementVNode("view", {
14671
- class: "more-background",
14672
- onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.closePopover && _ctx.closePopover(...args), ["stop"]))
14673
- }),
14674
- vue.createElementVNode("view", {
14675
- class: vue.normalizeClass(_ctx.popoverContent),
14676
- style: vue.normalizeStyle(_ctx.getStyle)
14677
- }, [
14678
- vue.createElementVNode("view", {
14679
- class: vue.normalizeClass(_ctx.popoverArrow),
14680
- style: vue.normalizeStyle(_ctx.getArrowStyle)
14681
- }, null, 6),
15712
+ ], 2),
15713
+ vue.createVNode(_component_nut_popup, {
15714
+ ref: "popoverRef",
15715
+ "pop-class": _ctx.classes,
15716
+ visible: _ctx.showPopup,
15717
+ "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.showPopup = $event),
15718
+ overlay: false,
15719
+ onClickOverlay: _ctx.clickOverlay
15720
+ }, {
15721
+ default: vue.withCtx(() => [
15722
+ _ctx.showArrow ? (vue.openBlock(), vue.createElementBlock("view", {
15723
+ key: 0,
15724
+ class: vue.normalizeClass(_ctx.popoverArrow)
15725
+ }, null, 2)) : vue.createCommentVNode("", true),
14682
15726
  vue.renderSlot(_ctx.$slots, "content"),
14683
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.list, (item, index) => {
14684
- return vue.openBlock(), vue.createElementBlock("view", {
14685
- key: index,
14686
- class: vue.normalizeClass({ "title-item": true, disabled: item.disabled }),
14687
- onClick: vue.withModifiers(($event) => _ctx.chooseItem(item, index), ["stop"])
14688
- }, [
14689
- item.icon ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
14690
- vue.createVNode(_component_nut_icon, {
14691
- class: "item-img",
14692
- name: item.icon
14693
- }, null, 8, ["name"])
14694
- ]) : vue.createCommentVNode("", true),
14695
- vue.createElementVNode("view", _hoisted_3$l, vue.toDisplayString(item.name), 1)
14696
- ], 10, _hoisted_2$n);
14697
- }), 128))
14698
- ], 6)
14699
- ], 64)) : vue.createCommentVNode("", true)
14700
- ], 2);
15727
+ vue.createElementVNode("view", {
15728
+ class: vue.normalizeClass(["popover-menu", _ctx.popoverContent]),
15729
+ ref: "popoverMenu"
15730
+ }, [
15731
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.list, (item, index) => {
15732
+ return vue.openBlock(), vue.createElementBlock("view", {
15733
+ key: index,
15734
+ class: vue.normalizeClass([item.className, { "popover-menu-item": true, disabled: item.disabled }]),
15735
+ onClick: vue.withModifiers(($event) => _ctx.chooseItem(item, index), ["stop"])
15736
+ }, [
15737
+ item.icon ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
15738
+ vue.createVNode(_component_nut_icon, {
15739
+ class: "item-img",
15740
+ name: item.icon
15741
+ }, null, 8, ["name"])
15742
+ ]) : vue.createCommentVNode("", true),
15743
+ vue.createElementVNode("view", _hoisted_2$n, vue.toDisplayString(item.name), 1)
15744
+ ], 10, _hoisted_1$q);
15745
+ }), 128))
15746
+ ], 2)
15747
+ ]),
15748
+ _: 3
15749
+ }, 8, ["pop-class", "visible", "onClickOverlay"])
15750
+ ], 64);
14701
15751
  }
14702
15752
  var Popover = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s]]);
14703
15753
  const component$1 = {
@@ -14744,7 +15794,7 @@ var __objRest = (source, exclude) => {
14744
15794
  }
14745
15795
  },
14746
15796
  setup(props) {
14747
- const { avatarShape, round, avatarSize } = vue.toRefs(props);
15797
+ const { avatarShape, round: round2, avatarSize } = vue.toRefs(props);
14748
15798
  const avatarClass = vue.computed(() => {
14749
15799
  const prefixCls = "avatarClass";
14750
15800
  return {
@@ -14756,7 +15806,7 @@ var __objRest = (source, exclude) => {
14756
15806
  const prefixCls = "blockClass";
14757
15807
  return {
14758
15808
  [prefixCls]: true,
14759
- [`${prefixCls}--round`]: round.value
15809
+ [`${prefixCls}--round`]: round2.value
14760
15810
  };
14761
15811
  });
14762
15812
  const getStyle = () => {
@@ -15909,7 +16959,7 @@ var __objRest = (source, exclude) => {
15909
16959
  let timer = 0;
15910
16960
  const danmuList = vue.ref(props.danmu);
15911
16961
  const rows = vue.ref(props.rows);
15912
- const top = vue.ref(props.top);
16962
+ const top2 = vue.ref(props.top);
15913
16963
  const index = vue.ref(0);
15914
16964
  const speeds = props.speeds;
15915
16965
  const danmuCWidth = vue.ref(0);
@@ -15930,7 +16980,11 @@ var __objRest = (source, exclude) => {
15930
16980
  });
15931
16981
  const add = (word) => {
15932
16982
  const _index = index.value % danmuList.value.length;
15933
- danmuList.value.splice(_index, 0, word);
16983
+ if (!props.loop && index.value === danmuList.value.length) {
16984
+ danmuList.value.splice(danmuList.value.length, 0, word);
16985
+ } else {
16986
+ danmuList.value.splice(_index, 0, word);
16987
+ }
15934
16988
  };
15935
16989
  const run = () => {
15936
16990
  clearInterval(timer);
@@ -15941,6 +16995,9 @@ var __objRest = (source, exclude) => {
15941
16995
  }, props.frequency);
15942
16996
  };
15943
16997
  const play = () => {
16998
+ if (!props.loop && index.value >= danmuList.value.length) {
16999
+ return;
17000
+ }
15944
17001
  const _index = props.loop ? index.value % danmuList.value.length : index.value;
15945
17002
  let el = document.createElement(`view`);
15946
17003
  el.innerHTML = danmuList.value[_index];
@@ -15951,7 +17008,7 @@ var __objRest = (source, exclude) => {
15951
17008
  const height = el.offsetHeight;
15952
17009
  el.classList.add("move");
15953
17010
  el.style.animationDuration = `${speeds}ms`;
15954
- el.style.top = _index % rows.value * (height + top.value) + 20 + "px";
17011
+ el.style.top = _index % rows.value * (height + top2.value) + 20 + "px";
15955
17012
  el.style.width = width + 20 + "px";
15956
17013
  el.style.setProperty("--move-distance", `-${danmuCWidth.value}px`);
15957
17014
  el.dataset.index = `${_index}`;
@@ -17553,12 +18610,14 @@ var __objRest = (source, exclude) => {
17553
18610
  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"
17554
18611
  });
17555
18612
  const trowelData = () => {
18613
+ console.log("props.data", props.data);
17556
18614
  if (Object.keys(props.dataMapOptions).length > 0 && props.data.length > 0) {
17557
18615
  dataArray.value = props.data.map((item, index) => {
17558
18616
  return floatData(dataInfo, item, props.dataMapOptions);
17559
18617
  });
17560
18618
  }
17561
18619
  };
18620
+ vue.watch(() => props.data, () => trowelData(), { deep: true });
17562
18621
  const clickDelIcon = (event, item) => {
17563
18622
  emit("handelDelIcon", event, item);
17564
18623
  event.stopPropagation();
@@ -18292,7 +19351,7 @@ var __objRest = (source, exclude) => {
18292
19351
  }
18293
19352
  });
18294
19353
  }
18295
- const version = "3.1.21-beta.3";
19354
+ const version = "3.1.21";
18296
19355
  var nutui_vue_build = { install, version, Locale };
18297
19356
  exports2.ActionSheet = ActionSheet;
18298
19357
  exports2.Address = Address;