@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,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
  */
@@ -167,9 +186,9 @@ const _sfc_main = create({
167
186
  return;
168
187
  state.fixedTop = fixedTop;
169
188
  });
170
- return {
171
- classes,
172
- ...toRefs(state),
189
+ return __spreadProps(__spreadValues({
190
+ classes
191
+ }, toRefs(state)), {
173
192
  fixedStyle,
174
193
  clientHeight,
175
194
  setListGroup,
@@ -179,7 +198,7 @@ const _sfc_main = create({
179
198
  touchEnd,
180
199
  handleClickItem,
181
200
  handleClickIndex
182
- };
201
+ });
183
202
  }
184
203
  });
185
204
  const _hoisted_1 = { class: "nut-elevator__list__item__code" };
@@ -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
  */
@@ -170,7 +189,7 @@ const _sfc_main = create({
170
189
  const handleClick = () => {
171
190
  emit("click");
172
191
  };
173
- return { ...toRefs(state), root, ellipsis, classes, clickHandle, handleClick };
192
+ return __spreadProps(__spreadValues({}, toRefs(state)), { root, ellipsis, classes, clickHandle, handleClick });
174
193
  }
175
194
  });
176
195
  const _hoisted_1 = { key: 0 };
@@ -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,18 +1,14 @@
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, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, createCommentVNode, renderSlot, createElementVNode, Fragment, renderList, toDisplayString, createVNode } from "vue";
7
6
  import { c as createComponent } from "./component.js";
8
- import overlay from "./OverLay.js";
7
+ import { computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, createCommentVNode, renderSlot, createElementVNode, Fragment, renderList, toDisplayString, createVNode } from "vue";
9
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
10
9
  import "../locale/lang";
11
- const { componentName, create, translate } = createComponent("fixednav");
12
- const _sfc_main = create({
13
- components: {
14
- [overlay.name]: overlay
15
- },
10
+ const { componentName, translate } = createComponent("fixednav");
11
+ const component = {
16
12
  props: {
17
13
  visible: {
18
14
  type: Boolean,
@@ -26,6 +22,10 @@ const _sfc_main = create({
26
22
  default: () => [],
27
23
  type: Array
28
24
  },
25
+ activeColor: {
26
+ default: "",
27
+ type: String
28
+ },
29
29
  activeText: {
30
30
  default: "",
31
31
  type: String
@@ -58,6 +58,7 @@ const _sfc_main = create({
58
58
  [props.type]: true
59
59
  };
60
60
  });
61
+ const current = ref(-1);
61
62
  const updateValue = (value = !props.visible) => {
62
63
  emit("update:visible", value);
63
64
  };
@@ -66,10 +67,11 @@ const _sfc_main = create({
66
67
  item,
67
68
  event
68
69
  });
70
+ current.value = item.id;
69
71
  };
70
- return { classes, updateValue, selected, translate };
72
+ return { classes, updateValue, selected, translate, current };
71
73
  }
72
- });
74
+ };
73
75
  const _hoisted_1 = { class: "nut-fixednav__list" };
74
76
  const _hoisted_2 = ["onClick"];
75
77
  const _hoisted_3 = ["src"];
@@ -79,7 +81,7 @@ const _hoisted_5 = {
79
81
  class: "b"
80
82
  };
81
83
  const _hoisted_6 = { class: "text" };
82
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
84
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
83
85
  const _component_nut_overlay = resolveComponent("nut-overlay");
84
86
  const _component_nut_icon = resolveComponent("nut-icon");
85
87
  return openBlock(), createElementBlock("view", {
@@ -96,7 +98,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
96
98
  createElementVNode("view", _hoisted_1, [
97
99
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navList, (item, index2) => {
98
100
  return openBlock(), createElementBlock("view", {
99
- class: "nut-fixednav__list-item",
101
+ class: normalizeClass(["nut-fixednav__list-item", { active: item.id == _ctx.current }]),
100
102
  onClick: ($event) => _ctx.selected(item, $event),
101
103
  key: item.id || index2
102
104
  }, [
@@ -105,7 +107,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
105
107
  }, null, 8, _hoisted_3),
106
108
  createElementVNode("view", _hoisted_4, toDisplayString(item.text), 1),
107
109
  item.num ? (openBlock(), createElementBlock("view", _hoisted_5, toDisplayString(item.num), 1)) : createCommentVNode("", true)
108
- ], 8, _hoisted_2);
110
+ ], 10, _hoisted_2);
109
111
  }), 128))
110
112
  ])
111
113
  ]),
@@ -123,5 +125,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
123
125
  ])
124
126
  ], 6);
125
127
  }
126
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
128
+ const { create } = createComponent("fixednav");
129
+ const _sfc_main = create(component);
130
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", render]]);
127
131
  export { index as default };
@@ -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
  */
@@ -76,7 +76,7 @@ const component = {
76
76
  const { required, validator, regex, message } = _rules.shift();
77
77
  const errorMsg = { prop, message };
78
78
  if (required) {
79
- if (!value) {
79
+ if (value === "" || value === void 0 || value === null) {
80
80
  return _Promise(errorMsg);
81
81
  }
82
82
  }
@@ -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
  */
@@ -57,7 +57,7 @@ const _sfc_main = create({
57
57
  },
58
58
  components: {},
59
59
  emits: [""],
60
- setup(props, { emit }) {
60
+ setup(props, { emit, slots }) {
61
61
  const parent = inject("formErrorTip");
62
62
  provide("form", {
63
63
  props
@@ -78,7 +78,8 @@ const _sfc_main = create({
78
78
  textAlign: props.errorMessageAlign
79
79
  };
80
80
  });
81
- return { parent, labelStyle, bodyStyle, errorMessageStyle };
81
+ const getSlots = (name) => slots[name];
82
+ return { parent, labelStyle, bodyStyle, errorMessageStyle, getSlots };
82
83
  }
83
84
  });
84
85
  const _hoisted_1 = { class: "nut-cell__value nut-form-item__body" };
@@ -89,7 +90,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
89
90
  style: normalizeStyle(_ctx.$attrs.style)
90
91
  }, {
91
92
  default: withCtx(() => [
92
- _ctx.label ? (openBlock(), createElementBlock("view", {
93
+ _ctx.label || _ctx.getSlots("label") ? (openBlock(), createElementBlock("view", {
93
94
  key: 0,
94
95
  class: normalizeClass(["nut-cell__title nut-form-item__label", { required: _ctx.required }]),
95
96
  style: normalizeStyle(_ctx.labelStyle)
@@ -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 { inject, getCurrentInstance, onUnmounted, computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, Fragment, createBlock, toDisplayString } from "vue";
6
+ import { inject, getCurrentInstance, onUnmounted, computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, Fragment, createBlock, mergeProps, toDisplayString } from "vue";
7
7
  import { u as useRouter } from "./index.js";
8
8
  import { c as createComponent } from "./component.js";
9
9
  import { p as pxCheck } from "./pxCheck.js";
@@ -135,12 +135,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
135
135
  class: normalizeClass(_ctx.contentClass)
136
136
  }, [
137
137
  _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
138
- _ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", { key: 0 }) : (openBlock(), createBlock(_component_nut_icon, {
138
+ _ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", { key: 0 }) : (openBlock(), createBlock(_component_nut_icon, mergeProps({
139
139
  key: 1,
140
- name: _ctx.iconProps.name,
140
+ name: _ctx.iconProps.name
141
+ }, _ctx.$attrs, {
141
142
  size: _ctx.iconProps.size,
142
143
  color: _ctx.iconProps.color
143
- }, null, 8, ["name", "size", "color"])),
144
+ }), null, 16, ["name", "size", "color"])),
144
145
  _ctx.$slots.text ? renderSlot(_ctx.$slots, "text", { key: 2 }) : (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.text), 1))
145
146
  ], 64))
146
147
  ], 2)
@@ -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
  */
@@ -95,7 +114,7 @@ const _sfc_main = create({
95
114
  const imageClick = (event) => {
96
115
  emit("click", event);
97
116
  };
98
- return { ...toRefs(state), imageClick, classes, styles, stylebox, error, load };
117
+ return __spreadProps(__spreadValues({}, toRefs(state)), { imageClick, classes, styles, stylebox, error, load });
99
118
  }
100
119
  });
101
120
  const _hoisted_1 = ["src", "alt"];
@@ -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 { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, normalizeStyle, createElementVNode, createCommentVNode, createVNode, ref, onMounted, Fragment, renderList, toDisplayString, render, h } from "vue";
25
+ import { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, normalizeStyle, createElementVNode, createCommentVNode, createVNode, ref, onMounted, Fragment, renderList, toDisplayString, mergeProps, render, h } from "vue";
7
26
  import { c as createComponent, a as isPromise } from "./component.js";
8
27
  import Popup from "./Popup.js";
9
28
  import Video from "./Video.js";
@@ -240,15 +259,14 @@ const _sfc_main$1 = create$1({
240
259
  resetScale();
241
260
  }
242
261
  });
243
- return {
244
- ...toRefs(state),
262
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
245
263
  onTouchStart,
246
264
  onTouchMove,
247
265
  onTouchEnd,
248
266
  getDistance,
249
267
  imageStyle,
250
268
  imageLoad
251
- };
269
+ });
252
270
  }
253
271
  });
254
272
  const _hoisted_1$1 = ["src"];
@@ -424,14 +442,14 @@ const _sfc_main = create({
424
442
  state.showPop = props.show;
425
443
  state.maxNo = props.images.length + props.videos.length;
426
444
  });
427
- return {
428
- swipeRef,
429
- ...toRefs(state),
445
+ return __spreadProps(__spreadValues({
446
+ swipeRef
447
+ }, toRefs(state)), {
430
448
  slideChangeEnd,
431
449
  onClose,
432
450
  handleCloseIcon,
433
451
  styles
434
- };
452
+ });
435
453
  }
436
454
  });
437
455
  const _hoisted_1 = {
@@ -505,10 +523,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
505
523
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleCloseIcon && _ctx.handleCloseIcon(...args)),
506
524
  style: normalizeStyle(_ctx.styles)
507
525
  }, [
508
- createVNode(_component_nut_icon, {
509
- name: _ctx.closeIcon,
510
- color: "#ffffff"
511
- }, null, 8, ["name"])
526
+ createVNode(_component_nut_icon, mergeProps({ name: _ctx.closeIcon }, _ctx.$attrs, { color: "#ffffff" }), null, 16, ["name"])
512
527
  ], 4)) : createCommentVNode("", true)
513
528
  ]),
514
529
  _: 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,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 { reactive, computed, onMounted, onUnmounted, ref, onActivated, onDeactivated, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, toDisplayString, renderSlot, Fragment, createCommentVNode } from "vue";
25
+ import { reactive, computed, onMounted, onUnmounted, ref, onActivated, onDeactivated, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, mergeProps, toDisplayString, renderSlot, Fragment, createCommentVNode } 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";
@@ -187,16 +206,16 @@ const _sfc_main = create({
187
206
  isKeepAlive.value = true;
188
207
  state.scrollEl.removeEventListener("scroll", handleScroll, props.useCapture);
189
208
  });
190
- return {
191
- classes,
192
- ...toRefs(state),
209
+ return __spreadProps(__spreadValues({
210
+ classes
211
+ }, toRefs(state)), {
193
212
  touchStart,
194
213
  touchMove,
195
214
  touchEnd,
196
215
  getStyle,
197
216
  translate,
198
217
  slots
199
- };
218
+ });
200
219
  }
201
220
  });
202
221
  const _hoisted_1 = { class: "top-box" };
@@ -227,10 +246,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
227
246
  style: normalizeStyle(_ctx.getStyle)
228
247
  }, [
229
248
  createElementVNode("view", _hoisted_1, [
230
- createVNode(_component_nut_icon, {
231
- class: "top-img",
232
- name: _ctx.pullIcon
233
- }, null, 8, ["name"]),
249
+ createVNode(_component_nut_icon, mergeProps({ class: "top-img" }, _ctx.$attrs, { name: _ctx.pullIcon }), null, 16, ["name"]),
234
250
  createElementVNode("view", _hoisted_2, toDisplayString(_ctx.pullTxt || _ctx.translate("pullTxt")), 1)
235
251
  ])
236
252
  ], 4),
@@ -240,10 +256,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
240
256
  createElementVNode("view", _hoisted_4, [
241
257
  _ctx.isInfiniting ? (openBlock(), createElementBlock("view", _hoisted_5, [
242
258
  !_ctx.slots.loading ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
243
- createVNode(_component_nut_icon, {
244
- class: "bottom-img",
245
- name: _ctx.loadIcon
246
- }, null, 8, ["name"]),
259
+ createVNode(_component_nut_icon, mergeProps({ class: "bottom-img" }, _ctx.$attrs, { name: _ctx.loadIcon }), null, 16, ["name"]),
247
260
  createElementVNode("view", _hoisted_6, toDisplayString(_ctx.loadTxt || _ctx.translate("loading")), 1)
248
261
  ], 64)) : renderSlot(_ctx.$slots, "loading", { key: 1 })
249
262
  ])) : !_ctx.hasMore ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [