@nutui/nutui 3.2.0 → 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 (211) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/README.md +5 -3
  3. package/dist/nutui.es.js +1563 -1402
  4. package/dist/nutui.umd.js +1567 -1405
  5. package/dist/packages/_es/ActionSheet.js +22 -4
  6. package/dist/packages/_es/Address.js +39 -20
  7. package/dist/packages/_es/AddressList.js +2 -4
  8. package/dist/packages/_es/Animate.js +21 -2
  9. package/dist/packages/_es/Audio.js +22 -5
  10. package/dist/packages/_es/AudioOperate.js +22 -5
  11. package/dist/packages/_es/Avatar.js +23 -9
  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 +1 -1
  16. package/dist/packages/_es/Button.js +6 -5
  17. package/dist/packages/_es/Calendar.js +10 -4
  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 +46 -19
  21. package/dist/packages/_es/Category.js +2 -2
  22. package/dist/packages/_es/CategoryPane.js +10 -10
  23. package/dist/packages/_es/Cell.js +8 -9
  24. package/dist/packages/_es/CellGroup.js +1 -1
  25. package/dist/packages/_es/Checkbox.js +1 -1
  26. package/dist/packages/_es/CheckboxGroup.js +1 -1
  27. package/dist/packages/_es/CircleProgress.js +1 -1
  28. package/dist/packages/_es/Col.js +5 -11
  29. package/dist/packages/_es/Collapse.js +1 -1
  30. package/dist/packages/_es/CollapseItem.js +36 -17
  31. package/dist/packages/_es/Comment.js +1 -1
  32. package/dist/packages/_es/ConfigProvider.js +1 -1
  33. package/dist/packages/_es/CountDown.js +23 -5
  34. package/dist/packages/_es/CountUp.js +22 -5
  35. package/dist/packages/_es/DatePicker.js +31 -9
  36. package/dist/packages/_es/Dialog.js +23 -5
  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 +1 -1
  40. package/dist/packages/_es/Elevator.js +24 -5
  41. package/dist/packages/_es/Ellipsis.js +21 -2
  42. package/dist/packages/_es/Empty.js +1 -1
  43. package/dist/packages/_es/FixedNav.js +18 -14
  44. package/dist/packages/_es/Form.js +2 -2
  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 +6 -5
  48. package/dist/packages/_es/Icon.js +1 -1
  49. package/dist/packages/_es/Image.js +21 -2
  50. package/dist/packages/_es/ImagePreview.js +28 -13
  51. package/dist/packages/_es/Indicator.js +1 -1
  52. package/dist/packages/_es/InfiniteLoading.js +27 -14
  53. package/dist/packages/_es/Input.js +70 -68
  54. package/dist/packages/_es/InputNumber.js +20 -14
  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 +22 -4
  58. package/dist/packages/_es/Menu.js +6 -5
  59. package/dist/packages/_es/MenuItem.js +25 -8
  60. package/dist/packages/_es/Navbar.js +11 -9
  61. package/dist/packages/_es/NoticeBar.js +26 -9
  62. package/dist/packages/_es/Notify.js +34 -13
  63. package/dist/packages/_es/NumberKeyboard.js +10 -12
  64. package/dist/packages/_es/OldPicker.js +28 -12
  65. package/dist/packages/_es/OverLay.js +20 -5
  66. package/dist/packages/_es/Pagination.js +1 -1
  67. package/dist/packages/_es/Picker.js +63 -17
  68. package/dist/packages/_es/Popover.js +25 -10
  69. package/dist/packages/_es/Popup.js +31 -17
  70. package/dist/packages/_es/Price.js +1 -1
  71. package/dist/packages/_es/Progress.js +4 -5
  72. package/dist/packages/_es/PullRefresh.js +20 -5
  73. package/dist/packages/_es/Radio.js +3 -3
  74. package/dist/packages/_es/RadioGroup.js +1 -1
  75. package/dist/packages/_es/Range.js +24 -5
  76. package/dist/packages/_es/Rate.js +24 -5
  77. package/dist/packages/_es/Row.js +5 -11
  78. package/dist/packages/_es/SearchBar.js +44 -11
  79. package/dist/packages/_es/ShortPassword.js +1 -1
  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 +22 -4
  85. package/dist/packages/_es/Step.js +27 -8
  86. package/dist/packages/_es/Steps.js +1 -1
  87. package/dist/packages/_es/Sticky.js +1 -1
  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 +1 -1
  91. package/dist/packages/_es/SwiperItem.js +1 -1
  92. package/dist/packages/_es/Switch.js +6 -5
  93. package/dist/packages/_es/TabPane.js +1 -1
  94. package/dist/packages/_es/Tabbar.js +1 -1
  95. package/dist/packages/_es/TabbarItem.js +13 -14
  96. package/dist/packages/_es/Table.js +22 -4
  97. package/dist/packages/_es/Tabs.js +32 -10
  98. package/dist/packages/_es/Tag.js +11 -15
  99. package/dist/packages/_es/TextArea.js +1 -1
  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 +46 -25
  104. package/dist/packages/_es/Uploader.js +49 -30
  105. package/dist/packages/_es/Video.js +24 -6
  106. package/dist/packages/_es/WaterMark.js +21 -5
  107. package/dist/packages/_es/common.js +2 -2
  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 +28 -11
  114. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  115. package/dist/packages/_es/pxCheck.js +1 -1
  116. package/dist/packages/_es/raf.js +1 -1
  117. package/dist/packages/_es/style.css +1 -111
  118. package/dist/packages/address/index.scss +17 -0
  119. package/dist/packages/addresslist/index.scss +57 -17
  120. package/dist/packages/button/index.scss +1 -0
  121. package/dist/packages/category/index.scss +25 -4
  122. package/dist/packages/categorypane/index.scss +18 -65
  123. package/dist/packages/fixednav/index.scss +7 -0
  124. package/dist/packages/invoice/index.scss +33 -0
  125. package/dist/packages/locale/lang/baseLang.js +1 -1
  126. package/dist/packages/locale/lang/en-US.js +1 -1
  127. package/dist/packages/locale/lang/id-ID.js +1 -1
  128. package/dist/packages/locale/lang/index.js +1 -1
  129. package/dist/packages/locale/lang/zh-CN.js +1 -1
  130. package/dist/packages/locale/lang/zh-TW.js +1 -1
  131. package/dist/packages/menu/index.scss +14 -2
  132. package/dist/packages/menuitem/index.scss +11 -1
  133. package/dist/packages/navbar/index.scss +6 -8
  134. package/dist/packages/picker/index.scss +8 -0
  135. package/dist/packages/price/index.scss +1 -1
  136. package/dist/packages/radio/index.scss +1 -0
  137. package/dist/packages/searchbar/index.scss +2 -0
  138. package/dist/packages/step/index.scss +52 -0
  139. package/dist/packages/swiper/index.scss +2 -0
  140. package/dist/packages/swiperitem/index.scss +3 -0
  141. package/dist/packages/tag/index.scss +20 -0
  142. package/dist/packages/textarea/index.scss +4 -1
  143. package/dist/packages/toast/index.scss +3 -0
  144. package/dist/packages/watermark/index.scss +1 -1
  145. package/dist/smartips/attributes.json +70 -14
  146. package/dist/smartips/tags.json +34 -15
  147. package/dist/smartips/web-types.json +150 -16
  148. package/dist/style.css +1 -1
  149. package/dist/style.es.js +1 -1
  150. package/dist/styles/themes/default.scss +55 -54
  151. package/dist/styles/themes/jdb.scss +55 -54
  152. package/dist/styles/themes/jdt.scss +55 -54
  153. package/dist/styles/variables-jdb.scss +26 -8
  154. package/dist/styles/variables-jdt.scss +26 -8
  155. package/dist/styles/variables.scss +25 -8
  156. package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
  157. package/dist/types/__VUE/address/index.vue.d.ts +4 -4
  158. package/dist/types/__VUE/audiooperate/index.vue.d.ts +14 -71
  159. package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
  160. package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
  161. package/dist/types/__VUE/backtop/index.vue.d.ts +5 -8
  162. package/dist/types/__VUE/badge/index.vue.d.ts +2 -2
  163. package/dist/types/__VUE/button/index.vue.d.ts +2 -2
  164. package/dist/types/__VUE/calendar/index.vue.d.ts +8 -1
  165. package/dist/types/__VUE/calendaritem/index.vue.d.ts +1 -1
  166. package/dist/types/__VUE/cascader/index.vue.d.ts +2 -2
  167. package/dist/types/__VUE/cell/index.vue.d.ts +15 -8
  168. package/dist/types/__VUE/col/index.vue.d.ts +2 -5
  169. package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
  170. package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
  171. package/dist/types/__VUE/datepicker/index.vue.d.ts +9 -2
  172. package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
  173. package/dist/types/__VUE/divider/index.vue.d.ts +2 -2
  174. package/dist/types/__VUE/fixednav/common.d.ts +56 -0
  175. package/dist/types/__VUE/fixednav/index.vue.d.ts +18 -10
  176. package/dist/types/__VUE/formitem/index.vue.d.ts +1 -0
  177. package/dist/types/__VUE/grid/index.vue.d.ts +5 -5
  178. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
  179. package/dist/types/__VUE/imagepreview/index.d.ts +7 -6
  180. package/dist/types/__VUE/imagepreview/index.vue.d.ts +3 -3
  181. package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
  182. package/dist/types/__VUE/input/index.vue.d.ts +8 -14
  183. package/dist/types/__VUE/inputnumber/index.vue.d.ts +14 -0
  184. package/dist/types/__VUE/invoice/index.vue.d.ts +48 -0
  185. package/dist/types/__VUE/menu/index.vue.d.ts +5 -2
  186. package/dist/types/__VUE/menuitem/index.vue.d.ts +0 -3
  187. package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
  188. package/dist/types/__VUE/notify/index.d.ts +15 -5
  189. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
  190. package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
  191. package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
  192. package/dist/types/__VUE/picker/index.vue.d.ts +20 -3
  193. package/dist/types/__VUE/popover/index.vue.d.ts +6 -6
  194. package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
  195. package/dist/types/__VUE/radio/index.vue.d.ts +3 -3
  196. package/dist/types/__VUE/range/index.vue.d.ts +1 -1
  197. package/dist/types/__VUE/rate/index.vue.d.ts +2 -2
  198. package/dist/types/__VUE/row/index.vue.d.ts +2 -5
  199. package/dist/types/__VUE/searchbar/index.vue.d.ts +18 -3
  200. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  201. package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
  202. package/dist/types/__VUE/step/index.vue.d.ts +2 -2
  203. package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
  204. package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
  205. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
  206. package/dist/types/__VUE/toast/index.vue.d.ts +5 -2
  207. package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
  208. package/dist/types/__VUE/video/index.vue.d.ts +1 -1
  209. package/dist/types/index.d.ts +1 -1
  210. package/dist/types/nutui.d.ts +2 -1
  211. package/package.json +2 -1
