@nutui/nutui 3.1.10-beta.1 → 3.1.11-beta.0

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 (106) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +2 -2
  3. package/dist/nutui.d.ts +6 -6
  4. package/dist/nutui.es.js +1643 -1116
  5. package/dist/nutui.umd.js +1708 -1181
  6. package/dist/packages/_es/ActionSheet.js +10 -12
  7. package/dist/packages/_es/Address.js +31 -33
  8. package/dist/packages/_es/Avatar.js +5 -4
  9. package/dist/packages/_es/BackTop.js +5 -4
  10. package/dist/packages/_es/Badge.js +5 -4
  11. package/dist/packages/_es/Barrage.js +9 -8
  12. package/dist/packages/_es/Button.js +6 -5
  13. package/dist/packages/_es/Calendar.js +14 -16
  14. package/dist/packages/_es/Cell.js +5 -4
  15. package/dist/packages/_es/CellGroup.js +8 -7
  16. package/dist/packages/_es/Checkbox.js +3 -3
  17. package/dist/packages/_es/CheckboxGroup.js +2 -2
  18. package/dist/packages/_es/CircleProgress.js +5 -4
  19. package/dist/packages/_es/Col.js +5 -4
  20. package/dist/packages/_es/Collapse.js +8 -7
  21. package/dist/packages/_es/CollapseItem.js +6 -8
  22. package/dist/packages/_es/CountDown.js +5 -7
  23. package/dist/packages/_es/CountUp.js +26 -28
  24. package/dist/packages/_es/DatePicker.js +11 -13
  25. package/dist/packages/_es/Dialog.js +14 -25
  26. package/dist/packages/_es/Divider.js +5 -4
  27. package/dist/packages/_es/Drag.js +5 -4
  28. package/dist/packages/_es/Elevator.js +19 -21
  29. package/dist/packages/_es/FixedNav.js +9 -8
  30. package/dist/packages/_es/Icon.js +40 -6
  31. package/dist/packages/_es/ImagePreview.js +12 -13
  32. package/dist/packages/_es/InfiniteLoading.js +5 -7
  33. package/dist/packages/_es/Input.js +10 -9
  34. package/dist/packages/_es/InputNumber.js +8 -15
  35. package/dist/packages/_es/Layout.js +2 -2
  36. package/dist/packages/_es/Menu.js +203 -0
  37. package/dist/packages/_es/MenuItem.js +18 -171
  38. package/dist/packages/_es/Navbar.js +7 -6
  39. package/dist/packages/_es/NoticeBar.js +9 -11
  40. package/dist/packages/_es/Notify.js +10 -12
  41. package/dist/packages/_es/NumberKeyboard.js +5 -4
  42. package/dist/packages/_es/OverLay.js +5 -7
  43. package/dist/packages/_es/Pagination.js +7 -6
  44. package/dist/packages/_es/Picker.js +12 -14
  45. package/dist/packages/_es/Popover.js +10 -12
  46. package/dist/packages/_es/Popup.js +9 -11
  47. package/dist/packages/_es/Price.js +33 -14
  48. package/dist/packages/_es/Progress.js +5 -4
  49. package/dist/packages/_es/Radio.js +20 -7
  50. package/dist/packages/_es/RadioGroup.js +7 -3
  51. package/dist/packages/_es/Range.js +13 -15
  52. package/dist/packages/_es/Rate.js +8 -7
  53. package/dist/packages/_es/Row.js +5 -4
  54. package/dist/packages/_es/SearchBar.js +56 -55
  55. package/dist/packages/_es/ShortPassword.js +8 -7
  56. package/dist/packages/_es/Signature.js +5 -4
  57. package/dist/packages/_es/Sku.js +533 -0
  58. package/dist/packages/_es/Step.js +14 -11
  59. package/dist/packages/_es/Steps.js +2 -2
  60. package/dist/packages/_es/Swipe.js +5 -7
  61. package/dist/packages/_es/Swiper.js +12 -11
  62. package/dist/packages/_es/SwiperItem.js +5 -4
  63. package/dist/packages/_es/Switch.js +5 -4
  64. package/dist/packages/_es/TabPane.js +5 -4
  65. package/dist/packages/_es/Tabbar.js +5 -4
  66. package/dist/packages/_es/TabbarItem.js +9 -8
  67. package/dist/packages/_es/Tabs.js +43 -18
  68. package/dist/packages/_es/Tag.js +16 -18
  69. package/dist/packages/_es/TextArea.js +6 -5
  70. package/dist/packages/_es/TimeDetail.js +5 -7
  71. package/dist/packages/_es/TimePannel.js +5 -7
  72. package/dist/packages/_es/TimeSelect.js +5 -4
  73. package/dist/packages/_es/Toast.js +10 -12
  74. package/dist/packages/_es/Uploader.js +165 -89
  75. package/dist/packages/_es/Video.js +5 -7
  76. package/dist/packages/_es/component.js +1 -1
  77. package/dist/packages/_es/index.js +1 -1
  78. package/dist/packages/_es/index2.js +1 -1
  79. package/dist/packages/_es/plugin-vue_export-helper.js +12 -0
  80. package/dist/packages/_es/pxCheck.js +1 -1
  81. package/dist/packages/_es/raf.js +1 -1
  82. package/dist/packages/_es/style.css +160 -0
  83. package/dist/packages/button/index.scss +3 -0
  84. package/dist/packages/checkbox/index.scss +2 -0
  85. package/dist/packages/dialog/index.scss +2 -1
  86. package/dist/packages/menu/index.scss +70 -4
  87. package/dist/packages/price/index.scss +40 -3
  88. package/dist/packages/progress/index.scss +2 -0
  89. package/dist/packages/radio/index.scss +34 -4
  90. package/dist/packages/radiogroup/index.scss +20 -0
  91. package/dist/packages/searchbar/index.scss +35 -30
  92. package/dist/packages/sku/index.scss +147 -0
  93. package/dist/packages/tabs/index.scss +47 -19
  94. package/dist/packages/tag/index.scss +2 -1
  95. package/dist/packages/uploader/index.scss +94 -8
  96. package/dist/style.css +1 -1
  97. package/dist/style.es.js +2 -1
  98. package/dist/styles/mixins/index.scss +0 -4
  99. package/dist/styles/themes/default.scss +29 -30
  100. package/dist/styles/variables.scss +46 -6
  101. package/package.json +1 -1
  102. package/dist/packages/_es/Tab.js +0 -178
  103. package/dist/packages/_es/TabPanel.js +0 -29
  104. package/dist/packages/_es/index.vue_vue&type=script&lang.js +0 -44
  105. package/dist/packages/tab/index.scss +0 -182
  106. package/dist/packages/tabpanel/index.scss +0 -2
@@ -17,19 +17,17 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- var __require = typeof require !== "undefined" ? require : (x) => {
21
- throw new Error('Dynamic require of "' + x + '" is not supported');
22
- };
23
20
  /*!
24
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
25
22
  * (c) 2021 @jdf2e.
26
23
  * Released under the MIT License.
27
24
  */
28
25
  import { c as createComponent } from "./component.js";
29
26
  import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList, normalizeStyle, createTextVNode } from "vue";
30
27
  import { popupProps } from "./Popup.js";
28
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
31
29
  import "./OverLay.js";
32
- import "./index.vue_vue&type=script&lang.js";
30
+ import "./Icon.js";
33
31
  import "./pxCheck.js";
34
32
  const { componentName, create } = createComponent("actionsheet");
35
33
  const _sfc_main = create({
@@ -82,9 +80,9 @@ const _sfc_main = create({
82
80
  emit("cancel");
83
81
  emit("update:visible", false);
84
82
  };
85
- const chooseItem = (item, index) => {
83
+ const chooseItem = (item, index2) => {
86
84
  if (!item.disable) {
87
- emit("choose", item, index);
85
+ emit("choose", item, index2);
88
86
  emit("update:visible", false);
89
87
  }
90
88
  };
@@ -133,12 +131,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
133
131
  _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
134
132
  _ctx.description ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
135
133
  _ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_4, [
136
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index) => {
134
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index2) => {
137
135
  return openBlock(), createElementBlock("view", {
138
136
  class: normalizeClass(["nut-actionsheet-item", { "nut-actionsheet-item-disabled": item.disable }]),
139
137
  style: normalizeStyle({ color: _ctx.isHighlight(item) }),
140
- key: index,
141
- onClick: ($event) => _ctx.chooseItem(item, index)
138
+ key: index2,
139
+ onClick: ($event) => _ctx.chooseItem(item, index2)
142
140
  }, [
143
141
  createTextVNode(toDisplayString(item[_ctx.optionTag]), 1),
144
142
  createElementVNode("view", _hoisted_6, toDisplayString(item[_ctx.optionSubTag]), 1)
@@ -156,5 +154,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
156
154
  }, 8, ["visible", "onClickOverlay"])
157
155
  ], 2);
158
156
  }
159
- _sfc_main.render = _sfc_render;
160
- export { _sfc_main as default };
157
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
158
+ export { index as default };
@@ -14,18 +14,16 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
- var __require = typeof require !== "undefined" ? require : (x) => {
18
- throw new Error('Dynamic require of "' + x + '" is not supported');
19
- };
20
17
  /*!
21
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
18
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
22
19
  * (c) 2021 @jdf2e.
23
20
  * Released under the MIT License.
24
21
  */
25
- import { ref, reactive, computed, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, withDirectives, createVNode, vShow, toDisplayString, createCommentVNode, createElementBlock, Fragment, renderList, normalizeClass, normalizeStyle, createTextVNode } from "vue";
22
+ import { ref, reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, withDirectives, createVNode, vShow, toDisplayString, createCommentVNode, createElementBlock, Fragment, renderList, normalizeClass, normalizeStyle, createTextVNode, nextTick } from "vue";
26
23
  import { c as createComponent } from "./component.js";
24
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
27
25
  const { componentName, create } = createComponent("address");
28
- var _sfc_main = create({
26
+ const _sfc_main = create({
29
27
  inheritAttrs: false,
30
28
  props: {
31
29
  visible: {
@@ -123,16 +121,16 @@ var _sfc_main = create({
123
121
  return a.title.localeCompare(b.title);
124
122
  });
125
123
  data.forEach((item) => {
126
- const index = newData.findIndex((value) => value.title === item.title);
127
- if (index <= -1) {
124
+ const index2 = newData.findIndex((value) => value.title === item.title);
125
+ if (index2 <= -1) {
128
126
  newData.push({
129
127
  title: item.title,
130
128
  list: [].concat(item)
131
129
  });
132
130
  } else {
133
- newData[index] = {
131
+ newData[index2] = {
134
132
  title: item.title,
135
- list: newData[index].list.concat(item)
133
+ list: newData[index2].list.concat(item)
136
134
  };
137
135
  }
138
136
  });
@@ -153,10 +151,10 @@ var _sfc_main = create({
153
151
  let selectedExistAddress = reactive({});
154
152
  const closeWay = ref("self");
155
153
  const lineDistance = ref(20);
156
- const getTabName = (item, index) => {
154
+ const getTabName = (item, index2) => {
157
155
  if (item.name)
158
156
  return item.name;
159
- if (tabIndex.value < index) {
157
+ if (tabIndex.value < index2) {
160
158
  return item.name;
161
159
  } else {
162
160
  return "\u8BF7\u9009\u62E9";
@@ -200,16 +198,16 @@ var _sfc_main = create({
200
198
  handClose();
201
199
  }
202
200
  };
203
- const changeRegionTab = (item, key, index) => {
204
- if (getTabName(item, index)) {
205
- tabIndex.value = index;
201
+ const changeRegionTab = (item, key, index2) => {
202
+ if (getTabName(item, index2)) {
203
+ tabIndex.value = index2;
206
204
  lineAnimation();
207
205
  }
208
206
  };
209
207
  const selectedExist = (item) => {
210
208
  const copyExistAdd = props.existAddress;
211
209
  let prevExistAdd = {};
212
- copyExistAdd.forEach((list, index) => {
210
+ copyExistAdd.forEach((list, index2) => {
213
211
  if (list && list.selectedAddress) {
214
212
  prevExistAdd = list;
215
213
  }
@@ -295,7 +293,7 @@ var _sfc_main = create({
295
293
  regionList.town = isCustom2.value ? transformData(value) : value;
296
294
  });
297
295
  watch(() => props.existAddress, (value) => {
298
- value.forEach((item, index) => {
296
+ value.forEach((item, index2) => {
299
297
  if (item.selectedAddress) {
300
298
  selectedExistAddress = item;
301
299
  }
@@ -400,14 +398,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
400
398
  ]),
401
399
  _ctx.privateType == "custom" ? (openBlock(), createElementBlock("view", _hoisted_4, [
402
400
  createElementVNode("view", _hoisted_5, [
403
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, key, index) => {
401
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, key, index2) => {
404
402
  return openBlock(), createElementBlock("view", {
405
- class: normalizeClass(["tab-item", [index == _ctx.tabIndex ? "active" : ""]]),
406
- key: index,
403
+ class: normalizeClass(["tab-item", [index2 == _ctx.tabIndex ? "active" : ""]]),
404
+ key: index2,
407
405
  ref: key,
408
- onClick: ($event) => _ctx.changeRegionTab(item, key, index)
406
+ onClick: ($event) => _ctx.changeRegionTab(item, key, index2)
409
407
  }, [
410
- createElementVNode("view", null, toDisplayString(_ctx.getTabName(item, index)), 1)
408
+ createElementVNode("view", null, toDisplayString(_ctx.getTabName(item, index2)), 1)
411
409
  ], 10, _hoisted_6);
412
410
  }), 128)),
413
411
  createElementVNode("view", {
@@ -418,9 +416,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
418
416
  ]),
419
417
  createElementVNode("view", _hoisted_7, [
420
418
  createElementVNode("ul", _hoisted_8, [
421
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.regionList[_ctx.tabName[_ctx.tabIndex]], (item, index) => {
419
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.regionList[_ctx.tabName[_ctx.tabIndex]], (item, index2) => {
422
420
  return openBlock(), createElementBlock("li", {
423
- key: index,
421
+ key: index2,
424
422
  class: normalizeClass(["region-item", [_ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? "active" : ""]]),
425
423
  onClick: ($event) => _ctx.nextAreaList(item)
426
424
  }, [
@@ -439,14 +437,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
439
437
  ])
440
438
  ])) : _ctx.privateType == "custom2" ? (openBlock(), createElementBlock("view", _hoisted_10, [
441
439
  createElementVNode("view", _hoisted_11, [
442
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, key, index) => {
440
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, key, index2) => {
443
441
  return openBlock(), createElementBlock("view", {
444
- class: normalizeClass(["tab-item", [index == _ctx.tabIndex ? "active" : ""]]),
445
- key: index,
442
+ class: normalizeClass(["tab-item", [index2 == _ctx.tabIndex ? "active" : ""]]),
443
+ key: index2,
446
444
  ref: key,
447
- onClick: ($event) => _ctx.changeRegionTab(item, key, index)
445
+ onClick: ($event) => _ctx.changeRegionTab(item, key, index2)
448
446
  }, [
449
- createElementVNode("view", null, toDisplayString(_ctx.getTabName(item, index)), 1)
447
+ createElementVNode("view", null, toDisplayString(_ctx.getTabName(item, index2)), 1)
450
448
  ], 10, _hoisted_12);
451
449
  }), 128)),
452
450
  createElementVNode("view", {
@@ -465,10 +463,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
465
463
  ])) : _ctx.privateType == "exist" ? (openBlock(), createElementBlock("view", _hoisted_14, [
466
464
  createElementVNode("div", _hoisted_15, [
467
465
  createElementVNode("ul", _hoisted_16, [
468
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.existAddress, (item, index) => {
466
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.existAddress, (item, index2) => {
469
467
  return openBlock(), createElementBlock("li", {
470
468
  class: normalizeClass(["exist-item", [item.selectedAddress ? "active" : ""]]),
471
- key: index,
469
+ key: index2,
472
470
  onClick: ($event) => _ctx.selectedExist(item)
473
471
  }, [
474
472
  createVNode(_component_nut_icon, {
@@ -504,5 +502,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
504
502
  _: 1
505
503
  }, 8, ["onClose", "onClickOverlay", "visible"]);
506
504
  }
507
- _sfc_main.render = _sfc_render;
508
- export { _sfc_main as default };
505
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
506
+ export { index as default };
@@ -1,12 +1,13 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, createVNode, renderSlot, createCommentVNode } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
8
9
  const { componentName, create } = createComponent("avatar");
9
- var _sfc_main = create({
10
+ const _sfc_main = create({
10
11
  props: {
11
12
  size: {
12
13
  type: String,
@@ -82,5 +83,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
82
83
  ])) : createCommentVNode("", true)
83
84
  ], 6);
84
85
  }
85
- _sfc_main.render = _sfc_render;
86
- export { _sfc_main as default };
86
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
87
+ export { index as default };
@@ -1,12 +1,13 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { reactive, computed, onMounted, onUnmounted, onActivated, onDeactivated, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, withModifiers, renderSlot, createVNode } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
8
9
  const { componentName, create } = createComponent("backtop");
9
- var _sfc_main = create({
10
+ const _sfc_main = create({
10
11
  props: {
11
12
  bottom: {
12
13
  type: Number,
@@ -154,5 +155,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
154
155
  ])
155
156
  ], 6);
156
157
  }
157
- _sfc_main.render = _sfc_render;
158
- export { _sfc_main as default };
158
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
159
+ export { index as default };
@@ -1,12 +1,13 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { reactive, computed, openBlock, createElementBlock, createElementVNode, renderSlot, withDirectives, toDisplayString, normalizeClass, normalizeStyle, vShow } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
8
9
  const { create } = createComponent("badge");
9
- var _sfc_main = create({
10
+ const _sfc_main = create({
10
11
  props: {
11
12
  value: {
12
13
  type: [String, Number]
@@ -85,5 +86,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
85
86
  ])
86
87
  ]);
87
88
  }
88
- _sfc_main.render = _sfc_render;
89
- export { _sfc_main as default };
89
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
90
+ export { index as default };
@@ -1,12 +1,13 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { computed, ref, onMounted, onUnmounted, onDeactivated, watch, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
8
9
  const { componentName, create } = createComponent("barrage");
9
- var _sfc_main = create({
10
+ const _sfc_main = create({
10
11
  props: {
11
12
  danmu: {
12
13
  type: Array,
@@ -47,7 +48,7 @@ var _sfc_main = create({
47
48
  const danmuList = ref(props.danmu);
48
49
  const rows = ref(props.rows);
49
50
  const top = ref(props.top);
50
- const index = ref(0);
51
+ const index2 = ref(0);
51
52
  const speeds = props.speeds;
52
53
  const danmuCWidth = ref(0);
53
54
  onMounted(() => {
@@ -66,7 +67,7 @@ var _sfc_main = create({
66
67
  danmuList.value = [...newValue];
67
68
  });
68
69
  const add = (word) => {
69
- const _index = index.value % danmuList.value.length;
70
+ const _index = index2.value % danmuList.value.length;
70
71
  danmuList.value.splice(_index, 0, word);
71
72
  };
72
73
  const run = () => {
@@ -78,7 +79,7 @@ var _sfc_main = create({
78
79
  }, props.frequency);
79
80
  };
80
81
  const play = () => {
81
- const _index = props.loop ? index.value % danmuList.value.length : index.value;
82
+ const _index = props.loop ? index2.value % danmuList.value.length : index2.value;
82
83
  let el = document.createElement(`view`);
83
84
  el.innerHTML = danmuList.value[_index];
84
85
  el.classList.add("dmitem");
@@ -95,7 +96,7 @@ var _sfc_main = create({
95
96
  el.addEventListener("animationend", () => {
96
97
  dmContainer.value.removeChild(el);
97
98
  });
98
- index.value++;
99
+ index2.value++;
99
100
  });
100
101
  };
101
102
  return { classes, danmuList, dmBody, dmContainer, add };
@@ -113,5 +114,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
113
114
  createElementVNode("view", _hoisted_1, null, 512)
114
115
  ], 2);
115
116
  }
116
- _sfc_main.render = _sfc_render;
117
- export { _sfc_main as default };
117
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
118
+ export { index as default };
@@ -1,14 +1,15 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import { _ as _sfc_main$1 } from "./index.vue_vue&type=script&lang.js";
8
+ import _sfc_main$1 from "./Icon.js";
9
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
10
  import "./pxCheck.js";
10
11
  const { componentName, create } = createComponent("button");
11
- var _sfc_main = create({
12
+ const _sfc_main = create({
12
13
  components: {
13
14
  [_sfc_main$1.name]: _sfc_main$1
14
15
  },
@@ -119,5 +120,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
119
120
  ])
120
121
  ], 6);
121
122
  }
122
- _sfc_main.render = _sfc_render;
123
- export { _sfc_main as default };
123
+ var Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
124
+ export { Button as default };
@@ -14,24 +14,22 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
- var __require = typeof require !== "undefined" ? require : (x) => {
18
- throw new Error('Dynamic require of "' + x + '" is not supported');
19
- };
20
17
  /*!
21
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
18
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
22
19
  * (c) 2021 @jdf2e.
23
20
  * Released under the MIT License.
24
21
  */
25
22
  import { ref, reactive, watch, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, toDisplayString, createCommentVNode, renderList, withModifiers, resolveComponent, createBlock, withCtx, createVNode } from "vue";
26
23
  import { c as createComponent } from "./component.js";
27
24
  import { r as requestAniFrame } from "./raf.js";
25
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
28
26
  const Utils = {
29
27
  isLeapYear: function(y) {
30
28
  return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
31
29
  },
32
30
  getWhatDay: function(year, month, day) {
33
31
  const date = new Date(year + "/" + month + "/" + day);
34
- const index = date.getDay();
32
+ const index2 = date.getDay();
35
33
  const dayNames = [
36
34
  "\u661F\u671F\u65E5",
37
35
  "\u661F\u671F\u4E00",
@@ -41,7 +39,7 @@ const Utils = {
41
39
  "\u661F\u671F\u4E94",
42
40
  "\u661F\u671F\u516D"
43
41
  ];
44
- return dayNames[index];
42
+ return dayNames[index2];
45
43
  },
46
44
  getMonthPreDay: function(year, month) {
47
45
  const date = new Date(year + "/" + month + "/01");
@@ -107,7 +105,7 @@ const Utils = {
107
105
  }
108
106
  };
109
107
  const { create: create$1 } = createComponent("calendar-item");
110
- var _sfc_main$1 = create$1({
108
+ const _sfc_main$1 = create$1({
111
109
  props: {
112
110
  type: {
113
111
  type: String,
@@ -539,10 +537,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
539
537
  createElementVNode("view", _hoisted_2, toDisplayString(_ctx.yearMonthTitle), 1)
540
538
  ], 64)) : createCommentVNode("", true),
541
539
  createElementVNode("view", _hoisted_3, [
542
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index) => {
540
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index2) => {
543
541
  return openBlock(), createElementBlock("view", {
544
542
  class: "calendar-week-item",
545
- key: index
543
+ key: index2
546
544
  }, toDisplayString(item), 1);
547
545
  }), 128))
548
546
  ], 512)
@@ -556,10 +554,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
556
554
  }, [
557
555
  createElementVNode("view", _hoisted_4, [
558
556
  createElementVNode("view", _hoisted_5, toDisplayString(!_ctx.unLoadPrev ? "\u52A0\u8F7D\u4E0A\u4E00\u4E2A\u6708" : "\u6CA1\u6709\u66F4\u65E9\u6708\u4EFD"), 1),
559
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.monthsData, (month, index) => {
557
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.monthsData, (month, index2) => {
560
558
  return openBlock(), createElementBlock("view", {
561
559
  class: "calendar-month",
562
- key: index
560
+ key: index2
563
561
  }, [
564
562
  createElementVNode("view", _hoisted_6, toDisplayString(month.title), 1),
565
563
  createElementVNode("view", _hoisted_7, [
@@ -591,11 +589,11 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
591
589
  ])) : createCommentVNode("", true)
592
590
  ], 2);
593
591
  }
594
- _sfc_main$1.render = _sfc_render$1;
592
+ var CalendarItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
595
593
  const { create } = createComponent("calendar");
596
- var _sfc_main = create({
594
+ const _sfc_main = create({
597
595
  components: {
598
- [_sfc_main$1.name]: _sfc_main$1
596
+ [CalendarItem.name]: CalendarItem
599
597
  },
600
598
  props: {
601
599
  type: {
@@ -698,5 +696,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
698
696
  onChoose: _ctx.choose
699
697
  }, null, 8, ["type", "is-auto-back-fill", "poppable", "title", "default-value", "start-date", "end-date", "onClose", "onChoose"]));
700
698
  }
701
- _sfc_main.render = _sfc_render;
702
- export { _sfc_main as default };
699
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
700
+ export { index as default };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -7,8 +7,9 @@ import { computed, resolveComponent, openBlock, createElementBlock, normalizeCla
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { useRouter } from "vue-router";
9
9
  import { p as pxCheck } from "./pxCheck.js";
10
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
10
11
  const { componentName, create } = createComponent("cell");
11
- var _sfc_main = create({
12
+ const _sfc_main = create({
12
13
  props: {
13
14
  title: { type: String, default: "" },
14
15
  subTitle: { type: String, default: "" },
@@ -90,5 +91,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
90
91
  ])
91
92
  ], 6);
92
93
  }
93
- _sfc_main.render = _sfc_render;
94
- export { _sfc_main as default };
94
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
95
+ export { index as default };
@@ -1,12 +1,13 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { computed, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createElementVNode, renderSlot } from "vue";
6
+ import { computed, openBlock, createElementBlock, normalizeClass, renderSlot, toDisplayString, createCommentVNode, createElementVNode } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
8
9
  const { componentName, create } = createComponent("cell-group");
9
- var _sfc_main = create({
10
+ const _sfc_main = create({
10
11
  props: {
11
12
  title: { type: String, default: "" }
12
13
  },
@@ -23,7 +24,7 @@ var _sfc_main = create({
23
24
  }
24
25
  });
25
26
  const _hoisted_1 = {
26
- key: 0,
27
+ key: 1,
27
28
  class: "nut-cell-group__title"
28
29
  };
29
30
  const _hoisted_2 = { class: "nut-cell-group__warp" };
@@ -31,11 +32,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
31
32
  return openBlock(), createElementBlock("view", {
32
33
  class: normalizeClass(_ctx.classes)
33
34
  }, [
34
- _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
35
+ _ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
35
36
  createElementVNode("view", _hoisted_2, [
36
37
  renderSlot(_ctx.$slots, "default")
37
38
  ])
38
39
  ], 2);
39
40
  }
40
- _sfc_main.render = _sfc_render;
41
- export { _sfc_main as default };
41
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
42
+ export { index as default };
@@ -1,14 +1,14 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { inject, computed, onMounted, getCurrentInstance, h } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import { _ as _sfc_main$1 } from "./index.vue_vue&type=script&lang.js";
8
+ import _sfc_main$1 from "./Icon.js";
9
9
  import "./pxCheck.js";
10
10
  const { create, componentName } = createComponent("checkbox");
11
- var _sfc_main = create({
11
+ const _sfc_main = create({
12
12
  components: {
13
13
  nutIcon: _sfc_main$1
14
14
  },
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -7,7 +7,7 @@ import { reactive, provide, computed, watch, h } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { u as useExpose } from "./index2.js";
9
9
  const { create, componentName } = createComponent("checkboxgroup");
10
- var _sfc_main = create({
10
+ const _sfc_main = create({
11
11
  props: {
12
12
  modelValue: {
13
13
  type: Array,
@@ -1,12 +1,13 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createTextVNode, toDisplayString } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
8
9
  const { componentName, create } = createComponent("circleprogress");
9
- var _sfc_main = create({
10
+ const _sfc_main = create({
10
11
  props: {
11
12
  progress: {
12
13
  type: [Number, String],
@@ -104,5 +105,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
104
105
  ])
105
106
  ], 6);
106
107
  }
107
- _sfc_main.render = _sfc_render;
108
- export { _sfc_main as default };
108
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
109
+ export { index as default };
@@ -1,12 +1,13 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { inject, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
8
9
  const { componentName, create } = createComponent("col");
9
- var _sfc_main = create({
10
+ const _sfc_main = create({
10
11
  props: {
11
12
  span: {
12
13
  type: [String, Number],
@@ -48,5 +49,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
48
49
  renderSlot(_ctx.$slots, "default")
49
50
  ], 6);
50
51
  }
51
- _sfc_main.render = _sfc_render;
52
- export { _sfc_main as default };
52
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
53
+ export { index as default };