@nutui/nutui 3.1.19-beta.0 → 3.1.19-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 (110) hide show
  1. package/dist/nutui.d.ts +38 -37
  2. package/dist/nutui.es.js +13439 -12616
  3. package/dist/nutui.umd.js +13431 -12695
  4. package/dist/packages/_es/ActionSheet.js +12 -18
  5. package/dist/packages/_es/Address.js +78 -69
  6. package/dist/packages/_es/Audio.js +12 -12
  7. package/dist/packages/_es/AudioOperate.js +1 -1
  8. package/dist/packages/_es/Avatar.js +3 -3
  9. package/dist/packages/_es/BackTop.js +68 -110
  10. package/dist/packages/_es/Badge.js +3 -3
  11. package/dist/packages/_es/Barrage.js +62 -55
  12. package/dist/packages/_es/Button.js +2 -2
  13. package/dist/packages/_es/Calendar.js +28 -23
  14. package/dist/packages/_es/CalendarItem.js +3 -3
  15. package/dist/packages/_es/Card.js +6 -5
  16. package/dist/packages/_es/Cascader.js +7 -7
  17. package/dist/packages/_es/Cell.js +4 -11
  18. package/dist/packages/_es/CellGroup.js +1 -1
  19. package/dist/packages/_es/Checkbox.js +1 -1
  20. package/dist/packages/_es/CheckboxGroup.js +1 -1
  21. package/dist/packages/_es/CircleProgress.js +149 -40
  22. package/dist/packages/_es/Col.js +1 -1
  23. package/dist/packages/_es/Collapse.js +34 -8
  24. package/dist/packages/_es/CollapseItem.js +90 -59
  25. package/dist/packages/_es/CountDown.js +5 -5
  26. package/dist/packages/_es/CountUp.js +43 -51
  27. package/dist/packages/_es/DatePicker.js +21 -20
  28. package/dist/packages/_es/Dialog.js +8 -86
  29. package/dist/packages/_es/Divider.js +4 -4
  30. package/dist/packages/_es/Drag.js +92 -54
  31. package/dist/packages/_es/Elevator.js +74 -49
  32. package/dist/packages/_es/Empty.js +3 -3
  33. package/dist/packages/_es/FixedNav.js +5 -5
  34. package/dist/packages/_es/Form.js +4 -4
  35. package/dist/packages/_es/FormItem.js +1 -1
  36. package/dist/packages/_es/Grid.js +1 -1
  37. package/dist/packages/_es/GridItem.js +8 -26
  38. package/dist/packages/_es/Icon.js +1 -1
  39. package/dist/packages/_es/ImagePreview.js +15 -84
  40. package/dist/packages/_es/Indicator.js +3 -3
  41. package/dist/packages/_es/InfiniteLoading.js +93 -107
  42. package/dist/packages/_es/Input.js +8 -8
  43. package/dist/packages/_es/InputNumber.js +23 -16
  44. package/dist/packages/_es/Layout.js +1 -1
  45. package/dist/packages/_es/List.js +41 -34
  46. package/dist/packages/_es/Menu.js +15 -12
  47. package/dist/packages/_es/MenuItem.js +9 -9
  48. package/dist/packages/_es/Navbar.js +3 -4
  49. package/dist/packages/_es/NoticeBar.js +47 -40
  50. package/dist/packages/_es/Notify.js +29 -168
  51. package/dist/packages/_es/NumberKeyboard.js +5 -10
  52. package/dist/packages/_es/OldPicker.js +122 -120
  53. package/dist/packages/_es/OverLay.js +5 -25
  54. package/dist/packages/_es/Pagination.js +7 -7
  55. package/dist/packages/_es/Picker.js +39 -16
  56. package/dist/packages/_es/Popover.js +155 -30
  57. package/dist/packages/_es/Popup.js +8 -71
  58. package/dist/packages/_es/Price.js +17 -5
  59. package/dist/packages/_es/Progress.js +18 -8
  60. package/dist/packages/_es/PullRefresh.js +1 -1
  61. package/dist/packages/_es/Radio.js +2 -2
  62. package/dist/packages/_es/RadioGroup.js +1 -1
  63. package/dist/packages/_es/Range.js +46 -33
  64. package/dist/packages/_es/Rate.js +16 -19
  65. package/dist/packages/_es/Row.js +1 -1
  66. package/dist/packages/_es/SearchBar.js +8 -6
  67. package/dist/packages/_es/ShortPassword.js +89 -67
  68. package/dist/packages/_es/SideNavBar.js +5 -16
  69. package/dist/packages/_es/SideNavBarItem.js +1 -1
  70. package/dist/packages/_es/Signature.js +69 -88
  71. package/dist/packages/_es/Skeleton.js +8 -11
  72. package/dist/packages/_es/Sku.js +47 -56
  73. package/dist/packages/_es/Step.js +1 -1
  74. package/dist/packages/_es/Steps.js +1 -1
  75. package/dist/packages/_es/Sticky.js +28 -23
  76. package/dist/packages/_es/SubSideNavBar.js +1 -1
  77. package/dist/packages/_es/Swipe.js +39 -26
  78. package/dist/packages/_es/Swiper.js +31 -13
  79. package/dist/packages/_es/SwiperItem.js +1 -1
  80. package/dist/packages/_es/Switch.js +3 -3
  81. package/dist/packages/_es/TabPane.js +1 -1
  82. package/dist/packages/_es/Tabbar.js +3 -3
  83. package/dist/packages/_es/TabbarItem.js +17 -23
  84. package/dist/packages/_es/Table.js +13 -13
  85. package/dist/packages/_es/Tabs.js +21 -20
  86. package/dist/packages/_es/Tag.js +4 -4
  87. package/dist/packages/_es/TextArea.js +44 -42
  88. package/dist/packages/_es/TimeDetail.js +4 -3
  89. package/dist/packages/_es/TimePannel.js +3 -3
  90. package/dist/packages/_es/TimeSelect.js +8 -7
  91. package/dist/packages/_es/Toast.js +41 -170
  92. package/dist/packages/_es/Uploader.js +109 -138
  93. package/dist/packages/_es/Video.js +3 -3
  94. package/dist/packages/_es/common.js +1 -1
  95. package/dist/packages/_es/component.js +1 -1
  96. package/dist/packages/_es/index.js +44 -6
  97. package/dist/packages/_es/{index5.js → index.taro.js} +127 -95
  98. package/dist/packages/_es/index2.js +1 -1
  99. package/dist/packages/_es/index3.js +56 -28
  100. package/dist/packages/_es/index4.js +413 -56
  101. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  102. package/dist/packages/_es/pxCheck.js +1 -1
  103. package/dist/packages/_es/use-lock-scroll.js +23 -0
  104. package/dist/packages/_es/util.js +1 -1
  105. package/dist/packages/uploader/index.scss +2 -2
  106. package/dist/style.css +1 -1
  107. package/dist/styles/themes/default.scss +61 -61
  108. package/dist/styles/themes/jdt.scss +61 -61
  109. package/package.json +1 -1
  110. package/dist/packages/_es/raf.js +0 -19
