@nutui/nutui 4.0.1 → 4.0.3-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 (143) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.umd.js +2 -2
  4. package/dist/packages/_es/ActionSheet.js +2 -2
  5. package/dist/packages/_es/Address.js +27 -5
  6. package/dist/packages/_es/AddressList.js +1 -1
  7. package/dist/packages/_es/Animate.js +1 -1
  8. package/dist/packages/_es/Audio.js +1 -1
  9. package/dist/packages/_es/AudioOperate.js +1 -1
  10. package/dist/packages/_es/Avatar.js +1 -1
  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 +4 -4
  15. package/dist/packages/_es/Button.js +1 -1
  16. package/dist/packages/_es/Calendar.js +3 -3
  17. package/dist/packages/_es/CalendarItem.js +2 -2
  18. package/dist/packages/_es/Card.js +1 -1
  19. package/dist/packages/_es/Cascader.js +4 -3
  20. package/dist/packages/_es/Category.js +1 -1
  21. package/dist/packages/_es/CategoryPane.js +1 -1
  22. package/dist/packages/_es/Cell.js +1 -1
  23. package/dist/packages/_es/CellGroup.js +1 -1
  24. package/dist/packages/_es/Checkbox.js +1 -1
  25. package/dist/packages/_es/CheckboxGroup.js +1 -1
  26. package/dist/packages/_es/CircleProgress.js +1 -1
  27. package/dist/packages/_es/Col.js +1 -1
  28. package/dist/packages/_es/Collapse.js +1 -1
  29. package/dist/packages/_es/CollapseItem.js +1 -1
  30. package/dist/packages/_es/Comment.js +1 -1
  31. package/dist/packages/_es/ConfigProvider.js +2 -34
  32. package/dist/packages/_es/Countdown.js +1 -1
  33. package/dist/packages/_es/Countup.js +1 -1
  34. package/dist/packages/_es/DatePicker.js +1 -1
  35. package/dist/packages/_es/Dialog.js +4 -4
  36. package/dist/packages/_es/Divider.js +1 -1
  37. package/dist/packages/_es/Drag.js +1 -1
  38. package/dist/packages/_es/Ecard.js +1 -1
  39. package/dist/packages/_es/Elevator.js +1 -1
  40. package/dist/packages/_es/Ellipsis.js +1 -1
  41. package/dist/packages/_es/Empty.js +1 -1
  42. package/dist/packages/_es/FixedNav.js +1 -1
  43. package/dist/packages/_es/Form.js +2 -2
  44. package/dist/packages/_es/FormItem.js +1 -1
  45. package/dist/packages/_es/Grid.js +2 -2
  46. package/dist/packages/_es/GridItem.js +2 -2
  47. package/dist/packages/_es/Image.js +1 -1
  48. package/dist/packages/_es/ImagePreview.js +4 -5
  49. package/dist/packages/_es/Indicator.js +1 -1
  50. package/dist/packages/_es/InfiniteLoading.js +1 -1
  51. package/dist/packages/_es/Input.js +16 -8
  52. package/dist/packages/_es/InputNumber.js +1 -1
  53. package/dist/packages/_es/Invoice.js +3 -3
  54. package/dist/packages/_es/Layout.js +1 -1
  55. package/dist/packages/_es/List.js +165 -27
  56. package/dist/packages/_es/Menu.js +1 -1
  57. package/dist/packages/_es/MenuItem.js +2 -2
  58. package/dist/packages/_es/Navbar.js +1 -1
  59. package/dist/packages/_es/Noticebar.js +5 -4
  60. package/dist/packages/_es/Notify.js +2 -2
  61. package/dist/packages/_es/NumberKeyboard.js +2 -2
  62. package/dist/packages/_es/Overlay.js +2 -2
  63. package/dist/packages/_es/Pagination.js +1 -1
  64. package/dist/packages/_es/Picker.js +1 -1
  65. package/dist/packages/_es/Popover.js +2 -2
  66. package/dist/packages/_es/Popup.js +2 -2
  67. package/dist/packages/_es/Price.js +7 -2
  68. package/dist/packages/_es/Progress.js +1 -1
  69. package/dist/packages/_es/PullRefresh.js +1 -2
  70. package/dist/packages/_es/Radio.js +2 -2
  71. package/dist/packages/_es/RadioGroup.js +2 -2
  72. package/dist/packages/_es/Range.js +1 -1
  73. package/dist/packages/_es/Rate.js +1 -1
  74. package/dist/packages/_es/Row.js +1 -1
  75. package/dist/packages/_es/Searchbar.js +1 -1
  76. package/dist/packages/_es/ShortPassword.js +2 -2
  77. package/dist/packages/_es/SideNavbar.js +1 -1
  78. package/dist/packages/_es/SideNavbarItem.js +1 -1
  79. package/dist/packages/_es/Signature.js +1 -2
  80. package/dist/packages/_es/Skeleton.js +1 -1
  81. package/dist/packages/_es/Sku.js +2 -2
  82. package/dist/packages/_es/Step.js +1 -1
  83. package/dist/packages/_es/Steps.js +1 -1
  84. package/dist/packages/_es/Sticky.js +2 -2
  85. package/dist/packages/_es/SubSideNavbar.js +1 -1
  86. package/dist/packages/_es/Swipe.js +1 -1
  87. package/dist/packages/_es/Swiper.js +1 -1
  88. package/dist/packages/_es/SwiperItem.js +1 -1
  89. package/dist/packages/_es/Switch.js +1 -1
  90. package/dist/packages/_es/TabPane.js +13 -8
  91. package/dist/packages/_es/Tabbar.js +1 -1
  92. package/dist/packages/_es/TabbarItem.js +1 -1
  93. package/dist/packages/_es/Table.js +1 -1
  94. package/dist/packages/_es/Tabs.js +169 -26
  95. package/dist/packages/_es/Tag.js +1 -1
  96. package/dist/packages/_es/Textarea.js +1 -1
  97. package/dist/packages/_es/TimeDetail.js +1 -1
  98. package/dist/packages/_es/TimePannel.js +1 -1
  99. package/dist/packages/_es/TimeSelect.js +2 -2
  100. package/dist/packages/_es/Toast.js +2 -2
  101. package/dist/packages/_es/Tour.js +2 -2
  102. package/dist/packages/_es/TrendArrow.js +1 -1
  103. package/dist/packages/_es/Uploader.js +2 -2
  104. package/dist/packages/_es/Video.js +1 -1
  105. package/dist/packages/_es/Watermark.js +1 -1
  106. package/dist/packages/_es/{common-0c815463.js → common-b9a5e726.js} +1 -1
  107. package/dist/packages/_es/{component-bb5ff48e.js → component-81a4c1d0.js} +6 -6
  108. package/dist/packages/_es/{index-a564e25f.js → index-c55ad69e.js} +2 -2
  109. package/dist/packages/_es/{index-0432a798.js → index-cb5fe1dc.js} +1 -1
  110. package/dist/packages/_es/{index.vue_vue_type_script_lang-0725f0ae.js → index.vue_vue_type_script_lang-22dfc112.js} +1 -1
  111. package/dist/packages/_es/{index.vue_vue_type_script_lang-9c679f64.js → index.vue_vue_type_script_lang-442e4704.js} +1 -1
  112. package/dist/packages/_es/{index.vue_vue_type_script_lang-8f90bbd8.js → index.vue_vue_type_script_lang-cc5c4086.js} +1 -1
  113. package/dist/packages/_es/{interceptor-648bf3d0.js → interceptor-956b24fc.js} +1 -1
  114. package/dist/packages/_es/{mountComponent-3865592f.js → mountComponent-1ece4110.js} +1 -1
  115. package/dist/packages/address/index.scss +1 -1
  116. package/dist/packages/input/index.scss +7 -5
  117. package/dist/packages/list/index.scss +8 -8
  118. package/dist/packages/menuitem/index.scss +1 -1
  119. package/dist/packages/navbar/index.scss +0 -1
  120. package/dist/packages/noticebar/index.scss +8 -2
  121. package/dist/packages/price/index.scss +5 -10
  122. package/dist/packages/shortpassword/index.scss +16 -0
  123. package/dist/smartips/web-types.json +62 -26
  124. package/dist/style.css +1 -1
  125. package/dist/styles/themes/default.scss +46 -46
  126. package/dist/styles/themes/jdb.scss +46 -46
  127. package/dist/styles/themes/jddkh.scss +46 -46
  128. package/dist/styles/themes/jdt.scss +46 -46
  129. package/dist/types/__VUE/address/index.vue.d.ts +1 -0
  130. package/dist/types/__VUE/configprovider/index.vue.d.ts +4 -4
  131. package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
  132. package/dist/types/__VUE/input/index.vue.d.ts +12 -1
  133. package/dist/types/__VUE/list/index.vue.d.ts +42 -13
  134. package/dist/types/__VUE/list/type.d.ts +13 -0
  135. package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -2
  136. package/dist/types/__VUE/price/index.vue.d.ts +9 -0
  137. package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -4
  138. package/dist/types/__VUE/tabs/hooks.d.ts +12 -0
  139. package/dist/types/__VUE/tabs/index.vue.d.ts +20 -5
  140. package/dist/types/__VUE/uploader/type.d.ts +2 -1
  141. package/dist/types/index.d.ts +1 -1
  142. package/dist/types/utils/useTaroRect/index.d.ts +1 -1
  143. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { c as createComponent } from "./component-bb5ff48e.js";
1
+ import { c as createComponent } from "./component-81a4c1d0.js";
2
2
  import { useSlots, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle } from "vue";
3
- import { P as Popup, p as popupProps } from "./index-a564e25f.js";
3
+ import { P as Popup, p as popupProps } from "./index-c55ad69e.js";
4
4
  import { Loading } from "@nutui/icons-vue";
5
5
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
6
6
  import "../locale/lang";
@@ -1,6 +1,6 @@
1
1
  import { ref, computed, reactive, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, renderSlot, withDirectives, createVNode, vShow, toDisplayString, createElementBlock, Fragment, renderList, normalizeClass, createCommentVNode, normalizeStyle, createTextVNode } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
3
- import { P as Popup, p as popupProps } from "./index-a564e25f.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
+ import { P as Popup, p as popupProps } from "./index-c55ad69e.js";
4
4
  import Elevator from "./Elevator.js";
5
5
  import { Location, Location2, Check, Close, Left } from "@nutui/icons-vue";
6
6
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -84,7 +84,10 @@ const _sfc_main = create({
84
84
  const showPopup = ref(props.visible);
85
85
  const privateType = ref(props.type);
86
86
  const tabIndex = ref(0);
87
+ const prevTabIndex = ref(0);
87
88
  const tabName = ref(["province", "city", "country", "town"]);
89
+ const scrollDom = ref(null);
90
+ const scrollDis = ref([0, 0, 0, 0]);
88
91
  const regionList = computed(() => {
89
92
  switch (tabIndex.value) {
90
93
  case 0:
@@ -166,6 +169,7 @@ const _sfc_main = create({
166
169
  }
167
170
  };
168
171
  const lineAnimation = () => {
172
+ scrollTo();
169
173
  nextTick(() => {
170
174
  const name = tabRegion.value && tabRegion.value.getElementsByClassName("active")[0];
171
175
  if (name) {
@@ -176,6 +180,7 @@ const _sfc_main = create({
176
180
  };
177
181
  const nextAreaList = (item) => {
178
182
  const tab = tabIndex.value;
183
+ prevTabIndex.value = tabIndex.value;
179
184
  const callBackParams = {
180
185
  custom: tabName.value[tab]
181
186
  };
@@ -195,11 +200,24 @@ const _sfc_main = create({
195
200
  }
196
201
  };
197
202
  const changeRegionTab = (item, index2) => {
203
+ prevTabIndex.value = tabIndex.value;
198
204
  if (getTabName(item, index2)) {
199
205
  tabIndex.value = index2;
200
206
  lineAnimation();
201
207
  }
202
208
  };
209
+ const scrollTo = () => {
210
+ const dom = scrollDom.value;
211
+ const prev = prevTabIndex.value;
212
+ const cur = scrollDis.value[tabIndex.value];
213
+ (dom == null ? void 0 : dom.scrollTop) && (scrollDis.value[prev] = dom == null ? void 0 : dom.scrollTop);
214
+ nextTick(() => {
215
+ dom == null ? void 0 : dom.scrollTo({
216
+ top: cur,
217
+ behavior: "auto"
218
+ });
219
+ });
220
+ };
203
221
  const selectedExist = (item) => {
204
222
  const copyExistAdd = props.existAddress;
205
223
  let prevExistAdd = {};
@@ -302,7 +320,8 @@ const _sfc_main = create({
302
320
  ...toRefs(props),
303
321
  translate,
304
322
  regionList,
305
- transformData
323
+ transformData,
324
+ scrollDom
306
325
  };
307
326
  }
308
327
  });
@@ -326,7 +345,10 @@ const _hoisted_8 = {
326
345
  key: 0,
327
346
  class: "nut-address__detail"
328
347
  };
329
- const _hoisted_9 = { class: "nut-address__detail-list" };
348
+ const _hoisted_9 = {
349
+ class: "nut-address__detail-list",
350
+ ref: "scrollDom"
351
+ };
330
352
  const _hoisted_10 = ["onClick"];
331
353
  const _hoisted_11 = {
332
354
  key: 1,
@@ -434,7 +456,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
434
456
  ])
435
457
  ], 10, _hoisted_10);
436
458
  }), 128))
437
- ])
459
+ ], 512)
438
460
  ])) : (openBlock(), createElementBlock("view", _hoisted_11, [
439
461
  createVNode(_component_nut_elevator, {
440
462
  height: _ctx.height,
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, toDisplayString, createCommentVNode, createVNode, createTextVNode, ref, h, createBlock, resolveDynamicComponent, withCtx, reactive, computed, watch, onMounted, normalizeClass, Fragment, renderList, createSlots } from "vue";
2
- import { c as createComponent, n as floatData } from "./component-bb5ff48e.js";
2
+ import { c as createComponent, n as floatData } from "./component-81a4c1d0.js";
3
3
  import { Del, Edit } from "@nutui/icons-vue";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import Button from "./Button.js";
@@ -1,5 +1,5 @@
1
1
  import { toRefs, reactive, computed, openBlock, createElementBlock, createElementVNode, normalizeClass, renderSlot } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const { componentName, create } = createComponent("animate");
@@ -1,5 +1,5 @@
1
1
  import { ref, reactive, onMounted, watch, provide, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, withCtx, createCommentVNode, normalizeClass, createBlock, renderSlot } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { Service } from "@nutui/icons-vue";
4
4
  import Range from "./Range.js";
5
5
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -1,5 +1,5 @@
1
1
  import { inject, reactive, ref, useSlots, toRefs, resolveComponent, openBlock, createElementBlock, createBlock, withCtx, createTextVNode, toDisplayString, createCommentVNode, renderSlot } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import Button from "./Button.js";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
@@ -1,5 +1,5 @@
1
1
  import { toRefs, inject, ref, reactive, onMounted, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, renderSlot, createCommentVNode, Fragment, createTextVNode, toDisplayString } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const { componentName, create } = createComponent("avatar");
@@ -1,5 +1,5 @@
1
1
  import { toRefs, ref, computed, onMounted, provide, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const { componentName, create } = createComponent("avatar-group");
@@ -1,5 +1,5 @@
1
1
  import { reactive, computed, onMounted, onUnmounted, onActivated, onDeactivated, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, withModifiers, renderSlot, createVNode } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { r as requestAniFrame, c as cancelRaf } from "./raf-729dad54.js";
4
4
  import { Top } from "@nutui/icons-vue";
5
5
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -1,5 +1,5 @@
1
1
  import { reactive, computed, openBlock, createElementBlock, withDirectives, createElementVNode, normalizeStyle, renderSlot, vShow, toDisplayString, normalizeClass } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const { create } = createComponent("badge");
@@ -1,5 +1,5 @@
1
1
  import { useSlots, computed, ref, onMounted, onUnmounted, watch, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createCommentVNode } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const { componentName, create } = createComponent("barrage");
@@ -128,9 +128,6 @@ const _sfc_main = create({
128
128
  };
129
129
  const play = () => {
130
130
  var _a;
131
- if (!props.loop && index2.value >= danmuList.value.length) {
132
- return;
133
- }
134
131
  const _index = props.loop ? index2.value % danmuList.value.length : index2.value;
135
132
  let el = document.createElement(`view`);
136
133
  if (slotDefault && typeof danmuList.value[_index] == "object") {
@@ -159,6 +156,9 @@ const _sfc_main = create({
159
156
  dmContainer.value.removeChild(el);
160
157
  }
161
158
  });
159
+ if (!props.loop && index2.value >= danmuList.value.length - 1) {
160
+ return;
161
+ }
162
162
  index2.value++;
163
163
  if (index2.value >= danmuList.value.length) {
164
164
  index2.value = 0;
@@ -1,5 +1,5 @@
1
1
  import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { Loading } from "@nutui/icons-vue";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
@@ -1,7 +1,7 @@
1
1
  import { computed, ref, resolveComponent, openBlock, createBlock, withCtx, createSlots, renderSlot, createCommentVNode } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
3
- import { C as CalendarItem, U as Utils } from "./index-0432a798.js";
4
- import { P as Popup } from "./index-a564e25f.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
+ import { C as CalendarItem, U as Utils } from "./index-cb5fe1dc.js";
4
+ import { P as Popup } from "./index-c55ad69e.js";
5
5
  import { u as useExpose } from "./index-79c5dc33.js";
6
6
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
7
7
  import "../locale/lang";
@@ -1,7 +1,7 @@
1
- import { C } from "./index-0432a798.js";
1
+ import { C } from "./index-cb5fe1dc.js";
2
2
  import "vue";
3
3
  import "./_plugin-vue_export-helper-cc2b3d55.js";
4
- import "./component-bb5ff48e.js";
4
+ import "./component-81a4c1d0.js";
5
5
  import "../locale/lang";
6
6
  import "./raf-729dad54.js";
7
7
  import "./index-79c5dc33.js";
@@ -1,4 +1,4 @@
1
- import { c as createComponent } from "./component-bb5ff48e.js";
1
+ import { c as createComponent } from "./component-81a4c1d0.js";
2
2
  import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, renderSlot, createBlock, createCommentVNode, Fragment, createVNode, withCtx, createTextVNode } from "vue";
3
3
  import Price from "./Price.js";
4
4
  import Tag from "./Tag.js";
@@ -5,8 +5,8 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import { computed, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, createVNode } from "vue";
8
- import { P as Popup, p as popupProps } from "./index-a564e25f.js";
9
- import { c as createComponent } from "./component-bb5ff48e.js";
8
+ import { P as Popup, p as popupProps } from "./index-c55ad69e.js";
9
+ import { c as createComponent } from "./component-81a4c1d0.js";
10
10
  import { Loading, Checklist } from "@nutui/icons-vue";
11
11
  import Tabs from "./Tabs.js";
12
12
  import TabPane from "./TabPane.js";
@@ -16,7 +16,8 @@ import "../locale/lang";
16
16
  import "./pxCheck-c6b9f6b7.js";
17
17
  import "./index-29892cda.js";
18
18
  import "./raf-729dad54.js";
19
- import "./index.vue_vue_type_script_lang-8f90bbd8.js";
19
+ import "./index.vue_vue_type_script_lang-cc5c4086.js";
20
+ import "./index-7a7385e4.js";
20
21
  const formatTree = (tree, parent, config) => tree.map((node) => {
21
22
  const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
22
23
  const { [valueKey]: value, [textKey]: text, [childrenKey]: children, ...others } = node;
@@ -1,5 +1,5 @@
1
1
  import { ref, openBlock, createElementBlock, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString, createCommentVNode, renderSlot } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const { componentName, create } = createComponent("category");
@@ -1,4 +1,4 @@
1
- import { c as createComponent } from "./component-bb5ff48e.js";
1
+ import { c as createComponent } from "./component-81a4c1d0.js";
2
2
  import { openBlock, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, createCommentVNode } from "vue";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
@@ -1,5 +1,5 @@
1
1
  import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createCommentVNode, Fragment, createElementVNode, toDisplayString, createTextVNode, createBlock } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { u as useRouter } from "./index-54d03fc1.js";
4
4
  import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
5
5
  import { Right } from "@nutui/icons-vue";
@@ -1,5 +1,5 @@
1
1
  import { computed, openBlock, createElementBlock, normalizeClass, renderSlot, toDisplayString, createCommentVNode, createElementVNode } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const { componentName, create } = createComponent("cell-group");
@@ -1,4 +1,4 @@
1
- import { c as createComponent } from "./component-bb5ff48e.js";
1
+ import { c as createComponent } from "./component-81a4c1d0.js";
2
2
  import { inject, reactive, computed, watch, onMounted, getCurrentInstance, h } from "vue";
3
3
  import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
4
4
  import { CheckNormal, Checked, CheckDisabled } from "@nutui/icons-vue";
@@ -1,5 +1,5 @@
1
1
  import { reactive, provide, computed, watch, h } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { u as useExpose } from "./index-79c5dc33.js";
4
4
  import "../locale/lang";
5
5
  const { create, componentName } = createComponent("checkbox-group");
@@ -1,5 +1,5 @@
1
1
  import { useSlots, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, renderList, renderSlot, toDisplayString, createCommentVNode } from "vue";
2
- import { i as isObject, c as createComponent } from "./component-bb5ff48e.js";
2
+ import { g as isObject, c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const { componentName, create } = createComponent("circle-progress");
@@ -1,5 +1,5 @@
1
1
  import { inject, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const { componentName, create } = createComponent("col");
@@ -1,5 +1,5 @@
1
1
  import { ref, computed, watch, onMounted, getCurrentInstance, provide, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const { create, componentName } = createComponent("collapse");
@@ -1,6 +1,6 @@
1
1
  import { inject, reactive, computed, getCurrentInstance, ref, watch, onMounted, toRefs, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, toDisplayString, createCommentVNode, normalizeStyle, createBlock, resolveDynamicComponent } from "vue";
2
2
  import { DownArrow } from "@nutui/icons-vue";
3
- import { c as createComponent } from "./component-bb5ff48e.js";
3
+ import { c as createComponent } from "./component-81a4c1d0.js";
4
4
  import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
5
5
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
6
6
  import "../locale/lang";
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent, openBlock, createElementBlock, createElementVNode, createCommentVNode, normalizeClass, toDisplayString, renderSlot, createVNode, ref, watch, onMounted, Fragment, renderList, createBlock, computed, withCtx, normalizeStyle, createTextVNode } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { Right, Fabulous, Comment, MoreX } from "@nutui/icons-vue";
4
4
  import Rate from "./Rate.js";
5
5
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -1,12 +1,11 @@
1
- import { c as createComponent, i as isObject } from "./component-bb5ff48e.js";
1
+ import { c as createComponent } from "./component-81a4c1d0.js";
2
2
  import { h } from "vue";
3
3
  import "../locale/lang";
4
4
  const { componentName, create } = createComponent("config-provider");
5
5
  const _sfc_main = create({
6
6
  props: {
7
7
  theme: { type: String, default: "" },
8
- themeVars: { type: Object, default: () => {
9
- } },
8
+ themeVars: { type: Object, default: {} },
10
9
  tag: { type: String, default: "div" }
11
10
  },
12
11
  setup(props, { slots }) {
@@ -57,40 +56,9 @@ const _sfc_main = create({
57
56
  });
58
57
  return cssVars;
59
58
  };
60
- const overDefaultSlotProp = (vnodes) => {
61
- if (!vnodes) {
62
- return;
63
- }
64
- vnodes.forEach((vnode) => {
65
- var _a, _b;
66
- let type = vnode.type;
67
- type = type.name || type;
68
- if (!vnode.props) {
69
- vnode.props = {};
70
- }
71
- if (type == "nut-icon") {
72
- vnode.props["fontClassName"] = vnode.props["font-class-name"] || props.fontClassName;
73
- vnode.props["classPrefix"] = vnode.props["class-prefix"] || props.classPrefix;
74
- }
75
- if (Array.isArray(vnode.children) && ((_a = vnode.children) == null ? void 0 : _a.length)) {
76
- overDefaultSlotProp(vnode.children);
77
- } else if (isObject(vnode.children) && Object.keys(vnode.children)) {
78
- let children = vnode.children;
79
- for (const key in children) {
80
- if (key === "_") {
81
- break;
82
- }
83
- const childrenVNode = (_b = children[key]) == null ? void 0 : _b.call(children);
84
- overDefaultSlotProp(childrenVNode);
85
- children[key] = () => childrenVNode;
86
- }
87
- }
88
- });
89
- };
90
59
  return () => {
91
60
  var _a;
92
61
  const defaultSlots = (_a = slots.default) == null ? void 0 : _a.call(slots);
93
- overDefaultSlotProp(defaultSlots);
94
62
  return h(
95
63
  props.tag,
96
64
  {
@@ -1,5 +1,5 @@
1
1
  import { reactive, computed, onBeforeMount, watch, toRefs, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
2
- import { p as padZero, c as createComponent } from "./component-bb5ff48e.js";
2
+ import { p as padZero, c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const getTimeStamp = (timeStr) => {
@@ -1,5 +1,5 @@
1
1
  import { getCurrentInstance, ref, reactive, watch, nextTick, onMounted, onUnmounted, toRefs, openBlock, createElementBlock, Fragment, normalizeStyle, renderList, createCommentVNode, toDisplayString, createTextVNode } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  function useExtend(apis) {
@@ -1,6 +1,6 @@
1
1
  import { reactive, computed, onBeforeMount, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot } from "vue";
2
2
  import Picker from "./Picker.js";
3
- import { c as createComponent, d as isDate$1, p as padZero } from "./component-bb5ff48e.js";
3
+ import { c as createComponent, a as isDate$1, p as padZero } from "./component-81a4c1d0.js";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "./pxCheck-c6b9f6b7.js";
6
6
  import "./index-7a7385e4.js";
@@ -5,14 +5,14 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, resolveDynamicComponent, h } from "vue";
8
- import { c as createComponent } from "./component-bb5ff48e.js";
9
- import { f as funInterceptor } from "./interceptor-648bf3d0.js";
10
- import { P as Popup, p as popupProps } from "./index-a564e25f.js";
8
+ import { c as createComponent } from "./component-81a4c1d0.js";
9
+ import { f as funInterceptor } from "./interceptor-956b24fc.js";
10
+ import { P as Popup, p as popupProps } from "./index-c55ad69e.js";
11
11
  import Button from "./Button.js";
12
12
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
13
13
  import Overlay from "./Overlay.js";
14
14
  import "../locale/lang";
15
- import { C as CreateComponent } from "./mountComponent-3865592f.js";
15
+ import { C as CreateComponent } from "./mountComponent-1ece4110.js";
16
16
  import "@nutui/icons-vue";
17
17
  const { componentName, create, translate } = createComponent("dialog");
18
18
  const _sfc_main = create({
@@ -1,5 +1,5 @@
1
1
  import { computed, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const { componentName, create } = createComponent("divider");
@@ -1,5 +1,5 @@
1
1
  import { ref, reactive, computed, onMounted, onActivated, onDeactivated, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { r as requestAniFrame } from "./raf-729dad54.js";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
@@ -1,5 +1,5 @@
1
1
  import { ref, watch, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, normalizeClass, withDirectives, vModelText, createTextVNode, createVNode } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import InputNumber from "./InputNumber.js";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
@@ -1,5 +1,5 @@
1
1
  import { ref, reactive, computed, onMounted, watch, nextTick, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, Fragment, renderList, toDisplayString, renderSlot, withDirectives, vShow, createCommentVNode, withModifiers } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { u as useExpose } from "./index-79c5dc33.js";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
@@ -1,5 +1,5 @@
1
1
  import { ref, reactive, computed, watch, onMounted, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createTextVNode, withModifiers } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const { componentName, create } = createComponent("ellipsis");
@@ -1,5 +1,5 @@
1
1
  import { toRefs, computed, openBlock, createElementBlock, createElementVNode, normalizeStyle, renderSlot, Fragment, createCommentVNode, toDisplayString } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const { componentName, create, translate } = createComponent("empty");
@@ -1,4 +1,4 @@
1
- import { c as createComponent } from "./component-bb5ff48e.js";
1
+ import { c as createComponent } from "./component-81a4c1d0.js";
2
2
  import { computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, createCommentVNode, renderSlot, createElementVNode, Fragment, renderList, toDisplayString, createVNode } from "vue";
3
3
  import Overlay from "./Overlay.js";
4
4
  import { Left } from "@nutui/icons-vue";
@@ -1,4 +1,4 @@
1
- import { i as isObject, h as getPropByPath, g as isPromise, c as createComponent } from "./component-bb5ff48e.js";
1
+ import { g as isObject, h as getPropByPath, f as isPromise, c as createComponent } from "./component-81a4c1d0.js";
2
2
  import { computed, reactive, provide, watch, resolveComponent, openBlock, createElementBlock, withModifiers, createVNode, withCtx, renderSlot } from "vue";
3
3
  import CellGroup from "./CellGroup.js";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -88,7 +88,7 @@ const component = (components) => {
88
88
  const { required, regex, message } = ruleWithoutValidator;
89
89
  const errorMsg = { prop, message };
90
90
  if (required) {
91
- if (!value) {
91
+ if (!value && value !== 0) {
92
92
  return _Promise(errorMsg);
93
93
  }
94
94
  }
@@ -1,6 +1,6 @@
1
1
  import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
2
2
  import { inject, provide, computed, resolveComponent, openBlock, createBlock, normalizeClass, normalizeStyle, withCtx, createElementBlock, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from "vue";
3
- import { c as createComponent } from "./component-bb5ff48e.js";
3
+ import { c as createComponent } from "./component-81a4c1d0.js";
4
4
  import Cell from "./Cell.js";
5
5
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
6
6
  import "../locale/lang";
@@ -1,6 +1,6 @@
1
- import { c as createComponent } from "./component-bb5ff48e.js";
1
+ import { c as createComponent } from "./component-81a4c1d0.js";
2
2
  import "vue";
3
- import { c as component } from "./common-0c815463.js";
3
+ import { c as component } from "./common-b9a5e726.js";
4
4
  import "../locale/lang";
5
5
  import "./pxCheck-c6b9f6b7.js";
6
6
  const { create } = createComponent("grid");
@@ -1,8 +1,8 @@
1
1
  import { inject, getCurrentInstance, onUnmounted, computed, ref, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, Fragment, createTextVNode, toDisplayString } from "vue";
2
2
  import { u as useRouter } from "./index-54d03fc1.js";
3
- import { c as createComponent } from "./component-bb5ff48e.js";
3
+ import { c as createComponent } from "./component-81a4c1d0.js";
4
4
  import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
5
- import { G as GRID_KEY } from "./common-0c815463.js";
5
+ import { G as GRID_KEY } from "./common-b9a5e726.js";
6
6
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
7
7
  import "../locale/lang";
8
8
  function useInject(key) {
@@ -1,5 +1,5 @@
1
1
  import { reactive, useSlots, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot } from "vue";
2
- import { c as createComponent } from "./component-bb5ff48e.js";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
4
4
  import { Image, ImageError } from "@nutui/icons-vue";
5
5
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -5,18 +5,18 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeStyle, createElementBlock, createCommentVNode, ref, onMounted, Fragment, renderList, toDisplayString, normalizeClass, renderSlot, createVNode, h } from "vue";
8
- import { c as createComponent, f as clamp, e as preventDefault, a as isArray } from "./component-bb5ff48e.js";
8
+ import { c as createComponent, e as clamp, d as preventDefault, i as isArray } from "./component-81a4c1d0.js";
9
9
  import { u as useRect } from "./index-29892cda.js";
10
10
  import { u as useTouch } from "./index-7a7385e4.js";
11
11
  import Video from "./Video.js";
12
12
  import SwiperItem from "./SwiperItem.js";
13
13
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
14
14
  import { CircleClose } from "@nutui/icons-vue";
15
- import { P as Popup } from "./index-a564e25f.js";
15
+ import { P as Popup } from "./index-c55ad69e.js";
16
16
  import Swiper from "./Swiper.js";
17
- import { f as funInterceptor } from "./interceptor-648bf3d0.js";
17
+ import { f as funInterceptor } from "./interceptor-956b24fc.js";
18
18
  import "../locale/lang";
19
- import { C as CreateComponent } from "./mountComponent-3865592f.js";
19
+ import { C as CreateComponent } from "./mountComponent-1ece4110.js";
20
20
  import Overlay from "./Overlay.js";
21
21
  import "./index-79c5dc33.js";
22
22
  import "./raf-729dad54.js";
@@ -349,7 +349,6 @@ const _sfc_main = create({
349
349
  const init = () => {
350
350
  if (swipeRef.value) {
351
351
  const rect = useRect(swipeRef.value);
352
- console.log("show");
353
352
  state.rootHeight = rect.height;
354
353
  state.rootWidth = rect.width;
355
354
  }
@@ -1,5 +1,5 @@
1
1
  import { toRefs, computed, openBlock, createElementBlock, normalizeClass, Fragment, renderList, toDisplayString } from "vue";
2
- import { p as padZero, c as createComponent } from "./component-bb5ff48e.js";
2
+ import { p as padZero, c as createComponent } from "./component-81a4c1d0.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const { componentName, create } = createComponent("indicator");
@@ -1,5 +1,5 @@
1
1
  import { ref, reactive, computed, onMounted, onUnmounted, onActivated, onDeactivated, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode, toDisplayString, createCommentVNode } from "vue";
2
- import { c as createComponent, l as getScrollTopRoot } from "./component-bb5ff48e.js";
2
+ import { c as createComponent, l as getScrollTopRoot } from "./component-81a4c1d0.js";
3
3
  import { u as useScrollParent } from "./index-43c34ac6.js";
4
4
  import { r as requestAniFrame } from "./raf-729dad54.js";
5
5
  import { Loading } from "@nutui/icons-vue";