@nutui/nutui 3.2.2 → 3.2.4-beta.0

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 (281) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.md +4 -4
  3. package/dist/nutui.es.js +2136 -1419
  4. package/dist/nutui.umd.js +2145 -1427
  5. package/dist/packages/_es/ActionSheet.js +4 -22
  6. package/dist/packages/_es/Address.js +63 -57
  7. package/dist/packages/_es/AddressList.js +12 -9
  8. package/dist/packages/_es/Animate.js +2 -21
  9. package/dist/packages/_es/Audio.js +11 -25
  10. package/dist/packages/_es/AudioOperate.js +3 -23
  11. package/dist/packages/_es/Avatar.js +6 -21
  12. package/dist/packages/_es/AvatarGroup.js +1 -1
  13. package/dist/packages/_es/BackTop.js +1 -1
  14. package/dist/packages/_es/Badge.js +1 -1
  15. package/dist/packages/_es/Barrage.js +74 -22
  16. package/dist/packages/_es/Button.js +1 -1
  17. package/dist/packages/_es/Calendar.js +17 -9
  18. package/dist/packages/_es/CalendarItem.js +1 -1
  19. package/dist/packages/_es/Card.js +1 -1
  20. package/dist/packages/_es/Cascader.js +72 -68
  21. package/dist/packages/_es/Category.js +1 -1
  22. package/dist/packages/_es/CategoryPane.js +1 -1
  23. package/dist/packages/_es/Cell.js +1 -1
  24. package/dist/packages/_es/CellGroup.js +1 -1
  25. package/dist/packages/_es/Checkbox.js +31 -17
  26. package/dist/packages/_es/CheckboxGroup.js +14 -7
  27. package/dist/packages/_es/CircleProgress.js +4 -4
  28. package/dist/packages/_es/Col.js +1 -1
  29. package/dist/packages/_es/Collapse.js +22 -19
  30. package/dist/packages/_es/CollapseItem.js +18 -32
  31. package/dist/packages/_es/Comment.js +13 -9
  32. package/dist/packages/_es/ConfigProvider.js +8 -4
  33. package/dist/packages/_es/CountDown.js +40 -46
  34. package/dist/packages/_es/CountUp.js +41 -40
  35. package/dist/packages/_es/DatePicker.js +25 -33
  36. package/dist/packages/_es/Dialog.js +13 -28
  37. package/dist/packages/_es/Divider.js +7 -24
  38. package/dist/packages/_es/Drag.js +2 -2
  39. package/dist/packages/_es/Ecard.js +8 -5
  40. package/dist/packages/_es/Elevator.js +27 -39
  41. package/dist/packages/_es/Ellipsis.js +21 -31
  42. package/dist/packages/_es/Empty.js +1 -1
  43. package/dist/packages/_es/FixedNav.js +1 -1
  44. package/dist/packages/_es/Form.js +23 -12
  45. package/dist/packages/_es/FormItem.js +1 -1
  46. package/dist/packages/_es/Grid.js +1 -1
  47. package/dist/packages/_es/GridItem.js +1 -1
  48. package/dist/packages/_es/Icon.js +15 -11
  49. package/dist/packages/_es/Image.js +8 -24
  50. package/dist/packages/_es/ImagePreview.js +34 -48
  51. package/dist/packages/_es/Indicator.js +1 -1
  52. package/dist/packages/_es/InfiniteLoading.js +5 -24
  53. package/dist/packages/_es/Input.js +8 -5
  54. package/dist/packages/_es/InputNumber.js +1 -1
  55. package/dist/packages/_es/Invoice.js +10 -25
  56. package/dist/packages/_es/Layout.js +1 -1
  57. package/dist/packages/_es/List.js +21 -30
  58. package/dist/packages/_es/Menu.js +13 -7
  59. package/dist/packages/_es/MenuItem.js +2 -21
  60. package/dist/packages/_es/Navbar.js +1 -1
  61. package/dist/packages/_es/NoticeBar.js +18 -29
  62. package/dist/packages/_es/Notify.js +16 -32
  63. package/dist/packages/_es/NumberKeyboard.js +23 -18
  64. package/dist/packages/_es/OldPicker.js +47 -46
  65. package/dist/packages/_es/OverLay.js +11 -23
  66. package/dist/packages/_es/Pagination.js +6 -6
  67. package/dist/packages/_es/Picker.js +66 -59
  68. package/dist/packages/_es/Popover.js +55 -52
  69. package/dist/packages/_es/Popup.js +35 -40
  70. package/dist/packages/_es/Price.js +1 -1
  71. package/dist/packages/_es/Progress.js +2 -2
  72. package/dist/packages/_es/PullRefresh.js +5 -20
  73. package/dist/packages/_es/Radio.js +25 -13
  74. package/dist/packages/_es/RadioGroup.js +12 -5
  75. package/dist/packages/_es/Range.js +20 -33
  76. package/dist/packages/_es/Rate.js +6 -24
  77. package/dist/packages/_es/Row.js +1 -1
  78. package/dist/packages/_es/SearchBar.js +6 -25
  79. package/dist/packages/_es/ShortPassword.js +18 -11
  80. package/dist/packages/_es/SideNavBar.js +6 -24
  81. package/dist/packages/_es/SideNavBarItem.js +1 -1
  82. package/dist/packages/_es/Signature.js +2 -21
  83. package/dist/packages/_es/Skeleton.js +1 -1
  84. package/dist/packages/_es/Sku.js +30 -35
  85. package/dist/packages/_es/Step.js +4 -22
  86. package/dist/packages/_es/Steps.js +8 -4
  87. package/dist/packages/_es/Sticky.js +23 -12
  88. package/dist/packages/_es/SubSideNavBar.js +4 -22
  89. package/dist/packages/_es/Swipe.js +5 -24
  90. package/dist/packages/_es/Swiper.js +23 -14
  91. package/dist/packages/_es/SwiperItem.js +1 -1
  92. package/dist/packages/_es/Switch.js +10 -7
  93. package/dist/packages/_es/TabPane.js +1 -1
  94. package/dist/packages/_es/Tabbar.js +7 -4
  95. package/dist/packages/_es/TabbarItem.js +1 -1
  96. package/dist/packages/_es/Table.js +10 -25
  97. package/dist/packages/_es/Tabs.js +99 -34
  98. package/dist/packages/_es/Tag.js +1 -2
  99. package/dist/packages/_es/TextArea.js +8 -5
  100. package/dist/packages/_es/TimeDetail.js +5 -24
  101. package/dist/packages/_es/TimePannel.js +4 -22
  102. package/dist/packages/_es/TimeSelect.js +1 -1
  103. package/dist/packages/_es/Toast.js +21 -37
  104. package/dist/packages/_es/TrendArrow.js +131 -0
  105. package/dist/packages/_es/Uploader.js +40 -34
  106. package/dist/packages/_es/Video.js +22 -33
  107. package/dist/packages/_es/WaterMark.js +31 -41
  108. package/dist/packages/_es/common.js +21 -11
  109. package/dist/packages/_es/component.js +13 -6
  110. package/dist/packages/_es/index.js +1 -1
  111. package/dist/packages/_es/index2.js +1 -1
  112. package/dist/packages/_es/index3.js +1 -1
  113. package/dist/packages/_es/index4.js +1 -1
  114. package/dist/packages/_es/index5.js +39 -41
  115. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  116. package/dist/packages/_es/pxCheck.js +1 -1
  117. package/dist/packages/_es/raf.js +1 -1
  118. package/dist/packages/_es/style.css +16 -1
  119. package/dist/packages/barrage/index.scss +27 -18
  120. package/dist/packages/ellipsis/index.scss +1 -0
  121. package/dist/packages/index.d.ts +5 -0
  122. package/dist/packages/list/index.scss +0 -1
  123. package/dist/packages/locale/lang/baseLang.js +1 -1
  124. package/dist/packages/locale/lang/en-US.js +1 -1
  125. package/dist/packages/locale/lang/id-ID.js +1 -1
  126. package/dist/packages/locale/lang/index.js +1 -1
  127. package/dist/packages/locale/lang/zh-CN.js +1 -1
  128. package/dist/packages/locale/lang/zh-TW.js +1 -1
  129. package/dist/packages/picker/index.scss +14 -0
  130. package/dist/packages/tabbar/index.scss +3 -2
  131. package/dist/packages/trendarrow/index.scss +17 -0
  132. package/dist/smartips/attributes.json +76 -12
  133. package/dist/smartips/tags.json +30 -10
  134. package/dist/smartips/web-types.json +164 -13
  135. package/dist/style.css +1 -1
  136. package/dist/style.es.js +1 -1
  137. package/dist/styles/font/config.json +3 -1
  138. package/dist/styles/font/demo_index.html +51 -5
  139. package/dist/styles/font/iconfont.css +11 -3
  140. package/dist/styles/font/iconfont.js +64 -61
  141. package/dist/styles/font/iconfont.json +14 -0
  142. package/dist/styles/font/iconfont.ttf +0 -0
  143. package/dist/styles/font/iconfont.woff +0 -0
  144. package/dist/styles/font/iconfont.woff2 +0 -0
  145. package/dist/styles/themes/default.scss +53 -52
  146. package/dist/styles/themes/jdb.scss +53 -52
  147. package/dist/styles/themes/jdt.scss +53 -52
  148. package/dist/styles/variables-jdb.scss +4 -1
  149. package/dist/styles/variables-jdt.scss +4 -1
  150. package/dist/styles/variables.scss +4 -1
  151. package/dist/types/__VUE/actionsheet/index.vue.d.ts +121 -74
  152. package/dist/types/__VUE/address/index.vue.d.ts +159 -91
  153. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +9 -15
  154. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +13 -17
  155. package/dist/types/__VUE/addresslist/components/LongPressShell.vue.d.ts +9 -15
  156. package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +9 -15
  157. package/dist/types/__VUE/addresslist/index.vue.d.ts +25 -23
  158. package/dist/types/__VUE/animate/index.vue.d.ts +18 -19
  159. package/dist/types/__VUE/audio/index.vue.d.ts +33 -27
  160. package/dist/types/__VUE/audiooperate/index.vue.d.ts +9 -15
  161. package/dist/types/__VUE/avatar/index.vue.d.ts +37 -31
  162. package/dist/types/__VUE/avatargroup/index.vue.d.ts +37 -29
  163. package/dist/types/__VUE/backtop/index.vue.d.ts +34 -28
  164. package/dist/types/__VUE/badge/index.vue.d.ts +37 -31
  165. package/dist/types/__VUE/barrage/index.vue.d.ts +31 -26
  166. package/dist/types/__VUE/button/index.vue.d.ts +48 -37
  167. package/dist/types/__VUE/calendar/index.vue.d.ts +65 -45
  168. package/dist/types/__VUE/calendaritem/index.vue.d.ts +101 -55
  169. package/dist/types/__VUE/card/index.vue.d.ts +37 -29
  170. package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +29 -33
  171. package/dist/types/__VUE/cascader/index.vue.d.ts +114 -74
  172. package/dist/types/__VUE/cascader/types.d.ts +5 -0
  173. package/dist/types/__VUE/category/index.vue.d.ts +14 -17
  174. package/dist/types/__VUE/categorypane/index.vue.d.ts +17 -19
  175. package/dist/types/__VUE/cell/index.vue.d.ts +58 -44
  176. package/dist/types/__VUE/cellgroup/index.vue.d.ts +13 -17
  177. package/dist/types/__VUE/checkbox/index.vue.d.ts +49 -35
  178. package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +17 -19
  179. package/dist/types/__VUE/circleprogress/index.vue.d.ts +33 -27
  180. package/dist/types/__VUE/col/index.vue.d.ts +13 -17
  181. package/dist/types/__VUE/collapse/index.vue.d.ts +43 -34
  182. package/dist/types/__VUE/collapseitem/index.vue.d.ts +32 -31
  183. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +17 -19
  184. package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +17 -19
  185. package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +17 -19
  186. package/dist/types/__VUE/comment/index.vue.d.ts +41 -31
  187. package/dist/types/__VUE/configprovider/index.vue.d.ts +13 -17
  188. package/dist/types/__VUE/countdown/index.vue.d.ts +37 -30
  189. package/dist/types/__VUE/countup/index.vue.d.ts +76 -50
  190. package/dist/types/__VUE/datepicker/index.vue.d.ts +136 -82
  191. package/dist/types/__VUE/dialog/index.vue.d.ts +141 -85
  192. package/dist/types/__VUE/divider/index.vue.d.ts +21 -21
  193. package/dist/types/__VUE/drag/index.vue.d.ts +22 -19
  194. package/dist/types/__VUE/ecard/index.vue.d.ts +46 -33
  195. package/dist/types/__VUE/elevator/index.vue.d.ts +36 -26
  196. package/dist/types/__VUE/ellipsis/index.vue.d.ts +44 -25
  197. package/dist/types/__VUE/empty/index.vue.d.ts +17 -19
  198. package/dist/types/__VUE/fixednav/index.vue.d.ts +42 -31
  199. package/dist/types/__VUE/form/common.d.ts +4 -0
  200. package/dist/types/__VUE/form/index.vue.d.ts +18 -15
  201. package/dist/types/__VUE/form/types.d.ts +3 -0
  202. package/dist/types/__VUE/formitem/index.vue.d.ts +46 -33
  203. package/dist/types/__VUE/formitem/types.d.ts +5 -2
  204. package/dist/types/__VUE/grid/index.vue.d.ts +44 -35
  205. package/dist/types/__VUE/griditem/index.vue.d.ts +29 -28
  206. package/dist/types/__VUE/icon/index.vue.d.ts +30 -25
  207. package/dist/types/__VUE/image/index.vue.d.ts +41 -35
  208. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +47 -39
  209. package/dist/types/__VUE/imagepreview/index.d.ts +4 -4
  210. package/dist/types/__VUE/imagepreview/index.vue.d.ts +70 -47
  211. package/dist/types/__VUE/indicator/index.vue.d.ts +27 -23
  212. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +49 -35
  213. package/dist/types/__VUE/input/index.vue.d.ts +137 -80
  214. package/dist/types/__VUE/inputnumber/index.vue.d.ts +49 -35
  215. package/dist/types/__VUE/invoice/index.vue.d.ts +17 -19
  216. package/dist/types/__VUE/layout/index.vue.d.ts +2 -9
  217. package/dist/types/__VUE/list/index.vue.d.ts +19 -19
  218. package/dist/types/__VUE/menu/index.vue.d.ts +35 -32
  219. package/dist/types/__VUE/menuitem/index.vue.d.ts +26 -30
  220. package/dist/types/__VUE/navbar/index.vue.d.ts +45 -33
  221. package/dist/types/__VUE/noticebar/index.vue.d.ts +69 -47
  222. package/dist/types/__VUE/notify/index.vue.d.ts +45 -40
  223. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +69 -46
  224. package/dist/types/__VUE/oldpicker/Column.vue.d.ts +22 -24
  225. package/dist/types/__VUE/oldpicker/index.vue.d.ts +129 -82
  226. package/dist/types/__VUE/overlay/index.vue.d.ts +64 -1557
  227. package/dist/types/__VUE/pagination/index.vue.d.ts +45 -35
  228. package/dist/types/__VUE/picker/Column.vue.d.ts +30 -29
  229. package/dist/types/__VUE/picker/index.vue.d.ts +150 -91
  230. package/dist/types/__VUE/popover/index.vue.d.ts +112 -70
  231. package/dist/types/__VUE/popup/index.vue.d.ts +177 -73
  232. package/dist/types/__VUE/price/index.vue.d.ts +33 -27
  233. package/dist/types/__VUE/progress/index.vue.d.ts +54 -37
  234. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +49 -27
  235. package/dist/types/__VUE/radio/index.vue.d.ts +37 -29
  236. package/dist/types/__VUE/radiogroup/index.vue.d.ts +17 -19
  237. package/dist/types/__VUE/range/index.vue.d.ts +50 -44
  238. package/dist/types/__VUE/rate/index.vue.d.ts +61 -41
  239. package/dist/types/__VUE/row/index.vue.d.ts +25 -23
  240. package/dist/types/__VUE/searchbar/index.vue.d.ts +62 -41
  241. package/dist/types/__VUE/searchbar/type.d.ts +5 -0
  242. package/dist/types/__VUE/shortpassword/index.vue.d.ts +45 -33
  243. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +10 -15
  244. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +13 -17
  245. package/dist/types/__VUE/signature/index.vue.d.ts +25 -23
  246. package/dist/types/__VUE/skeleton/common.d.ts +1 -1
  247. package/dist/types/__VUE/skeleton/index.vue.d.ts +46 -34
  248. package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +9 -15
  249. package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +25 -23
  250. package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +9 -15
  251. package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +21 -21
  252. package/dist/types/__VUE/sku/index.vue.d.ts +129 -78
  253. package/dist/types/__VUE/step/index.vue.d.ts +27 -25
  254. package/dist/types/__VUE/steps/index.vue.d.ts +17 -19
  255. package/dist/types/__VUE/sticky/index.vue.d.ts +26 -25
  256. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +17 -19
  257. package/dist/types/__VUE/swipe/index.vue.d.ts +24 -22
  258. package/dist/types/__VUE/swiper/index.vue.d.ts +59 -40
  259. package/dist/types/__VUE/swiperitem/index.vue.d.ts +8 -10
  260. package/dist/types/__VUE/switch/index.vue.d.ts +53 -37
  261. package/dist/types/__VUE/tabbar/index.vue.d.ts +34 -28
  262. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +45 -36
  263. package/dist/types/__VUE/table/common.d.ts +1 -1
  264. package/dist/types/__VUE/table/index.vue.d.ts +26 -24
  265. package/dist/types/__VUE/tabpane/index.vue.d.ts +17 -19
  266. package/dist/types/__VUE/tabs/common.d.ts +13 -0
  267. package/dist/types/__VUE/tabs/index.vue.d.ts +72 -35
  268. package/dist/types/__VUE/tag/index.vue.d.ts +34 -27
  269. package/dist/types/__VUE/textarea/index.vue.d.ts +46 -34
  270. package/dist/types/__VUE/timedetail/index.vue.d.ts +13 -17
  271. package/dist/types/__VUE/timepannel/index.vue.d.ts +13 -17
  272. package/dist/types/__VUE/timeselect/index.vue.d.ts +34 -28
  273. package/dist/types/__VUE/toast/index.d.ts +5 -5
  274. package/dist/types/__VUE/toast/index.vue.d.ts +62 -54
  275. package/dist/types/__VUE/trendarrow/index.vue.d.ts +131 -0
  276. package/dist/types/__VUE/uploader/index.vue.d.ts +111 -68
  277. package/dist/types/__VUE/video/index.vue.d.ts +30 -20
  278. package/dist/types/__VUE/watermark/index.vue.d.ts +75 -49
  279. package/dist/types/index.d.ts +1 -1
  280. package/dist/types/nutui.d.ts +2 -1
  281. package/package.json +5 -5