@@ -18,11 +18,11 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
22
22
  * (c) 2022 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
- import { getCurrentInstance, ref, reactive, watch, nextTick, onMounted, onUnmounted, toRefs, openBlock, createElementBlock, Fragment, normalizeStyle, renderList, createCommentVNode, toDisplayString, createTextVNode } from "vue";
25
+ import { getCurrentInstance, reactive, watch, nextTick, onMounted, onUnmounted, toRefs, openBlock, createElementBlock, Fragment, normalizeStyle, renderList, createCommentVNode, toDisplayString, createTextVNode } from "vue";
26
26
  import { c as createComponent } from "./component.js";
27
27
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
28
28
  function useExtend(apis) {
@@ -98,7 +98,7 @@ const _sfc_main = create({
98
98
  type: Number,
99
99
  default: 0
100
100
  },
101
- machineTurnMore: {
101
+ machineTrunMore: {
102
102
  type: Number,
103
103
  default: 0
104
104
  }
@@ -106,11 +106,6 @@ const _sfc_main = create({
106
106
  components: {},
107
107
  emits: ["click", "scroll-end"],
108
108
  setup(props, { emit }) {
109
- const runNumberImg = ref(null);
110
- const numberItemRef = ref([]);
111
- const setRef = (el) => {
112
- numberItemRef.value.push(el);
113
- };
114
109
  const data = reactive({
115
110
  valFlag: false,
116
111
  current: 0,
@@ -184,20 +179,20 @@ const _sfc_main = create({
184
179
  return m / baseNum;
185
180
  }
186
181
  };
187
- const topNumber = (index2) => {
182
+ const topNumber = (index) => {
188
183
  let { num_total_len, pointNum, initDigit1, initDigit2, sortFlag } = data;
189
- let idx1 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit2)[index2 - (num_total_len - pointNum)] : 10 - Number(String(initDigit2)[index2 - (num_total_len - pointNum)]);
190
- let idx2 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit1)[index2] : 10 - Number(String(initDigit1)[index2]);
191
- let num = index2 > num_total_len - pointNum - 1 ? -idx1 * 100 + "%" : index2 <= String(initDigit1).length - 1 ? -idx2 * 100 + "%" : 0;
184
+ let idx1 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit2)[index - (num_total_len - pointNum)] : 10 - Number(String(initDigit2)[index - (num_total_len - pointNum)]);
185
+ let idx2 = sortFlag == "add" || sortFlag == "equal" ? String(initDigit1)[index] : 10 - Number(String(initDigit1)[index]);
186
+ let num = index > num_total_len - pointNum - 1 ? -idx1 * 100 + "%" : index <= String(initDigit1).length - 1 ? -idx2 * 100 + "%" : 0;
192
187
  if (num == "-1000%") {
193
188
  num = 0;
194
189
  }
195
190
  return num;
196
191
  };
197
- const turnNumber = (index2) => {
192
+ const turnNumber = (index) => {
198
193
  let { num_total_len, pointNum, initDigit1, initDigit2, sortFlag } = data;
199
- let idx1 = String(initDigit2)[index2 - (num_total_len - pointNum)];
200
- let num = index2 > num_total_len - pointNum - 1 ? idx1 ? idx1 : 0 : index2 <= String(initDigit1).length - 1 ? String(initDigit1)[index2] : 0;
194
+ let idx1 = String(initDigit2)[index - (num_total_len - pointNum)];
195
+ let num = index > num_total_len - pointNum - 1 ? idx1 ? idx1 : 0 : index <= String(initDigit1).length - 1 ? String(initDigit1)[index] : 0;
201
196
  return num;
202
197
  };
203
198
  const countChange = () => {
@@ -205,23 +200,21 @@ const _sfc_main = create({
205
200
  let countTimer = setInterval(() => {
206
201
  if (initNum > endNum) {
207
202
  if (data.current <= endNum || data.current <= speed) {
208
- data.current = endNum.toFixed(toFixed);
203
+ data.current = Number(endNum.toFixed(toFixed));
209
204
  clearInterval(countTimer);
210
205
  emit("scroll-end");
211
206
  data.valFlag = false;
212
207
  } else {
213
- let num = parseFloat(String(data.current)) - parseFloat(String(speed));
214
- data.current = num.toFixed(toFixed);
208
+ data.current = Number((parseFloat(String(data.current)) - parseFloat(String(speed))).toFixed(toFixed));
215
209
  }
216
210
  } else {
217
211
  if (data.current >= endNum) {
218
- data.current = endNum.toFixed(toFixed);
212
+ data.current = Number(endNum.toFixed(toFixed));
219
213
  clearInterval(countTimer);
220
214
  emit("scroll-end");
221
215
  data.valFlag = false;
222
216
  } else {
223
- let num = parseFloat(String(data.current)) + parseFloat(String(speed));
224
- data.current = num.toFixed(toFixed);
217
+ data.current = Number((parseFloat(String(data.current)) + parseFloat(String(speed))).toFixed(toFixed));
225
218
  }
226
219
  }
227
220
  }, props.during);
@@ -302,7 +295,8 @@ const _sfc_main = create({
302
295
  if (data.sortFlag == "equal") {
303
296
  return false;
304
297
  }
305
- let element = numberItemRef.value[data.num_total_len - 1];
298
+ let refsDom = document.getElementsByClassName("numberItem");
299
+ let element = refsDom[data.num_total_len - 1];
306
300
  runTurn(element);
307
301
  });
308
302
  } else {
@@ -328,21 +322,21 @@ const _sfc_main = create({
328
322
  }, props.during);
329
323
  };
330
324
  const runStep = (el) => {
331
- let currentTurn = el.getAttribute("turn-number");
325
+ let currentTurn = el.style.all;
332
326
  let turningNum;
333
327
  if (data.sortFlag == "add") {
334
328
  turningNum = parseInt(String(currentTurn)) + 1;
335
329
  } else {
336
330
  turningNum = parseInt(String(currentTurn)) - 1 >= 0 ? parseInt(String(currentTurn)) - 1 : 9;
337
331
  }
338
- el.setAttribute("turn-number", String(turningNum));
339
- if (el.style.transition == "none 0s ease 0s" || turningNum == 1 || !el.style.transition) {
332
+ el.style.all = String(turningNum);
333
+ if (el.style.transition == "none" || turningNum == 1 || !el.style.transition) {
340
334
  el.style.transition = `all linear ${props.during}ms`;
341
335
  }
342
336
  if (turningNum == 10 || data.sortFlag == "reduce" && turningNum == 0) {
343
337
  var timeOut = null;
344
338
  el.style.top = `-${data.sortFlag == "add" ? turningNum * 100 : (10 - turningNum) * 100}%`;
345
- el.setAttribute("turn-number", "0");
339
+ el.style.all = "0";
346
340
  timeOut = setTimeout(() => {
347
341
  timeOut && clearTimeout(timeOut);
348
342
  el.style.transition = "none";
@@ -365,7 +359,8 @@ const _sfc_main = create({
365
359
  Math.pow(10, data.pointNum);
366
360
  }
367
361
  nextTick(() => {
368
- runNumberImg.value.addEventListener("webkitTransitionEnd", () => {
362
+ let f = document.getElementsByClassName("run-number-img")[0];
363
+ f.addEventListener("webkitTransitionEnd", () => {
369
364
  emit("scroll-end");
370
365
  data.valFlag = false;
371
366
  });
@@ -381,14 +376,14 @@ const _sfc_main = create({
381
376
  }
382
377
  };
383
378
  const machineLuck = () => {
384
- const machineTurnMoreNum = props.machineTurnMore < 0 ? 0 : props.machineTurnMore;
379
+ const machineTrunMoreNum = props.machineTrunMore < 0 ? 0 : props.machineTrunMore;
385
380
  let distance = props.numHeight * props.machinePrizeNum;
386
381
  if (data.prizeLevelTrun < 0) {
387
382
  generateRandom();
388
383
  }
389
384
  for (let i = 0; i < props.machineNum; i++) {
390
385
  setTimeout(() => {
391
- let turn = distance * (i + 1 + parseFloat(String(machineTurnMoreNum)));
386
+ let turn = distance * (i + 1 + parseFloat(String(machineTrunMoreNum)));
392
387
  if (data.prizeYPrev.length != 0) {
393
388
  data.prizeY[i] = data.prizeYPrev[i];
394
389
  }
@@ -402,16 +397,16 @@ const _sfc_main = create({
402
397
  }
403
398
  };
404
399
  useExtend({ machineLuck });
405
- const scrollTime = (index2, total, num) => {
400
+ const scrollTime = (index, total, num) => {
406
401
  let t = setInterval(() => {
407
402
  if (num <= total) {
408
403
  num += 10;
409
- data.prizeY[index2] = parseFloat(String(num));
404
+ data.prizeY[index] = parseFloat(String(num));
410
405
  } else {
411
406
  clearInterval(t);
412
407
  t = null;
413
408
  data.finshMachine += 1;
414
- data.prizeY[index2] = total;
409
+ data.prizeY[index] = total;
415
410
  if (data.finshMachine == props.machineNum) {
416
411
  let distance = props.numHeight * props.machinePrizeNum;
417
412
  data.prizeYPrev = [];
@@ -448,8 +443,6 @@ const _sfc_main = create({
448
443
  data.timer = null;
449
444
  });
450
445
  return __spreadProps(__spreadValues(__spreadValues({}, toRefs(data)), toRefs(reactive(props))), {
451
- runNumberImg,
452
- setRef,
453
446
  topNumber,
454
447
  turnNumber
455
448
  });
@@ -465,37 +458,35 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
465
458
  class: "run-number-machine-img",
466
459
  style: normalizeStyle({ height: _ctx.numHeight + "px" })
467
460
  }, [
468
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.machineNum, (val, index2) => {
461
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.machineNum, (val, index) => {
469
462
  return openBlock(), createElementBlock("view", {
470
463
  class: "run-number-machine-img-li",
471
464
  ref_for: true,
472
465
  ref: "run-number-machine-img-li",
473
- key: "mImg" + index2,
466
+ key: "mImg" + index,
474
467
  style: normalizeStyle({
475
468
  width: _ctx.numWidth + "px",
476
469
  height: _ctx.numHeight + "px",
477
- backgroundImage: "url(" + _ctx.customBgImg + ")",
478
- backgroundPositionY: _ctx.prizeY[index2] + "px"
470
+ background: "url(" + _ctx.customBgImg + ") ",
471
+ backgroundPosition: "0 " + _ctx.prizeY[index] + "px"
479
472
  })
480
473
  }, null, 4);
481
474
  }), 128))
482
475
  ], 4)) : (openBlock(), createElementBlock("view", {
483
476
  key: 1,
484
- ref: "runNumberImg",
485
477
  class: "run-number-img",
486
478
  style: normalizeStyle({ height: _ctx.numHeight + "px" })
487
479
  }, [
488
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val, index2) => {
480
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val, index) => {
489
481
  return openBlock(), createElementBlock("view", {
490
482
  class: "run-number-img-li",
491
- key: "cImg" + index2,
483
+ key: "cImg" + index,
492
484
  style: normalizeStyle({
493
485
  width: _ctx.numWidth + "px",
494
486
  height: _ctx.numHeight + "px",
495
- 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",
487
+ 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",
496
488
  backgroundImage: "url(" + _ctx.customBgImg + ")",
497
- backgroundPositionX: "0",
498
- backgroundPositionY: -(String(_ctx.relNum)[index2] * _ctx.numHeight + _ctx.customSpacNum * String(_ctx.relNum)[index2]) + "px",
489
+ backgroundPosition: "0 " + -(String(_ctx.relNum)[index] * _ctx.numHeight + _ctx.customSpacNum * String(_ctx.relNum)[index]) + "px",
499
490
  transition: "all linear " + _ctx.during / 10 + "ms"
500
491
  })
501
492
  }, null, 4);
@@ -521,17 +512,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
521
512
  lineHeight: _ctx.numHeight + "px"
522
513
  })
523
514
  }, [
524
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val, index2) => {
515
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val, index) => {
525
516
  return openBlock(), createElementBlock("view", {
526
517
  ref_for: true,
527
- ref: _ctx.setRef,
518
+ ref: "numberItem",
528
519
  class: "numberItem",
529
520
  key: val,
530
521
  style: normalizeStyle({
531
- top: _ctx.topNumber(index2),
532
- left: _ctx.numWidth * (index2 > _ctx.num_total_len - _ctx.pointNum - 1 ? index2 * 1.1 : index2) + "px"
522
+ all: _ctx.turnNumber(index),
523
+ top: _ctx.topNumber(index),
524
+ left: _ctx.numWidth * (index > _ctx.num_total_len - _ctx.pointNum - 1 ? index * 1.1 : index) + "px"
533
525
  }),
534
- "turn-number": _ctx.turnNumber(index2)
526
+ "turn-number": _ctx.turnNumber(index)
535
527
  }, [
536
528
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.to0_10, (item, idx) => {
537
529
  return openBlock(), createElementBlock("view", {
@@ -563,5 +555,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
563
555
  ], 64))
564
556
  ]);
565
557
  }
566
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
567
- export { index as default };
558
+ var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
559
+ export { index_taro as default };
@@ -18,18 +18,22 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
22
22
  * (c) 2022 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
25
  import { reactive, computed, onBeforeMount, watch, toRefs, resolveComponent, openBlock, createBlock } from "vue";
26
- import picker from "./Picker.js";
27
- import { popupProps } from "./Popup.js";
26
+ import nutPicker from "./Picker.js";
27
+ import { p as popupProps } from "./index4.js";
28
28
  import { c as createComponent } from "./component.js";
29
29
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
30
+ import "./Popup.js";
31
+ import "./use-lock-scroll.js";
30
32
  import "./OverLay.js";
31
33
  import "./Icon.js";
32
34
  import "./pxCheck.js";
35
+ import "./index.js";
36
+ import "@tarojs/taro";
33
37
  function padZero(num, targetLength = 2) {
34
38
  let str = num + "";
35
39
  while (str.length < targetLength) {
@@ -52,7 +56,7 @@ const zhCNType = {
52
56
  };
53
57
  const _sfc_main = create({
54
58
  components: {
55
- [picker.name]: picker
59
+ nutPicker
56
60
  },
57
61
  props: __spreadProps(__spreadValues({}, popupProps), {
58
62
  modelValue: null,
@@ -119,12 +123,12 @@ const _sfc_main = create({
119
123
  const boundary = props[`${type}Date`];
120
124
  const year = boundary.getFullYear();
121
125
  let month = 1;
122
- let day = 1;
126
+ let date = 1;
123
127
  let hour = 0;
124
128
  let minute = 0;
125
129
  if (type === "max") {
126
130
  month = 12;
127
- day = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
131
+ date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
128
132
  hour = 23;
129
133
  minute = 59;
130
134
  }
@@ -132,8 +136,8 @@ const _sfc_main = create({
132
136
  if (value.getFullYear() === year) {
133
137
  month = boundary.getMonth() + 1;
134
138
  if (value.getMonth() + 1 === month) {
135
- day = boundary.getDate();
136
- if (value.getDate() === day) {
139
+ date = boundary.getDate();
140
+ if (value.getDate() === date) {
137
141
  hour = boundary.getHours();
138
142
  if (value.getHours() === hour) {
139
143
  minute = boundary.getMinutes();
@@ -144,15 +148,15 @@ const _sfc_main = create({
144
148
  return {
145
149
  [`${type}Year`]: year,
146
150
  [`${type}Month`]: month,
147
- [`${type}Day`]: day,
151
+ [`${type}Date`]: date,
148
152
  [`${type}Hour`]: hour,
149
153
  [`${type}Minute`]: minute,
150
154
  [`${type}Seconds`]: seconds
151
155
  };
152
156
  };
153
157
  const ranges = computed(() => {
154
- const { maxYear, maxDay, maxMonth, maxHour, maxMinute, maxSeconds } = getBoundary("max", state.currentDate);
155
- const { minYear, minDay, minMonth, minHour, minMinute, minSeconds } = getBoundary("min", state.currentDate);
158
+ const { maxYear, maxDate, maxMonth, maxHour, maxMinute, maxSeconds } = getBoundary("max", state.currentDate);
159
+ const { minYear, minDate, minMonth, minHour, minMinute, minSeconds } = getBoundary("min", state.currentDate);
156
160
  let result = [
157
161
  {
158
162
  type: "year",
@@ -164,7 +168,7 @@ const _sfc_main = create({
164
168
  },
165
169
  {
166
170
  type: "day",
167
- range: [minDay, maxDay]
171
+ range: [minDate, maxDate]
168
172
  },
169
173
  {
170
174
  type: "hour",
@@ -189,9 +193,6 @@ const _sfc_main = create({
189
193
  case "time":
190
194
  result = result.slice(3, 6);
191
195
  break;
192
- case "year-month":
193
- result = result.slice(0, 2);
194
- break;
195
196
  case "month-day":
196
197
  result = result.slice(1, 3);
197
198
  break;
@@ -237,7 +238,7 @@ const _sfc_main = create({
237
238
  };
238
239
  const generateValue = (min, max, val, type, columnIndex) => {
239
240
  const arr = [];
240
- let index2 = 0;
241
+ let index = 0;
241
242
  while (min <= max) {
242
243
  arr.push(formatterOption(type, min));
243
244
  if (type === "minute") {
@@ -246,10 +247,10 @@ const _sfc_main = create({
246
247
  min++;
247
248
  }
248
249
  if (min <= val) {
249
- index2++;
250
+ index++;
250
251
  }
251
252
  }
252
- state.selectedValue[columnIndex] = arr[index2].value;
253
+ state.selectedValue[columnIndex] = arr[index].value;
253
254
  return props.filter ? props.filter(type, arr) : arr;
254
255
  };
255
256
  const getDateIndex = (type) => {
@@ -311,5 +312,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
311
312
  isWrapTeleport: _ctx.isWrapTeleport
312
313
  }, null, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport"]);
313
314
  }
314
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
315
- export { index as default };
315
+ var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
316
+ export { index_taro as default };
@@ -17,20 +17,17 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- var __publicField = (obj, key, value) => {
21
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
22
- return value;
23
- };
24
20
  /*!
25
- * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
26
22
  * (c) 2022 @jdf2e.
27
23
  * Released under the MIT License.
28
24
  */
29
- import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, normalizeStyle, createVNode, render, h } from "vue";
25
+ import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, normalizeStyle } from "vue";
30
26
  import { c as createComponent } from "./component.js";
31
- import popup, { popupProps } from "./Popup.js";
27
+ import Popup, { popupProps } from "./Popup.js";
32
28
  import Button from "./Button.js";
33
29
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
30
+ import "./use-lock-scroll.js";
34
31
  import "./OverLay.js";
35
32
  import "./Icon.js";
36
33
  import "./pxCheck.js";
@@ -38,7 +35,7 @@ const { componentName, create } = createComponent("dialog");
38
35
  const _sfc_main = create({
39
36
  inheritAttrs: false,
40
37
  components: {
41
- [popup.name]: popup,
38
+ [Popup.name]: Popup,
42
39
  [Button.name]: Button
43
40
  },
44
41
  props: __spreadProps(__spreadValues({}, popupProps), {
@@ -128,8 +125,8 @@ const _sfc_main = create({
128
125
  }
129
126
  };
130
127
  const onOk = () => {
131
- emit("ok");
132
128
  closed();
129
+ emit("ok");
133
130
  };
134
131
  return {
135
132
  closed,
@@ -214,80 +211,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
214
211
  _: 3
215
212
  }, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
216
213
  }
217
- var Dialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
218
- class DialogOptions {
219
- constructor() {
220
- __publicField(this, "title", "");
221
- __publicField(this, "content", "");
222
- __publicField(this, "cancelText", "\u53D6\u6D88");
223
- __publicField(this, "okText", "\u786E\u5B9A");
224
- __publicField(this, "textAlign", "center");
225
- __publicField(this, "teleport", "body");
226
- __publicField(this, "id", new Date().getTime());
227
- __publicField(this, "footerDirection", "horizontal");
228
- __publicField(this, "onUpdate", (value) => {
229
- });
230
- __publicField(this, "onOk", () => {
231
- });
232
- __publicField(this, "onCancel", () => {
233
- });
234
- __publicField(this, "onClose", () => {
235
- });
236
- __publicField(this, "onClosed", () => {
237
- });
238
- __publicField(this, "visible", true);
239
- __publicField(this, "noFooter", false);
240
- __publicField(this, "noOkBtn", false);
241
- __publicField(this, "noCancelBtn", false);
242
- __publicField(this, "okBtnDisabled", false);
243
- __publicField(this, "closeOnPopstate", false);
244
- __publicField(this, "lockScroll", false);
245
- }
246
- }
247
- class DialogFunction {
248
- constructor(_options) {
249
- __publicField(this, "options", new DialogOptions());
250
- __publicField(this, "close", () => {
251
- });
252
- __publicField(this, "setDefaultOptions", (options) => {
253
- });
254
- __publicField(this, "resetDefaultOptions", () => {
255
- });
256
- let options = Object.assign(this.options, _options);
257
- let elWarp = document.body;
258
- let teleport = options.teleport;
259
- if (teleport != "body") {
260
- if (typeof teleport == "string") {
261
- elWarp = document.querySelector(teleport);
262
- } else {
263
- elWarp = options.teleport;
264
- }
265
- }
266
- const root = document.createElement("view");
267
- root.id = "dialog-" + options.id;
268
- const Wrapper = {
269
- setup() {
270
- options.onUpdate = (val) => {
271
- if (val == false) {
272
- elWarp.removeChild(root);
273
- }
274
- };
275
- options.teleport = `#${root.id}`;
276
- return () => {
277
- return h(Dialog, options);
278
- };
279
- }
280
- };
281
- const instance = createVNode(Wrapper);
282
- elWarp.appendChild(root);
283
- render(instance, root);
284
- }
285
- }
286
- const _Dialog = function(options) {
287
- return new DialogFunction(options);
288
- };
289
- _Dialog.install = (app) => {
290
- app.use(Dialog);
291
- app.config.globalProperties.$dialog = _Dialog;
292
- };
293
- export { Dialog, DialogOptions, _Dialog as default };
214
+ var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
215
+ export { index_taro as default };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -39,11 +39,11 @@ const _sfc_main = create({
39
39
  }
40
40
  });
41
41
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
42
- return openBlock(), createElementBlock("div", {
42
+ return openBlock(), createElementBlock("view", {
43
43
  class: normalizeClass(_ctx.classes)
44
44
  }, [
45
45
  renderSlot(_ctx.$slots, "default")
46
46
  ], 2);
47
47
  }
48
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
49
- export { index as default };
48
+ var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
49
+ export { index_taro as default };