@nutui/nutui 3.1.23-beta.6 → 3.2.2-beta.1

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 (231) hide show
  1. package/CHANGELOG.md +63 -1
  2. package/dist/nutui.es.js +1475 -1070
  3. package/dist/nutui.umd.js +1468 -1063
  4. package/dist/packages/_es/ActionSheet.js +4 -22
  5. package/dist/packages/_es/Address.js +79 -71
  6. package/dist/packages/_es/AddressList.js +7 -5
  7. package/dist/packages/_es/Animate.js +2 -21
  8. package/dist/packages/_es/Audio.js +39 -68
  9. package/dist/packages/_es/AudioOperate.js +3 -24
  10. package/dist/packages/_es/Avatar.js +8 -24
  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 +7 -4
  15. package/dist/packages/_es/Button.js +6 -5
  16. package/dist/packages/_es/Calendar.js +10 -4
  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 +51 -65
  20. package/dist/packages/_es/Category.js +2 -2
  21. package/dist/packages/_es/CategoryPane.js +10 -10
  22. package/dist/packages/_es/Cell.js +8 -9
  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 +1 -1
  27. package/dist/packages/_es/Col.js +5 -11
  28. package/dist/packages/_es/Collapse.js +22 -19
  29. package/dist/packages/_es/CollapseItem.js +30 -42
  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 +39 -40
  34. package/dist/packages/_es/DatePicker.js +25 -33
  35. package/dist/packages/_es/Dialog.js +12 -27
  36. package/dist/packages/_es/Divider.js +7 -24
  37. package/dist/packages/_es/Drag.js +1 -1
  38. package/dist/packages/_es/Ecard.js +7 -4
  39. package/dist/packages/_es/Elevator.js +25 -38
  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 +18 -14
  43. package/dist/packages/_es/Form.js +8 -4
  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 +6 -5
  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 +24 -39
  50. package/dist/packages/_es/Indicator.js +1 -1
  51. package/dist/packages/_es/InfiniteLoading.js +8 -33
  52. package/dist/packages/_es/Input.js +75 -69
  53. package/dist/packages/_es/InputNumber.js +20 -14
  54. package/dist/packages/_es/Layout.js +1 -1
  55. package/dist/packages/_es/List.js +10 -25
  56. package/dist/packages/_es/Menu.js +17 -10
  57. package/dist/packages/_es/MenuItem.js +5 -26
  58. package/dist/packages/_es/Navbar.js +10 -8
  59. package/dist/packages/_es/NoticeBar.js +20 -31
  60. package/dist/packages/_es/Notify.js +16 -32
  61. package/dist/packages/_es/NumberKeyboard.js +21 -16
  62. package/dist/packages/_es/OldPicker.js +47 -46
  63. package/dist/packages/_es/OverLay.js +11 -23
  64. package/dist/packages/_es/Pagination.js +1 -1
  65. package/dist/packages/_es/Picker.js +81 -59
  66. package/dist/packages/_es/Popover.js +58 -58
  67. package/dist/packages/_es/Popup.js +38 -43
  68. package/dist/packages/_es/Price.js +1 -1
  69. package/dist/packages/_es/Progress.js +4 -5
  70. package/dist/packages/_es/PullRefresh.js +5 -20
  71. package/dist/packages/_es/Radio.js +25 -13
  72. package/dist/packages/_es/RadioGroup.js +12 -5
  73. package/dist/packages/_es/Range.js +20 -33
  74. package/dist/packages/_es/Rate.js +5 -24
  75. package/dist/packages/_es/Row.js +5 -11
  76. package/dist/packages/_es/SearchBar.js +5 -24
  77. package/dist/packages/_es/ShortPassword.js +18 -11
  78. package/dist/packages/_es/SideNavBar.js +4 -22
  79. package/dist/packages/_es/SideNavBarItem.js +1 -1
  80. package/dist/packages/_es/Signature.js +15 -23
  81. package/dist/packages/_es/Skeleton.js +1 -1
  82. package/dist/packages/_es/Sku.js +24 -32
  83. package/dist/packages/_es/Step.js +9 -26
  84. package/dist/packages/_es/Steps.js +8 -4
  85. package/dist/packages/_es/Sticky.js +23 -12
  86. package/dist/packages/_es/SubSideNavBar.js +4 -22
  87. package/dist/packages/_es/Swipe.js +5 -24
  88. package/dist/packages/_es/Swiper.js +23 -14
  89. package/dist/packages/_es/SwiperItem.js +1 -1
  90. package/dist/packages/_es/Switch.js +15 -11
  91. package/dist/packages/_es/TabPane.js +1 -1
  92. package/dist/packages/_es/Tabbar.js +7 -4
  93. package/dist/packages/_es/TabbarItem.js +13 -14
  94. package/dist/packages/_es/Table.js +10 -25
  95. package/dist/packages/_es/Tabs.js +20 -29
  96. package/dist/packages/_es/Tag.js +11 -15
  97. package/dist/packages/_es/TextArea.js +8 -5
  98. package/dist/packages/_es/TimeDetail.js +5 -24
  99. package/dist/packages/_es/TimePannel.js +4 -22
  100. package/dist/packages/_es/TimeSelect.js +1 -1
  101. package/dist/packages/_es/Toast.js +22 -39
  102. package/dist/packages/_es/Uploader.js +54 -54
  103. package/dist/packages/_es/Video.js +22 -33
  104. package/dist/packages/_es/WaterMark.js +31 -44
  105. package/dist/packages/_es/common.js +21 -11
  106. package/dist/packages/_es/component.js +5 -5
  107. package/dist/packages/_es/index.js +1 -1
  108. package/dist/packages/_es/index2.js +1 -1
  109. package/dist/packages/_es/index3.js +1 -1
  110. package/dist/packages/_es/index4.js +1 -1
  111. package/dist/packages/_es/index5.js +26 -35
  112. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  113. package/dist/packages/_es/pxCheck.js +1 -1
  114. package/dist/packages/_es/raf.js +1 -1
  115. package/dist/packages/_es/style.css +1 -111
  116. package/dist/packages/actionsheet/index.scss +17 -0
  117. package/dist/packages/address/index.scss +60 -0
  118. package/dist/packages/addresslist/index.scss +57 -17
  119. package/dist/packages/audio/index.scss +8 -0
  120. package/dist/packages/barrage/index.scss +7 -0
  121. package/dist/packages/button/index.scss +1 -0
  122. package/dist/packages/card/index.scss +8 -1
  123. package/dist/packages/category/index.scss +25 -4
  124. package/dist/packages/categorypane/index.scss +18 -65
  125. package/dist/packages/circleprogress/index.scss +6 -0
  126. package/dist/packages/collapseitem/index.scss +21 -0
  127. package/dist/packages/comment/index.scss +37 -0
  128. package/dist/packages/countup/index.scss +24 -3
  129. package/dist/packages/ecard/index.scss +31 -1
  130. package/dist/packages/elevator/index.scss +16 -0
  131. package/dist/packages/empty/index.scss +6 -0
  132. package/dist/packages/fixednav/index.scss +7 -0
  133. package/dist/packages/image/index.scss +12 -0
  134. package/dist/packages/infiniteloading/index.scss +18 -0
  135. package/dist/packages/locale/lang/baseLang.js +1 -1
  136. package/dist/packages/locale/lang/en-US.js +1 -1
  137. package/dist/packages/locale/lang/id-ID.js +1 -1
  138. package/dist/packages/locale/lang/index.js +1 -1
  139. package/dist/packages/locale/lang/zh-CN.js +1 -1
  140. package/dist/packages/locale/lang/zh-TW.js +1 -1
  141. package/dist/packages/menu/index.scss +14 -2
  142. package/dist/packages/menuitem/index.scss +8 -0
  143. package/dist/packages/noticebar/index.scss +13 -0
  144. package/dist/packages/numberkeyboard/index.scss +10 -0
  145. package/dist/packages/picker/index.scss +33 -0
  146. package/dist/packages/popup/index.scss +10 -0
  147. package/dist/packages/radio/index.scss +1 -0
  148. package/dist/packages/shortpassword/index.scss +20 -0
  149. package/dist/packages/sidenavbaritem/index.scss +9 -0
  150. package/dist/packages/sku/index.scss +40 -0
  151. package/dist/packages/step/index.scss +52 -0
  152. package/dist/packages/subsidenavbar/index.scss +12 -0
  153. package/dist/packages/swiper/index.scss +2 -0
  154. package/dist/packages/swiperitem/index.scss +3 -0
  155. package/dist/packages/tag/index.scss +20 -0
  156. package/dist/packages/watermark/index.scss +1 -1
  157. package/dist/smartips/attributes.json +38 -2
  158. package/dist/smartips/tags.json +14 -4
  159. package/dist/smartips/web-types.json +86 -4
  160. package/dist/style.css +1 -1
  161. package/dist/styles/themes/default.scss +51 -51
  162. package/dist/styles/themes/jdb.scss +51 -51
  163. package/dist/styles/themes/jdt.scss +51 -51
  164. package/dist/styles/variables-jdb.scss +28 -7
  165. package/dist/styles/variables-jdt.scss +28 -7
  166. package/dist/styles/variables.scss +27 -7
  167. package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
  168. package/dist/types/__VUE/address/index.vue.d.ts +1 -1
  169. package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -1
  170. package/dist/types/__VUE/audio/index.vue.d.ts +4 -1
  171. package/dist/types/__VUE/audiooperate/index.vue.d.ts +15 -72
  172. package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
  173. package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
  174. package/dist/types/__VUE/calendar/index.vue.d.ts +7 -0
  175. package/dist/types/__VUE/calendaritem/index.vue.d.ts +2 -2
  176. package/dist/types/__VUE/categorypane/index.vue.d.ts +1 -1
  177. package/dist/types/__VUE/cell/index.vue.d.ts +9 -2
  178. package/dist/types/__VUE/cellgroup/index.vue.d.ts +1 -1
  179. package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +1 -1
  180. package/dist/types/__VUE/circleprogress/index.vue.d.ts +1 -1
  181. package/dist/types/__VUE/col/index.vue.d.ts +2 -5
  182. package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
  183. package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
  184. package/dist/types/__VUE/configprovider/index.vue.d.ts +1 -1
  185. package/dist/types/__VUE/countdown/index.vue.d.ts +1 -1
  186. package/dist/types/__VUE/countup/index.vue.d.ts +1 -1
  187. package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
  188. package/dist/types/__VUE/fixednav/common.d.ts +56 -0
  189. package/dist/types/__VUE/fixednav/index.vue.d.ts +17 -9
  190. package/dist/types/__VUE/formitem/index.vue.d.ts +1 -1
  191. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
  192. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
  193. package/dist/types/__VUE/imagepreview/index.d.ts +7 -6
  194. package/dist/types/__VUE/imagepreview/index.vue.d.ts +4 -4
  195. package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
  196. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -1
  197. package/dist/types/__VUE/input/index.vue.d.ts +4 -9
  198. package/dist/types/__VUE/inputnumber/index.vue.d.ts +15 -1
  199. package/dist/types/__VUE/menu/index.vue.d.ts +3 -0
  200. package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -4
  201. package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -4
  202. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
  203. package/dist/types/__VUE/oldpicker/Column.vue.d.ts +1 -1
  204. package/dist/types/__VUE/oldpicker/index.vue.d.ts +1 -1
  205. package/dist/types/__VUE/overlay/index.vue.d.ts +1 -1
  206. package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
  207. package/dist/types/__VUE/picker/index.vue.d.ts +28 -13
  208. package/dist/types/__VUE/popover/index.vue.d.ts +2 -2
  209. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +1 -1
  210. package/dist/types/__VUE/radiogroup/index.vue.d.ts +1 -1
  211. package/dist/types/__VUE/row/index.vue.d.ts +2 -5
  212. package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
  213. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  214. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +1 -1
  215. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +1 -1
  216. package/dist/types/__VUE/signature/index.vue.d.ts +5 -2
  217. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +1 -1
  218. package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
  219. package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
  220. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
  221. package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -1
  222. package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
  223. package/dist/types/__VUE/timedetail/index.vue.d.ts +1 -1
  224. package/dist/types/__VUE/timepannel/index.vue.d.ts +1 -1
  225. package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
  226. package/dist/types/__VUE/uploader/index.vue.d.ts +7 -0
  227. package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
  228. package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
  229. package/dist/types/index.d.ts +1 -1
  230. package/package.json +2 -1
  231. package/dist/packages/index.d.ts +0 -3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -53,25 +53,28 @@ const _sfc_main = create({
53
53
  setup(props, { emit, slots }) {
54
54
  const collapseDom = ref(null);
55
55
  const collapseChldren = ref([]);
56
- watch(() => props.active, (newval, oldval) => {
57
- let doms = collapseChldren.value;
58
- Array.from(doms).forEach((item) => {
59
- if (typeof newval == "number" || typeof newval == "string") {
60
- if (newval == item.name) {
61
- item.changeOpen(!item.openExpanded);
62
- } else {
63
- item.changeOpen(false);
56
+ watch(
57
+ () => props.active,
58
+ (newval, oldval) => {
59
+ let doms = collapseChldren.value;
60
+ Array.from(doms).forEach((item) => {
61
+ if (typeof newval == "number" || typeof newval == "string") {
62
+ if (newval == item.name) {
63
+ item.changeOpen(true);
64
+ } else {
65
+ item.changeOpen(false);
66
+ }
67
+ } else if (Object.values(newval) instanceof Array) {
68
+ if (newval.indexOf(Number(item.name)) > -1 || newval.indexOf(String(item.name)) > -1) {
69
+ item.changeOpen(true);
70
+ } else {
71
+ item.changeOpen(false);
72
+ }
64
73
  }
65
- } else if (Object.values(newval) instanceof Array) {
66
- if (newval.indexOf(Number(item.name)) > -1 || newval.indexOf(String(item.name)) > -1) {
67
- item.changeOpen(true);
68
- } else {
69
- item.changeOpen(false);
70
- }
71
- }
72
- item.animation();
73
- });
74
- });
74
+ item.animation();
75
+ });
76
+ }
77
+ );
75
78
  onMounted(() => {
76
79
  collapseChldren.value = getCurrentInstance().provides.collapseParent.children || [];
77
80
  });
@@ -1,28 +1,9 @@
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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
25
- import { inject, reactive, computed, getCurrentInstance, ref, watch, onMounted, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, renderSlot, normalizeStyle } from "vue";
6
+ import { inject, reactive, computed, getCurrentInstance, ref, watch, onMounted, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, mergeProps, createCommentVNode, 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";
@@ -150,14 +131,17 @@ const _sfc_main = create({
150
131
  proxyData.openExpanded = true;
151
132
  }
152
133
  });
153
- watch(() => {
154
- var _a, _b;
155
- return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
156
- }, () => {
157
- setTimeout(() => {
158
- animation();
159
- }, 300);
160
- });
134
+ watch(
135
+ () => {
136
+ var _a, _b;
137
+ return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
138
+ },
139
+ () => {
140
+ setTimeout(() => {
141
+ animation();
142
+ }, 300);
143
+ }
144
+ );
161
145
  const init = () => {
162
146
  const { name } = props;
163
147
  const active = parent && parent.props.active;
@@ -185,17 +169,19 @@ const _sfc_main = create({
185
169
  }
186
170
  return _class;
187
171
  });
188
- return __spreadProps(__spreadValues(__spreadValues(__spreadValues({
172
+ return {
189
173
  classes,
190
- emptyContent
191
- }, toRefs(proxyData)), toRefs(parent.props)), toRefs(titleIconStyle)), {
174
+ emptyContent,
175
+ ...toRefs(proxyData),
176
+ ...toRefs(parent.props),
177
+ ...toRefs(titleIconStyle),
192
178
  wrapperRef,
193
179
  contentRef,
194
180
  open,
195
181
  toggleOpen,
196
182
  changeOpen,
197
183
  animation
198
- });
184
+ };
199
185
  }
200
186
  });
201
187
  const _hoisted_1 = { class: "collapse-title" };
@@ -227,13 +213,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
227
213
  createElementVNode("view", _hoisted_1, [
228
214
  createElementVNode("view", null, [
229
215
  createElementVNode("view", _hoisted_2, [
230
- _ctx.titleIcon ? (openBlock(), createBlock(_component_nut_icon, {
216
+ _ctx.titleIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
231
217
  key: 0,
232
- name: _ctx.titleIcon,
218
+ name: _ctx.titleIcon
219
+ }, _ctx.$attrs, {
233
220
  size: _ctx.titleIconSize,
234
221
  color: _ctx.titleIconColor,
235
- class: normalizeClass([_ctx.titleIconPosition == "left" ? "titleIconLeft" : "titleIconRight"])
236
- }, null, 8, ["name", "size", "color", "class"])) : createCommentVNode("", true),
222
+ class: [_ctx.titleIconPosition == "left" ? "titleIconLeft" : "titleIconRight"]
223
+ }), null, 16, ["name", "size", "color", "class"])) : createCommentVNode("", true),
237
224
  _ctx.$slots.mTitle ? renderSlot(_ctx.$slots, "mTitle", { key: 1 }) : (openBlock(), createElementBlock("view", {
238
225
  key: 2,
239
226
  innerHTML: _ctx.title,
@@ -249,14 +236,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
249
236
  innerHTML: _ctx.subTitle,
250
237
  class: "subTitle"
251
238
  }, null, 8, _hoisted_5)),
252
- _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
239
+ _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
253
240
  key: 2,
254
- name: _ctx.icon,
241
+ name: _ctx.icon
242
+ }, _ctx.$attrs, {
255
243
  size: _ctx.iconSize,
256
244
  color: _ctx.iconColor,
257
- class: normalizeClass(["collapse-icon", { "col-expanded": _ctx.openExpanded }, { "collapse-icon-disabled": _ctx.disabled }]),
258
- style: normalizeStyle(_ctx.iconStyle)
259
- }, null, 8, ["name", "size", "color", "class", "style"])) : createCommentVNode("", true)
245
+ class: ["collapse-icon", { "col-expanded": _ctx.openExpanded }, { "collapse-icon-disabled": _ctx.disabled }],
246
+ style: _ctx.iconStyle
247
+ }), null, 16, ["name", "size", "color", "class", "style"])) : createCommentVNode("", true)
260
248
  ], 2),
