@nutui/nutui 3.2.2 → 3.2.3

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 (292) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/nutui.es.js +2127 -1414
  3. package/dist/nutui.umd.js +2136 -1422
  4. package/dist/packages/_es/ActionSheet.js +4 -22
  5. package/dist/packages/_es/Address.js +63 -57
  6. package/dist/packages/_es/AddressList.js +12 -9
  7. package/dist/packages/_es/Animate.js +2 -21
  8. package/dist/packages/_es/Audio.js +11 -25
  9. package/dist/packages/_es/AudioOperate.js +3 -23
  10. package/dist/packages/_es/Avatar.js +6 -21
  11. package/dist/packages/_es/AvatarGroup.js +1 -1
  12. package/dist/packages/_es/BackTop.js +1 -1
  13. package/dist/packages/_es/Badge.js +1 -1
  14. package/dist/packages/_es/Barrage.js +74 -22
  15. package/dist/packages/_es/Button.js +1 -1
  16. package/dist/packages/_es/Calendar.js +17 -9
  17. package/dist/packages/_es/CalendarItem.js +1 -1
  18. package/dist/packages/_es/Card.js +1 -1
  19. package/dist/packages/_es/Cascader.js +72 -68
  20. package/dist/packages/_es/Category.js +1 -1
  21. package/dist/packages/_es/CategoryPane.js +1 -1
  22. package/dist/packages/_es/Cell.js +1 -1
  23. package/dist/packages/_es/CellGroup.js +1 -1
  24. package/dist/packages/_es/Checkbox.js +31 -17
  25. package/dist/packages/_es/CheckboxGroup.js +14 -7
  26. package/dist/packages/_es/CircleProgress.js +4 -4
  27. package/dist/packages/_es/Col.js +1 -1
  28. package/dist/packages/_es/Collapse.js +22 -19
  29. package/dist/packages/_es/CollapseItem.js +18 -32
  30. package/dist/packages/_es/Comment.js +13 -9
  31. package/dist/packages/_es/ConfigProvider.js +8 -4
  32. package/dist/packages/_es/CountDown.js +40 -46
  33. package/dist/packages/_es/CountUp.js +41 -40
  34. package/dist/packages/_es/DatePicker.js +25 -33
  35. package/dist/packages/_es/Dialog.js +13 -28
  36. package/dist/packages/_es/Divider.js +7 -24
  37. package/dist/packages/_es/Drag.js +2 -2
  38. package/dist/packages/_es/Ecard.js +8 -5
  39. package/dist/packages/_es/Elevator.js +27 -39
  40. package/dist/packages/_es/Ellipsis.js +14 -28
  41. package/dist/packages/_es/Empty.js +1 -1
  42. package/dist/packages/_es/FixedNav.js +1 -1
  43. package/dist/packages/_es/Form.js +23 -12
  44. package/dist/packages/_es/FormItem.js +1 -1
  45. package/dist/packages/_es/Grid.js +1 -1
  46. package/dist/packages/_es/GridItem.js +1 -1
  47. package/dist/packages/_es/Icon.js +15 -11
  48. package/dist/packages/_es/Image.js +8 -24
  49. package/dist/packages/_es/ImagePreview.js +34 -48
  50. package/dist/packages/_es/Indicator.js +1 -1
  51. package/dist/packages/_es/InfiniteLoading.js +5 -24
  52. package/dist/packages/_es/Input.js +8 -5
  53. package/dist/packages/_es/InputNumber.js +1 -1
  54. package/dist/packages/_es/Invoice.js +10 -25
  55. package/dist/packages/_es/Layout.js +1 -1
  56. package/dist/packages/_es/List.js +21 -30
  57. package/dist/packages/_es/Menu.js +13 -7
  58. package/dist/packages/_es/MenuItem.js +2 -21
  59. package/dist/packages/_es/Navbar.js +1 -1
  60. package/dist/packages/_es/NoticeBar.js +18 -29
  61. package/dist/packages/_es/Notify.js +16 -32
  62. package/dist/packages/_es/NumberKeyboard.js +23 -18
  63. package/dist/packages/_es/OldPicker.js +47 -46
  64. package/dist/packages/_es/OverLay.js +11 -23
  65. package/dist/packages/_es/Pagination.js +6 -6
  66. package/dist/packages/_es/Picker.js +66 -59
  67. package/dist/packages/_es/Popover.js +55 -52
  68. package/dist/packages/_es/Popup.js +35 -40
  69. package/dist/packages/_es/Price.js +1 -1
  70. package/dist/packages/_es/Progress.js +2 -2
  71. package/dist/packages/_es/PullRefresh.js +5 -20
  72. package/dist/packages/_es/Radio.js +25 -13
  73. package/dist/packages/_es/RadioGroup.js +12 -5
  74. package/dist/packages/_es/Range.js +20 -33
  75. package/dist/packages/_es/Rate.js +6 -24
  76. package/dist/packages/_es/Row.js +1 -1
  77. package/dist/packages/_es/SearchBar.js +6 -25
  78. package/dist/packages/_es/ShortPassword.js +18 -11
  79. package/dist/packages/_es/SideNavBar.js +6 -24
  80. package/dist/packages/_es/SideNavBarItem.js +1 -1
  81. package/dist/packages/_es/Signature.js +2 -21
  82. package/dist/packages/_es/Skeleton.js +1 -1
  83. package/dist/packages/_es/Sku.js +30 -35
  84. package/dist/packages/_es/Step.js +4 -22
  85. package/dist/packages/_es/Steps.js +8 -4
  86. package/dist/packages/_es/Sticky.js +23 -12
  87. package/dist/packages/_es/SubSideNavBar.js +4 -22
  88. package/dist/packages/_es/Swipe.js +5 -24
  89. package/dist/packages/_es/Swiper.js +23 -14
  90. package/dist/packages/_es/SwiperItem.js +1 -1
  91. package/dist/packages/_es/Switch.js +10 -7
  92. package/dist/packages/_es/TabPane.js +1 -1
  93. package/dist/packages/_es/Tabbar.js +7 -4
  94. package/dist/packages/_es/TabbarItem.js +1 -1
  95. package/dist/packages/_es/Table.js +10 -25
  96. package/dist/packages/_es/Tabs.js +99 -34
  97. package/dist/packages/_es/Tag.js +1 -2
  98. package/dist/packages/_es/TextArea.js +8 -5
  99. package/dist/packages/_es/TimeDetail.js +5 -24
  100. package/dist/packages/_es/TimePannel.js +4 -22
  101. package/dist/packages/_es/TimeSelect.js +1 -1
  102. package/dist/packages/_es/Toast.js +19 -35
  103. package/dist/packages/_es/TrendArrow.js +131 -0
  104. package/dist/packages/_es/Uploader.js +40 -34
  105. package/dist/packages/_es/Video.js +22 -33
  106. package/dist/packages/_es/WaterMark.js +31 -41
  107. package/dist/packages/_es/common.js +21 -11
  108. package/dist/packages/_es/component.js +13 -6
  109. package/dist/packages/_es/index.js +1 -1
  110. package/dist/packages/_es/index2.js +1 -1
  111. package/dist/packages/_es/index3.js +1 -1
  112. package/dist/packages/_es/index4.js +1 -1
  113. package/dist/packages/_es/index5.js +39 -41
  114. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  115. package/dist/packages/_es/pxCheck.js +1 -1
  116. package/dist/packages/_es/raf.js +1 -1
  117. package/dist/packages/_es/style.css +16 -1
  118. package/dist/packages/barrage/index.scss +27 -18
  119. package/dist/packages/list/index.scss +0 -1
  120. package/dist/packages/locale/lang/baseLang.js +1 -1
  121. package/dist/packages/locale/lang/en-US.js +1 -1
  122. package/dist/packages/locale/lang/id-ID.js +1 -1
  123. package/dist/packages/locale/lang/index.js +1 -1
  124. package/dist/packages/locale/lang/zh-CN.js +1 -1
  125. package/dist/packages/locale/lang/zh-TW.js +1 -1
  126. package/dist/packages/picker/index.scss +14 -0
  127. package/dist/packages/tabbar/index.scss +2 -1
  128. package/dist/packages/trendarrow/index.scss +17 -0
  129. package/dist/smartips/attributes.json +70 -10
  130. package/dist/smartips/tags.json +26 -7
  131. package/dist/smartips/web-types.json +153 -11
  132. package/dist/style.css +1 -1
  133. package/dist/style.es.js +1 -1
  134. package/dist/styles/font/config.json +3 -1
  135. package/dist/styles/font/demo_index.html +51 -5
  136. package/dist/styles/font/iconfont.css +11 -3
  137. package/dist/styles/font/iconfont.js +64 -61
  138. package/dist/styles/font/iconfont.json +14 -0
  139. package/dist/styles/font/iconfont.ttf +0 -0
  140. package/dist/styles/font/iconfont.woff +0 -0
  141. package/dist/styles/font/iconfont.woff2 +0 -0
  142. package/dist/styles/themes/default.scss +48 -47
  143. package/dist/styles/themes/jdb.scss +48 -47
  144. package/dist/styles/themes/jdt.scss +48 -47
  145. package/dist/styles/variables-jdb.scss +4 -1
  146. package/dist/styles/variables-jdt.scss +4 -1
  147. package/dist/styles/variables.scss +4 -1
  148. package/dist/types/__VUE/actionsheet/index.vue.d.ts +117 -63
  149. package/dist/types/__VUE/address/index.vue.d.ts +150 -80
  150. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +6 -5
  151. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +10 -7
  152. package/dist/types/__VUE/addresslist/components/LongPressShell.vue.d.ts +6 -5
  153. package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +6 -5
  154. package/dist/types/__VUE/addresslist/index.vue.d.ts +22 -13
  155. package/dist/types/__VUE/animate/index.vue.d.ts +14 -9
  156. package/dist/types/__VUE/audio/index.vue.d.ts +30 -17
  157. package/dist/types/__VUE/audiooperate/index.vue.d.ts +6 -5
  158. package/dist/types/__VUE/avatar/index.vue.d.ts +34 -21
  159. package/dist/types/__VUE/avatargroup/index.vue.d.ts +34 -19
  160. package/dist/types/__VUE/backtop/index.vue.d.ts +31 -18
  161. package/dist/types/__VUE/badge/index.vue.d.ts +33 -20
  162. package/dist/types/__VUE/barrage/index.vue.d.ts +28 -16
  163. package/dist/types/__VUE/button/index.vue.d.ts +44 -27
  164. package/dist/types/__VUE/calendar/index.vue.d.ts +62 -35
  165. package/dist/types/__VUE/calendaritem/index.vue.d.ts +72 -45
  166. package/dist/types/__VUE/card/index.vue.d.ts +34 -19
  167. package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +25 -24
  168. package/dist/types/__VUE/cascader/index.vue.d.ts +109 -64
  169. package/dist/types/__VUE/category/index.vue.d.ts +10 -7
  170. package/dist/types/__VUE/categorypane/index.vue.d.ts +14 -9
  171. package/dist/types/__VUE/cell/index.vue.d.ts +55 -34
  172. package/dist/types/__VUE/cellgroup/index.vue.d.ts +10 -7
  173. package/dist/types/__VUE/checkbox/index.vue.d.ts +47 -26
  174. package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +14 -9
  175. package/dist/types/__VUE/circleprogress/index.vue.d.ts +30 -17
  176. package/dist/types/__VUE/col/index.vue.d.ts +10 -7
  177. package/dist/types/__VUE/collapse/index.vue.d.ts +40 -24
  178. package/dist/types/__VUE/collapseitem/index.vue.d.ts +29 -21
  179. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +14 -9
  180. package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +14 -9
  181. package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +14 -9
  182. package/dist/types/__VUE/comment/index.vue.d.ts +38 -21
  183. package/dist/types/__VUE/configprovider/index.vue.d.ts +10 -7
  184. package/dist/types/__VUE/countdown/index.vue.d.ts +34 -20
  185. package/dist/types/__VUE/countdown/util.d.ts +1 -1
  186. package/dist/types/__VUE/countup/index.vue.d.ts +73 -40
  187. package/dist/types/__VUE/datepicker/index.vue.d.ts +132 -71
  188. package/dist/types/__VUE/dialog/index.vue.d.ts +136 -74
  189. package/dist/types/__VUE/divider/index.vue.d.ts +18 -11
  190. package/dist/types/__VUE/drag/index.vue.d.ts +19 -9
  191. package/dist/types/__VUE/ecard/index.vue.d.ts +42 -23
  192. package/dist/types/__VUE/elevator/index.vue.d.ts +26 -15
  193. package/dist/types/__VUE/ellipsis/index.vue.d.ts +26 -15
  194. package/dist/types/__VUE/empty/index.vue.d.ts +14 -9
  195. package/dist/types/__VUE/fixednav/index.vue.d.ts +39 -21
  196. package/dist/types/__VUE/form/common.d.ts +4 -0
  197. package/dist/types/__VUE/form/index.vue.d.ts +16 -6
  198. package/dist/types/__VUE/formitem/index.vue.d.ts +42 -23
  199. package/dist/types/__VUE/grid/index.vue.d.ts +40 -24
  200. package/dist/types/__VUE/griditem/index.vue.d.ts +25 -18
  201. package/dist/types/__VUE/icon/index.vue.d.ts +26 -15
  202. package/dist/types/__VUE/image/index.vue.d.ts +37 -25
  203. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +42 -29
  204. package/dist/types/__VUE/imagepreview/index.d.ts +4 -4
  205. package/dist/types/__VUE/imagepreview/index.vue.d.ts +64 -37
  206. package/dist/types/__VUE/indicator/index.vue.d.ts +24 -13
  207. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +46 -25
  208. package/dist/types/__VUE/input/index.vue.d.ts +133 -70
  209. package/dist/types/__VUE/inputnumber/index.vue.d.ts +46 -25
  210. package/dist/types/__VUE/invoice/index.vue.d.ts +14 -9
  211. package/dist/types/__VUE/layout/index.vue.d.ts +1 -1
  212. package/dist/types/__VUE/list/index.vue.d.ts +15 -9
  213. package/dist/types/__VUE/menu/index.vue.d.ts +32 -22
  214. package/dist/types/__VUE/menuitem/index.vue.d.ts +22 -20
  215. package/dist/types/__VUE/navbar/index.vue.d.ts +42 -23
  216. package/dist/types/__VUE/noticebar/index.vue.d.ts +65 -36
  217. package/dist/types/__VUE/notify/index.vue.d.ts +42 -30
  218. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +65 -36
  219. package/dist/types/__VUE/oldpicker/Column.vue.d.ts +20 -15
  220. package/dist/types/__VUE/oldpicker/index.vue.d.ts +124 -71
  221. package/dist/types/__VUE/overlay/index.vue.d.ts +30 -1547
  222. package/dist/types/__VUE/pagination/index.vue.d.ts +42 -25
  223. package/dist/types/__VUE/picker/Column.vue.d.ts +25 -19
  224. package/dist/types/__VUE/picker/index.vue.d.ts +137 -79
  225. package/dist/types/__VUE/popover/index.vue.d.ts +107 -59
  226. package/dist/types/__VUE/popup/index.vue.d.ts +92 -62
  227. package/dist/types/__VUE/price/index.vue.d.ts +30 -17
  228. package/dist/types/__VUE/progress/index.vue.d.ts +51 -27
  229. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +45 -17
  230. package/dist/types/__VUE/radio/index.vue.d.ts +34 -19
  231. package/dist/types/__VUE/radiogroup/index.vue.d.ts +14 -9
  232. package/dist/types/__VUE/range/index.vue.d.ts +46 -34
  233. package/dist/types/__VUE/rate/index.vue.d.ts +59 -32
  234. package/dist/types/__VUE/row/index.vue.d.ts +22 -13
  235. package/dist/types/__VUE/searchbar/index.vue.d.ts +58 -31
  236. package/dist/types/__VUE/shortpassword/index.vue.d.ts +42 -23
  237. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +6 -5
  238. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +10 -7
  239. package/dist/types/__VUE/signature/index.vue.d.ts +22 -13
  240. package/dist/types/__VUE/skeleton/common.d.ts +1 -1
  241. package/dist/types/__VUE/skeleton/index.vue.d.ts +43 -24
  242. package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +6 -5
  243. package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +22 -13
  244. package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +6 -5
  245. package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +18 -11
  246. package/dist/types/__VUE/sku/index.vue.d.ts +125 -67
  247. package/dist/types/__VUE/step/index.vue.d.ts +24 -15
  248. package/dist/types/__VUE/steps/index.vue.d.ts +14 -9
  249. package/dist/types/__VUE/sticky/index.vue.d.ts +21 -14
  250. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +14 -9
  251. package/dist/types/__VUE/swipe/index.vue.d.ts +19 -12
  252. package/dist/types/__VUE/swiper/index.vue.d.ts +54 -29
  253. package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
  254. package/dist/types/__VUE/switch/index.vue.d.ts +50 -27
  255. package/dist/types/__VUE/tabbar/index.vue.d.ts +31 -18
  256. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +42 -26
  257. package/dist/types/__VUE/table/common.d.ts +1 -1
  258. package/dist/types/__VUE/table/index.vue.d.ts +24 -15
  259. package/dist/types/__VUE/tabpane/index.vue.d.ts +14 -9
  260. package/dist/types/__VUE/tabs/common.d.ts +13 -0
  261. package/dist/types/__VUE/tabs/index.vue.d.ts +70 -26
  262. package/dist/types/__VUE/tag/index.vue.d.ts +30 -17
  263. package/dist/types/__VUE/textarea/index.vue.d.ts +43 -24
  264. package/dist/types/__VUE/timedetail/index.vue.d.ts +10 -7
  265. package/dist/types/__VUE/timepannel/index.vue.d.ts +10 -7
  266. package/dist/types/__VUE/timeselect/index.vue.d.ts +31 -18
  267. package/dist/types/__VUE/toast/index.d.ts +1 -1
  268. package/dist/types/__VUE/toast/index.vue.d.ts +58 -43
  269. package/dist/types/__VUE/trendarrow/index.vue.d.ts +138 -0
  270. package/dist/types/__VUE/uploader/index.vue.d.ts +108 -59
  271. package/dist/types/__VUE/video/index.vue.d.ts +27 -10
  272. package/dist/types/__VUE/watermark/index.vue.d.ts +70 -37
  273. package/dist/types/index.d.ts +1 -1
  274. package/dist/types/nutui.d.ts +2 -1
  275. package/package.json +4 -4
  276. package/dist/types/__VUE/animate/type.d.ts +0 -6
  277. package/dist/types/__VUE/button/type.d.ts +0 -7
  278. package/dist/types/__VUE/cascader/types.d.ts +0 -30
  279. package/dist/types/__VUE/datepicker/type.d.ts +0 -6
  280. package/dist/types/__VUE/form/types.d.ts +0 -13
  281. package/dist/types/__VUE/formitem/types.d.ts +0 -10
  282. package/dist/types/__VUE/image/type.d.ts +0 -6
  283. package/dist/types/__VUE/imagepreview/types.d.ts +0 -7
  284. package/dist/types/__VUE/input/type.d.ts +0 -13
  285. package/dist/types/__VUE/menuitem/type.d.ts +0 -8
  286. package/dist/types/__VUE/oldpicker/commonProps.d.ts +0 -22
  287. package/dist/types/__VUE/oldpicker/types.d.ts +0 -24
  288. package/dist/types/__VUE/picker/types.d.ts +0 -26
  289. package/dist/types/__VUE/popover/type.d.ts +0 -6
  290. package/dist/types/__VUE/range/type.d.ts +0 -5
  291. package/dist/types/__VUE/table/types.d.ts +0 -21
  292. package/dist/types/__VUE/tag/type.d.ts +0 -5
