@nutui/nutui 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/nutui.es.js +272 -275
  3. package/dist/nutui.umd.js +265 -268
  4. package/dist/packages/_es/ActionSheet.js +1 -1
  5. package/dist/packages/_es/Address.js +14 -13
  6. package/dist/packages/_es/AddressList.js +1 -3
  7. package/dist/packages/_es/Animate.js +1 -1
  8. package/dist/packages/_es/Audio.js +1 -1
  9. package/dist/packages/_es/AudioOperate.js +2 -4
  10. package/dist/packages/_es/Avatar.js +4 -5
  11. package/dist/packages/_es/AvatarGroup.js +1 -1
  12. package/dist/packages/_es/BackTop.js +1 -1
  13. package/dist/packages/_es/Badge.js +1 -1
  14. package/dist/packages/_es/Barrage.js +1 -1
  15. package/dist/packages/_es/Button.js +6 -5
  16. package/dist/packages/_es/Calendar.js +1 -1
  17. package/dist/packages/_es/CalendarItem.js +1 -1
  18. package/dist/packages/_es/Card.js +1 -1
  19. package/dist/packages/_es/Cascader.js +1 -1
  20. package/dist/packages/_es/Category.js +2 -2
  21. package/dist/packages/_es/CategoryPane.js +10 -10
  22. package/dist/packages/_es/Cell.js +8 -9
  23. package/dist/packages/_es/CellGroup.js +1 -1
  24. package/dist/packages/_es/Checkbox.js +1 -1
  25. package/dist/packages/_es/CheckboxGroup.js +1 -1
  26. package/dist/packages/_es/CircleProgress.js +1 -1
  27. package/dist/packages/_es/Col.js +1 -1
  28. package/dist/packages/_es/Collapse.js +1 -1
  29. package/dist/packages/_es/CollapseItem.js +13 -11
  30. package/dist/packages/_es/Comment.js +1 -1
  31. package/dist/packages/_es/ConfigProvider.js +1 -1
  32. package/dist/packages/_es/CountDown.js +1 -1
  33. package/dist/packages/_es/CountUp.js +1 -1
  34. package/dist/packages/_es/DatePicker.js +1 -1
  35. package/dist/packages/_es/Dialog.js +1 -1
  36. package/dist/packages/_es/Divider.js +1 -1
  37. package/dist/packages/_es/Drag.js +1 -1
  38. package/dist/packages/_es/Ecard.js +1 -1
  39. package/dist/packages/_es/Elevator.js +1 -1
  40. package/dist/packages/_es/Ellipsis.js +1 -1
  41. package/dist/packages/_es/Empty.js +1 -1
  42. package/dist/packages/_es/FixedNav.js +18 -14
  43. package/dist/packages/_es/Form.js +1 -1
  44. package/dist/packages/_es/FormItem.js +1 -1
  45. package/dist/packages/_es/Grid.js +1 -1
  46. package/dist/packages/_es/GridItem.js +6 -5
  47. package/dist/packages/_es/Icon.js +1 -1
  48. package/dist/packages/_es/Image.js +1 -1
  49. package/dist/packages/_es/ImagePreview.js +3 -6
  50. package/dist/packages/_es/Indicator.js +1 -1
  51. package/dist/packages/_es/InfiniteLoading.js +4 -10
  52. package/dist/packages/_es/Input.js +68 -65
  53. package/dist/packages/_es/InputNumber.js +1 -1
  54. package/dist/packages/_es/Layout.js +1 -1
  55. package/dist/packages/_es/List.js +1 -1
  56. package/dist/packages/_es/Menu.js +6 -5
  57. package/dist/packages/_es/MenuItem.js +4 -6
  58. package/dist/packages/_es/Navbar.js +10 -8
  59. package/dist/packages/_es/NoticeBar.js +4 -4
  60. package/dist/packages/_es/Notify.js +1 -1
  61. package/dist/packages/_es/NumberKeyboard.js +10 -12
  62. package/dist/packages/_es/OldPicker.js +1 -1
  63. package/dist/packages/_es/OverLay.js +1 -1
  64. package/dist/packages/_es/Pagination.js +1 -1
  65. package/dist/packages/_es/Picker.js +7 -1
  66. package/dist/packages/_es/Popover.js +4 -7
  67. package/dist/packages/_es/Popup.js +4 -4
  68. package/dist/packages/_es/Price.js +1 -1
  69. package/dist/packages/_es/Progress.js +4 -5
  70. package/dist/packages/_es/PullRefresh.js +1 -1
  71. package/dist/packages/_es/Radio.js +1 -1
  72. package/dist/packages/_es/RadioGroup.js +1 -1
  73. package/dist/packages/_es/Range.js +1 -1
  74. package/dist/packages/_es/Rate.js +1 -1
  75. package/dist/packages/_es/Row.js +1 -1
  76. package/dist/packages/_es/SearchBar.js +1 -1
  77. package/dist/packages/_es/ShortPassword.js +1 -1
  78. package/dist/packages/_es/SideNavBar.js +1 -1
  79. package/dist/packages/_es/SideNavBarItem.js +1 -1
  80. package/dist/packages/_es/Signature.js +1 -1
  81. package/dist/packages/_es/Skeleton.js +1 -1
  82. package/dist/packages/_es/Sku.js +1 -1
  83. package/dist/packages/_es/Step.js +6 -5
  84. package/dist/packages/_es/Steps.js +1 -1
  85. package/dist/packages/_es/Sticky.js +1 -1
  86. package/dist/packages/_es/SubSideNavBar.js +1 -1
  87. package/dist/packages/_es/Swipe.js +1 -1
  88. package/dist/packages/_es/Swiper.js +1 -1
  89. package/dist/packages/_es/SwiperItem.js +1 -1
  90. package/dist/packages/_es/Switch.js +6 -5
  91. package/dist/packages/_es/TabPane.js +1 -1
  92. package/dist/packages/_es/Tabbar.js +1 -1
  93. package/dist/packages/_es/TabbarItem.js +1 -1
  94. package/dist/packages/_es/Table.js +1 -1
  95. package/dist/packages/_es/Tabs.js +1 -1
  96. package/dist/packages/_es/Tag.js +11 -15
  97. package/dist/packages/_es/TextArea.js +1 -1
  98. package/dist/packages/_es/TimeDetail.js +1 -1
  99. package/dist/packages/_es/TimePannel.js +1 -1
  100. package/dist/packages/_es/TimeSelect.js +1 -1
  101. package/dist/packages/_es/Toast.js +4 -5
  102. package/dist/packages/_es/Uploader.js +34 -30
  103. package/dist/packages/_es/Video.js +1 -1
  104. package/dist/packages/_es/WaterMark.js +1 -4
  105. package/dist/packages/_es/common.js +1 -1
  106. package/dist/packages/_es/component.js +1 -1
  107. package/dist/packages/_es/index.js +1 -1
  108. package/dist/packages/_es/index2.js +1 -1
  109. package/dist/packages/_es/index3.js +1 -1
  110. package/dist/packages/_es/index4.js +1 -1
  111. package/dist/packages/_es/index5.js +1 -1
  112. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  113. package/dist/packages/_es/pxCheck.js +1 -1
  114. package/dist/packages/_es/raf.js +1 -1
  115. package/dist/packages/_es/style.css +1 -111
  116. package/dist/packages/addresslist/index.scss +57 -17
  117. package/dist/packages/category/index.scss +25 -4
  118. package/dist/packages/categorypane/index.scss +18 -65
  119. package/dist/packages/fixednav/index.scss +7 -0
  120. package/dist/packages/locale/lang/baseLang.js +1 -1
  121. package/dist/packages/locale/lang/en-US.js +1 -1
  122. package/dist/packages/locale/lang/id-ID.js +1 -1
  123. package/dist/packages/locale/lang/index.js +1 -1
  124. package/dist/packages/locale/lang/zh-CN.js +1 -1
  125. package/dist/packages/locale/lang/zh-TW.js +1 -1
  126. package/dist/packages/menu/index.scss +14 -2
  127. package/dist/packages/menuitem/index.scss +8 -0
  128. package/dist/packages/step/index.scss +52 -0
  129. package/dist/packages/swiper/index.scss +2 -0
  130. package/dist/packages/swiperitem/index.scss +3 -0
  131. package/dist/packages/tag/index.scss +20 -0
  132. package/dist/packages/watermark/index.scss +1 -1
  133. package/dist/smartips/attributes.json +13 -1
  134. package/dist/smartips/tags.json +7 -3
  135. package/dist/smartips/web-types.json +31 -3
  136. package/dist/style.css +1 -1
  137. package/dist/styles/themes/default.scss +50 -50
  138. package/dist/styles/themes/jdb.scss +50 -50
  139. package/dist/styles/themes/jdt.scss +50 -50
  140. package/dist/styles/variables-jdb.scss +22 -7
  141. package/dist/styles/variables-jdt.scss +22 -7
  142. package/dist/styles/variables.scss +21 -7
  143. package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
  144. package/dist/types/__VUE/address/index.vue.d.ts +4 -4
  145. package/dist/types/__VUE/audiooperate/index.vue.d.ts +14 -71
  146. package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
  147. package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
  148. package/dist/types/__VUE/backtop/index.vue.d.ts +4 -4
  149. package/dist/types/__VUE/badge/index.vue.d.ts +2 -2
  150. package/dist/types/__VUE/button/index.vue.d.ts +2 -2
  151. package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
  152. package/dist/types/__VUE/cascader/index.vue.d.ts +2 -2
  153. package/dist/types/__VUE/cell/index.vue.d.ts +15 -8
  154. package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
  155. package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
  156. package/dist/types/__VUE/datepicker/index.vue.d.ts +2 -2
  157. package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
  158. package/dist/types/__VUE/fixednav/common.d.ts +56 -0
  159. package/dist/types/__VUE/fixednav/index.vue.d.ts +18 -10
  160. package/dist/types/__VUE/grid/index.vue.d.ts +2 -2
  161. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
  162. package/dist/types/__VUE/input/index.vue.d.ts +6 -11
  163. package/dist/types/__VUE/menu/index.vue.d.ts +5 -2
  164. package/dist/types/__VUE/menuitem/index.vue.d.ts +0 -3
  165. package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
  166. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +4 -4
  167. package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
  168. package/dist/types/__VUE/picker/index.vue.d.ts +3 -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/range/index.vue.d.ts +1 -1
  172. package/dist/types/__VUE/rate/index.vue.d.ts +2 -2
  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/switch/index.vue.d.ts +2 -2
  178. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
  179. package/dist/types/__VUE/toast/index.vue.d.ts +2 -2
  180. package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
  181. package/dist/types/__VUE/video/index.vue.d.ts +1 -1
  182. package/dist/types/index.d.ts +1 -1
  183. package/package.json +1 -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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -96,19 +96,17 @@ const _sfc_main = create({
96
96
  if (customKeys.length > 2) {
97
97
  customKeys = [customKeys[0], customKeys[1]];
98
98
  }
99
+ if (customKeys.length == 2 && props.title && props.type != "rightColumn") {
100
+ customKeys = [customKeys[0]];
101
+ }
99
102
  if (customKeys.length === 1) {
100
- if (props.title) {
103
+ if (props.title && props.type != "rightColumn") {
101
104
  keys.push({ id: customKeys[0], type: "custom" }, { id: 0, type: "number" }, { id: "delete", type: "delete" });
102
105
  } else {
103
106
  keys.push({ id: 0, type: "number" }, { id: customKeys[0], type: "custom" });
104
107
  }
105
108
  } else if (customKeys.length === 2) {
106
109
  keys.push({ id: customKeys[0], type: "custom" }, { id: 0, type: "number" }, { id: customKeys[1], type: "custom" });
107
- if (props.title) {
108
- keys.push({ id: "delete", type: "delete" });
109
- }
110
- } else {
111
- keys.push({ id: 0, type: "number" });
112
110
  }
113
111
  return keys;
114
112
  }
@@ -212,10 +210,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
212
210
  createElementVNode("div", _hoisted_1, [
213
211
  _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2, [
214
212
  createElementVNode("h3", _hoisted_3, toDisplayString(_ctx.title), 1),
215
- createElementVNode("span", {
213
+ _ctx.type == "default" ? (openBlock(), createElementBlock("span", {
214
+ key: 0,
216
215
  class: "keyboard-close",
217
216
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.closeBoard())
218
- }, toDisplayString(_ctx.translate("done")), 1)
217
+ }, toDisplayString(_ctx.translate("done")), 1)) : createCommentVNode("", true)
219
218
  ])) : createCommentVNode("", true),
220
219
  createElementVNode("div", _hoisted_4, [
221
220
  createElementVNode("div", _hoisted_5, [
@@ -258,15 +257,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
258
257
  onTouchend: _cache[4] || (_cache[4] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
259
258
  }, _hoisted_12, 34)
260
259
  ]),
261
- _ctx.title == "" ? (openBlock(), createElementBlock("div", {
262
- key: 0,
260
+ createElementVNode("div", {
263
261
  class: "key-board-wrapper key-board-finish",
264
262
  onClick: _cache[5] || (_cache[5] = ($event) => _ctx.closeBoard())
265
263
  }, [
266
264
  createElementVNode("div", {
267
265
  class: normalizeClass(["key", "finish", { activeFinsh: _ctx.clickKeyIndex == "finish" }])
268
266
  }, toDisplayString(_ctx.confirmText || _ctx.translate("done")), 3)
269
- ])) : createCommentVNode("", true)
267
+ ])
270
268
  ])) : createCommentVNode("", true)
271
269
  ])
272
270
  ], 512)
@@ -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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -403,6 +403,12 @@ const _sfc_main = create({
403
403
  }
404
404
  };
405
405
  const confirmHandler = () => {
406
+ if (defaultValues.value && !defaultValues.value.length) {
407
+ columnsList.value.forEach((columns) => {
408
+ defaultValues.value.push(columns[0].value);
409
+ selectedOptions.value.push(columns[0]);
410
+ });
411
+ }
406
412
  emit("confirm", {
407
413
  selectedValue: defaultValues.value,
408
414
  selectedOptions: selectedOptions.value
@@ -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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { ref, toRefs, computed, onMounted, onUnmounted, watch, nextTick, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, withModifiers, renderSlot, createVNode, withCtx, createCommentVNode, renderList, toDisplayString } from "vue";
6
+ import { ref, toRefs, computed, onMounted, onUnmounted, watch, nextTick, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, withModifiers, renderSlot, createVNode, withCtx, createCommentVNode, renderList, mergeProps, toDisplayString } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import Popup, { popupProps } from "./Popup.js";
9
9
  import Button from "./Button.js";
@@ -840,7 +840,6 @@ const _sfc_main = create({
840
840
  };
841
841
  });
842
842
  const createPopperInstance = () => {
843
- console.log(reference.value, popoverRef.value);
844
843
  if (reference.value && popoverRef.value) {
845
844
  return createPopper(reference.value, popoverRef.value.popupRef, {
846
845
  placement: props.location,
@@ -863,7 +862,6 @@ const _sfc_main = create({
863
862
  return null;
864
863
  };
865
864
  const clickOverlay = () => {
866
- console.log("\u5173\u95ED");
867
865
  };
868
866
  const uploadLocation = () => {
869
867
  nextTick(() => {
@@ -871,7 +869,6 @@ const _sfc_main = create({
871
869
  return;
872
870
  if (!popper) {
873
871
  popper = createPopperInstance();
874
- console.log(popper);
875
872
  } else {
876
873
  popper.setOptions({
877
874
  placement: props.location
@@ -969,10 +966,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
969
966
  onClick: withModifiers(($event) => _ctx.chooseItem(item, index2), ["stop"])
970
967
  }, [
971
968
  item.icon ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
972
- createVNode(_component_nut_icon, {
969
+ createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
973
970
  class: "item-img",
974
971
  name: item.icon
975
- }, null, 8, ["name"])
972
+ }), null, 16, ["name"])
976
973
  ]) : createCommentVNode("", true),
977
974
  createElementVNode("view", _hoisted_2, toDisplayString(item.name), 1)
978
975
  ], 10, _hoisted_1);
@@ -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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { ref, reactive, computed, onMounted, onBeforeUnmount, onBeforeMount, onActivated, onDeactivated, watch, toRefs, resolveComponent, openBlock, createBlock, Teleport, normalizeClass, normalizeStyle, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, renderSlot, createElementBlock, vShow } from "vue";
6
+ import { ref, reactive, computed, onMounted, onBeforeUnmount, onBeforeMount, onActivated, onDeactivated, watch, toRefs, resolveComponent, openBlock, createBlock, Teleport, normalizeClass, normalizeStyle, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, renderSlot, createElementBlock, mergeProps, vShow } from "vue";
7
7
  import overlay, { overlayProps } from "./OverLay.js";
8
8
  import _sfc_main$1 from "./Icon.js";
9
9
  import { c as createComponent } from "./component.js";
@@ -245,10 +245,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
245
245
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
246
246
  class: normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
247
247
  }, [
248
- createVNode(_component_nut_icon, {
248
+ createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
249
249
  name: _ctx.closeIcon,
250
250
  size: "12px"
251
- }, null, 8, ["name"])
251
+ }), null, 16, ["name"])
252
252
  ], 2)) : createCommentVNode("", true)
253
253
  ], 6), [
254
254
  [vShow, _ctx.visible]
@@ -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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { useSlots, ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createBlock } from "vue";
6
+ import { useSlots, ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createBlock, mergeProps } 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";
@@ -138,12 +138,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
138
138
  _ctx.status == "active" || _ctx.status == "" ? (openBlock(), createElementBlock("span", {
139
139
  key: 0,
140
140
  style: normalizeStyle(_ctx.textStyle)
141
- }, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? (openBlock(), createBlock(_component_nut_icon, {
142
- key: 1,
141
+ }, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 1 }, _ctx.$attrs, {
143
142
  size: "16px",
144
143
  name: _ctx.iconName,
145
144
  color: _ctx.iconColor
146
- }, null, 8, ["name", "color"])) : createCommentVNode("", true)
145
+ }), null, 16, ["name", "color"])) : createCommentVNode("", true)
147
146
  ], 4)) : createCommentVNode("", true)
148
147
  ]);
149
148
  }
@@ -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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { getCurrentInstance, inject, reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, Fragment, toDisplayString, createCommentVNode, renderSlot } from "vue";
6
+ import { getCurrentInstance, inject, reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, mergeProps, Fragment, toDisplayString, createCommentVNode, renderSlot } 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";
@@ -92,13 +92,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
92
92
  createElementVNode("view", {
93
93
  class: normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
94
94
  }, [
95
- _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
95
+ _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
96
96
  key: 0,
97
- class: "nut-step-icon-inner",
97
+ class: "nut-step-icon-inner"
98
+ }, _ctx.$attrs, {
98
99
  color: _ctx.iconColor,
99
100
  name: _ctx.icon,
100
101
  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))
102
+ }), null, 16, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.index), 1))
102
103
  ], 2)
103
104
  ]),
104
105
  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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 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.1 Tue Aug 09 2022 17:11:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { reactive, onMounted, watch, computed, resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, createElementBlock, createVNode, createCommentVNode, toDisplayString, vShow, render } from "vue";
6
+ import { reactive, onMounted, watch, computed, resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, createElementBlock, createVNode, mergeProps, createCommentVNode, toDisplayString, vShow, render } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import _sfc_main$1 from "./Icon.js";
9
9
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
@@ -176,11 +176,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
176
176
  })
177
177
  }, [
178
178
  _ctx.hasIcon ? (openBlock(), createElementBlock("view", _hoisted_1, [
179
- createVNode(_component_nut_icon, {
180
- size: _ctx.iconSize,
179
+ createVNode(_component_nut_icon, mergeProps({ size: _ctx.iconSize }, _ctx.$attrs, {
181
180
  color: "#ffffff",
182
181
  name: _ctx.icon
183
- }, null, 8, ["size", "name"])
182
+ }), null, 16, ["size", "name"])
184
183
  ])) : createCommentVNode("", true),
185
184
  _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
186
185
  createElementVNode("view", {