@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
  */
@@ -64,9 +64,12 @@ const _sfc_main = create({
64
64
  clearInterval(timer);
65
65
  timer = 0;
66
66
  });
67
- watch(() => props.danmu, (newValue, oldVlaue) => {
68
- danmuList.value = [...newValue];
69
- });
67
+ watch(
68
+ () => props.danmu,
69
+ (newValue, oldVlaue) => {
70
+ danmuList.value = [...newValue];
71
+ }
72
+ );
70
73
  const add = (word) => {
71
74
  const _index = index2.value % danmuList.value.length;
72
75
  if (!props.loop && index2.value === danmuList.value.length) {
@@ -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 { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot } from "vue";
6
+ import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, mergeProps, renderSlot } 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";
@@ -115,12 +115,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
115
115
  key: 0,
116
116
  class: "nut-icon-loading"
117
117
  })) : createCommentVNode("", true),
118
- _ctx.icon && !_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
118
+ _ctx.icon && !_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
119
119
  key: 1,
120
- name: _ctx.icon,
120
+ name: _ctx.icon
121
+ }, _ctx.$attrs, {
121
122
  "class-prefix": _ctx.iconClassPrefix,
122
123
  "font-class-name": _ctx.iconFontClassName
123
- }, null, 8, ["name", "class-prefix", "font-class-name"])) : createCommentVNode("", true),
124
+ }), null, 16, ["name", "class-prefix", "font-class-name"])) : createCommentVNode("", true),
124
125
  _ctx.$slots.default ? (openBlock(), createElementBlock("view", {
125
126
  key: 2,
126
127
  class: normalizeClass({ text: _ctx.icon || _ctx.loading })
@@ -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
  */
@@ -24,6 +24,10 @@ const _sfc_main = create({
24
24
  type: Boolean,
25
25
  default: false
26
26
  },
27
+ toDateAnimation: {
28
+ type: Boolean,
29
+ default: true
30
+ },
27
31
  poppable: {
28
32
  type: Boolean,
29
33
  default: true
@@ -160,7 +164,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
160
164
  onSelect: _ctx.select,
161
165
  "show-today": _ctx.showToday,
162
166
  "show-title": _ctx.showTitle,
163
- "show-sub-title": _ctx.showSubTitle
167
+ "show-sub-title": _ctx.showSubTitle,
168
+ "to-date-animation": _ctx.toDateAnimation
164
169
  }, createSlots({ _: 2 }, [
165
170
  _ctx.showTopBtn ? {
166
171
  name: "btn",
@@ -192,7 +197,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
192
197
  })
193
198
  ])
194
199
  } : void 0
195
- ]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title"])) : createCommentVNode("", true)
200
+ ]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation"])) : createCommentVNode("", true)
196
201
  ]),
197
202
  _: 3
198
203
  }, 8, ["visible", "onClickOverlay", "onClickCloseIcon"])) : (openBlock(), createBlock(_component_nut_calendar_item, {
@@ -214,6 +219,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
214
219
  "show-today": _ctx.showToday,
215
220
  "show-title": _ctx.showTitle,
216
221
  "show-sub-title": _ctx.showSubTitle,
222
+ "to-date-animation": _ctx.toDateAnimation,
217
223
  ref: "calendarRef"
218
224
  }, createSlots({ _: 2 }, [
219
225
  _ctx.showTopBtn ? {
@@ -246,7 +252,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
246
252
  })
247
253
  ])
248
254
  } : void 0
249
- ]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title"]));
255
+ ]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation"]));
250
256
  }
251
257
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
252
258
  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
  */
@@ -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,37 +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
- var __restKey = (key) => typeof key === "symbol" ? key : key + "";
21
- var __objRest = (source, exclude) => {
22
- var target = {};
23
- for (var prop in source)
24
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25
- target[prop] = source[prop];
26
- if (source != null && __getOwnPropSymbols)
27
- for (var prop of __getOwnPropSymbols(source)) {
28
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29
- target[prop] = source[prop];
30
- }
31
- return target;
32
- };
33
1
  /*!
34
- * @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 (中国标准时间)
35
3
  * (c) 2022 @jdf2e.
36
4
  * Released under the MIT License.
37
5
  */
@@ -45,16 +13,16 @@ import "./Icon.js";
45
13
  import "./pxCheck.js";
46
14
  const formatTree = (tree, parent, config) => tree.map((node) => {
47
15
  const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
48
- const _a = node, { [valueKey]: value, [textKey]: text, [childrenKey]: children } = _a, others = __objRest(_a, [__restKey(valueKey), __restKey(textKey), __restKey(childrenKey)]);
49
- const newNode = __spreadProps(__spreadValues({
50
- loading: false
51
- }, others), {
16
+ const { [valueKey]: value, [textKey]: text, [childrenKey]: children, ...others } = node;
17
+ const newNode = {
18
+ loading: false,
19
+ ...others,
52
20
  level: parent ? (parent && parent.level || 0) + 1 : 0,
53
21
  value,
54
22
  text,
55
23
  children,
56
24
  _parent: parent
57
- });
25
+ };
58
26
  if (newNode.children && newNode.children.length) {
59
27
  newNode.children = formatTree(newNode.children, newNode, config);
60
28
  }
@@ -79,12 +47,15 @@ const defaultConvertConfig = {
79
47
  sortKey: ""
80
48
  };
81
49
  const convertListToOptions = (list, options) => {
82
- const mergedOptions = __spreadValues(__spreadValues({}, defaultConvertConfig), options || {});
50
+ const mergedOptions = {
51
+ ...defaultConvertConfig,
52
+ ...options || {}
53
+ };
83
54
  const { topId, idKey, pidKey, sortKey } = mergedOptions;
84
55
  let result = [];
85
56
  let map = {};
86
57
  list.forEach((node) => {
87
- node = __spreadValues({}, node);
58
+ node = { ...node };
88
59
  const { [idKey]: id, [pidKey]: pid } = node;
89
60
  const children = map[pid] = map[pid] || [];
90
61
  if (!result.length && pid === topId) {
@@ -105,11 +76,12 @@ const convertListToOptions = (list, options) => {
105
76
  };
106
77
  class Tree {
107
78
  constructor(nodes, config) {
108
- this.config = __spreadValues({
79
+ this.config = {
109
80
  value: "value",
110
81
  text: "text",
111
- children: "children"
112
- }, config || {});
82
+ children: "children",
83
+ ...config || {}
84
+ };
113
85
  this.nodes = formatTree(nodes, null, this.config);
114
86
  }
115
87
  updateChildren(nodes, parent) {
@@ -357,24 +329,34 @@ const _sfc_main$1 = create$1({
357
329
  return pane.selectedNode && pane.selectedNode.value === node.value;
358
330
  }
359
331
  };
360
- watch([configs, () => props.options], () => {
361
- init();
362
- }, {
363
- deep: true,
364
- immediate: true
365
- });
366
- watch(() => props.modelValue, (value) => {
367
- if (value !== innerValue.value) {
368
- innerValue.value = value;
369
- syncValue();
332
+ watch(
333
+ [configs, () => props.options],
334
+ () => {
335
+ init();
336
+ },
337
+ {
338
+ deep: true,
339
+ immediate: true
370
340
  }
371
- });
372
- watch(() => props.visible, (val) => {
373
- if (val && Array.isArray(innerValue.value) && innerValue.value.length > 0) {
374
- syncValue();
341
+ );
342
+ watch(
343
+ () => props.modelValue,
344
+ (value) => {
345
+ if (value !== innerValue.value) {
346
+ innerValue.value = value;
347
+ syncValue();
348
+ }
375
349
  }
376
- });
377
- return __spreadValues({ panes, initLoading, tabsCursor }, methods);
350
+ );
351
+ watch(
352
+ () => props.visible,
353
+ (val) => {
354
+ if (val && Array.isArray(innerValue.value) && innerValue.value.length > 0) {
355
+ syncValue();
356
+ }
357
+ }
358
+ );
359
+ return { panes, initLoading, tabsCursor, ...methods };
378
360
  }
379
361
  });
380
362
  const _hoisted_1$1 = {
@@ -447,7 +429,8 @@ const _sfc_main = create({
447
429
  components: {
448
430
  [CascaderItem.name]: CascaderItem
449
431
  },
450
- props: __spreadProps(__spreadValues({}, popupProps), {
432
+ props: {
433
+ ...popupProps,
451
434
  modelValue: Array,
452
435
  visible: Boolean,
453
436
  title: String,
@@ -470,7 +453,7 @@ const _sfc_main = create({
470
453
  default: "children"
471
454
  },
472
455
  convertConfig: Object
473
- }),
456
+ },
474
457
  emits: ["update:modelValue", "change", "pathChange", "update:visible"],
475
458
  setup(props, { emit }) {
476
459
  const innerValue = ref(props.modelValue);
@@ -491,11 +474,14 @@ const _sfc_main = create({
491
474
  const onPathChange = (pathNodes) => {
492
475
  emit("pathChange", pathNodes);
493
476
  };
494
- watch(() => props.modelValue, (value) => {
495
- if (value !== innerValue.value) {
496
- innerValue.value = value;
477
+ watch(
478
+ () => props.modelValue,
479
+ (value) => {
480
+ if (value !== innerValue.value) {
481
+ innerValue.value = value;
482
+ }
497
483
  }
498
- });
484
+ );
499
485
  return {
500
486
  onChange,
501
487
  onPathChange,
@@ -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
  */
@@ -51,7 +51,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
51
51
  createElementVNode("div", {
52
52
  class: normalizeClass([_ctx.checkIndex == index2 ? "nut-category__cateListItemChecked" : "nut-category__cateListItem"]),
53
53
  onClick: ($event) => _ctx.getChildList(index2)
54
- }, toDisplayString(item.catName), 11, _hoisted_4)
54
+ }, toDisplayString(item == null ? void 0 : item.catName), 11, _hoisted_4)
55
55
  ]);
56
56
  }), 128))
57
57
  ])) : createCommentVNode("", true),
@@ -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
  */
@@ -7,7 +7,6 @@ import { c as createComponent } from "./component.js";
7
7
  import { openBlock, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, createCommentVNode } from "vue";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
9
  import "../locale/lang";
10
- var index_vue_vue_type_style_index_0_lang = "";
11
10
  const { componentName, create } = createComponent("categorypane");
12
11
  const _sfc_main = create({
13
12
  props: {
@@ -61,13 +60,14 @@ const _hoisted_13 = {
61
60
  key: 2,
62
61
  class: "nut-categorypane__selfItemList"
63
62
  };
63
+ const _hoisted_14 = ["onClick"];
64
64
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
65
65
  return openBlock(), createElementBlock("div", _hoisted_1, [
66
66
  _ctx.type == "classify" ? (openBlock(), createElementBlock("div", _hoisted_2, [
67
67
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.categoryChild, (item, index2) => {
68
68
  return openBlock(), createElementBlock("div", { key: index2 }, [
69
- createElementVNode("div", _hoisted_3, toDisplayString(item.catName), 1),
70
- item.catType == 1 ? (openBlock(), createElementBlock("div", _hoisted_4, [
69
+ createElementVNode("div", _hoisted_3, toDisplayString(item == null ? void 0 : item.catName), 1),
70
+ (item == null ? void 0 : item.catType) == 1 ? (openBlock(), createElementBlock("div", _hoisted_4, [
71
71
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.childCateList, (sku, key) => {
72
72
  return openBlock(), createElementBlock("div", {
73
73
  class: "nut-categorypane__childItem",
@@ -78,7 +78,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
78
78
  class: "nut-categorypane__childImg",
79
79
  src: sku.backImg
80
80
  }, null, 8, _hoisted_6),
81
- createElementVNode("div", _hoisted_7, toDisplayString(sku.catName), 1)
81
+ createElementVNode("div", _hoisted_7, toDisplayString(sku == null ? void 0 : sku.catName), 1)
82
82
  ], 8, _hoisted_5);
83
83
  }), 128))
84
84
  ])) : createCommentVNode("", true)
@@ -88,15 +88,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
88
88
  _ctx.type == "text" ? (openBlock(), createElementBlock("div", _hoisted_8, [
89
89
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.categoryChild, (item, index2) => {
90
90
  return openBlock(), createElementBlock("div", { key: index2 }, [
91
- createElementVNode("div", _hoisted_9, toDisplayString(item.catName), 1),
92
- item.catType == 1 ? (openBlock(), createElementBlock("div", _hoisted_10, [
91
+ createElementVNode("div", _hoisted_9, toDisplayString(item == null ? void 0 : item.catName), 1),
92
+ (item == null ? void 0 : item.catType) == 1 ? (openBlock(), createElementBlock("div", _hoisted_10, [
93
93
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.childCateList, (sku, key) => {
94
94
  return openBlock(), createElementBlock("div", {
95
95
  class: "nut-categorypane__childItem",
96
96
  key,
97
97
  onClick: ($event) => _ctx.onChange(sku)
98
98
  }, [
99
- createElementVNode("div", _hoisted_12, toDisplayString(sku.catName), 1)
99
+ createElementVNode("div", _hoisted_12, toDisplayString(sku == null ? void 0 : sku.catName), 1)
100
100
  ], 8, _hoisted_11);
101
101
  }), 128))
102
102
  ])) : createCommentVNode("", true)
@@ -108,8 +108,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
108
108
  return openBlock(), createElementBlock("div", {
109
109
  class: "nut-categorypane__skuName",
110
110
  key,
111
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.onChange())
112
- }, toDisplayString(sku.catName), 1);
111
+ onClick: ($event) => _ctx.onChange(sku)
112
+ }, toDisplayString(sku == null ? void 0 : sku.catName), 9, _hoisted_14);
113
113
  }), 128))
114
114
  ])) : createCommentVNode("", true)
115
115
  ]);
@@ -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 { resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode, Fragment, createElementVNode, toDisplayString, createTextVNode, computed } from "vue";
6
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, mergeProps, createCommentVNode, Fragment, createElementVNode, toDisplayString, createTextVNode, computed } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { u as useRouter } from "./index.js";
9
9
  import { p as pxCheck } from "./pxCheck.js";
@@ -29,11 +29,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
29
29
  renderSlot(_ctx.$slots, "default", {}, () => [
30
30
  _ctx.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("view", _hoisted_1, [
31
31
  renderSlot(_ctx.$slots, "icon", {}, () => [
32
- _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
33
- key: 0,
32
+ _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 0 }, _ctx.$attrs, {
34
33
  class: "icon",
35
34
  name: _ctx.icon
36
- }, null, 8, ["name"])) : createCommentVNode("", true)
35
+ }), null, 16, ["name"])) : createCommentVNode("", true)
37
36
  ])
38
37
  ])) : createCommentVNode("", true),
39
38
  _ctx.title || _ctx.subTitle || _ctx.$slots.title ? (openBlock(), createElementBlock("view", _hoisted_2, [
@@ -52,11 +51,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
52
51
  style: normalizeStyle({ "text-align": _ctx.descTextAlign })
53
52
  }, toDisplayString(_ctx.desc), 7)) : createCommentVNode("", true),
54
53
  renderSlot(_ctx.$slots, "link", {}, () => [
55
- _ctx.isLink || _ctx.to ? (openBlock(), createBlock(_component_nut_icon, {
54
+ _ctx.isLink || _ctx.to ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
56
55
  key: 0,
57
- class: "nut-cell__link",
58
- name: "right"
59
- })) : createCommentVNode("", true)
56
+ class: "nut-cell__link"
57
+ }, _ctx.$attrs, { name: _ctx.rightIcon }), null, 16, ["name"])) : createCommentVNode("", true)
60
58
  ])
61
59
  ])
62
60
  ], 6);
@@ -74,6 +72,7 @@ const _sfc_main = create({
74
72
  roundRadius: { type: [String, Number], default: "" },
75
73
  url: { type: String, default: "" },
76
74
  icon: { type: String, default: "" },
75
+ rightIcon: { type: String, default: "right" },
77
76
  center: { type: Boolean, default: false },
78
77
  size: { type: String, default: "" }
79
78
  },
@@ -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
  */
@@ -86,13 +86,16 @@ const component = (componentName2, nutIcon) => {
86
86
  emit("update:modelValue", value);
87
87
  emit("change", value, label);
88
88
  };
89
- watch(() => props.modelValue, (v) => {
90
- if (updateType == "click") {
91
- updateType = "";
92
- } else {
93
- emit("change", v);
89
+ watch(
90
+ () => props.modelValue,
91
+ (v) => {
92
+ if (updateType == "click") {
93
+ updateType = "";
94
+ } else {
95
+ emit("change", v);
96
+ }
94
97
  }
95
- });
98
+ );
96
99
  const renderIcon = () => {
97
100
  const { iconName, iconSize, iconActiveName, iconClassPrefix, iconFontClassName, iconIndeterminateName } = props;
98
101
  return h(nutIcon, {
@@ -105,9 +108,13 @@ const component = (componentName2, nutIcon) => {
105
108
  };
106
109
  const renderLabel = () => {
107
110
  var _a;
108
- return h("view", {
109
- class: `${componentName2}__label ${pDisabled.value ? `${componentName2}__label--disabled` : ""}`
110
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
111
+ return h(
112
+ "view",
113
+ {
114
+ class: `${componentName2}__label ${pDisabled.value ? `${componentName2}__label--disabled` : ""}`
115
+ },
116
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
117
+ );
111
118
  };
112
119
  const handleClick = (e) => {
113
120
  var _a, _b;
@@ -135,14 +142,21 @@ const component = (componentName2, nutIcon) => {
135
142
  onMounted(() => {
136
143
  hasParent.value && parent["relation"](getCurrentInstance());
137
144
  });
138
- watch(() => props.indeterminate, (newVal) => {
139
- state.partialSelect = newVal;
140
- });
145
+ watch(
146
+ () => props.indeterminate,
147
+ (newVal) => {
148
+ state.partialSelect = newVal;
149
+ }
150
+ );
141
151
  return () => {
142
- return h("view", {
143
- class: `${componentName2} ${props.textPosition === "left" ? `${componentName2}--reverse` : ""}`,
144
- onClick: handleClick
145
- }, [renderIcon(), renderLabel()]);
152
+ return h(
153
+ "view",
154
+ {
155
+ class: `${componentName2} ${props.textPosition === "left" ? `${componentName2}--reverse` : ""}`,
156
+ onClick: handleClick
157
+ },
158
+ [renderIcon(), renderLabel()]
159
+ );
146
160
  };
147
161
  }
148
162
  };
@@ -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
  */
@@ -69,15 +69,22 @@ const _sfc_main = create({
69
69
  updateValue,
70
70
  relation
71
71
  });
72
- watch(() => props.modelValue, (value) => {
73
- emit("change", value);
74
- });
72
+ watch(
73
+ () => props.modelValue,
74
+ (value) => {
75
+ emit("change", value);
76
+ }
77
+ );
75
78
  useExpose({ toggleAll, toggleReverse });
76
79
  return () => {
77
80
  var _a;
78
- return h("view", {
79
- class: `${componentName}`
80
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
81
+ return h(
82
+ "view",
83
+ {
84
+ class: `${componentName}`
85
+ },
86
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
87
+ );
81
88
  };
82
89
  }
83
90
  });
@@ -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
  */
@@ -19,8 +19,8 @@ const _sfc_main = create({
19
19
  default: "0"
20
20
  }
21
21
  },
22
- emits: ["click"],
23
- setup(props, { emit }) {
22
+ emits: [],
23
+ setup(props) {
24
24
  const prefixCls = componentName;
25
25
  const gutter = inject("gutter");
26
26
  const classes = computed(() => {
@@ -37,22 +37,16 @@ const _sfc_main = create({
37
37
  paddingRight: gutter / 2 + "px"
38
38
  };
39
39
  });
40
- const handleClick = (evt) => {
41
- evt.stopPropagation();
42
- emit("click", evt);
43
- };
44
40
  return {
45
41
  classes,
46
- style,
47
- handleClick
42
+ style
48
43
  };
49
44
  }
50
45
  });
51
46
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
52
47
  return openBlock(), createElementBlock("view", {
53
48
  class: normalizeClass(_ctx.classes),
54
- style: normalizeStyle(_ctx.style),
55
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
49
+ style: normalizeStyle(_ctx.style)
56
50
  }, [
57
51
  renderSlot(_ctx.$slots, "default")
58
52
  ], 6);