@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
@@ -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 { provide, openBlock, createElementBlock, 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 { create } = createComponent("collapse");
9
- var _sfc_main = create({
10
+ const _sfc_main = create({
10
11
  props: {
11
12
  active: {
12
13
  type: [String, Number, Array]
@@ -55,13 +56,13 @@ var _sfc_main = create({
55
56
  };
56
57
  const changeValAry = (name) => {
57
58
  const activeItem = props.active instanceof Object ? Object.values(props.active) : props.active;
58
- let index = -1;
59
+ let index2 = -1;
59
60
  activeItem.forEach((item, idx) => {
60
61
  if (String(item) == String(name)) {
61
- index = idx;
62
+ index2 = idx;
62
63
  }
63
64
  });
64
- index > -1 ? activeItem.splice(index, 1) : activeItem.push(name);
65
+ index2 > -1 ? activeItem.splice(index2, 1) : activeItem.push(name);
65
66
  changeVal(activeItem);
66
67
  };
67
68
  const isExpanded = (name) => {
@@ -84,5 +85,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
84
85
  renderSlot(_ctx.$slots, "default")
85
86
  ]);
86
87
  }
87
- _sfc_main.render = _sfc_render;
88
- export { _sfc_main as default };
88
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
89
+ export { index as default };
@@ -17,18 +17,16 @@ 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 { inject, reactive, computed, getCurrentInstance, ref, watch, onMounted, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, renderSlot, normalizeStyle } from "vue";
29
26
  import { c as createComponent } from "./component.js";
27
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
30
28
  const { create, componentName } = createComponent("collapse-item");
31
- var _sfc_main = create({
29
+ const _sfc_main = create({
32
30
  props: {
33
31
  title: {
34
32
  type: String,
@@ -123,7 +121,7 @@ var _sfc_main = create({
123
121
  const currentName = computed(() => props.name);
124
122
  const toggleOpen = () => {
125
123
  if (parent.props.accordion) {
126
- parent.children.forEach((item, index) => {
124
+ parent.children.forEach((item, index2) => {
127
125
  if (currentName.value == item.name) {
128
126
  item.changeOpen(!item.openExpanded);
129
127
  } else {
@@ -246,5 +244,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
246
244
  ], 512)
247
245
  ], 2);
248
246
  }
249
- _sfc_main.render = _sfc_render;
250
- export { _sfc_main as default };
247
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
248
+ export { index as default };
@@ -17,18 +17,16 @@ 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 { reactive, computed, watch, toRefs, openBlock, createElementBlock, normalizeClass, renderSlot, toDisplayString, Fragment, createElementVNode, createCommentVNode } from "vue";
29
26
  import { c as createComponent } from "./component.js";
27
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
30
28
  const { componentName, create } = createComponent("countdown");
31
- var _sfc_main = create({
29
+ const _sfc_main = create({
32
30
  props: {
33
31
  modelValue: {
34
32
  type: Object,
@@ -222,5 +220,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
222
220
  ], 64))
223
221
  ], 2);
224
222
  }
225
- _sfc_main.render = _sfc_render;
226
- export { _sfc_main as default };
223
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
224
+ export { index as default };
@@ -17,16 +17,14 @@ 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 { getCurrentInstance, reactive, watch, nextTick, onMounted, onUnmounted, toRefs, openBlock, createElementBlock, Fragment, normalizeStyle, renderList, createCommentVNode, toDisplayString, createTextVNode } from "vue";
29
26
  import { c as createComponent } from "./component.js";
27
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
30
28
  function useExtend(apis) {
31
29
  const instance = getCurrentInstance();
32
30
  if (instance) {
@@ -34,7 +32,7 @@ function useExtend(apis) {
34
32
  }
35
33
  }
36
34
  const { componentName, create } = createComponent("countup");
37
- var _sfc_main = create({
35
+ const _sfc_main = create({
38
36
  props: {
39
37
  initNum: {
40
38
  type: Number,
@@ -181,20 +179,20 @@ var _sfc_main = create({
181
179
  return m / baseNum;
182
180
  }
183
181
  };
184
- const topNumber = (index) => {
182
+ const topNumber = (index2) => {
185
183
  let { num_total_len, pointNum, initDigit1, initDigit2, sortFlag } = data;
186
- let idx1 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit2)[index - (num_total_len - pointNum)] : 10 - Number(String(initDigit2)[index - (num_total_len - pointNum)]);
187
- let idx2 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit1)[index] : 10 - Number(String(initDigit1)[index]);
188
- let num = index > num_total_len - pointNum - 1 ? -idx1 * 100 + "%" : index <= String(initDigit1).length - 1 ? -idx2 * 100 + "%" : 0;
184
+ let idx1 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit2)[index2 - (num_total_len - pointNum)] : 10 - Number(String(initDigit2)[index2 - (num_total_len - pointNum)]);
185
+ let idx2 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit1)[index2] : 10 - Number(String(initDigit1)[index2]);
186
+ let num = index2 > num_total_len - pointNum - 1 ? -idx1 * 100 + "%" : index2 <= String(initDigit1).length - 1 ? -idx2 * 100 + "%" : 0;
189
187
  if (num == "-1000%") {
190
188
  num = 0;
191
189
  }
192
190
  return num;
193
191
  };
194
- const turnNumber = (index) => {
192
+ const turnNumber = (index2) => {
195
193
  let { num_total_len, pointNum, initDigit1, initDigit2, sortFlag } = data;
196
- let idx1 = String(initDigit2)[index - (num_total_len - pointNum)];
197
- let num = index > num_total_len - pointNum - 1 ? idx1 ? idx1 : 0 : index <= String(initDigit1).length - 1 ? String(initDigit1)[index] : 0;
194
+ let idx1 = String(initDigit2)[index2 - (num_total_len - pointNum)];
195
+ let num = index2 > num_total_len - pointNum - 1 ? idx1 ? idx1 : 0 : index2 <= String(initDigit1).length - 1 ? String(initDigit1)[index2] : 0;
198
196
  return num;
199
197
  };
200
198
  const countChange = () => {
@@ -399,16 +397,16 @@ var _sfc_main = create({
399
397
  }
400
398
  };
401
399
  useExtend({ machineLuck });
402
- const scrollTime = (index, total, num) => {
400
+ const scrollTime = (index2, total, num) => {
403
401
  let t = setInterval(() => {
404
402
  if (num <= total) {
405
403
  num += 10;
406
- data.prizeY[index] = parseFloat(String(num));
404
+ data.prizeY[index2] = parseFloat(String(num));
407
405
  } else {
408
406
  clearInterval(t);
409
407
  t = null;
410
408
  data.finshMachine += 1;
411
- data.prizeY[index] = total;
409
+ data.prizeY[index2] = total;
412
410
  if (data.finshMachine == props.machineNum) {
413
411
  let distance = props.numHeight * props.machinePrizeNum;
414
412
  data.prizeYPrev = [];
@@ -460,16 +458,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
460
458
  class: "run-number-machine-img",
461
459
  style: normalizeStyle({ height: _ctx.numHeight + "px" })
462
460
  }, [
463
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.machineNum, (val, index) => {
461
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.machineNum, (val, index2) => {
464
462
  return openBlock(), createElementBlock("view", {
465
463
  class: "run-number-machine-img-li",
466
464
  ref: "run-number-machine-img-li",
467
- key: "mImg" + index,
465
+ key: "mImg" + index2,
468
466
  style: normalizeStyle({
469
467
  width: _ctx.numWidth + "px",
470
468
  height: _ctx.numHeight + "px",
471
469
  backgroundImage: "url(" + _ctx.customBgImg + ")",
472
- backgroundPositionY: _ctx.prizeY[index] + "px"
470
+ backgroundPositionY: _ctx.prizeY[index2] + "px"
473
471
  })
474
472
  }, null, 4);
475
473
  }), 128))
@@ -478,16 +476,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
478
476
  class: "run-number-img",
479
477
  style: normalizeStyle({ height: _ctx.numHeight + "px" })
480
478
  }, [
481
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val, index) => {
479
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val, index2) => {
482
480
  return openBlock(), createElementBlock("view", {
483
481
  class: "run-number-img-li",
484
- key: "cImg" + index,
482
+ key: "cImg" + index2,
485
483
  style: normalizeStyle({
486
484
  width: _ctx.numWidth + "px",
487
485
  height: _ctx.numHeight + "px",
488
- left: _ctx.numWidth * (index > _ctx.num_total_len - _ctx.pointNum - 1 ? index == _ctx.num_total_len - _ctx.pointNum ? index * 1.5 : index * 1.3 : index) + "px",
486
+ left: _ctx.numWidth * (index2 > _ctx.num_total_len - _ctx.pointNum - 1 ? index2 == _ctx.num_total_len - _ctx.pointNum ? index2 * 1.5 : index2 * 1.3 : index2) + "px",
489
487
  backgroundImage: "url(" + _ctx.customBgImg + ")",
490
- backgroundPosition: "0 " + -(String(_ctx.relNum)[index] * _ctx.numHeight + _ctx.customSpacNum * String(_ctx.relNum)[index]) + "px",
488
+ backgroundPosition: "0 " + -(String(_ctx.relNum)[index2] * _ctx.numHeight + _ctx.customSpacNum * String(_ctx.relNum)[index2]) + "px",
491
489
  transition: "all linear " + _ctx.during / 10 + "ms"
492
490
  })
493
491
  }, null, 4);
@@ -513,16 +511,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
513
511
  lineHeight: _ctx.numHeight + "px"
514
512
  })
515
513
  }, [
516
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val, index) => {
514
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val, index2) => {
517
515
  return openBlock(), createElementBlock("view", {
518
516
  ref: "numberItem",
519
517
  class: "numberItem",
520
518
  key: val,
521
519
  style: normalizeStyle({
522
- top: _ctx.topNumber(index),
523
- left: _ctx.numWidth * (index > _ctx.num_total_len - _ctx.pointNum - 1 ? index * 1.1 : index) + "px"
520
+ top: _ctx.topNumber(index2),
521
+ left: _ctx.numWidth * (index2 > _ctx.num_total_len - _ctx.pointNum - 1 ? index2 * 1.1 : index2) + "px"
524
522
  }),
525
- "turn-number": _ctx.turnNumber(index)
523
+ "turn-number": _ctx.turnNumber(index2)
526
524
  }, [
527
525
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.to0_10, (item, idx) => {
528
526
  return openBlock(), createElementBlock("view", {
@@ -554,5 +552,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
554
552
  ], 64))
555
553
  ]);
556
554
  }
557
- _sfc_main.render = _sfc_render;
558
- export { _sfc_main as default };
555
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
556
+ export { index as default };
@@ -17,21 +17,19 @@ 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 { reactive, computed, onMounted, watch, toRefs, resolveComponent, openBlock, createBlock } from "vue";
29
- import _sfc_main$1 from "./Picker.js";
26
+ import picker from "./Picker.js";
30
27
  import { c as createComponent } from "./component.js";
28
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
31
29
  import "./index.js";
32
30
  import "./Popup.js";
33
31
  import "./OverLay.js";
34
- import "./index.vue_vue&type=script&lang.js";
32
+ import "./Icon.js";
35
33
  import "./pxCheck.js";
36
34
  const { componentName, create } = createComponent("datepicker");
37
35
  const currentYear = new Date().getFullYear();
@@ -46,9 +44,9 @@ const zhCNType = {
46
44
  minute: "\u5206",
47
45
  seconds: "\u79D2"
48
46
  };
49
- var _sfc_main = create({
47
+ const _sfc_main = create({
50
48
  components: {
51
- [_sfc_main$1.name]: _sfc_main$1
49
+ [picker.name]: picker
52
50
  },
53
51
  props: {
54
52
  modelValue: null,
@@ -205,7 +203,7 @@ var _sfc_main = create({
205
203
  if (!(max > min))
206
204
  return;
207
205
  const arr = [];
208
- let index = 0;
206
+ let index2 = 0;
209
207
  while (min <= max) {
210
208
  if (props.isShowChinese) {
211
209
  arr.push(min + zhCNType[type]);
@@ -218,10 +216,10 @@ var _sfc_main = create({
218
216
  min++;
219
217
  }
220
218
  if (min <= val) {
221
- index++;
219
+ index2++;
222
220
  }
223
221
  }
224
- return { values: arr, defaultIndex: index };
222
+ return { values: arr, defaultIndex: index2 };
225
223
  };
226
224
  const getDateIndex = (type) => {
227
225
  if (type === "year") {
@@ -280,5 +278,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
280
278
  onConfirm: _ctx.confirm
281
279
  }, null, 8, ["visible", "onClose", "list-data", "onChange", "title", "onConfirm"]);
282
280
  }
283
- _sfc_main.render = _sfc_render;
284
- export { _sfc_main as default };
281
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
282
+ export { index as default };
@@ -17,31 +17,29 @@ 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
  var __publicField = (obj, key, value) => {
24
21
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
25
22
  return value;
26
23
  };
27
24
  /*!
28
- * @nutui/nutui v3.1.10-beta.1 Thu Oct 28 2021 09:26:47 GMT+0800 (中国标准时间)
25
+ * @nutui/nutui v3.1.11-beta.0 Sat Nov 13 2021 21:43:55 GMT+0800 (中国标准时间)
29
26
  * (c) 2021 @jdf2e.
30
27
  * Released under the MIT License.
31
28
  */
32
29
  import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, normalizeStyle, createVNode, render, h } from "vue";
33
30
  import { c as createComponent } from "./component.js";
34
- import _sfc_main$1, { popupProps } from "./Popup.js";
35
- import _sfc_main$2 from "./Button.js";
31
+ import Popup, { popupProps } from "./Popup.js";
32
+ import Button from "./Button.js";
33
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
36
34
  import "./OverLay.js";
37
- import "./index.vue_vue&type=script&lang.js";
35
+ import "./Icon.js";
38
36
  import "./pxCheck.js";
39
37
  const { componentName, create } = createComponent("dialog");
40
- var _sfc_main = create({
38
+ const _sfc_main = create({
41
39
  inheritAttrs: false,
42
40
  components: {
43
- [_sfc_main$1.name]: _sfc_main$1,
44
- [_sfc_main$2.name]: _sfc_main$2
41
+ [Popup.name]: Popup,
42
+ [Button.name]: Button
45
43
  },
46
44
  props: __spreadProps(__spreadValues({}, popupProps), {
47
45
  closeOnClickOverlay: {
@@ -109,16 +107,7 @@ var _sfc_main = create({
109
107
  default: false
110
108
  }
111
109
  }),
112
- emits: [
113
- "update",
114
- "update:visible",
115
- "ok",
116
- "cancel",
117
- "open",
118
- "opened",
119
- "close",
120
- "closed"
121
- ],
110
+ emits: ["update", "update:visible", "ok", "cancel", "open", "opened", "close", "closed"],
122
111
  setup(props, { emit }) {
123
112
  const showPopup = ref(props.visible);
124
113
  onMounted(() => {
@@ -151,8 +140,8 @@ var _sfc_main = create({
151
140
  }
152
141
  };
153
142
  const onOk = () => {
154
- closed();
155
143
  emit("ok");
144
+ closed();
156
145
  };
157
146
  return {
158
147
  closed,
@@ -238,7 +227,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
238
227
  _: 3
239
228
  }, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
240
229
  }
241
- _sfc_main.render = _sfc_render;
230
+ var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
242
231
  class DialogOptions {
243
232
  constructor() {
244
233
  __publicField(this, "title", "");
@@ -296,7 +285,7 @@ class DialogFunction {
296
285
  };
297
286
  options.teleport = `#${root.id}`;
298
287
  return () => {
299
- return h(_sfc_main, options);
288
+ return h(Dialog, options);
300
289
  };
301
290
  }
302
291
  };
@@ -309,7 +298,7 @@ const _Dialog = function(options) {
309
298
  return new DialogFunction(options);
310
299
  };
311
300
  _Dialog.install = (app) => {
312
- app.use(_sfc_main);
301
+ app.use(Dialog);
313
302
  app.config.globalProperties.$dialog = _Dialog;
314
303
  };
315
- export { _sfc_main as Dialog, DialogOptions, _Dialog as default };
304
+ export { Dialog, DialogOptions, _Dialog 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, openBlock, createElementBlock, normalizeClass, 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("divider");
9
- var _sfc_main = create({
10
+ const _sfc_main = create({
10
11
  props: {
11
12
  contentPosition: {
12
13
  type: String,
@@ -44,5 +45,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
44
45
  renderSlot(_ctx.$slots, "default")
45
46
  ], 2);
46
47
  }
47
- _sfc_main.render = _sfc_render;
48
- export { _sfc_main as default };
48
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
49
+ export { index as default };
@@ -1,13 +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 { ref, reactive, computed, onMounted, onActivated, onDeactivated, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { r as requestAniFrame } from "./raf.js";
9
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
10
  const { componentName, create } = createComponent("drag");
10
- var _sfc_main = create({
11
+ const _sfc_main = create({
11
12
  props: {
12
13
  attract: {
13
14
  type: Boolean,
@@ -198,5 +199,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
198
199
  renderSlot(_ctx.$slots, "default")
199
200
  ], 34);
200
201
  }
201
- _sfc_main.render = _sfc_render;
202
- export { _sfc_main as default };
202
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
203
+ export { index as default };
@@ -17,18 +17,16 @@ 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 { ref, reactive, computed, toRefs, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, Fragment, renderList, toDisplayString, withDirectives, vShow, createCommentVNode, withModifiers } from "vue";
29
26
  import { c as createComponent } from "./component.js";
27
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
30
28
  const { componentName, create } = createComponent("elevator");
31
- var _sfc_main = create({
29
+ const _sfc_main = create({
32
30
  props: {
33
31
  height: {
34
32
  type: [Number, String],
@@ -97,29 +95,29 @@ var _sfc_main = create({
97
95
  state.listHeight.push(height);
98
96
  }
99
97
  };
100
- const scrollTo = (index) => {
101
- if (!index && index !== 0) {
98
+ const scrollTo = (index2) => {
99
+ if (!index2 && index2 !== 0) {
102
100
  return;
103
101
  }
104
102
  if (!state.listHeight.length) {
105
103
  calculateHeight();
106
104
  }
107
- if (index < 0)
108
- index = 0;
109
- if (index > state.listHeight.length - 2)
110
- index = state.listHeight.length - 2;
111
- state.currentIndex = index;
112
- listview.value.scrollTo(0, state.listHeight[index]);
105
+ if (index2 < 0)
106
+ index2 = 0;
107
+ if (index2 > state.listHeight.length - 2)
108
+ index2 = state.listHeight.length - 2;
109
+ state.currentIndex = index2;
110
+ listview.value.scrollTo(0, state.listHeight[index2]);
113
111
  };
114
112
  const touchStart = (e) => {
115
113
  state.scrollStart = true;
116
- let index = getData(e.target, "index");
114
+ let index2 = getData(e.target, "index");
117
115
  let firstTouch = e.touches[0];
118
116
  state.touchState.y1 = firstTouch.pageY;
119
- state.anchorIndex = +index;
120
- state.currentIndex = +index;
117
+ state.anchorIndex = +index2;
118
+ state.currentIndex = +index2;
121
119
  console.log(state.currentIndex);
122
- scrollTo(+index);
120
+ scrollTo(+index2);
123
121
  };
124
122
  const touchMove = (e) => {
125
123
  let firstTouch = e.touches[0];
@@ -194,10 +192,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
194
192
  onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
195
193
  }, [
196
194
  createElementVNode("view", _hoisted_3, [
197
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.indexList, (item, index) => {
195
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.indexList, (item, index2) => {
198
196
  return openBlock(), createElementBlock("view", {
199
197
  class: "nut-elevator__bars__inner__item",
200
- "data-index": index,
198
+ "data-index": index2,
201
199
  key: item[_ctx.acceptKey],
202
200
  onClick: ($event) => _ctx.handleClickIndex(item[_ctx.acceptKey])
203
201
  }, toDisplayString(item[_ctx.acceptKey]), 9, _hoisted_4);
@@ -206,5 +204,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
206
204
  ], 32)
207
205
  ], 2);
208
206
  }
209
- _sfc_main.render = _sfc_render;
210
- export { _sfc_main as default };
207
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
208
+ export { index as default };
@@ -1,15 +1,16 @@
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, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, createCommentVNode, renderSlot, createElementVNode, Fragment, renderList, toDisplayString, createVNode } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import _sfc_main$1 from "./OverLay.js";
8
+ import overlay from "./OverLay.js";
9
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
10
  const { componentName, create } = createComponent("fixednav");
10
- var _sfc_main = create({
11
+ const _sfc_main = create({
11
12
  components: {
12
- [_sfc_main$1.name]: _sfc_main$1
13
+ [overlay.name]: overlay
13
14
  },
14
15
  props: {
15
16
  visible: {
@@ -93,11 +94,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
93
94
  }, null, 8, ["visible"])) : createCommentVNode("", true),
94
95
  renderSlot(_ctx.$slots, "list", {}, () => [
95
96
  createElementVNode("view", _hoisted_1, [
96
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navList, (item, index) => {
97
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navList, (item, index2) => {
97
98
  return openBlock(), createElementBlock("view", {
98
99
  class: "nut-fixednav__list-item",
99
100
  onClick: ($event) => _ctx.selected(item, $event),
100
- key: item.id || index
101
+ key: item.id || index2
101
102
  }, [
102
103
  createElementVNode("img", {
103
104
  src: item.icon
@@ -122,5 +123,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
122
123
  ])
123
124
  ], 6);
124
125
  }
125
- _sfc_main.render = _sfc_render;
126
- export { _sfc_main as default };
126
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
127
+ export { index as default };
@@ -1,10 +1,44 @@
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 { _ as _sfc_main } from "./index.vue_vue&type=script&lang.js";
7
- export { _ as default } from "./index.vue_vue&type=script&lang.js";
8
- import "vue";
9
- import "./component.js";
10
- import "./pxCheck.js";
6
+ import { h } from "vue";
7
+ import { c as createComponent } from "./component.js";
8
+ import { p as pxCheck } from "./pxCheck.js";
9
+ const { componentName, create } = createComponent("icon");
10
+ const _sfc_main = create({
11
+ props: {
12
+ name: { type: String, default: "" },
13
+ size: { type: [String, Number], default: "" },
14
+ classPrefix: { type: String, default: "nut-icon" },
15
+ fontClassName: { type: String, default: "nutui-iconfont" },
16
+ color: { type: String, default: "" },
17
+ tag: { type: String, default: "i" }
18
+ },
19
+ emits: ["click"],
20
+ setup(props, { emit, slots }) {
21
+ const handleClick = (event) => {
22
+ emit("click", event);
23
+ };
24
+ const isImage = () => {
25
+ return props.name ? props.name.indexOf("/") !== -1 : false;
26
+ };
27
+ return () => {
28
+ var _a;
29
+ const _isImage = isImage();
30
+ return h(_isImage ? "img" : props.tag, {
31
+ class: _isImage ? `${componentName}__img` : `${props.fontClassName} ${componentName} ${props.classPrefix}-${props.name}`,
32
+ style: {
33
+ color: props.color,
34
+ fontSize: pxCheck(props.size),
35
+ width: pxCheck(props.size),
36
+ height: pxCheck(props.size)
37
+ },
38
+ onClick: handleClick,
39
+ src: _isImage ? props.name : ""
40
+ }, (_a = slots.default) == null ? void 0 : _a.call(slots));
41
+ };
42
+ }
43
+ });
44
+ export { _sfc_main as default };