@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,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
  */
@@ -59,12 +59,9 @@ const _sfc_main = create({
59
59
  changeIndex
60
60
  });
61
61
  provide("parent", parentData);
62
- watch(
63
- () => props.visible,
64
- (value) => {
65
- parentData.modelValue = value;
66
- }
67
- );
62
+ watch(() => props.visible, (value) => {
63
+ parentData.modelValue = value;
64
+ });
68
65
  return {
69
66
  changeIndex
70
67
  };
@@ -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,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
  */
@@ -88,14 +107,10 @@ const component = (componentName2, translate2) => {
88
107
  return [columns.key, columns.render];
89
108
  });
90
109
  };
91
- watch(
92
- () => props.data,
93
- (val) => {
94
- state.curData = val.slice();
95
- }
96
- );
97
- return {
98
- ...toRefs(state),
110
+ watch(() => props.data, (val) => {
111
+ state.curData = val.slice();
112
+ });
113
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
99
114
  classes,
100
115
  cellClasses,
101
116
  getColumnItem,
@@ -105,7 +120,7 @@ const component = (componentName2, translate2) => {
105
120
  translate: translate2,
106
121
  stylehead,
107
122
  stylecolumn
108
- };
123
+ });
109
124
  }
110
125
  };
111
126
  };
@@ -1,9 +1,25 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __spreadValues = (a, b) => {
7
+ for (var prop in b || (b = {}))
8
+ if (__hasOwnProp.call(b, prop))
9
+ __defNormalProp(a, prop, b[prop]);
10
+ if (__getOwnPropSymbols)
11
+ for (var prop of __getOwnPropSymbols(b)) {
12
+ if (__propIsEnum.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ }
15
+ return a;
16
+ };
1
17
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
18
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
19
  * (c) 2022 @jdf2e.
4
20
  * Released under the MIT License.
5
21
  */
6
- import { c as createComponent } from "./component.js";
22
+ import { T as TypeOfFun, c as createComponent } from "./component.js";
7
23
  import { p as pxCheck } from "./pxCheck.js";
8
24
  import { provide, computed, ref, watch, onMounted, onActivated, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode, createVNode, toDisplayString } from "vue";
9
25
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
@@ -70,18 +86,25 @@ const component = {
70
86
  const titles = ref([]);
71
87
  const renderTitles = (vnodes) => {
72
88
  vnodes.forEach((vnode, index2) => {
73
- var _a, _b, _c, _d, _e, _f, _g;
89
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
74
90
  let type = vnode.type;
75
91
  type = type.name || type;
76
92
  if (type == "nut-tabpane") {
77
93
  let title = new Title();
78
94
  if (((_a = vnode.props) == null ? void 0 : _a.title) || ((_b = vnode.props) == null ? void 0 : _b["pane-key"]) || ((_c = vnode.props) == null ? void 0 : _c["paneKey"])) {
79
- title.title = (_d = vnode.props) == null ? void 0 : _d.title;
80
- title.paneKey = ((_e = vnode.props) == null ? void 0 : _e["pane-key"]) || ((_f = vnode.props) == null ? void 0 : _f["paneKey"]) || index2;
81
- title.disabled = (_g = vnode.props) == null ? void 0 : _g.disabled;
95
+ let paneKeyType = TypeOfFun((_d = vnode.props) == null ? void 0 : _d["pane-key"]);
96
+ let paneIndex = paneKeyType == "number" || paneKeyType == "string" ? String((_e = vnode.props) == null ? void 0 : _e["pane-key"]) : null;
97
+ let camelPaneKeyType = TypeOfFun((_f = vnode.props) == null ? void 0 : _f["paneKey"]);
98
+ let camelPaneIndex = camelPaneKeyType == "number" || camelPaneKeyType == "string" ? String((_g = vnode.props) == null ? void 0 : _g["paneKey"]) : null;
99
+ title.title = (_h = vnode.props) == null ? void 0 : _h.title;
100
+ title.paneKey = paneIndex || camelPaneIndex || String(index2);
101
+ title.disabled = (_i = vnode.props) == null ? void 0 : _i.disabled;
82
102
  }
83
103
  titles.value.push(title);
84
104
  } else {
105
+ if (vnode.children == " ") {
106
+ return;
107
+ }
85
108
  renderTitles(vnode.children);
86
109
  }
87
110
  });
@@ -104,21 +127,15 @@ const component = {
104
127
  }
105
128
  findTabsIndex(props.modelValue);
106
129
  };
107
- watch(
108
- () => {
109
- var _a;
110
- return (_a = slots.default) == null ? void 0 : _a.call(slots);
111
- },
112
- (vnodes) => {
113
- init(vnodes);
114
- }
115
- );
116
- watch(
117
- () => props.modelValue,
118
- (value) => {
119
- findTabsIndex(value);
120
- }
121
- );
130
+ watch(() => {
131
+ var _a;
132
+ return (_a = slots.default) == null ? void 0 : _a.call(slots);
133
+ }, (vnodes) => {
134
+ init(vnodes);
135
+ });
136
+ watch(() => props.modelValue, (value) => {
137
+ findTabsIndex(value);
138
+ });
122
139
  onMounted(init);
123
140
  onActivated(init);
124
141
  const contentStyle = computed(() => {
@@ -155,14 +172,13 @@ const component = {
155
172
  emit("change", item);
156
173
  }
157
174
  };
158
- return {
175
+ return __spreadValues({
159
176
  titles,
160
177
  contentStyle,
161
178
  tabsNavStyle,
162
179
  titleStyle,
163
- tabsActiveStyle,
164
- ...methods
165
- };
180
+ tabsActiveStyle
181
+ }, methods);
166
182
  }
167
183
  };
168
184
  const _hoisted_1 = ["onClick"];
@@ -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
  */
@@ -91,14 +91,11 @@ const _sfc_main = create({
91
91
  textarea.style.height = height + "px";
92
92
  }
93
93
  };
94
- watch(
95
- () => props.modelValue,
96
- () => {
97
- if (props.autosize) {
98
- nextTick(getContentHeight);
99
- }
94
+ watch(() => props.modelValue, () => {
95
+ if (props.autosize) {
96
+ nextTick(getContentHeight);
100
97
  }
101
- );
98
+ });
102
99
  const emitChange = (value, event) => {
103
100
  if (props.maxLength && value.length > Number(props.maxLength)) {
104
101
  value = value.substring(0, Number(props.maxLength));
@@ -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
  */
@@ -51,13 +70,13 @@ const _sfc_main = create({
51
70
  const handleTime = (time) => {
52
71
  context.emit("select", time);
53
72
  };
54
- return {
55
- classes,
56
- ...toRefs(state),
73
+ return __spreadProps(__spreadValues({
74
+ classes
75
+ }, toRefs(state)), {
57
76
  getClass,
58
77
  renderData,
59
78
  handleTime
60
- };
79
+ });
61
80
  }
62
81
  });
63
82
  const _hoisted_1 = { class: "nut-timedetail__detail nut-timedetail__detail--moring" };
@@ -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
  */
@@ -36,11 +55,10 @@ const _sfc_main = create({
36
55
  const handlePannel = (pannelKey) => {
37
56
  context.emit("change", pannelKey);
38
57
  };
39
- return {
40
- ...toRefs(state),
58
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
41
59
  classes,
42
60
  handlePannel
43
- };
61
+ });
44
62
  }
45
63
  });