@@ -1,32 +1,14 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
1
  /*!
21
- * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
25
- import { ref, reactive, computed, watch, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, Fragment, renderList, renderSlot } from "vue";
6
+ import { ref, reactive, computed, watch, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, renderList, renderSlot } from "vue";
26
7
  import { c as createComponent } from "./component.js";
27
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
28
9
  import "../locale/lang";
29
10
  const { componentName, create } = createComponent("list");
11
+ const clientHeight = document.documentElement.clientHeight || document.body.clientHeight || 667;
30
12
  const _sfc_main = create({
31
13
  props: {
32
14
  height: {
@@ -41,7 +23,7 @@ const _sfc_main = create({
41
23
  },
42
24
  containerHeight: {
43
25
  type: [Number],
44
- default: document.documentElement.clientHeight || document.body.clientHeight || 667
26
+ default: clientHeight
45
27
  }
46
28
  },
47
29
  emits: ["scroll", "scroll-bottom"],
@@ -52,8 +34,11 @@ const _sfc_main = create({
52
34
  start: 0,
53
35
  list: props.listData.slice()
54
36
  });
37
+ const getContainerHeight = computed(() => {
38
+ return Math.min(props.containerHeight, clientHeight);
39
+ });
55
40
  const visibleCount = computed(() => {
56
- return Math.ceil(props.containerHeight / props.height);
41
+ return Math.ceil(getContainerHeight.value / props.height);
57
42
  });
58
43
  const end = computed(() => {
59
44
  return state.start + visibleCount.value;
@@ -83,22 +68,28 @@ const _sfc_main = create({
83
68
  }
84
69
  state.startOffset = scrollTop - scrollTop % props.height;
85
70
  };
86
- watch(() => props.listData, () => {
87
- state.list = props.listData.slice();
88
- });
89
- return __spreadProps(__spreadValues({}, toRefs(state)), {
71
+ watch(
72
+ () => props.listData,
73
+ () => {
74
+ state.list = props.listData.slice();
75
+ }
76
+ );
77
+ return {
78
+ ...toRefs(state),
90
79
  list,
91
80
  getTransform,
92
81
  listHeight,
93
82
  visibleData,
94
83
  classes,
84
+ getContainerHeight,
95
85
  handleScrollEvent
96
- });
86
+ };
97
87
  }
98
88
  });
99
89
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
100
- return openBlock(), createElementBlock("view", {
90
+ return openBlock(), createElementBlock("div", {
101
91
  class: normalizeClass(_ctx.classes),
92
+ style: normalizeStyle({ height: `${_ctx.getContainerHeight}px` }),
102
93
  onScrollPassive: _cache[0] || (_cache[0] = (...args) => _ctx.handleScrollEvent && _ctx.handleScrollEvent(...args)),
103
94
  ref: "list"
104
95
  }, [
@@ -123,7 +114,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
123
114
  ], 4);
124
115
  }), 128))
125
116
  ], 4)
126
- ], 34);
117
+ ], 38);
127
118
  }
128
119
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
129
120
  export { index as default };
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { ref, computed, onMounted, onUnmounted, reactive, provide, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, createVNode, mergeProps, renderSlot } from "vue";
6
+ import { ref, computed, onMounted, onUnmounted, reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, createVNode, mergeProps, renderSlot, provide } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { u as useRect } from "./index2.js";
9
9
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
@@ -56,11 +56,17 @@ const _sfc_main = create({
56
56
  publicChildren.push(child.proxy);
57
57
  }
58
58
  };
59
- provide("menuParent", Object.assign({
60
- link,
61
- children: publicChildren,
62
- internalChildren
63
- }, value));
59
+ provide(
60
+ "menuParent",
61
+ Object.assign(
62
+ {
63
+ link,
64
+ children: publicChildren,
65
+ internalChildren
66
+ },
67
+ value
68
+ )
69
+ );
64
70
  };
65
71
  return {
66
72
  children: publicChildren,
@@ -1,24 +1,5 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
1
  /*!
21
- * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -89,7 +70,7 @@ const _sfc_main = create({
89
70
  if (parent.props.direction === "down") {
90
71
  return heightStyle;
91
72
  } else {
92
- return __spreadProps(__spreadValues({}, heightStyle), { top: "auto" });
73
+ return { ...heightStyle, top: "auto" };
93
74
  }
94
75
  });
95
76
  const toggle = (show = !state.showPopup, options = {}) => {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,24 +1,5 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
1
  /*!
21
- * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -171,12 +152,18 @@ const _sfc_main = create({
171
152
  }
172
153
  return styles;
173
154
  });
174
- watch(() => props.text, (value) => {
175
- initScrollWrap(value);
176
- });
177
- watch(() => props.list, (value) => {
178
- state.scrollList = [].concat(value);
179
- });
155
+ watch(
156
+ () => props.text,
157
+ (value) => {
158
+ initScrollWrap();
159
+ }
160
+ );
161
+ watch(
162
+ () => props.list,
163
+ (value) => {
164
+ state.scrollList = [].concat(value);
165
+ }
166
+ );
180
167
  const initScrollWrap = (value) => {
181
168
  if (state.showNoticeBar == false) {
182
169
  return;
@@ -277,7 +264,9 @@ const _sfc_main = create({
277
264
  onUnmounted(() => {
278
265
  clearInterval(state.timer);
279
266
  });
280
- return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(state)), {
267
+ return {
268
+ ...toRefs(props),
269
+ ...toRefs(state),
281
270
  isEllipsis,
282
271
  classes,
283
272
  iconShow,
@@ -293,7 +282,7 @@ const _sfc_main = create({
293
282
  go,
294
283
  handleClickIcon,
295
284
  slots
296
- });
285
+ };
297
286
  }
298
287
  });
299
288
  const _hoisted_1 = {
@@ -333,7 +322,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
333
322
  class: normalizeClass(["content", _ctx.animationClass, { "nut-ellipsis": _ctx.isEllipsis }]),
334
323
  style: normalizeStyle(_ctx.contentStyle),
335
324
  onAnimationend: _cache[0] || (_cache[0] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args)),
336
- onWebkitAnimationEnd: _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
325
+ "on:webkitAnimationEnd": _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
337
326
  }, [
338
327
  renderSlot(_ctx.$slots, "default", {}, () => [
339
328
  createTextVNode(toDisplayString(_ctx.text), 1)
@@ -1,24 +1,5 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
1
  /*!
21
- * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -96,11 +77,14 @@ const _sfc_main = create({
96
77
  if (props.duration) {
97
78
  show();
98
79
  }
99
- watch(() => props.duration, (val) => {
100
- if (val) {
101
- show();
80
+ watch(
81
+ () => props.duration,
82
+ (val) => {
83
+ if (val) {
84
+ show();
85
+ }
102
86
  }
103
- });
87
+ );
104
88
  const onAfterLeave = () => {
105
89
  clearTimer();
106
90
  props.unmount && props.unmount(props.id);
@@ -170,9 +154,9 @@ const updateNotify = (opts) => {
170
154
  if (container) {
171
155
  const currentOpt = optsMap.find((item) => item.id === opts.id);
172
156
  if (currentOpt) {
173
- opts = __spreadValues(__spreadValues(__spreadValues({}, defaultOptions), currentOpt), opts);
157
+ opts = { ...defaultOptions, ...currentOpt, ...opts };
174
158
  } else {
175
- opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
159
+ opts = { ...defaultOptions, ...opts };
176
160
  }
177
161
  const instance = createVNode(Notify, opts);
178
162
  render(instance, container);
@@ -190,7 +174,7 @@ const mountNotify = (opts) => {
190
174
  } else {
191
175
  _id = new Date().getTime() + "";
192
176
  }
193
- opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
177
+ opts = { ...defaultOptions, ...opts };
194
178
  opts.id = _id;
195
179
  idsMap.push(opts.id);
196
180
  optsMap.push(opts);
@@ -222,23 +206,23 @@ const errorMsg = (msg) => {
222
206
  const NotifyFunction = {
223
207
  text(msg, obj = {}) {
224
208
  errorMsg(msg);
225
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg }));
209
+ return mountNotify({ ...obj, msg });
226
210
  },
227
211
  primary(msg, obj = {}) {
228
212
  errorMsg(msg);
229
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "primary" }));
213
+ return mountNotify({ ...obj, msg, type: "primary" });
230
214
  },
231
215
  success(msg, obj = {}) {
232
216
  errorMsg(msg);
233
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "success" }));
217
+ return mountNotify({ ...obj, msg, type: "success" });
234
218
  },
235
219
  danger(msg, obj = {}) {
236
220
  errorMsg(msg);
237
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "danger" }));
221
+ return mountNotify({ ...obj, msg, type: "danger" });
238
222
  },
239
223
  warn(msg, obj = {}) {
240
224
  errorMsg(msg);
241
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "warning" }));
225
+ return mountNotify({ ...obj, msg, type: "warning" });
242
226
  },
243
227
  hide() {
244
228
  clearNotify();
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { ref, computed, watch, onMounted, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createTextVNode } from "vue";
6
+ import { ref, computed, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createTextVNode } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
9
  import "../locale/lang";
@@ -106,7 +106,11 @@ const _sfc_main = create({
106
106
  keys.push({ id: 0, type: "number" }, { id: customKeys[0], type: "custom" });
107
107
  }
108
108
  } else if (customKeys.length === 2) {
109
- keys.push({ id: customKeys[0], type: "custom" }, { id: 0, type: "number" }, { id: customKeys[1], type: "custom" });
109
+ keys.push(
110
+ { id: customKeys[0], type: "custom" },
111
+ { id: 0, type: "number" },
112
+ { id: customKeys[1], type: "custom" }
113
+ );
110
114
  }
111
115
  return keys;
112
116
  }
@@ -116,9 +120,12 @@ const _sfc_main = create({
116
120
  }
117
121
  return defaultKey();
118
122
  });
119
- watch(() => props.visible, (value) => {
120
- show.value = value;
121
- });
123
+ watch(
124
+ () => props.visible,
125
+ (value) => {
126
+ show.value = value;
127
+ }
128
+ );
122
129
  function onTouchstart(item, event) {
123
130
  event.stopPropagation();
124
131
  clickKeyIndex.value = item.id;
@@ -136,7 +143,7 @@ const _sfc_main = create({
136
143
  emit("update:value", props.value.slice(0, props.value.length - 1));
137
144
  }
138
145
  }
139
- function onTouchMove(id, event) {
146
+ function onTouchMove(event) {
140
147
  event.stopPropagation();
141
148
  }
142
149
  function onTouchEnd(event) {
@@ -146,8 +153,6 @@ const _sfc_main = create({
146
153
  function closeBoard() {
147
154
  emit("close");
148
155
  }
149
- onMounted(() => {
150
- });
151
156
  return {
152
157
  clickKeyIndex,
153
158
  defaultKey,
@@ -175,7 +180,7 @@ const _hoisted_2 = {
175
180
  const _hoisted_3 = { class: "tit" };
176
181
  const _hoisted_4 = { class: "number-board-body" };
177
182
  const _hoisted_5 = { class: "number-board" };
178
- const _hoisted_6 = ["onTouchstart", "onTouchmove"];
183
+ const _hoisted_6 = ["onTouchstart"];
179
184
  const _hoisted_7 = {
180
185
  key: 1,
181
186
  src: "https://img11.360buyimg.com/imagetools/jfs/t1/146371/38/8485/738/5f606425Eca239740/14f4b4f5f20d8a68.png"
@@ -197,12 +202,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
197
202
  const _component_nut_popup = resolveComponent("nut-popup");
198
203
  return openBlock(), createBlock(_component_nut_popup, {
199
204
  visible: _ctx.show,
200
- "onUpdate:visible": _cache[6] || (_cache[6] = ($event) => _ctx.show = $event),
205
+ "onUpdate:visible": _cache[7] || (_cache[7] = ($event) => _ctx.show = $event),
201
206
  position: "bottom",
202
207
  teleport: _ctx.teleport,
203
208
  popClass: _ctx.popClass,
204
209
  overlay: _ctx.overlay,
205
- onClickOverlay: _cache[7] || (_cache[7] = ($event) => _ctx.closeBoard()),
210
+ onClickOverlay: _cache[8] || (_cache[8] = ($event) => _ctx.closeBoard()),
206
211
  isWrapTeleport: _ctx.isWrapTeleport,
207
212
  "overlay-class": "nut-numberkeyboard-overlay"
208
213
  }, {
@@ -236,8 +241,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
236
241
  { delete: item.type == "delete" }
237
242
  ]),
238
243
  onTouchstart: (event) => _ctx.onTouchstart(item, event),
239
- onTouchmove: (event) => _ctx.onTouchMove(item, event),
240
- onTouchend: _cache[1] || (_cache[1] = (event) => _ctx.onTouchEnd(event))
244
+ onTouchmove: _cache[1] || (_cache[1] = (event) => _ctx.onTouchMove(event)),
245
+ onTouchend: _cache[2] || (_cache[2] = (event) => _ctx.onTouchEnd(event))
241
246
  }, [
242
247
  item.type == "number" || item.type == "custom" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
243
248
  createTextVNode(toDisplayString(item.id), 1)
@@ -252,14 +257,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
252
257
  createElementVNode("div", _hoisted_10, [
253
258
  createElementVNode("div", {
254
259
  class: normalizeClass(["key", { active: _ctx.clickKeyIndex == "delete" }]),
255
- onTouchstart: _cache[2] || (_cache[2] = (event) => _ctx.onTouchstart({ id: "delete", type: "delete" }, event)),
256
- onTouchmove: _cache[3] || (_cache[3] = (event) => _ctx.onTouchMove({ id: "delete", type: "delete" }, event)),
257
- onTouchend: _cache[4] || (_cache[4] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
260
+ onTouchstart: _cache[3] || (_cache[3] = (event) => _ctx.onTouchstart({ id: "delete", type: "delete" }, event)),
261
+ onTouchmove: _cache[4] || (_cache[4] = (event) => _ctx.onTouchMove({ id: "delete", type: "delete" }, event)),
262
+ onTouchend: _cache[5] || (_cache[5] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
258
263
  }, _hoisted_12, 34)
259
264
  ]),
260
265
  createElementVNode("div", {
261
266
  class: "key-board-wrapper key-board-finish",
262
- onClick: _cache[5] || (_cache[5] = ($event) => _ctx.closeBoard())
267
+ onClick: _cache[6] || (_cache[6] = ($event) => _ctx.closeBoard())
263
268
  }, [
264
269
  createElementVNode("div", {
265
270
  class: normalizeClass(["key", "finish", { activeFinsh: _ctx.clickKeyIndex == "finish" }])
@@ -1,24 +1,5 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
1
  /*!
21
- * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -177,20 +158,29 @@ const _sfc_main$1 = create$1({
177
158
  type && setChooseValue();
178
159
  setMove(-move);
179
160
  };
180
- watch(() => props.listData, (val) => {
181
- state.transformY = 0;
182
- modifyStatus(false);
183
- }, {
184
- deep: true
185
- });
186
- watch(() => props.defaultIndex, (val) => {
187
- state.transformY = 0;
188
- modifyStatus(false);
189
- });
161
+ watch(
162
+ () => props.listData,
163
+ (val) => {
164
+ state.transformY = 0;
165
+ modifyStatus(false);
166
+ },
167
+ {
168
+ deep: true
169
+ }
170
+ );
171
+ watch(
172
+ () => props.defaultIndex,
173
+ (val) => {
174
+ state.transformY = 0;
175
+ modifyStatus(false);
176
+ }
177
+ );
190
178
  onMounted(() => {
191
179
  modifyStatus(true);
192
180
  });
193
- return __spreadProps(__spreadValues(__spreadValues({}, toRefs(state)), toRefs(props)), {
181
+ return {
182
+ ...toRefs(state),
183
+ ...toRefs(props),
194
184
  wrapper,
195
185
  setRollerStyle,
196
186
  isHidden,
@@ -203,7 +193,7 @@ const _sfc_main$1 = create$1({
203
193
  touchRollerStyle,
204
194
  touchListStyle,
205
195
  setMove
206
- });
196
+ };
207
197
  }
208
198
  });
209
199
  const _hoisted_1$1 = { class: "nut-oldpicker-content" };
@@ -255,7 +245,8 @@ const _sfc_main = create({
255
245
  [column.name]: column,
256
246
  [Popup.name]: Popup
257
247
  },
258
- props: __spreadProps(__spreadValues({}, popupProps), {
248
+ props: {
249
+ ...popupProps,
259
250
  title: {
260
251
  type: String,
261
252
  default: ""
@@ -282,7 +273,7 @@ const _sfc_main = create({
282
273
  type: [Number, String],
283
274
  default: 0
284
275
  }
285
- }),
276
+ },
286
277
  emits: ["close", "change", "confirm", "update:visible"],
287
278
  setup(props, { emit }) {
288
279
  const childrenKey = "children";
@@ -378,7 +369,9 @@ const _sfc_main = create({
378
369
  _defaultIndex = dataIndex;
379
370
  } else if (dataType.value === "multipleColumns") {
380
371
  defaultIndexList[columnIndex] = dataIndex;
381
- const val = defaultIndexList.map((res, i) => toRaw(state.formattedColumns)[i].values[res]);
372
+ const val = defaultIndexList.map(
373
+ (res, i) => toRaw(state.formattedColumns)[i].values[res]
374
+ );
382
375
  emit("change", val, columnIndex, dataIndex);
383
376
  }
384
377
  };
@@ -390,7 +383,9 @@ const _sfc_main = create({
390
383
  for (let i = 0; i < defaultIndexList.length; i++) {
391
384
  state.formattedColumns[i].defaultIndex = defaultIndexList[i];
392
385
  }
393
- const checkedArr = toRaw(state.formattedColumns).map((res) => res.values && res.values[res.defaultIndex]);
386
+ const checkedArr = toRaw(state.formattedColumns).map(
387
+ (res) => res.values && res.values[res.defaultIndex]
388
+ );
394
389
  emit("confirm", checkedArr);
395
390
  } else if (dataType.value === "cascade") {
396
391
  emit("confirm", getCascadeData(toRaw(state.formattedColumns), state.defaultIndex));
@@ -405,22 +400,28 @@ const _sfc_main = create({
405
400
  if (props.visible)
406
401
  state.show = false;
407
402
  });
408
- watch(() => props.visible, (val) => {
409
- state.show = val;
410
- });
411
- watch(() => props.listData, (val) => {
412
- state.formattedColumns = val;
413
- });
414
- return __spreadProps(__spreadValues({
415
- classes
416
- }, toRefs(state)), {
403
+ watch(
404
+ () => props.visible,
405
+ (val) => {
406
+ state.show = val;
407
+ }
408
+ );
409
+ watch(
410
+ () => props.listData,
411
+ (val) => {
412
+ state.formattedColumns = val;
413
+ }
414
+ );
415
+ return {
416
+ classes,
417
+ ...toRefs(state),
417
418
  column,
418
419
  dataType,
419
420
  columnList,
420
421
  close,
421
422
  changeHandler,
422
423
  confirm
423
- });
424
+ };
424
425
  }
425
426
  });
426
427
  const _hoisted_1 = { class: "nut-oldpicker__bar" };
@@ -1,21 +1,5 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
- var __hasOwnProp = Object.prototype.hasOwnProperty;
4
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __spreadValues = (a, b) => {
7
- for (var prop in b || (b = {}))
8
- if (__hasOwnProp.call(b, prop))
9
- __defNormalProp(a, prop, b[prop]);
10
- if (__getOwnPropSymbols)
11
- for (var prop of __getOwnPropSymbols(b)) {
12
- if (__propIsEnum.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- }
15
- return a;
16
- };
17
1
  /*!
18
- * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
19
3
  * (c) 2022 @jdf2e.
20
4
  * Released under the MIT License.
21
5
  */
@@ -64,9 +48,12 @@ const _sfc_main = create({
64
48
  [props.overlayClass]: true
65
49
  };
66
50
  });
67
- watch(() => props.visible, (value) => {
68
- value ? lock() : unlock();
69
- });
51
+ watch(
52
+ () => props.visible,
53
+ (value) => {
54
+ value ? lock() : unlock();
55
+ }
56
+ );
70
57
  const lock = () => {
71
58
  if (props.lockScroll && props.visible) {
72
59
  document.body.classList.add("nut-overflow-hidden");
@@ -80,10 +67,11 @@ const _sfc_main = create({
80
67
  onMounted(lock);
81
68
  onActivated(lock);
82
69
  const style = computed(() => {
83
- return __spreadValues({
70
+ return {
84
71
  animationDuration: `${props.duration}s`,
85
- zIndex: props.zIndex
86
- }, props.overlayStyle);
72
+ zIndex: props.zIndex,
73
+ ...props.overlayStyle
74
+ };
87
75
  });
88
76
  const touchmove = (e) => {
89
77
  if (props.lockScroll)