@@ -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.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -131,14 +131,18 @@ const _sfc_main$2 = create$2({
131
131
  const isShowImage = ref(false);
132
132
  const initIndex = ref(1);
133
133
  const totalImages = ref([]);
134
- watch(() => [props.videos, props.images], (value) => {
135
- if (value[0].length > 0) {
136
- value[0].forEach((el) => {
137
- el.type = "video";
138
- });
139
- }
140
- totalImages.value = value[0].concat(value[1]);
141
- }, { deep: true });
134
+ watch(
135
+ () => [props.videos, props.images],
136
+ (value) => {
137
+ if (value[0].length > 0) {
138
+ value[0].forEach((el) => {
139
+ el.type = "video";
140
+ });
141
+ }
142
+ totalImages.value = value[0].concat(value[1]);
143
+ },
144
+ { deep: true }
145
+ );
142
146
  onMounted(() => {
143
147
  if (props.videos.length > 0) {
144
148
  props.videos.forEach((el) => {
@@ -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.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -14,9 +14,13 @@ const component = {
14
14
  setup(props, { slots }) {
15
15
  return () => {
16
16
  var _a;
17
- return h(props.tag, {
18
- class: `nut-theme-${props.theme}`
19
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
17
+ return h(
18
+ props.tag,
19
+ {
20
+ class: `nut-theme-${props.theme}`
21
+ },
22
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
23
+ );
20
24
  };
21
25
  }
22
26
  };
@@ -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.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -148,7 +129,7 @@ const _sfc_main = create({
148
129
  rest.s = Math.floor(ts % MINUTE / SECOND);
149
130
  rest.ms = Math.floor(ts % SECOND);
150
131
  }
151
- return type == "custom" ? rest : parseFormat(__spreadValues({}, rest));
132
+ return type == "custom" ? rest : parseFormat({ ...rest });
152
133
  };
153
134
  const parseFormat = (time) => {
154
135
  let { d, h, m, s, ms } = time;
@@ -211,32 +192,45 @@ const _sfc_main = create({
211
192
  state.restTime = props.time;
212
193
  }
213
194
  });
214
- watch(() => state.restTime, (value) => {
215
- let tranTime = formatRemainTime(value, "custom");
216
- emit("update:modelValue", tranTime);
217
- emit("input", tranTime);
218
- });
219
- watch(() => props.paused, (v, ov) => {
220
- if (!ov) {
221
- if (state.counting) {
222
- pause();
223
- }
224
- } else {
225
- if (!state.counting) {
226
- state.counting = true;
227
- state.handleEndTime = Date.now() + Number(state.restTime);
228
- tick();
195
+ watch(
196
+ () => state.restTime,
197
+ (value) => {
198
+ let tranTime = formatRemainTime(value, "custom");
199
+ emit("update:modelValue", tranTime);
200
+ emit("input", tranTime);
201
+ }
202
+ );
203
+ watch(
204
+ () => props.paused,
205
+ (v, ov) => {
206
+ if (!ov) {
207
+ if (state.counting) {
208
+ pause();
209
+ }
210
+ } else {
211
+ if (!state.counting) {
212
+ state.counting = true;
213
+ state.handleEndTime = Date.now() + Number(state.restTime);
214
+ tick();
215
+ }
216
+ emit("on-restart", state.restTime);
229
217
  }
230
- emit("on-restart", state.restTime);
231
218
  }
232
- });
233
- watch(() => props.endTime, (value) => {
234
- initTime();
235
- });
236
- watch(() => props.startTime, (value) => {
237
- initTime();
238
- });
239
- return __spreadProps(__spreadValues({}, toRefs(props)), {
219
+ );
220
+ watch(
221
+ () => props.endTime,
222
+ (value) => {
223
+ initTime();
224
+ }
225
+ );
226
+ watch(
227
+ () => props.startTime,
228
+ (value) => {
229
+ initTime();
230
+ }
231
+ );
232
+ return {
233
+ ...toRefs(props),
240
234
  slots,
241
235
  classes,
242
236
  getTimeStamp,
@@ -245,7 +239,7 @@ const _sfc_main = create({
245
239
  renderTime,
246
240
  translate,
247
241
  reset
248
- });
242
+ };
249
243
  }
250
244
  });
251
245
  const _hoisted_1 = ["innerHTML"];
@@ -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.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -135,23 +116,35 @@ const _sfc_main = create({
135
116
  typeMachine: ""
136
117
  });
137
118
  const { startFlag, scrolling, customBgImg, type } = reactive(props);
138
- watch(() => props.customChangeNum, (count, prevCount) => {
139
- clearIntervalTime();
140
- countGo(0);
141
- });
142
- watch(() => props.machinePrizeLevel, (count, prevCount) => {
143
- data.prizeLevelTrun = count;
144
- });
145
- watch(() => props.initNum, (count, prevCount) => {
146
- data.current = count;
147
- data.valFlag = false;
148
- valChange();
149
- });
150
- watch(() => props.endNum, (count, prevCount) => {
151
- data.current = props.initNum;
152
- data.valFlag = false;
153
- valChange();
154
- });
119
+ watch(
120
+ () => props.customChangeNum,
121
+ (count, prevCount) => {
122
+ clearIntervalTime();
123
+ countGo(0);
124
+ }
125
+ );
126
+ watch(
127
+ () => props.machinePrizeLevel,
128
+ (count, prevCount) => {
129
+ data.prizeLevelTrun = count;
130
+ }
131
+ );
132
+ watch(
133
+ () => props.initNum,
134
+ (count, prevCount) => {
135
+ data.current = count;
136
+ data.valFlag = false;
137
+ valChange();
138
+ }
139
+ );
140
+ watch(
141
+ () => props.endNum,
142
+ (count, prevCount) => {
143
+ data.current = props.initNum;
144
+ data.valFlag = false;
145
+ valChange();
146
+ }
147
+ );
155
148
  const valChange = () => {
156
149
  if (data.valFlag) {
157
150
  return false;
@@ -398,7 +391,11 @@ const _sfc_main = create({
398
391
  if (data.prizeLevelTrun < 0) {
399
392
  newLocation += props.numHeight * data.notPrize[i];
400
393
  }
401
- scrollTime(i, newLocation, local);
394
+ scrollTime(
395
+ i,
396
+ newLocation,
397
+ local
398
+ );
402
399
  }, 500 * i);
403
400
  }
404
401
  };
@@ -448,12 +445,14 @@ const _sfc_main = create({
448
445
  clearIntervalTime();
449
446
  data.timer = null;
450
447
  });
451
- return __spreadProps(__spreadValues(__spreadValues({}, toRefs(data)), toRefs(reactive(props))), {
448
+ return {
449
+ ...toRefs(data),
450
+ ...toRefs(reactive(props)),
452
451
  runNumberImg,
453
452
  setRef,
454
453
  topNumber,
455
454
  turnNumber
456
- });
455
+ };
457
456
  }
458
457
  });
459
458
  const _hoisted_1 = { class: "nut-countup" };
@@ -469,6 +468,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
469
468
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.machineNum, (val, index2) => {
470
469
  return openBlock(), createElementBlock("view", {
471
470
  class: "run-number-machine-img-li",
471
+ ref_for: true,
472
472
  ref: "run-number-machine-img-li",
473
473
  key: "mImg" + index2,
474
474
  style: normalizeStyle({
@@ -523,6 +523,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
523
523
  }, [
524
524
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val, index2) => {
525
525
  return openBlock(), createElementBlock("view", {
526
+ ref_for: true,
526
527
  ref: _ctx.setRef,
527
528
  class: "numberItem",
528
529
  key: val,
@@ -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.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -56,7 +37,8 @@ const _sfc_main = create({
56
37
  components: {
57
38
  [Picker.name]: Picker
58
39
  },
59
- props: __spreadProps(__spreadValues({}, popupProps), {
40
+ props: {
41
+ ...popupProps,
60
42
  modelValue: null,
61
43
  title: {
62
44
  type: String,
@@ -105,7 +87,7 @@ const _sfc_main = create({
105
87
  default: 1e3
106
88
  },
107
89
  filter: Function
108
- }),
90
+ },
109
91
  emits: ["click", "update:visible", "change", "confirm", "update:moduleValue"],
110
92
  setup(props, { emit }) {
111
93
  const state = reactive({
@@ -312,21 +294,31 @@ const _sfc_main = create({
312
294
  onBeforeMount(() => {
313
295
  state.currentDate = formatValue(props.modelValue);
314
296
  });
315
- watch(() => props.modelValue, (value) => {
316
- state.currentDate = formatValue(value);
317
- });
318
- watch(() => props.title, (val) => {
319
- state.title = val;
320
- });
321
- watch(() => props.visible, (val) => {
322
- state.show = val;
323
- });
324
- return __spreadProps(__spreadValues({}, toRefs(state)), {
297
+ watch(
298
+ () => props.modelValue,
299
+ (value) => {
300
+ state.currentDate = formatValue(value);
301
+ }
302
+ );
303
+ watch(
304
+ () => props.title,
305
+ (val) => {
306
+ state.title = val;
307
+ }
308
+ );
309
+ watch(
310
+ () => props.visible,
311
+ (val) => {
312
+ state.show = val;
313
+ }
314
+ );
315
+ return {
316
+ ...toRefs(state),
325
317
  changeHandler,
326
318
  closeHandler,
327
319
  confirm,
328
320
  columns
329
- });
321
+ };
330
322
  }
331
323
  });
332
324
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1,29 +1,10 @@
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.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
25
6
  import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, resolveDynamicComponent, createVNode, render, h } from "vue";
26
- import { a as isPromise, c as createComponent } from "./component.js";
7
+ import { i as isPromise, c as createComponent } from "./component.js";
27
8
  import Popup, { popupProps } from "./Popup.js";
28
9
  import Button from "./Button.js";
29
10
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
@@ -38,7 +19,8 @@ const _sfc_main = create({
38
19
  [Popup.name]: Popup,
39
20
  [Button.name]: Button
40
21
  },
41
- props: __spreadProps(__spreadValues({}, popupProps), {
22
+ props: {
23
+ ...popupProps,
42
24
  closeOnClickOverlay: {
43
25
  type: Boolean,
44
26
  default: false
@@ -97,7 +79,7 @@ const _sfc_main = create({
97
79
  beforeClose: {
98
80
  type: Function
99
81
  }
100
- }),
82
+ },
101
83
  emits: ["update", "update:visible", "ok", "cancel", "opened", "closed"],
102
84
  setup(props, { emit }) {
103
85
  const showPopup = ref(props.visible);
@@ -108,12 +90,15 @@ const _sfc_main = create({
108
90
  });
109
91
  }
110
92
  });
111
- watch(() => props.visible, (value) => {
112
- showPopup.value = value;
113
- if (value) {
114
- emit("opened");
93
+ watch(
94
+ () => props.visible,
95
+ (value) => {
96
+ showPopup.value = value;
97
+ if (value) {
98
+ emit("opened");
99
+ }
115
100
  }
116
- });
101
+ );
117
102
  const classes = computed(() => {
118
103
  return {
119
104
  [componentName]: true,
@@ -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.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -55,17 +36,19 @@ const _sfc_main = create({
55
36
  };
56
37
  let classesObj = {};
57
38
  if (props.direction === "horizontal") {
58
- classesObj = __spreadProps(__spreadValues({}, defaultClassesObj), {
39
+ classesObj = {
40
+ ...defaultClassesObj,
59
41
  [`${prefixCls}-center`]: context.slots.default,
60
42
  [`${prefixCls}-left`]: props.contentPosition === "left",
61
43
  [`${prefixCls}-right`]: props.contentPosition === "right",
62
44
  [`${prefixCls}-dashed`]: props.dashed,
63
45
  [`${prefixCls}-hairline`]: props.hairline
64
- });
46
+ };
65
47
  } else {
66
- classesObj = __spreadProps(__spreadValues({}, defaultClassesObj), {
48
+ classesObj = {
49
+ ...defaultClassesObj,
67
50
  [`${prefixCls}-vertical`]: props.direction === "vertical"
68
- });
51
+ };
69
52
  }
70
53
  return classesObj;
71
54
  });
@@ -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.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -31,7 +31,7 @@ const _sfc_main = create({
31
31
  }
32
32
  }
33
33
  },
34
- setup(props, { emit }) {
34
+ setup(props) {
35
35
  const myDrag = ref();
36
36
  const state = reactive({
37
37
  keepAlive: false,
@@ -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.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -7,7 +7,7 @@ import { ref, watch, resolveComponent, openBlock, createElementBlock, createElem
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";
10
- const { componentName, create, translate } = createComponent("ecard");
10
+ const { create, translate } = createComponent("ecard");
11
11
  const _sfc_main = create({
12
12
  props: {
13
13
  chooseText: {
@@ -94,9 +94,12 @@ const _sfc_main = create({
94
94
  stepValue.value = value;
95
95
  emit("changeStep", stepValue.value, currentValue.value);
96
96
  };
97
- watch(() => props.modelValue, (value) => {
98
- money.value = value;
99
- });
97
+ watch(
98
+ () => props.modelValue,
99
+ (value) => {
100
+ money.value = value;
101
+ }
102
+ );
100
103
  return {
101
104
  handleClick,
102
105
  changeStep,
@@ -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.3 Fri Sep 30 2022 10:26:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -171,24 +152,30 @@ const _sfc_main = create({
171
152
  useExpose({
172
153
  scrollTo
173
154
  });
174
- watch(() => state.listGroup.length, () => {
175
- state.listHeight = [];
176
- nextTick(calculateHeight);
177
- });
178
- watch(() => state.diff, (newVal) => {
179
- const listHeight = state.listHeight;
180
- let fixedTop = newVal > 0 && newVal < props.titleHeight ? newVal - props.titleHeight : 0;
181
- if (state.scrollY + clientHeight.value === listHeight[listHeight.length - 1]) {
182
- if (fixedTop !== 0)
183
- fixedTop = 0;
155
+ watch(
156
+ () => state.listGroup.length,
157
+ () => {
158
+ state.listHeight = [];
159
+ nextTick(calculateHeight);
184
160
  }
185
- if (state.fixedTop === fixedTop)
186
- return;
187
- state.fixedTop = fixedTop;
188
- });
189
- return __spreadProps(__spreadValues({
190
- classes
191
- }, toRefs(state)), {
161
+ );
162
+ watch(
163
+ () => state.diff,
164
+ (newVal) => {
165
+ const listHeight = state.listHeight;
166
+ let fixedTop = newVal > 0 && newVal < props.titleHeight ? newVal - props.titleHeight : 0;
167
+ if (state.scrollY + clientHeight.value === listHeight[listHeight.length - 1]) {
168
+ if (fixedTop !== 0)
169
+ fixedTop = 0;
170
+ }
171
+ if (state.fixedTop === fixedTop)
172
+ return;
173
+ state.fixedTop = fixedTop;
174
+ }
175
+ );
176
+ return {
177
+ classes,
178
+ ...toRefs(state),
192
179
  fixedStyle,
193
180
  clientHeight,
194
181
  setListGroup,
@@ -198,7 +185,7 @@ const _sfc_main = create({
198
185
  touchEnd,
199
186
  handleClickItem,
200
187
  handleClickIndex
201
- });
188
+ };
202
189
  }
203
190
  });
204
191
  const _hoisted_1 = { class: "nut-elevator__list__item__code" };
@@ -220,6 +207,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
220
207
  return openBlock(), createElementBlock("view", {
221
208
  class: "nut-elevator__list__item",
222
209
  key: item[_ctx.acceptKey],
210
+ ref_for: true,
223
211
  ref: _ctx.setListGroup
224
212
  }, [
225
213
  createElementVNode("view", _hoisted_1, toDisplayString(item[_ctx.acceptKey]), 1),
@@ -240,7 +228,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
240
228
  })
241
229
  ], 10, _hoisted_2);
242
230
  }), 128))
243
- ], 512);
231
+ ]);
244
232
  }), 128)),
245
233
  _ctx.isSticky ? withDirectives((openBlock(), createElementBlock("view", {
246
234
  key: 0,