46
64
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -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,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
  */
@@ -106,14 +125,11 @@ const _sfc_main = create({
106
125
  if (props.duration) {
107
126
  show();
108
127
  }
109
- watch(
110
- () => props.duration,
111
- (val) => {
112
- if (val) {
113
- show();
114
- }
128
+ watch(() => props.duration, (val) => {
129
+ if (val) {
130
+ show();
115
131
  }
116
- );
132
+ });
117
133
  const hasIcon = computed(() => {
118
134
  if (props.type !== "text") {
119
135
  return true;
@@ -132,6 +148,9 @@ const _sfc_main = create({
132
148
  "nut-toast-" + props.size
133
149
  ];
134
150
  });
151
+ const toastIconWrapperClass = computed(() => {
152
+ return ["nut-toast-icon-wrapper", { "nut-toast-icon-no-animation": !props.loadingRotate }];
153
+ });
135
154
  const onAfterLeave = () => {
136
155
  clearTimer();
137
156
  props.unmount(props.id);
@@ -143,19 +162,16 @@ const _sfc_main = create({
143
162
  clickCover,
144
163
  hasIcon,
145
164
  toastBodyClass,
165
+ toastIconWrapperClass,
146
166
  onAfterLeave
147
167
  };
148
168
  }
149
169
  });
150
170
  const _hoisted_1 = {
151
- key: 0,
152
- class: "nut-toast-icon-wrapper"
153
- };
154
- const _hoisted_2 = {
155
171
  key: 1,
156
172
  class: "nut-toast-title"
157
173
  };
158
- const _hoisted_3 = ["innerHTML"];
174
+ const _hoisted_2 = ["innerHTML"];
159
175
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
160
176
  const _component_nut_icon = resolveComponent("nut-icon");
161
177
  return openBlock(), createBlock(Transition, {
@@ -178,17 +194,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
178
194
  "background-color": _ctx.bgColor
179
195
  })
180
196
  }, [
181
- _ctx.hasIcon ? (openBlock(), createElementBlock("view", _hoisted_1, [
197
+ _ctx.hasIcon ? (openBlock(), createElementBlock("view", {
198
+ key: 0,
199
+ class: normalizeClass(_ctx.toastIconWrapperClass)
200
+ }, [
182
201
  createVNode(_component_nut_icon, mergeProps({ size: _ctx.iconSize }, _ctx.$attrs, {
183
202
  color: "#ffffff",
184
203
  name: _ctx.icon
185
204
  }), null, 16, ["size", "name"])
186
- ])) : createCommentVNode("", true),
187
- _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
205
+ ], 2)) : createCommentVNode("", true),
206
+ _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
188
207
  createElementVNode("view", {
189
208
  class: "nut-toast-text",
190
209
  innerHTML: _ctx.msg
191
- }, null, 8, _hoisted_3)
210
+ }, null, 8, _hoisted_2)
192
211
  ], 4)
193
212
  ], 6), [
194
213
  [vShow, _ctx.state.mounted]
@@ -245,9 +264,9 @@ const updateToast = (opts) => {
245
264
  if (container) {
246
265
  const currentOpt = optsMap.find((item) => item.id === opts.id);
247
266
  if (currentOpt) {
248
- opts = { ...defaultOptions, ...currentOpt, ...opts };
267
+ opts = __spreadValues(__spreadValues(__spreadValues({}, defaultOptions), currentOpt), opts);
249
268
  } else {
250
- opts = { ...defaultOptions, ...opts };
269
+ opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
251
270
  }
252
271
  const instance = createVNode(Toast, opts);
253
272
  render(instance, container);
@@ -265,7 +284,7 @@ const mountToast = (opts) => {
265
284
  } else {
266
285
  _id = new Date().getTime() + "";
267
286
  }
268
- opts = { ...defaultOptions, ...opts };
287
+ opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
269
288
  opts.id = _id;
270
289
  idsMap.push(opts.id);
271
290
  optsMap.push(opts);
@@ -285,27 +304,27 @@ const errorMsg = (msg) => {
285
304
  const ToastFunction = {
286
305
  text(msg, opts = {}) {
287
306
  errorMsg(msg);
288
- return mountToast({ ...opts, type: "text", msg });
307
+ return mountToast(__spreadProps(__spreadValues({}, opts), { type: "text", msg }));
289
308
  },
290
309
  success(msg, opts = {}) {
291
310
  errorMsg(msg);
292
- return mountToast({ icon: "success", ...opts, msg, type: "success" });
311
+ return mountToast(__spreadProps(__spreadValues({ icon: "success" }, opts), { msg, type: "success" }));
293
312
  },
294
313
  fail(msg, opts = {}) {
295
314
  errorMsg(msg);
296
- return mountToast({ icon: "failure", ...opts, msg, type: "fail" });
315
+ return mountToast(__spreadProps(__spreadValues({ icon: "failure" }, opts), { msg, type: "fail" }));
297
316
  },
298
317
  warn(msg, opts = {}) {
299
318
  errorMsg(msg);
300
- return mountToast({ icon: "tips", ...opts, msg, type: "warn" });
319
+ return mountToast(__spreadProps(__spreadValues({ icon: "tips" }, opts), { msg, type: "warn" }));
301
320
  },
302
321
  loading(msg, opts = {}) {
303
- return mountToast({
304
- icon: "loading",
305
- ...opts,
322
+ return mountToast(__spreadProps(__spreadValues({
323
+ icon: "loading"
324
+ }, opts), {
306
325
  msg,
307
326
  type: "loading"
308
- });
327
+ }));
309
328
  },
310
329
  hide(id) {
311
330
  clearToast(id);
@@ -1,5 +1,21 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __spreadValues = (a, b) => {
7
+ for (var prop in b || (b = {}))
8
+ if (__hasOwnProp.call(b, prop))
9
+ __defNormalProp(a, prop, b[prop]);
10
+ if (__getOwnPropSymbols)
11
+ for (var prop of __getOwnPropSymbols(b)) {
12
+ if (__propIsEnum.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ }
15
+ return a;
16
+ };
1
17
  /*!
2
- * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
18
+ * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
3
19
  * (c) 2022 @jdf2e.
4
20
  * Released under the MIT License.
5
21
  */
@@ -29,14 +45,10 @@ class Uploader {
29
45
  const xhr = new XMLHttpRequest();
30
46
  xhr.timeout = options.timeout;
31
47
  if (xhr.upload) {
32
- xhr.upload.addEventListener(
33
- "progress",
34
- (e) => {
35
- var _a2;
36
- (_a2 = options.onProgress) == null ? void 0 : _a2.call(options, e, options);
37
- },
38
- false
39
- );
48
+ xhr.upload.addEventListener("progress", (e) => {
49
+ var _a2;
50
+ (_a2 = options.onProgress) == null ? void 0 : _a2.call(options, e, options);
51
+ }, false);
40
52
  xhr.onreadystatechange = () => {
41
53
  var _a2, _b;
42
54
  if (xhr.readyState === 4) {
@@ -75,10 +87,9 @@ class Uploader {
75
87
  url: options.url,
76
88
  filePath: options.taroFilePath,
77
89
  fileType: options.fileType,
78
- header: {
79
- "Content-Type": "multipart/form-data",
80
- ...options.headers
81
- },
90
+ header: __spreadValues({
91
+ "Content-Type": "multipart/form-data"
92
+ }, options.headers),
82
93
  formData: options.formData,
83
94
  name: options.name,
84
95
  success(response) {
@@ -229,11 +240,9 @@ const _sfc_main = create({
229
240
  if (props.autoUpload) {
230
241
  task.upload();
231
242
  } else {
232
- uploadQueue.push(
233
- new Promise((resolve, reject) => {
234
- resolve(task);
235
- })
236
- );
243
+ uploadQueue.push(new Promise((resolve, reject) => {
244
+ resolve(task);
245
+ }));
237
246
  }
238
247
  };
239
248
  const clearUploadQueue = (index2 = -1) => {
@@ -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
  */
@@ -76,23 +95,16 @@ const _sfc_main = create({
76
95
  const isDisabled = computed(() => {
77
96
  return props.options.disabled;
78
97
  });
79
- watch(
80
- () => props.source,
81
- (newValue) => {
82
- if (newValue.src) {
83
- nextTick(() => {
84
- state.videoElm.load();
85
- });
86
- }
98
+ watch(() => props.source, (newValue) => {
99
+ if (newValue.src) {
100
+ nextTick(() => {
101
+ state.videoElm.load();
102
+ });
87
103
  }
88
- );
89
- watch(
90
- () => props.options,
91
- (newValue) => {
92
- state.state.isMuted = newValue ? newValue.muted : false;
93
- },
94
- { immediate: true }
95
- );
104
+ });
105
+ watch(() => props.options, (newValue) => {
106
+ state.state.isMuted = newValue ? newValue.muted : false;
107
+ }, { immediate: true });
96
108
  const init = () => {
97
109
  state.videoElm = root.value;
98
110
  if (props.options.autoplay) {
@@ -221,10 +233,9 @@ const _sfc_main = create({
221
233
  onMounted(() => {
222
234
  init();
223
235
  });
224
- return {
225
- root,
226
- ...toRefs(props),
227
- ...toRefs(state),
236
+ return __spreadProps(__spreadValues(__spreadValues({
237
+ root
238
+ }, toRefs(props)), toRefs(state)), {
228
239
  handleError,
229
240
  isDisabled,
230
241
  play,
@@ -235,7 +246,7 @@ const _sfc_main = create({
235
246
  retry,
236
247
  fullScreen,
237
248
  translate
238
- };
249
+ });
239
250
  }
240
251
  });
241
252
  const _hoisted_1 = {