@@ -1,9 +1,28 @@
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.0 Mon Aug 01 2022 21:25:20 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
  */
6
- import { getCurrentInstance, inject, reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, Fragment, toDisplayString, createCommentVNode, renderSlot } from "vue";
25
+ import { getCurrentInstance, inject, reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, mergeProps, Fragment, toDisplayString, createCommentVNode, renderSlot } from "vue";
7
26
  import { c as createComponent } from "./component.js";
8
27
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
28
  import "../locale/lang";
@@ -59,12 +78,11 @@ const _sfc_main = create({
59
78
  const handleClickStep = () => {
60
79
  parent["onEmit"](index2.value);
61
80
  };
62
- return {
63
- ...toRefs(state),
81
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
64
82
  index: index2,
65
83
  classes,
66
84
  handleClickStep
67
- };
85
+ });
68
86
  }
69
87
  });
70
88
  const _hoisted_1 = { class: "nut-step-head" };
@@ -92,13 +110,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
92
110
  createElementVNode("view", {
93
111
  class: normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
94
112
  }, [
95
- _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
113
+ _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
96
114
  key: 0,
97
- class: "nut-step-icon-inner",
115
+ class: "nut-step-icon-inner"
116
+ }, _ctx.$attrs, {
98
117
  color: _ctx.iconColor,
99
118
  name: _ctx.icon,
100
119
  size: _ctx.size
101
- }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.index), 1))
120
+ }), null, 16, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.index), 1))
102
121
  ], 2)
103
122
  ]),
104
123
  createElementVNode("view", _hoisted_4, [
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.0 Mon Aug 01 2022 21:25:20 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.0 Mon Aug 01 2022 21:25:20 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.0 Mon Aug 01 2022 21:25:20 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
  */
@@ -46,12 +65,11 @@ const _sfc_main = create({
46
65
  onMounted(() => {
47
66
  state.direction = props.open ? "" : "up";
48
67
  });
49
- return {
50
- ...toRefs(state),
68
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
51
69
  classes,
52
70
  style,
53
71
  handleClick
54
- };
72
+ });
55
73
  }
56
74
  });
57
75
  const _hoisted_1 = ["ikey"];
@@ -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.0 Mon Aug 01 2022 21:25:20 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
  */
@@ -144,15 +163,15 @@ const _sfc_main = create({
144
163
  }
145
164
  }
146
165
  };
147
- return {
166
+ return __spreadProps(__spreadValues({
148
167
  classes,
149
- touchStyle,
150
- ...touchMethods,
168
+ touchStyle
169
+ }, touchMethods), {
151
170
  leftRef,
152
171
  rightRef,
153
172
  open,
154
173
  close
155
- };
174
+ });
156
175
  }
157
176
  });
158
177
  const _hoisted_1 = {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.0 Mon Aug 01 2022 21:25:20 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.0 Mon Aug 01 2022 21:25:20 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,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.0 Mon Aug 01 2022 21:25:20 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
  */
6
- import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } from "vue";
6
+ import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, mergeProps, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
9
  import "../locale/lang";
@@ -108,12 +108,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
108
108
  style: normalizeStyle(_ctx.style)
109
109
  }, [
110
110
  createElementVNode("view", _hoisted_1, [
111
- _ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
111
+ _ctx.loading ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
112
112
  key: 0,
113
- name: _ctx.name,
113
+ name: _ctx.name
114
+ }, _ctx.$attrs, {
114
115
  size: _ctx.size,
115
116
  color: _ctx.color
116
- }, null, 8, ["name", "size", "color"])) : createCommentVNode("", true),
117
+ }), null, 16, ["name", "size", "color"])) : createCommentVNode("", true),
117
118
  _ctx.activeText ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
118
119
  withDirectives(createElementVNode("view", { class: "nut-switch-label open" }, toDisplayString(_ctx.activeText), 513), [
119
120
  [vShow, _ctx.modelValue]
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.0 Mon Aug 01 2022 21:25:20 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.0 Mon Aug 01 2022 21:25:20 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.0 Mon Aug 01 2022 21:25:20 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
  */
@@ -90,6 +90,7 @@ const _sfc_main = create({
90
90
  return null;
91
91
  });
92
92
  watch(choosed, (value, oldValue) => {
93
+ var _a, _b;
93
94
  state.active = value;
94
95
  let index2 = value;
95
96
  if (props.name) {
@@ -97,20 +98,18 @@ const _sfc_main = create({
97
98
  return item.name == value;
98
99
  });
99
100
  }
100
- setTimeout(() => {
101
- if (parent.children[index2].href) {
102
- window.location.href = parent.children[index2].href;
103
- return;
104
- }
105
- if (parent.children[index2].to) {
106
- let to = parent.children[index2].to;
107
- if (to && router) {
108
- router.push(to);
109
- } else {
110
- location.replace(to);
111
- }
101
+ if ((_a = parent.children[index2]) == null ? void 0 : _a.href) {
102
+ window.location.href = parent.children[index2].href;
103
+ return;
104
+ }
105
+ if ((_b = parent.children[index2]) == null ? void 0 : _b.to) {
106
+ let to = parent.children[index2].to;
107
+ if (to && router) {
108
+ router.push(to);
109
+ } else {
110
+ location.replace(to);
112
111
  }
113
- });
112
+ }
114
113
  });
115
114
  return {
116
115
  state,
@@ -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.0 Mon Aug 01 2022 21:25:20 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
  */
@@ -91,8 +110,7 @@ const component = (componentName2, translate2) => {
91
110
  watch(() => props.data, (val) => {
92
111
  state.curData = val.slice();
93
112
  });
94
- return {
95
- ...toRefs(state),
113
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
96
114
  classes,
97
115
  cellClasses,
98
116
  getColumnItem,
@@ -102,7 +120,7 @@ const component = (componentName2, translate2) => {
102
120
  translate: translate2,
103
121
  stylehead,
104
122
  stylecolumn
105
- };
123
+ });
106
124
  }
107
125
  };
108
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.0 Mon Aug 01 2022 21:25:20 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
  });
@@ -149,14 +172,13 @@ const component = {
149
172
  emit("change", item);
150
173
  }
151
174
  };
152
- return {
175
+ return __spreadValues({
153
176
  titles,
154
177
  contentStyle,
155
178
  tabsNavStyle,
156
179
  titleStyle,
157
- tabsActiveStyle,
158
- ...methods
159
- };
180
+ tabsActiveStyle
181
+ }, methods);
160
182
  }
161
183
  };
162
184
  const _hoisted_1 = ["onClick"];
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.0 Mon Aug 01 2022 21:25:20 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
  */
@@ -47,23 +47,19 @@ const _sfc_main = create({
47
47
  };
48
48
  });
49
49
  const getStyle = () => {
50
- if (color == null ? void 0 : color.value) {
51
- return {
52
- background: color.value,
53
- color: textColor.value
54
- };
50
+ const style = {};
51
+ if (textColor.value) {
52
+ style.color = textColor.value;
53
+ } else if (color.value && plain.value) {
54
+ style.color = color.value;
55
55
  }
56
56
  if (plain.value) {
57
- return {
58
- color: "#FA2400",
59
- background: "#fff",
60
- border: "1px solid rgba(250,36,0,1)"
61
- };
57
+ style.background = "#fff";
58
+ style["border-color"] = color.value;
59
+ } else if (color.value) {
60
+ style.background = color.value;
62
61
  }
63
- return {
64
- color: "",
65
- background: ""
66
- };
62
+ return style;
67
63
  };
68
64
  const onClose = (event) => {
69
65
  event.stopPropagation();
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.0 Mon Aug 01 2022 21:25:20 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.0 Mon Aug 01 2022 21:25:20 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.0 Mon Aug 01 2022 21:25:20 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.0 Mon Aug 01 2022 21:25:20 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
  */