261
249
  _ctx.$slots.extraRender ? (openBlock(), createElementBlock("view", _hoisted_6, [
262
250
  createElementVNode("div", _hoisted_7, [
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19: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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19: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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19: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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19: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" };
@@ -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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19: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,
@@ -101,7 +83,7 @@ const _sfc_main = create({
101
83
  default: true
102
84
  },
103
85
  filter: Function
104
- }),
86
+ },
105
87
  emits: ["click", "update:visible", "change", "confirm", "update:moduleValue"],
106
88
  setup(props, { emit }) {
107
89
  const state = reactive({
@@ -308,21 +290,31 @@ const _sfc_main = create({
308
290
  onBeforeMount(() => {
309
291
  state.currentDate = formatValue(props.modelValue);
310
292
  });
311
- watch(() => props.modelValue, (value) => {
312
- state.currentDate = formatValue(value);
313
- });
314
- watch(() => props.title, (val) => {
315
- state.title = val;
316
- });
317
- watch(() => props.visible, (val) => {
318
- state.show = val;
319
- });
320
- return __spreadProps(__spreadValues({}, toRefs(state)), {
293
+ watch(
294
+ () => props.modelValue,
295
+ (value) => {
296
+ state.currentDate = formatValue(value);
297
+ }
298
+ );
299
+ watch(
300
+ () => props.title,
301
+ (val) => {
302
+ state.title = val;
303
+ }
304
+ );
305
+ watch(
306
+ () => props.visible,
307
+ (val) => {
308
+ state.show = val;
309
+ }
310
+ );
311
+ return {
312
+ ...toRefs(state),
321
313
  changeHandler,
322
314
  closeHandler,
323
315
  confirm,
324
316
  columns
325
- });
317
+ };
326
318
  }
327
319
  });
328
320
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19: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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */