@nutui/nutui 3.1.23-beta.6 → 3.2.2-beta.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 (231) hide show
  1. package/CHANGELOG.md +63 -1
  2. package/dist/nutui.es.js +1475 -1070
  3. package/dist/nutui.umd.js +1468 -1063
  4. package/dist/packages/_es/ActionSheet.js +4 -22
  5. package/dist/packages/_es/Address.js +79 -71
  6. package/dist/packages/_es/AddressList.js +7 -5
  7. package/dist/packages/_es/Animate.js +2 -21
  8. package/dist/packages/_es/Audio.js +39 -68
  9. package/dist/packages/_es/AudioOperate.js +3 -24
  10. package/dist/packages/_es/Avatar.js +8 -24
  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 +7 -4
  15. package/dist/packages/_es/Button.js +6 -5
  16. package/dist/packages/_es/Calendar.js +10 -4
  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 +51 -65
  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 +31 -17
  25. package/dist/packages/_es/CheckboxGroup.js +14 -7
  26. package/dist/packages/_es/CircleProgress.js +1 -1
  27. package/dist/packages/_es/Col.js +5 -11
  28. package/dist/packages/_es/Collapse.js +22 -19
  29. package/dist/packages/_es/CollapseItem.js +30 -42
  30. package/dist/packages/_es/Comment.js +13 -9
  31. package/dist/packages/_es/ConfigProvider.js +8 -4
  32. package/dist/packages/_es/CountDown.js +40 -46
  33. package/dist/packages/_es/CountUp.js +39 -40
  34. package/dist/packages/_es/DatePicker.js +25 -33
  35. package/dist/packages/_es/Dialog.js +12 -27
  36. package/dist/packages/_es/Divider.js +7 -24
  37. package/dist/packages/_es/Drag.js +1 -1
  38. package/dist/packages/_es/Ecard.js +7 -4
  39. package/dist/packages/_es/Elevator.js +25 -38
  40. package/dist/packages/_es/Ellipsis.js +14 -28
  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 +8 -4
  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 +15 -11
  48. package/dist/packages/_es/Image.js +8 -24
  49. package/dist/packages/_es/ImagePreview.js +24 -39
  50. package/dist/packages/_es/Indicator.js +1 -1
  51. package/dist/packages/_es/InfiniteLoading.js +8 -33
  52. package/dist/packages/_es/Input.js +75 -69
  53. package/dist/packages/_es/InputNumber.js +20 -14
  54. package/dist/packages/_es/Layout.js +1 -1
  55. package/dist/packages/_es/List.js +10 -25
  56. package/dist/packages/_es/Menu.js +17 -10
  57. package/dist/packages/_es/MenuItem.js +5 -26
  58. package/dist/packages/_es/Navbar.js +10 -8
  59. package/dist/packages/_es/NoticeBar.js +20 -31
  60. package/dist/packages/_es/Notify.js +16 -32
  61. package/dist/packages/_es/NumberKeyboard.js +21 -16
  62. package/dist/packages/_es/OldPicker.js +47 -46
  63. package/dist/packages/_es/OverLay.js +11 -23
  64. package/dist/packages/_es/Pagination.js +1 -1
  65. package/dist/packages/_es/Picker.js +81 -59
  66. package/dist/packages/_es/Popover.js +58 -58
  67. package/dist/packages/_es/Popup.js +38 -43
  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 +5 -20
  71. package/dist/packages/_es/Radio.js +25 -13
  72. package/dist/packages/_es/RadioGroup.js +12 -5
  73. package/dist/packages/_es/Range.js +20 -33
  74. package/dist/packages/_es/Rate.js +5 -24
  75. package/dist/packages/_es/Row.js +5 -11
  76. package/dist/packages/_es/SearchBar.js +5 -24
  77. package/dist/packages/_es/ShortPassword.js +18 -11
  78. package/dist/packages/_es/SideNavBar.js +4 -22
  79. package/dist/packages/_es/SideNavBarItem.js +1 -1
  80. package/dist/packages/_es/Signature.js +15 -23
  81. package/dist/packages/_es/Skeleton.js +1 -1
  82. package/dist/packages/_es/Sku.js +24 -32
  83. package/dist/packages/_es/Step.js +9 -26
  84. package/dist/packages/_es/Steps.js +8 -4
  85. package/dist/packages/_es/Sticky.js +23 -12
  86. package/dist/packages/_es/SubSideNavBar.js +4 -22
  87. package/dist/packages/_es/Swipe.js +5 -24
  88. package/dist/packages/_es/Swiper.js +23 -14
  89. package/dist/packages/_es/SwiperItem.js +1 -1
  90. package/dist/packages/_es/Switch.js +15 -11
  91. package/dist/packages/_es/TabPane.js +1 -1
  92. package/dist/packages/_es/Tabbar.js +7 -4
  93. package/dist/packages/_es/TabbarItem.js +13 -14
  94. package/dist/packages/_es/Table.js +10 -25
  95. package/dist/packages/_es/Tabs.js +20 -29
  96. package/dist/packages/_es/Tag.js +11 -15
  97. package/dist/packages/_es/TextArea.js +8 -5
  98. package/dist/packages/_es/TimeDetail.js +5 -24
  99. package/dist/packages/_es/TimePannel.js +4 -22
  100. package/dist/packages/_es/TimeSelect.js +1 -1
  101. package/dist/packages/_es/Toast.js +22 -39
  102. package/dist/packages/_es/Uploader.js +54 -54
  103. package/dist/packages/_es/Video.js +22 -33
  104. package/dist/packages/_es/WaterMark.js +31 -44
  105. package/dist/packages/_es/common.js +21 -11
  106. package/dist/packages/_es/component.js +5 -5
  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 +26 -35
  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/actionsheet/index.scss +17 -0
  117. package/dist/packages/address/index.scss +60 -0
  118. package/dist/packages/addresslist/index.scss +57 -17
  119. package/dist/packages/audio/index.scss +8 -0
  120. package/dist/packages/barrage/index.scss +7 -0
  121. package/dist/packages/button/index.scss +1 -0
  122. package/dist/packages/card/index.scss +8 -1
  123. package/dist/packages/category/index.scss +25 -4
  124. package/dist/packages/categorypane/index.scss +18 -65
  125. package/dist/packages/circleprogress/index.scss +6 -0
  126. package/dist/packages/collapseitem/index.scss +21 -0
  127. package/dist/packages/comment/index.scss +37 -0
  128. package/dist/packages/countup/index.scss +24 -3
  129. package/dist/packages/ecard/index.scss +31 -1
  130. package/dist/packages/elevator/index.scss +16 -0
  131. package/dist/packages/empty/index.scss +6 -0
  132. package/dist/packages/fixednav/index.scss +7 -0
  133. package/dist/packages/image/index.scss +12 -0
  134. package/dist/packages/infiniteloading/index.scss +18 -0
  135. package/dist/packages/locale/lang/baseLang.js +1 -1
  136. package/dist/packages/locale/lang/en-US.js +1 -1
  137. package/dist/packages/locale/lang/id-ID.js +1 -1
  138. package/dist/packages/locale/lang/index.js +1 -1
  139. package/dist/packages/locale/lang/zh-CN.js +1 -1
  140. package/dist/packages/locale/lang/zh-TW.js +1 -1
  141. package/dist/packages/menu/index.scss +14 -2
  142. package/dist/packages/menuitem/index.scss +8 -0
  143. package/dist/packages/noticebar/index.scss +13 -0
  144. package/dist/packages/numberkeyboard/index.scss +10 -0
  145. package/dist/packages/picker/index.scss +33 -0
  146. package/dist/packages/popup/index.scss +10 -0
  147. package/dist/packages/radio/index.scss +1 -0
  148. package/dist/packages/shortpassword/index.scss +20 -0
  149. package/dist/packages/sidenavbaritem/index.scss +9 -0
  150. package/dist/packages/sku/index.scss +40 -0
  151. package/dist/packages/step/index.scss +52 -0
  152. package/dist/packages/subsidenavbar/index.scss +12 -0
  153. package/dist/packages/swiper/index.scss +2 -0
  154. package/dist/packages/swiperitem/index.scss +3 -0
  155. package/dist/packages/tag/index.scss +20 -0
  156. package/dist/packages/watermark/index.scss +1 -1
  157. package/dist/smartips/attributes.json +38 -2
  158. package/dist/smartips/tags.json +14 -4
  159. package/dist/smartips/web-types.json +86 -4
  160. package/dist/style.css +1 -1
  161. package/dist/styles/themes/default.scss +51 -51
  162. package/dist/styles/themes/jdb.scss +51 -51
  163. package/dist/styles/themes/jdt.scss +51 -51
  164. package/dist/styles/variables-jdb.scss +28 -7
  165. package/dist/styles/variables-jdt.scss +28 -7
  166. package/dist/styles/variables.scss +27 -7
  167. package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
  168. package/dist/types/__VUE/address/index.vue.d.ts +1 -1
  169. package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -1
  170. package/dist/types/__VUE/audio/index.vue.d.ts +4 -1
  171. package/dist/types/__VUE/audiooperate/index.vue.d.ts +15 -72
  172. package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
  173. package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
  174. package/dist/types/__VUE/calendar/index.vue.d.ts +7 -0
  175. package/dist/types/__VUE/calendaritem/index.vue.d.ts +2 -2
  176. package/dist/types/__VUE/categorypane/index.vue.d.ts +1 -1
  177. package/dist/types/__VUE/cell/index.vue.d.ts +9 -2
  178. package/dist/types/__VUE/cellgroup/index.vue.d.ts +1 -1
  179. package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +1 -1
  180. package/dist/types/__VUE/circleprogress/index.vue.d.ts +1 -1
  181. package/dist/types/__VUE/col/index.vue.d.ts +2 -5
  182. package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
  183. package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
  184. package/dist/types/__VUE/configprovider/index.vue.d.ts +1 -1
  185. package/dist/types/__VUE/countdown/index.vue.d.ts +1 -1
  186. package/dist/types/__VUE/countup/index.vue.d.ts +1 -1
  187. package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
  188. package/dist/types/__VUE/fixednav/common.d.ts +56 -0
  189. package/dist/types/__VUE/fixednav/index.vue.d.ts +17 -9
  190. package/dist/types/__VUE/formitem/index.vue.d.ts +1 -1
  191. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
  192. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
  193. package/dist/types/__VUE/imagepreview/index.d.ts +7 -6
  194. package/dist/types/__VUE/imagepreview/index.vue.d.ts +4 -4
  195. package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
  196. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -1
  197. package/dist/types/__VUE/input/index.vue.d.ts +4 -9
  198. package/dist/types/__VUE/inputnumber/index.vue.d.ts +15 -1
  199. package/dist/types/__VUE/menu/index.vue.d.ts +3 -0
  200. package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -4
  201. package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -4
  202. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
  203. package/dist/types/__VUE/oldpicker/Column.vue.d.ts +1 -1
  204. package/dist/types/__VUE/oldpicker/index.vue.d.ts +1 -1
  205. package/dist/types/__VUE/overlay/index.vue.d.ts +1 -1
  206. package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
  207. package/dist/types/__VUE/picker/index.vue.d.ts +28 -13
  208. package/dist/types/__VUE/popover/index.vue.d.ts +2 -2
  209. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +1 -1
  210. package/dist/types/__VUE/radiogroup/index.vue.d.ts +1 -1
  211. package/dist/types/__VUE/row/index.vue.d.ts +2 -5
  212. package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
  213. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  214. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +1 -1
  215. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +1 -1
  216. package/dist/types/__VUE/signature/index.vue.d.ts +5 -2
  217. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +1 -1
  218. package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
  219. package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
  220. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
  221. package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -1
  222. package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
  223. package/dist/types/__VUE/timedetail/index.vue.d.ts +1 -1
  224. package/dist/types/__VUE/timepannel/index.vue.d.ts +1 -1
  225. package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
  226. package/dist/types/__VUE/uploader/index.vue.d.ts +7 -0
  227. package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
  228. package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
  229. package/dist/types/index.d.ts +1 -1
  230. package/package.json +2 -1
  231. package/dist/packages/index.d.ts +0 -3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -94,9 +94,12 @@ const _sfc_main = create({
94
94
  stepValue.value = value;
95
95
  emit("changeStep", stepValue.value, currentValue.value);
96
96
  };
97
- watch(() => props.modelValue, (value) => {
98
- money.value = value;
99
- });
97
+ watch(
98
+ () => props.modelValue,
99
+ (value) => {
100
+ money.value = value;
101
+ }
102
+ );
100
103
  return {
101
104
  handleClick,
102
105
  changeStep,
@@ -1,24 +1,5 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
1
  /*!
21
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -171,24 +152,30 @@ const _sfc_main = create({
171
152
  useExpose({
172
153
  scrollTo
173
154
  });
174
- watch(() => state.listGroup.length, () => {
175
- state.listHeight = [];
176
- nextTick(calculateHeight);
177
- });
178
- watch(() => state.diff, (newVal) => {
179
- const listHeight = state.listHeight;
180
- let fixedTop = newVal > 0 && newVal < props.titleHeight ? newVal - props.titleHeight : 0;
181
- if (state.scrollY + clientHeight.value === listHeight[listHeight.length - 1]) {
182
- if (fixedTop !== 0)
183
- fixedTop = 0;
155
+ watch(
156
+ () => state.listGroup.length,
157
+ () => {
158
+ state.listHeight = [];
159
+ nextTick(calculateHeight);
184
160
  }
185
- if (state.fixedTop === fixedTop)
186
- return;
187
- state.fixedTop = fixedTop;
188
- });
189
- return __spreadProps(__spreadValues({
190
- classes
191
- }, toRefs(state)), {
161
+ );
162
+ watch(
163
+ () => state.diff,
164
+ (newVal) => {
165
+ const listHeight = state.listHeight;
166
+ let fixedTop = newVal > 0 && newVal < props.titleHeight ? newVal - props.titleHeight : 0;
167
+ if (state.scrollY + clientHeight.value === listHeight[listHeight.length - 1]) {
168
+ if (fixedTop !== 0)
169
+ fixedTop = 0;
170
+ }
171
+ if (state.fixedTop === fixedTop)
172
+ return;
173
+ state.fixedTop = fixedTop;
174
+ }
175
+ );
176
+ return {
177
+ classes,
178
+ ...toRefs(state),
192
179
  fixedStyle,
193
180
  clientHeight,
194
181
  setListGroup,
@@ -198,7 +185,7 @@ const _sfc_main = create({
198
185
  touchEnd,
199
186
  handleClickItem,
200
187
  handleClickIndex
201
- });
188
+ };
202
189
  }
203
190
  });
204
191
  const _hoisted_1 = { class: "nut-elevator__list__item__code" };
@@ -1,24 +1,5 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
1
  /*!
21
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -70,14 +51,17 @@ const _sfc_main = create({
70
51
  [prefixCls]: true
71
52
  };
72
53
  });
73
- watch(() => props.content, (newV, oldVal) => {
74
- if (newV != oldVal) {
75
- if (container) {
76
- document.body.appendChild(container);
54
+ watch(
55
+ () => props.content,
56
+ (newV, oldVal) => {
57
+ if (newV != oldVal) {
58
+ if (container) {
59
+ document.body.appendChild(container);
60
+ }
61
+ createContainer();
77
62
  }
78
- createContainer();
79
63
  }
80
- });
64
+ );
81
65
  onMounted(() => {
82
66
  createContainer();
83
67
  });
@@ -102,7 +86,9 @@ const _sfc_main = create({
102
86
  container.style.webkitLineClamp = "unset";
103
87
  container.style.display = "block";
104
88
  const lineHeight = pxToNumber(originStyle.lineHeight);
105
- maxHeight = Math.floor(lineHeight * (Number(props.rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom));
89
+ maxHeight = Math.floor(
90
+ lineHeight * (Number(props.rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom)
91
+ );
106
92
  container.innerText = props.content;
107
93
  document.body.appendChild(container);
108
94
  calcEllipse();
@@ -189,7 +175,7 @@ const _sfc_main = create({
189
175
  const handleClick = () => {
190
176
  emit("click");
191
177
  };
192
- return __spreadProps(__spreadValues({}, toRefs(state)), { root, ellipsis, classes, clickHandle, handleClick });
178
+ return { ...toRefs(state), root, ellipsis, classes, clickHandle, handleClick };
193
179
  }
194
180
  });
195
181
  const _hoisted_1 = { key: 0 };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -27,9 +27,13 @@ const component = {
27
27
  const reset = () => {
28
28
  clearErrorTips();
29
29
  };
30
- watch(() => props.modelValue, (value) => {
31
- clearErrorTips(value);
32
- }, { immediate: true });
30
+ watch(
31
+ () => props.modelValue,
32
+ (value) => {
33
+ clearErrorTips(value);
34
+ },
35
+ { immediate: true }
36
+ );
33
37
  const findFormItem = (vnodes) => {
34
38
  let task = [];
35
39
  vnodes.forEach((vnode, index2) => {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -28,17 +28,21 @@ const _sfc_main = create({
28
28
  return () => {
29
29
  var _a;
30
30
  const _isImage = isImage();
31
- return h(_isImage ? "img" : props.tag, {
32
- class: _isImage ? `${componentName}__img` : `${props.fontClassName} ${componentName} ${props.classPrefix}-${props.name}`,
33
- style: {
34
- color: props.color,
35
- fontSize: pxCheck(props.size),
36
- width: pxCheck(props.size),
37
- height: pxCheck(props.size)
31
+ return h(
32
+ _isImage ? "img" : props.tag,
33
+ {
34
+ class: _isImage ? `${componentName}__img` : `${props.fontClassName} ${componentName} ${props.classPrefix}-${props.name}`,
35
+ style: {
36
+ color: props.color,
37
+ fontSize: pxCheck(props.size),
38
+ width: pxCheck(props.size),
39
+ height: pxCheck(props.size)
40
+ },
41
+ onClick: handleClick,
42
+ src: _isImage ? props.name : ""
38
43
  },
39
- onClick: handleClick,
40
- src: _isImage ? props.name : ""
41
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
44
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
45
+ );
42
46
  };
43
47
  }
44
48
  });
@@ -1,24 +1,5 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
1
  /*!
21
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -99,9 +80,12 @@ const _sfc_main = create({
99
80
  };
100
81
  return styless;
101
82
  });
102
- watch(() => props.src, (val) => {
103
- state.isError = false, state.loading = true;
104
- });
83
+ watch(
84
+ () => props.src,
85
+ (val) => {
86
+ state.isError = false, state.loading = true;
87
+ }
88
+ );
105
89
  const load = () => {
106
90
  state.loading = false;
107
91
  emit("load");
@@ -114,7 +98,7 @@ const _sfc_main = create({
114
98
  const imageClick = (event) => {
115
99
  emit("click", event);
116
100
  };
117
- return __spreadProps(__spreadValues({}, toRefs(state)), { imageClick, classes, styles, stylebox, error, load });
101
+ return { ...toRefs(state), imageClick, classes, styles, stylebox, error, load };
118
102
  }
119
103
  });
120
104
  const _hoisted_1 = ["src", "alt"];
@@ -1,28 +1,9 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
1
  /*!
21
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
25
- import { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, normalizeStyle, createElementVNode, createCommentVNode, createVNode, ref, onMounted, Fragment, renderList, toDisplayString, render, h } from "vue";
6
+ import { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, normalizeStyle, createElementVNode, createCommentVNode, createVNode, ref, onMounted, Fragment, renderList, toDisplayString, mergeProps, render, h } from "vue";
26
7
  import { c as createComponent, a as isPromise } from "./component.js";
27
8
  import Popup from "./Popup.js";
28
9
  import Video from "./Video.js";
@@ -254,19 +235,23 @@ const _sfc_main$1 = create$1({
254
235
  };
255
236
  const clamp = (num, min, max) => Math.min(Math.max(num, min), max);
256
237
  watch(() => props.initNo, resetScale);
257
- watch(() => props.show, (value) => {
258
- if (!value) {
259
- resetScale();
238
+ watch(
239
+ () => props.show,
240
+ (value) => {
241
+ if (!value) {
242
+ resetScale();
243
+ }
260
244
  }
261
- });
262
- return __spreadProps(__spreadValues({}, toRefs(state)), {
245
+ );
246
+ return {
247
+ ...toRefs(state),
263
248
  onTouchStart,
264
249
  onTouchMove,
265
250
  onTouchEnd,
266
251
  getDistance,
267
252
  imageStyle,
268
253
  imageLoad
269
- });
254
+ };
270
255
  }
271
256
  });
272
257
  const _hoisted_1$1 = ["src"];
@@ -433,23 +418,26 @@ const _sfc_main = create({
433
418
  state.rootWidth = swipeRef.value.offsetWidth;
434
419
  }, 100);
435
420
  };
436
- watch(() => props.show, (val) => {
437
- state.showPop = val;
438
- init();
439
- });
421
+ watch(
422
+ () => props.show,
423
+ (val) => {
424
+ state.showPop = val;
425
+ init();
426
+ }
427
+ );
440
428
  onMounted(() => {
441
429
  state.active = props.initNo;
442
430
  state.showPop = props.show;
443
431
  state.maxNo = props.images.length + props.videos.length;
444
432
  });
445
- return __spreadProps(__spreadValues({
446
- swipeRef
447
- }, toRefs(state)), {
433
+ return {
434
+ swipeRef,
435
+ ...toRefs(state),
448
436
  slideChangeEnd,
449
437
  onClose,
450
438
  handleCloseIcon,
451
439
  styles
452
- });
440
+ };
453
441
  }
454
442
  });
455
443
  const _hoisted_1 = {
@@ -523,10 +511,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
523
511
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleCloseIcon && _ctx.handleCloseIcon(...args)),
524
512
  style: normalizeStyle(_ctx.styles)
525
513
  }, [
526
- createVNode(_component_nut_icon, {
527
- name: _ctx.closeIcon,
528
- color: "#ffffff"
529
- }, null, 8, ["name"])
514
+ createVNode(_component_nut_icon, mergeProps({ name: _ctx.closeIcon }, _ctx.$attrs, { color: "#ffffff" }), null, 16, ["name"])
530
515
  ], 4)) : createCommentVNode("", true)
531
516
  ]),
532
517
  _: 1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,28 +1,9 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
1
  /*!
21
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
25
- import { reactive, computed, onMounted, onUnmounted, ref, onActivated, onDeactivated, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, toDisplayString, renderSlot, Fragment, createCommentVNode } from "vue";
6
+ import { reactive, computed, onMounted, onUnmounted, ref, onActivated, onDeactivated, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, mergeProps, toDisplayString, renderSlot, Fragment, createCommentVNode } from "vue";
26
7
  import { c as createComponent } from "./component.js";
27
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
28
9
  import "../locale/lang";
@@ -206,16 +187,16 @@ const _sfc_main = create({
206
187
  isKeepAlive.value = true;
207
188
  state.scrollEl.removeEventListener("scroll", handleScroll, props.useCapture);
208
189
  });
209
- return __spreadProps(__spreadValues({
210
- classes
211
- }, toRefs(state)), {
190
+ return {
191
+ classes,
192
+ ...toRefs(state),
212
193
  touchStart,
213
194
  touchMove,
214
195
  touchEnd,
215
196
  getStyle,
216
197
  translate,
217
198
  slots
218
- });
199
+ };
219
200
  }
220
201
  });
221
202
  const _hoisted_1 = { class: "top-box" };
@@ -246,10 +227,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
246
227
  style: normalizeStyle(_ctx.getStyle)
247
228
  }, [
248
229
  createElementVNode("view", _hoisted_1, [
249
- createVNode(_component_nut_icon, {
250
- class: "top-img",
251
- name: _ctx.pullIcon
252
- }, null, 8, ["name"]),
230
+ createVNode(_component_nut_icon, mergeProps({ class: "top-img" }, _ctx.$attrs, { name: _ctx.pullIcon }), null, 16, ["name"]),
253
231
  createElementVNode("view", _hoisted_2, toDisplayString(_ctx.pullTxt || _ctx.translate("pullTxt")), 1)
254
232
  ])
255
233
  ], 4),
@@ -259,10 +237,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
259
237
  createElementVNode("view", _hoisted_4, [
260
238
  _ctx.isInfiniting ? (openBlock(), createElementBlock("view", _hoisted_5, [
261
239
  !_ctx.slots.loading ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
262
- createVNode(_component_nut_icon, {
263
- class: "bottom-img",
264
- name: _ctx.loadIcon
265
- }, null, 8, ["name"]),
240
+ createVNode(_component_nut_icon, mergeProps({ class: "bottom-img" }, _ctx.$attrs, { name: _ctx.loadIcon }), null, 16, ["name"]),
266
241
  createElementVNode("view", _hoisted_6, toDisplayString(_ctx.loadTxt || _ctx.translate("loading")), 1)
267
242
  ], 64)) : renderSlot(_ctx.$slots, "loading", { key: 1 })
268
243
  ])) : !_ctx.hasMore ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [