@nutui/nutui 3.2.2-beta.1 → 3.2.2

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 (183) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +5 -3
  3. package/dist/nutui.es.js +1767 -1993
  4. package/dist/nutui.umd.js +1777 -2002
  5. package/dist/packages/_es/ActionSheet.js +22 -4
  6. package/dist/packages/_es/Address.js +57 -63
  7. package/dist/packages/_es/AddressList.js +3 -7
  8. package/dist/packages/_es/Animate.js +21 -2
  9. package/dist/packages/_es/Audio.js +25 -11
  10. package/dist/packages/_es/AudioOperate.js +21 -2
  11. package/dist/packages/_es/Avatar.js +20 -5
  12. package/dist/packages/_es/AvatarGroup.js +1 -1
  13. package/dist/packages/_es/BackTop.js +2 -2
  14. package/dist/packages/_es/Badge.js +1 -1
  15. package/dist/packages/_es/Barrage.js +4 -7
  16. package/dist/packages/_es/Button.js +1 -1
  17. package/dist/packages/_es/Calendar.js +1 -1
  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 +65 -51
  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 +17 -31
  26. package/dist/packages/_es/CheckboxGroup.js +7 -14
  27. package/dist/packages/_es/CircleProgress.js +1 -1
  28. package/dist/packages/_es/Col.js +1 -1
  29. package/dist/packages/_es/Collapse.js +19 -22
  30. package/dist/packages/_es/CollapseItem.js +32 -18
  31. package/dist/packages/_es/Comment.js +9 -13
  32. package/dist/packages/_es/ConfigProvider.js +4 -8
  33. package/dist/packages/_es/CountDown.js +46 -40
  34. package/dist/packages/_es/CountUp.js +40 -39
  35. package/dist/packages/_es/DatePicker.js +40 -27
  36. package/dist/packages/_es/Dialog.js +28 -13
  37. package/dist/packages/_es/Divider.js +24 -7
  38. package/dist/packages/_es/Drag.js +4 -4
  39. package/dist/packages/_es/Ecard.js +4 -7
  40. package/dist/packages/_es/Elevator.js +38 -25
  41. package/dist/packages/_es/Ellipsis.js +28 -14
  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 +5 -9
  45. package/dist/packages/_es/FormItem.js +5 -4
  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 +11 -15
  49. package/dist/packages/_es/Image.js +24 -8
  50. package/dist/packages/_es/ImagePreview.js +34 -22
  51. package/dist/packages/_es/Indicator.js +1 -1
  52. package/dist/packages/_es/InfiniteLoading.js +24 -5
  53. package/dist/packages/_es/Input.js +9 -13
  54. package/dist/packages/_es/InputNumber.js +1 -1
  55. package/dist/packages/_es/Invoice.js +156 -0
  56. package/dist/packages/_es/Layout.js +1 -1
  57. package/dist/packages/_es/List.js +25 -10
  58. package/dist/packages/_es/Menu.js +7 -13
  59. package/dist/packages/_es/MenuItem.js +22 -3
  60. package/dist/packages/_es/Navbar.js +2 -2
  61. package/dist/packages/_es/NoticeBar.js +28 -17
  62. package/dist/packages/_es/Notify.js +38 -20
  63. package/dist/packages/_es/NumberKeyboard.js +5 -12
  64. package/dist/packages/_es/OldPicker.js +46 -47
  65. package/dist/packages/_es/OverLay.js +23 -11
  66. package/dist/packages/_es/Pagination.js +1 -1
  67. package/dist/packages/_es/Picker.js +72 -64
  68. package/dist/packages/_es/Popover.js +52 -55
  69. package/dist/packages/_es/Popup.js +40 -35
  70. package/dist/packages/_es/Price.js +1 -1
  71. package/dist/packages/_es/Progress.js +1 -1
  72. package/dist/packages/_es/PullRefresh.js +20 -5
  73. package/dist/packages/_es/Radio.js +15 -27
  74. package/dist/packages/_es/RadioGroup.js +5 -12
  75. package/dist/packages/_es/Range.js +33 -20
  76. package/dist/packages/_es/Rate.js +24 -5
  77. package/dist/packages/_es/Row.js +1 -1
  78. package/dist/packages/_es/SearchBar.js +44 -11
  79. package/dist/packages/_es/ShortPassword.js +11 -18
  80. package/dist/packages/_es/SideNavBar.js +22 -4
  81. package/dist/packages/_es/SideNavBarItem.js +1 -1
  82. package/dist/packages/_es/Signature.js +21 -2
  83. package/dist/packages/_es/Skeleton.js +1 -1
  84. package/dist/packages/_es/Sku.js +32 -24
  85. package/dist/packages/_es/Step.js +22 -4
  86. package/dist/packages/_es/Steps.js +4 -8
  87. package/dist/packages/_es/Sticky.js +12 -23
  88. package/dist/packages/_es/SubSideNavBar.js +22 -4
  89. package/dist/packages/_es/Swipe.js +24 -5
  90. package/dist/packages/_es/Swiper.js +14 -23
  91. package/dist/packages/_es/SwiperItem.js +1 -1
  92. package/dist/packages/_es/Switch.js +7 -10
  93. package/dist/packages/_es/TabPane.js +1 -1
  94. package/dist/packages/_es/Tabbar.js +4 -7
  95. package/dist/packages/_es/TabbarItem.js +1 -1
  96. package/dist/packages/_es/Table.js +25 -10
  97. package/dist/packages/_es/Tabs.js +41 -25
  98. package/dist/packages/_es/Tag.js +1 -1
  99. package/dist/packages/_es/TextArea.js +5 -8
  100. package/dist/packages/_es/TimeDetail.js +24 -5
  101. package/dist/packages/_es/TimePannel.js +22 -4
  102. package/dist/packages/_es/TimeSelect.js +1 -1
  103. package/dist/packages/_es/Toast.js +47 -28
  104. package/dist/packages/_es/Uploader.js +27 -18
  105. package/dist/packages/_es/Video.js +33 -22
  106. package/dist/packages/_es/WaterMark.js +41 -31
  107. package/dist/packages/_es/common.js +11 -21
  108. package/dist/packages/_es/component.js +5 -5
  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 +31 -23
  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/address/index.scss +17 -0
  118. package/dist/packages/invoice/index.scss +33 -0
  119. package/dist/packages/locale/lang/baseLang.js +1 -1
  120. package/dist/packages/locale/lang/en-US.js +1 -1
  121. package/dist/packages/locale/lang/id-ID.js +1 -1
  122. package/dist/packages/locale/lang/index.js +1 -1
  123. package/dist/packages/locale/lang/zh-CN.js +1 -1
  124. package/dist/packages/locale/lang/zh-TW.js +1 -1
  125. package/dist/packages/menuitem/index.scss +3 -1
  126. package/dist/packages/navbar/index.scss +6 -8
  127. package/dist/packages/picker/index.scss +8 -0
  128. package/dist/packages/price/index.scss +1 -1
  129. package/dist/packages/searchbar/index.scss +2 -0
  130. package/dist/packages/textarea/index.scss +4 -1
  131. package/dist/packages/toast/index.scss +3 -0
  132. package/dist/smartips/attributes.json +36 -12
  133. package/dist/smartips/tags.json +20 -10
  134. package/dist/smartips/web-types.json +74 -13
  135. package/dist/style.css +1 -1
  136. package/dist/style.es.js +1 -1
  137. package/dist/styles/themes/default.scss +51 -50
  138. package/dist/styles/themes/jdb.scss +51 -50
  139. package/dist/styles/themes/jdt.scss +51 -50
  140. package/dist/styles/variables-jdb.scss +4 -1
  141. package/dist/styles/variables-jdt.scss +4 -1
  142. package/dist/styles/variables.scss +4 -1
  143. package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
  144. package/dist/types/__VUE/address/index.vue.d.ts +3 -3
  145. package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
  146. package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
  147. package/dist/types/__VUE/backtop/index.vue.d.ts +5 -8
  148. package/dist/types/__VUE/badge/index.vue.d.ts +2 -2
  149. package/dist/types/__VUE/button/index.vue.d.ts +2 -2
  150. package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
  151. package/dist/types/__VUE/cascader/index.vue.d.ts +3 -3
  152. package/dist/types/__VUE/cell/index.vue.d.ts +8 -8
  153. package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
  154. package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
  155. package/dist/types/__VUE/datepicker/index.vue.d.ts +9 -2
  156. package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
  157. package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
  158. package/dist/types/__VUE/formitem/index.vue.d.ts +1 -0
  159. package/dist/types/__VUE/grid/index.vue.d.ts +4 -4
  160. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
  161. package/dist/types/__VUE/input/index.vue.d.ts +6 -7
  162. package/dist/types/__VUE/invoice/index.vue.d.ts +48 -0
  163. package/dist/types/__VUE/menu/index.vue.d.ts +2 -2
  164. package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
  165. package/dist/types/__VUE/notify/index.d.ts +15 -5
  166. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
  167. package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
  168. package/dist/types/__VUE/picker/index.vue.d.ts +5 -3
  169. package/dist/types/__VUE/popover/index.vue.d.ts +6 -6
  170. package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
  171. package/dist/types/__VUE/radio/index.vue.d.ts +3 -3
  172. package/dist/types/__VUE/searchbar/index.vue.d.ts +18 -3
  173. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  174. package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
  175. package/dist/types/__VUE/step/index.vue.d.ts +2 -2
  176. package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
  177. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
  178. package/dist/types/__VUE/toast/index.vue.d.ts +5 -2
  179. package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
  180. package/dist/types/__VUE/video/index.vue.d.ts +1 -1
  181. package/dist/types/index.d.ts +1 -1
  182. package/dist/types/nutui.d.ts +2 -1
  183. package/package.json +1 -1
@@ -1,5 +1,37 @@
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
+ var __restKey = (key) => typeof key === "symbol" ? key : key + "";
21
+ var __objRest = (source, exclude) => {
22
+ var target = {};
23
+ for (var prop in source)
24
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25
+ target[prop] = source[prop];
26
+ if (source != null && __getOwnPropSymbols)
27
+ for (var prop of __getOwnPropSymbols(source)) {
28
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29
+ target[prop] = source[prop];
30
+ }
31
+ return target;
32
+ };
1
33
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
34
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
35
  * (c) 2022 @jdf2e.
4
36
  * Released under the MIT License.
5
37
  */
@@ -13,16 +45,16 @@ import "./Icon.js";
13
45
  import "./pxCheck.js";
14
46
  const formatTree = (tree, parent, config) => tree.map((node) => {
15
47
  const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
16
- const { [valueKey]: value, [textKey]: text, [childrenKey]: children, ...others } = node;
17
- const newNode = {
18
- loading: false,
19
- ...others,
48
+ const _a = node, { [valueKey]: value, [textKey]: text, [childrenKey]: children } = _a, others = __objRest(_a, [__restKey(valueKey), __restKey(textKey), __restKey(childrenKey)]);
49
+ const newNode = __spreadProps(__spreadValues({
50
+ loading: false
51
+ }, others), {
20
52
  level: parent ? (parent && parent.level || 0) + 1 : 0,
21
53
  value,
22
54
  text,
23
55
  children,
24
56
  _parent: parent
25
- };
57
+ });
26
58
  if (newNode.children && newNode.children.length) {
27
59
  newNode.children = formatTree(newNode.children, newNode, config);
28
60
  }
@@ -47,15 +79,12 @@ const defaultConvertConfig = {
47
79
  sortKey: ""
48
80
  };
49
81
  const convertListToOptions = (list, options) => {
50
- const mergedOptions = {
51
- ...defaultConvertConfig,
52
- ...options || {}
53
- };
82
+ const mergedOptions = __spreadValues(__spreadValues({}, defaultConvertConfig), options || {});
54
83
  const { topId, idKey, pidKey, sortKey } = mergedOptions;
55
84
  let result = [];
56
85
  let map = {};
57
86
  list.forEach((node) => {
58
- node = { ...node };
87
+ node = __spreadValues({}, node);
59
88
  const { [idKey]: id, [pidKey]: pid } = node;
60
89
  const children = map[pid] = map[pid] || [];
61
90
  if (!result.length && pid === topId) {
@@ -76,12 +105,11 @@ const convertListToOptions = (list, options) => {
76
105
  };
77
106
  class Tree {
78
107
  constructor(nodes, config) {
79
- this.config = {
108
+ this.config = __spreadValues({
80
109
  value: "value",
81
110
  text: "text",
82
- children: "children",
83
- ...config || {}
84
- };
111
+ children: "children"
112
+ }, config || {});
85
113
  this.nodes = formatTree(nodes, null, this.config);
86
114
  }
87
115
  updateChildren(nodes, parent) {
@@ -329,34 +357,24 @@ const _sfc_main$1 = create$1({
329
357
  return pane.selectedNode && pane.selectedNode.value === node.value;
330
358
  }
331
359
  };
332
- watch(
333
- [configs, () => props.options],
334
- () => {
335
- init();
336
- },
337
- {
338
- deep: true,
339
- immediate: true
340
- }
341
- );
342
- watch(
343
- () => props.modelValue,
344
- (value) => {
345
- if (value !== innerValue.value) {
346
- innerValue.value = value;
347
- syncValue();
348
- }
360
+ watch([configs, () => props.options], () => {
361
+ init();
362
+ }, {
363
+ deep: true,
364
+ immediate: true
365
+ });
366
+ watch(() => props.modelValue, (value) => {
367
+ if (value !== innerValue.value) {
368
+ innerValue.value = value;
369
+ syncValue();
349
370
  }
350
- );
351
- watch(
352
- () => props.visible,
353
- (val) => {
354
- if (val && Array.isArray(innerValue.value) && innerValue.value.length > 0) {
355
- syncValue();
356
- }
371
+ });
372
+ watch(() => props.visible, (val) => {
373
+ if (val && Array.isArray(innerValue.value) && innerValue.value.length > 0) {
374
+ syncValue();
357
375
  }
358
- );
359
- return { panes, initLoading, tabsCursor, ...methods };
376
+ });
377
+ return __spreadValues({ panes, initLoading, tabsCursor }, methods);
360
378
  }
361
379
  });
362
380
  const _hoisted_1$1 = {
@@ -429,8 +447,7 @@ const _sfc_main = create({
429
447
  components: {
430
448
  [CascaderItem.name]: CascaderItem
431
449
  },
432
- props: {
433
- ...popupProps,
450
+ props: __spreadProps(__spreadValues({}, popupProps), {
434
451
  modelValue: Array,
435
452
  visible: Boolean,
436
453
  title: String,
@@ -453,7 +470,7 @@ const _sfc_main = create({
453
470
  default: "children"
454
471
  },
455
472
  convertConfig: Object
456
- },
473
+ }),
457
474
  emits: ["update:modelValue", "change", "pathChange", "update:visible"],
458
475
  setup(props, { emit }) {
459
476
  const innerValue = ref(props.modelValue);
@@ -474,14 +491,11 @@ const _sfc_main = create({
474
491
  const onPathChange = (pathNodes) => {
475
492
  emit("pathChange", pathNodes);
476
493
  };
477
- watch(
478
- () => props.modelValue,
479
- (value) => {
480
- if (value !== innerValue.value) {
481
- innerValue.value = value;
482
- }
494
+ watch(() => props.modelValue, (value) => {
495
+ if (value !== innerValue.value) {
496
+ innerValue.value = value;
483
497
  }
484
- );
498
+ });
485
499
  return {
486
500
  onChange,
487
501
  onPathChange,
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -86,16 +86,13 @@ const component = (componentName2, nutIcon) => {
86
86
  emit("update:modelValue", value);
87
87
  emit("change", value, label);
88
88
  };
89
- watch(
90
- () => props.modelValue,
91
- (v) => {
92
- if (updateType == "click") {
93
- updateType = "";
94
- } else {
95
- emit("change", v);
96
- }
89
+ watch(() => props.modelValue, (v) => {
90
+ if (updateType == "click") {
91
+ updateType = "";
92
+ } else {
93
+ emit("change", v);
97
94
  }
98
- );
95
+ });
99
96
  const renderIcon = () => {
100
97
  const { iconName, iconSize, iconActiveName, iconClassPrefix, iconFontClassName, iconIndeterminateName } = props;
101
98
  return h(nutIcon, {
@@ -108,13 +105,9 @@ const component = (componentName2, nutIcon) => {
108
105
  };
109
106
  const renderLabel = () => {
110
107
  var _a;
111
- return h(
112
- "view",
113
- {
114
- class: `${componentName2}__label ${pDisabled.value ? `${componentName2}__label--disabled` : ""}`
115
- },
116
- (_a = slots.default) == null ? void 0 : _a.call(slots)
117
- );
108
+ return h("view", {
109
+ class: `${componentName2}__label ${pDisabled.value ? `${componentName2}__label--disabled` : ""}`
110
+ }, (_a = slots.default) == null ? void 0 : _a.call(slots));
118
111
  };
119
112
  const handleClick = (e) => {
120
113
  var _a, _b;
@@ -142,21 +135,14 @@ const component = (componentName2, nutIcon) => {
142
135
  onMounted(() => {
143
136
  hasParent.value && parent["relation"](getCurrentInstance());
144
137
  });
145
- watch(
146
- () => props.indeterminate,
147
- (newVal) => {
148
- state.partialSelect = newVal;
149
- }
150
- );
138
+ watch(() => props.indeterminate, (newVal) => {
139
+ state.partialSelect = newVal;
140
+ });
151
141
  return () => {
152
- return h(
153
- "view",
154
- {
155
- class: `${componentName2} ${props.textPosition === "left" ? `${componentName2}--reverse` : ""}`,
156
- onClick: handleClick
157
- },
158
- [renderIcon(), renderLabel()]
159
- );
142
+ return h("view", {
143
+ class: `${componentName2} ${props.textPosition === "left" ? `${componentName2}--reverse` : ""}`,
144
+ onClick: handleClick
145
+ }, [renderIcon(), renderLabel()]);
160
146
  };
161
147
  }
162
148
  };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -69,22 +69,15 @@ const _sfc_main = create({
69
69
  updateValue,
70
70
  relation
71
71
  });
72
- watch(
73
- () => props.modelValue,
74
- (value) => {
75
- emit("change", value);
76
- }
77
- );
72
+ watch(() => props.modelValue, (value) => {
73
+ emit("change", value);
74
+ });
78
75
  useExpose({ toggleAll, toggleReverse });
79
76
  return () => {
80
77
  var _a;
81
- return h(
82
- "view",
83
- {
84
- class: `${componentName}`
85
- },
86
- (_a = slots.default) == null ? void 0 : _a.call(slots)
87
- );
78
+ return h("view", {
79
+ class: `${componentName}`
80
+ }, (_a = slots.default) == null ? void 0 : _a.call(slots));
88
81
  };
89
82
  }
90
83
  });
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -53,28 +53,25 @@ const _sfc_main = create({
53
53
  setup(props, { emit, slots }) {
54
54
  const collapseDom = ref(null);
55
55
  const collapseChldren = ref([]);
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
- }
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(true);
62
+ } else {
63
+ item.changeOpen(false);
73
64
  }
74
- item.animation();
75
- });
76
- }
77
- );
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
+ });
78
75
  onMounted(() => {
79
76
  collapseChldren.value = getCurrentInstance().provides.collapseParent.children || [];
80
77
  });
@@ -1,5 +1,24 @@
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));
1
20
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -131,17 +150,14 @@ const _sfc_main = create({
131
150
  proxyData.openExpanded = true;
132
151
  }
133
152
  });
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
- );
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
+ });
145
161
  const init = () => {
146
162
  const { name } = props;
147
163
  const active = parent && parent.props.active;
@@ -169,19 +185,17 @@ const _sfc_main = create({
169
185
  }
170
186
  return _class;
171
187
  });
172
- return {
188
+ return __spreadProps(__spreadValues(__spreadValues(__spreadValues({
173
189
  classes,
174
- emptyContent,
175
- ...toRefs(proxyData),
176
- ...toRefs(parent.props),
177
- ...toRefs(titleIconStyle),
190
+ emptyContent
191
+ }, toRefs(proxyData)), toRefs(parent.props)), toRefs(titleIconStyle)), {
178
192
  wrapperRef,
179
193
  contentRef,
180
194
  open,
181
195
  toggleOpen,
182
196
  changeOpen,
183
197
  animation
184
- };
198
+ });
185
199
  }
186
200
  });
187
201
  const _hoisted_1 = { class: "collapse-title" };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -131,18 +131,14 @@ 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(
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
- );
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 });
146
142
  onMounted(() => {
147
143
  if (props.videos.length > 0) {
148
144
  props.videos.forEach((el) => {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -14,13 +14,9 @@ const component = {
14
14
  setup(props, { slots }) {
15
15
  return () => {
16
16
  var _a;
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
- );
17
+ return h(props.tag, {
18
+ class: `nut-theme-${props.theme}`
19
+ }, (_a = slots.default) == null ? void 0 : _a.call(slots));
24
20
  };
25
21
  }
26
22
  };
@@ -1,5 +1,24 @@
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));
1
20
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -129,7 +148,7 @@ const _sfc_main = create({
129
148
  rest.s = Math.floor(ts % MINUTE / SECOND);
130
149
  rest.ms = Math.floor(ts % SECOND);
131
150
  }
132
- return type == "custom" ? rest : parseFormat({ ...rest });
151
+ return type == "custom" ? rest : parseFormat(__spreadValues({}, rest));
133
152
  };
134
153
  const parseFormat = (time) => {
135
154
  let { d, h, m, s, ms } = time;
@@ -192,45 +211,32 @@ const _sfc_main = create({
192
211
  state.restTime = props.time;
193
212
  }
194
213
  });
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);
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();
217
223
  }
224
+ } else {
225
+ if (!state.counting) {
226
+ state.counting = true;
227
+ state.handleEndTime = Date.now() + Number(state.restTime);
228
+ tick();
229
+ }
230
+ emit("on-restart", state.restTime);
218
231
  }
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),
232
+ });
233
+ watch(() => props.endTime, (value) => {
234
+ initTime();
235
+ });
236
+ watch(() => props.startTime, (value) => {
237
+ initTime();
238
+ });
239
+ return __spreadProps(__spreadValues({}, toRefs(props)), {
234
240
  slots,
235
241
  classes,
236
242
  getTimeStamp,
@@ -239,7 +245,7 @@ const _sfc_main = create({
239
245
  renderTime,
240
246
  translate,
241
247
  reset
242
- };
248
+ });
243
249
  }
244
250
  });
245
251
  const _hoisted_1 = ["innerHTML"];