@nutui/nutui 4.1.4 → 4.1.5-beta.2

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 (149) hide show
  1. package/README.md +1 -1
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +2100 -2067
  4. package/dist/nutui.umd.js +1 -1
  5. package/dist/packages/_es/ActionSheet.js +6 -5
  6. package/dist/packages/_es/Address.js +17 -17
  7. package/dist/packages/_es/AddressList.js +3 -3
  8. package/dist/packages/_es/Animate.js +2 -2
  9. package/dist/packages/_es/Audio.js +7 -7
  10. package/dist/packages/_es/Avatar.js +2 -2
  11. package/dist/packages/_es/AvatarGroup.js +3 -3
  12. package/dist/packages/_es/Badge.js +3 -3
  13. package/dist/packages/_es/Calendar.js +23 -18
  14. package/dist/packages/_es/CalendarItem.js +1 -1
  15. package/dist/packages/_es/Cascader.js +16 -16
  16. package/dist/packages/_es/Category.js +2 -2
  17. package/dist/packages/_es/CategoryPane.js +3 -3
  18. package/dist/packages/_es/Collapse.js +2 -2
  19. package/dist/packages/_es/CollapseItem.js +7 -7
  20. package/dist/packages/_es/Comment.js +3 -3
  21. package/dist/packages/_es/ConfigProvider.js +57 -66
  22. package/dist/packages/_es/Countdown.js +20 -6
  23. package/dist/packages/_es/Countup.js +11 -11
  24. package/dist/packages/_es/DatePicker.js +11 -11
  25. package/dist/packages/_es/Dialog.js +3 -3
  26. package/dist/packages/_es/Drag.js +1 -1
  27. package/dist/packages/_es/Ecard.js +3 -3
  28. package/dist/packages/_es/Elevator.js +8 -8
  29. package/dist/packages/_es/Ellipsis.js +2 -2
  30. package/dist/packages/_es/FormItem.js +0 -1
  31. package/dist/packages/_es/GridItem.js +1 -1
  32. package/dist/packages/_es/Image.js +2 -2
  33. package/dist/packages/_es/ImagePreview.js +18 -18
  34. package/dist/packages/_es/InfiniteLoading.js +5 -5
  35. package/dist/packages/_es/Input.js +5 -5
  36. package/dist/packages/_es/Invoice.js +11 -5
  37. package/dist/packages/_es/List.js +11 -11
  38. package/dist/packages/_es/Menu.js +4 -4
  39. package/dist/packages/_es/MenuItem.js +11 -12
  40. package/dist/packages/_es/Navbar.js +21 -7
  41. package/dist/packages/_es/Noticebar.js +20 -14
  42. package/dist/packages/_es/Notify.js +3 -3
  43. package/dist/packages/_es/NumberKeyboard.js +10 -5
  44. package/dist/packages/_es/Overlay.js +3 -3
  45. package/dist/packages/_es/Picker.js +3 -3
  46. package/dist/packages/_es/Popover.js +9 -9
  47. package/dist/packages/_es/Popup.js +1 -1
  48. package/dist/packages/_es/PullRefresh.js +1 -1
  49. package/dist/packages/_es/Range.js +5 -5
  50. package/dist/packages/_es/Row.js +0 -1
  51. package/dist/packages/_es/Searchbar.js +10 -10
  52. package/dist/packages/_es/ShortPassword.js +14 -9
  53. package/dist/packages/_es/SideNavbar.js +2 -3
  54. package/dist/packages/_es/SideNavbarItem.js +2 -2
  55. package/dist/packages/_es/Signature.js +2 -2
  56. package/dist/packages/_es/Sku.js +38 -37
  57. package/dist/packages/_es/Step.js +1 -1
  58. package/dist/packages/_es/Steps.js +2 -2
  59. package/dist/packages/_es/Sticky.js +2 -2
  60. package/dist/packages/_es/SubSideNavbar.js +2 -2
  61. package/dist/packages/_es/Swipe.js +2 -2
  62. package/dist/packages/_es/SwipeGroup.js +2 -2
  63. package/dist/packages/_es/Swiper.js +4 -4
  64. package/dist/packages/_es/Switch.js +2 -2
  65. package/dist/packages/_es/Tabbar.js +2 -2
  66. package/dist/packages/_es/Table.js +6 -6
  67. package/dist/packages/_es/Tabs.js +13 -13
  68. package/dist/packages/_es/Textarea.js +3 -3
  69. package/dist/packages/_es/TimeDetail.js +1 -1
  70. package/dist/packages/_es/TimeSelect.js +3 -3
  71. package/dist/packages/_es/Tour.js +7 -7
  72. package/dist/packages/_es/Uploader.js +11 -11
  73. package/dist/packages/_es/Video.js +11 -11
  74. package/dist/packages/_es/{index-7fe29a2f.js → index-3032df15.js} +8 -9
  75. package/dist/packages/_es/{index-66fff386.js → index-7fdbc8f1.js} +13 -10
  76. package/dist/packages/circleprogress/index.scss +3 -1
  77. package/dist/packages/popover/index.scss +3 -1
  78. package/dist/packages/video/index.scss +4 -1
  79. package/dist/smartips/web-types.json +2 -2
  80. package/dist/style.css +1 -1
  81. package/dist/styles/themes/default.scss +42 -42
  82. package/dist/styles/themes/jdb.scss +42 -42
  83. package/dist/styles/themes/jddkh.scss +42 -42
  84. package/dist/styles/themes/jdt.scss +42 -42
  85. package/dist/styles/variables-jdb.scss +7 -1
  86. package/dist/styles/variables-jddkh.scss +7 -1
  87. package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
  88. package/dist/types/__VUE/address/index.vue.d.ts +3 -3
  89. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +60 -0
  90. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +23 -0
  91. package/dist/types/__VUE/addresslist/index.vue.d.ts +2 -2
  92. package/dist/types/__VUE/audio/index.vue.d.ts +3 -3
  93. package/dist/types/__VUE/calendar/index.vue.d.ts +9 -0
  94. package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +77 -0
  95. package/dist/types/__VUE/collapseitem/index.vue.d.ts +3 -3
  96. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +42 -0
  97. package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +36 -0
  98. package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +59 -0
  99. package/dist/types/__VUE/comment/index.vue.d.ts +4 -4
  100. package/dist/types/__VUE/configprovider/common.d.ts +19 -0
  101. package/dist/types/__VUE/countdown/index.vue.d.ts +7 -4
  102. package/dist/types/__VUE/countup/index.vue.d.ts +3 -3
  103. package/dist/types/__VUE/datepicker/index.vue.d.ts +3 -3
  104. package/dist/types/__VUE/elevator/index.vue.d.ts +3 -3
  105. package/dist/types/__VUE/empty/index.vue.d.ts +1 -1
  106. package/dist/types/__VUE/formitem/index.vue.d.ts +2 -4
  107. package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
  108. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +126 -0
  109. package/dist/types/__VUE/imagepreview/index.vue.d.ts +3 -3
  110. package/dist/types/__VUE/indicator/index.vue.d.ts +1 -0
  111. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +3 -3
  112. package/dist/types/__VUE/input/index.vue.d.ts +3 -3
  113. package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
  114. package/dist/types/__VUE/invoice/index.vue.d.ts +3 -2
  115. package/dist/types/__VUE/list/index.vue.d.ts +4 -4
  116. package/dist/types/__VUE/navbar/index.vue.d.ts +9 -5
  117. package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
  118. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +13 -4
  119. package/dist/types/__VUE/picker/Column.vue.d.ts +134 -0
  120. package/dist/types/__VUE/picker/common.d.ts +484 -4
  121. package/dist/types/__VUE/picker/index.vue.d.ts +125 -5
  122. package/dist/types/__VUE/popover/index.vue.d.ts +1 -1
  123. package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
  124. package/dist/types/__VUE/range/index.vue.d.ts +8 -7
  125. package/dist/types/__VUE/rate/index.vue.d.ts +5 -5
  126. package/dist/types/__VUE/row/index.vue.d.ts +2 -2
  127. package/dist/types/__VUE/searchbar/index.vue.d.ts +7 -7
  128. package/dist/types/__VUE/shortpassword/index.vue.d.ts +9 -0
  129. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +2 -2
  130. package/dist/types/__VUE/signature/index.vue.d.ts +1 -1
  131. package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +17 -0
  132. package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +60 -0
  133. package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +25 -0
  134. package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +56 -0
  135. package/dist/types/__VUE/sku/index.vue.d.ts +9 -9
  136. package/dist/types/__VUE/step/index.vue.d.ts +2 -2
  137. package/dist/types/__VUE/steps/index.vue.d.ts +2 -2
  138. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +2 -2
  139. package/dist/types/__VUE/swiper/index.vue.d.ts +2 -2
  140. package/dist/types/__VUE/tabbar/index.vue.d.ts +2 -2
  141. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +3 -3
  142. package/dist/types/__VUE/table/common.d.ts +1 -1
  143. package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
  144. package/dist/types/__VUE/tag/index.vue.d.ts +3 -0
  145. package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
  146. package/dist/types/__VUE/toast/index.vue.d.ts +4 -4
  147. package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
  148. package/dist/types/index.d.ts +1 -1
  149. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, Fragment, renderList, createCommentVNode } from "vue";
2
2
  import { c as createComponent } from "./component-0fbad28e.js";
3
- import { P as Popup } from "./index-7fe29a2f.js";
3
+ import { P as Popup } from "./index-3032df15.js";
4
4
  import { Tips } from "@nutui/icons-vue";
5
5
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
6
6
  import "../locale/lang";
@@ -44,6 +44,10 @@ const _sfc_main = create({
44
44
  type: [String, Number],
45
45
  //4~6
46
46
  default: 6
47
+ },
48
+ lockScroll: {
49
+ type: Boolean,
50
+ default: true
47
51
  }
48
52
  },
49
53
  emits: ["update:modelValue", "update:visible", "complete", "tips", "close", "focus"],
@@ -110,19 +114,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
110
114
  const _component_nut_popup = resolveComponent("nut-popup");
111
115
  return openBlock(), createElementBlock("view", null, [
112
116
  createVNode(_component_nut_popup, {
117
+ visible: _ctx.show,
118
+ "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.show = $event),
113
119
  style: {
114
120
  padding: "30px 24px 20px 24px",
115
121
  borderRadius: "12px",
116
122
  textAlign: "center",
117
123
  top: "45%"
118
124
  },
119
- visible: _ctx.show,
120
- "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.show = $event),
121
125
  closeable: true,
122
- onClickCloseIcon: _ctx.close,
123
126
  "close-on-click-overlay": _ctx.closeOnClickOverlay,
124
- onClickOverlay: _ctx.close,
125
- teleportDisable: false
127
+ "teleport-disable": false,
128
+ "lock-scroll": _ctx.lockScroll,
129
+ onClickCloseIcon: _ctx.close,
130
+ onClickOverlay: _ctx.close
126
131
  }, {
127
132
  default: withCtx(() => [
128
133
  createElementVNode("view", _hoisted_1, toDisplayString(_ctx.title || _ctx.translate("title")), 1),
@@ -134,8 +139,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
134
139
  }, [
135
140
  (openBlock(true), createElementBlock(Fragment, null, renderList(new Array(_ctx.comLen), (sublen, index2) => {
136
141
  return openBlock(), createElementBlock("view", {
137
- class: "nut-short-password__item",
138
- key: index2
142
+ key: index2,
143
+ class: "nut-short-password__item"
139
144
  }, [
140
145
  String(_ctx.realInput).length > index2 ? (openBlock(), createElementBlock("view", _hoisted_4)) : createCommentVNode("", true)
141
146
  ]);
@@ -157,7 +162,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
157
162
  ])
158
163
  ]),
159
164
  _: 1
160
- }, 8, ["visible", "onClickCloseIcon", "close-on-click-overlay", "onClickOverlay"])
165
+ }, 8, ["visible", "close-on-click-overlay", "lock-scroll", "onClickCloseIcon", "onClickOverlay"])
161
166
  ]);
162
167
  }
163
168
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
@@ -29,7 +29,6 @@ const _sfc_main = create({
29
29
  default: 15
30
30
  }
31
31
  },
32
- emits: [],
33
32
  setup: (props) => {
34
33
  const list = ref(null);
35
34
  const state = reactive({
@@ -85,8 +84,8 @@ const _sfc_main = create({
85
84
  });
86
85
  const _hoisted_1 = { class: "nut-side-navbar__content" };
87
86
  const _hoisted_2 = {
88
- class: "nut-side-navbar__content__list",
89
- ref: "list"
87
+ ref: "list",
88
+ class: "nut-side-navbar__content__list"
90
89
  };
91
90
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
92
91
  return openBlock(), createElementBlock("view", {
@@ -36,8 +36,8 @@ const _hoisted_2 = { class: "nut-side-navbar-item__title" };
36
36
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
37
37
  return openBlock(), createElementBlock("view", {
38
38
  class: normalizeClass(_ctx.classes),
39
- onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
40
- ikey: _ctx.ikey
39
+ ikey: _ctx.ikey,
40
+ onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
41
41
  }, [
42
42
  createElementVNode("span", _hoisted_2, toDisplayString(_ctx.title), 1)
43
43
  ], 10, _hoisted_1);
@@ -158,8 +158,8 @@ const _sfc_main = create({
158
158
  }
159
159
  });
160
160
  const _hoisted_1 = {
161
- class: "nut-signature-inner",
162
- ref: "wrap"
161
+ ref: "wrap",
162
+ class: "nut-signature-inner"
163
163
  };
164
164
  const _hoisted_2 = ["height", "width"];
165
165
  const _hoisted_3 = {
@@ -22,7 +22,7 @@ import Price from "./Price.js";
22
22
  import { c as createComponent, T as TypeOfFun } from "./component-0fbad28e.js";
23
23
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
24
24
  import InputNumber from "./InputNumber.js";
25
- import { p as popupProps, P as Popup } from "./index-7fe29a2f.js";
25
+ import { p as popupProps, P as Popup } from "./index-3032df15.js";
26
26
  import "../locale/lang";
27
27
  import "./pxCheck-c6b9f6b7.js";
28
28
  import "@nutui/icons-vue";
@@ -65,7 +65,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
65
65
  _ctx.getSlots("sku-header-price") ? renderSlot(_ctx.$slots, "sku-header-price", { key: 0 }) : (openBlock(), createBlock(_component_nut_price, {
66
66
  key: 1,
67
67
  price: _ctx.goods.price,
68
- needSymbol: true,
68
+ "need-symbol": true,
69
69
  thousands: false
70
70
  }, null, 8, ["price"])),
71
71
  _ctx.getSlots("sku-header-extra") ? renderSlot(_ctx.$slots, "sku-header-extra", { key: 2 }) : createCommentVNode("", true),
@@ -122,16 +122,16 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
122
122
  return openBlock(), createElementBlock("view", _hoisted_1$3, [
123
123
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.skuInfo, (item, index2) => {
124
124
  return openBlock(), createElementBlock("view", {
125
- class: "nut-sku-select-item",
126
- key: item.id
125
+ key: item.id,
126
+ class: "nut-sku-select-item"
127
127
  }, [
128
128
  createElementVNode("view", _hoisted_2$3, toDisplayString(item.name), 1),
129
129
  createElementVNode("view", _hoisted_3$2, [
130
130
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (itemAttr, itemAttrIndex) => {
131
131
  return openBlock(), createElementBlock("view", {
132
+ key: itemAttr.name,
132
133
  class: normalizeClass(["nut-sku-select-item-skus-sku", [{ active: !itemAttr.disable && itemAttr.active }, { disable: itemAttr.disable }]]),
133
- onClick: ($event) => _ctx.changeSaleChild(itemAttr, itemAttrIndex, item, index2),
134
- key: itemAttr.name
134
+ onClick: ($event) => _ctx.changeSaleChild(itemAttr, itemAttrIndex, item, index2)
135
135
  }, toDisplayString(itemAttr.name), 11, _hoisted_4$2);
136
136
  }), 128))
137
137
  ])
@@ -301,8 +301,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
301
301
  !_ctx.getSlots("operate-btn") ? (openBlock(), createElementBlock("view", _hoisted_3, [
302
302
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.btnOptions, (btn, i) => {
303
303
  return openBlock(), createElementBlock("view", {
304
- class: normalizeClass([`nut-sku-operate-btn-${btn}`, "nut-sku-operate-btn-item"]),
305
304
  key: i,
305
+ class: normalizeClass([`nut-sku-operate-btn-${btn}`, "nut-sku-operate-btn-item"]),
306
306
  onClick: ($event) => _ctx.clickBtnOperate(btn)
307
307
  }, toDisplayString(_ctx.getBtnDesc(btn)), 11, _hoisted_4);
308
308
  }), 128))
@@ -368,15 +368,15 @@ const _sfc_main = create({
368
368
  }),
369
369
  emits: [
370
370
  "update:visible",
371
- "select-sku",
372
- "change-stepper",
373
- "click-btn-operate",
374
- "click-close-icon",
375
- "click-overlay",
371
+ "selectSku",
372
+ "changeStepper",
373
+ "clickBtnOperate",
374
+ "clickCloseIcon",
375
+ "clickOverlay",
376
376
  "close",
377
377
  "reduce",
378
378
  "add",
379
- "over-limit"
379
+ "overLimit"
380
380
  ],
381
381
  components: {
382
382
  SkuHeader,
@@ -406,11 +406,11 @@ const _sfc_main = create({
406
406
  });
407
407
  const getSlots = (name) => slots[name];
408
408
  const selectSku = (skus) => {
409
- emit("select-sku", skus);
409
+ emit("selectSku", skus);
410
410
  };
411
411
  const changeStepper = (value) => {
412
412
  goodsCount.value = value;
413
- emit("change-stepper", value);
413
+ emit("changeStepper", value);
414
414
  };
415
415
  const add = (value) => {
416
416
  emit("add", value);
@@ -419,20 +419,20 @@ const _sfc_main = create({
419
419
  emit("reduce", value);
420
420
  };
421
421
  const stepperOverLimit = (count) => {
422
- emit("over-limit", count);
422
+ emit("overLimit", count);
423
423
  };
424
424
  const clickBtnOperate = (btn) => {
425
- emit("click-btn-operate", {
425
+ emit("clickBtnOperate", {
426
426
  type: btn,
427
427
  value: goodsCount.value
428
428
  });
429
429
  };
430
430
  const closePopup = (type) => {
431
431
  if (type == "icon") {
432
- emit("click-close-icon");
432
+ emit("clickCloseIcon");
433
433
  }
434
434
  if (type == "overlay") {
435
- emit("click-overlay");
435
+ emit("clickOverlay");
436
436
  }
437
437
  if (type == "close") {
438
438
  emit("close");
@@ -465,17 +465,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
465
465
  const _component_sku_operate = resolveComponent("sku-operate");
466
466
  const _component_nut_popup = resolveComponent("nut-popup");
467
467
  return openBlock(), createBlock(_component_nut_popup, {
468
+ visible: _ctx.showPopup,
469
+ "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.showPopup = $event),
468
470
  position: "bottom",
469
471
  closeable: "",
470
472
  round: "",
471
- visible: _ctx.showPopup,
472
- "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.showPopup = $event),
473
+ style: { "height": "75%" },
474
+ "lock-scroll": _ctx.lockScroll,
475
+ "teleport-disable": _ctx.teleportDisable,
476
+ teleport: _ctx.teleport,
473
477
  onClickCloseIcon: _cache[1] || (_cache[1] = ($event) => _ctx.closePopup("icon")),
474
478
  onClickOverlay: _cache[2] || (_cache[2] = ($event) => _ctx.closePopup("overlay")),
475
- onClose: _cache[3] || (_cache[3] = ($event) => _ctx.closePopup("close")),
476
- style: { "height": "75%" },
477
- teleportDisable: _ctx.teleportDisable,
478
- teleport: _ctx.teleport
479
+ onClose: _cache[3] || (_cache[3] = ($event) => _ctx.closePopup("close"))
479
480
  }, {
480
481
  default: withCtx(() => [
481
482
  createElementVNode("view", _hoisted_1, [
@@ -511,23 +512,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
511
512
  !_ctx.getSlots("sku-stepper") ? (openBlock(), createBlock(_component_sku_stepper, {
512
513
  key: 1,
513
514
  goods: _ctx.goods,
514
- stepperTitle: _ctx.stepperTitle || _ctx.translate("buyNumber"),
515
- stepperMax: _ctx.stepperMax,
516
- stepperMin: _ctx.stepperMin,
517
- stepperExtraText: _ctx.stepperExtraText,
515
+ "stepper-title": _ctx.stepperTitle || _ctx.translate("buyNumber"),
516
+ "stepper-max": _ctx.stepperMax,
517
+ "stepper-min": _ctx.stepperMin,
518
+ "stepper-extra-text": _ctx.stepperExtraText,
518
519
  onAdd: _ctx.add,
519
520
  onReduce: _ctx.reduce,
520
521
  onChangeStepper: _ctx.changeStepper,
521
522
  onOverLimit: _ctx.stepperOverLimit
522
- }, null, 8, ["goods", "stepperTitle", "stepperMax", "stepperMin", "stepperExtraText", "onAdd", "onReduce", "onChangeStepper", "onOverLimit"])) : createCommentVNode("", true),
523
+ }, null, 8, ["goods", "stepper-title", "stepper-max", "stepper-min", "stepper-extra-text", "onAdd", "onReduce", "onChangeStepper", "onOverLimit"])) : createCommentVNode("", true),
523
524
  renderSlot(_ctx.$slots, "sku-stepper-bottom")
524
525
  ]),
525
526
  createVNode(_component_sku_operate, {
526
- btnOptions: _ctx.btnOptions,
527
- btnExtraText: _ctx.btnExtraText,
528
- buyText: _ctx.buyText || _ctx.translate("buyNow"),
529
- addCartText: _ctx.addCartText || _ctx.translate("addToCart"),
530
- confirmText: _ctx.confirmText || _ctx.translate("confirm"),
527
+ "btn-options": _ctx.btnOptions,
528
+ "btn-extra-text": _ctx.btnExtraText,
529
+ "buy-text": _ctx.buyText || _ctx.translate("buyNow"),
530
+ "add-cart-text": _ctx.addCartText || _ctx.translate("addToCart"),
531
+ "confirm-text": _ctx.confirmText || _ctx.translate("confirm"),
531
532
  onClickBtnOperate: _ctx.clickBtnOperate
532
533
  }, createSlots({ _: 2 }, [
533
534
  _ctx.getSlots("sku-operate") ? {
@@ -537,11 +538,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
537
538
  ]),
538
539
  key: "0"
539
540
  } : void 0
540
- ]), 1032, ["btnOptions", "btnExtraText", "buyText", "addCartText", "confirmText", "onClickBtnOperate"])
541
+ ]), 1032, ["btn-options", "btn-extra-text", "buy-text", "add-cart-text", "confirm-text", "onClickBtnOperate"])
541
542
  ])
542
543
  ]),
543
544
  _: 3
544
- }, 8, ["visible", "teleportDisable", "teleport"]);
545
+ }, 8, ["visible", "lock-scroll", "teleport-disable", "teleport"]);
545
546
  }
546
547
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
547
548
  export {
@@ -33,7 +33,7 @@ const _sfc_main = create({
33
33
  default: ""
34
34
  }
35
35
  },
36
- emits: ["click-step"],
36
+ emits: ["clickStep"],
37
37
  setup() {
38
38
  const { proxy } = getCurrentInstance();
39
39
  const parent = inject("parent");
@@ -17,7 +17,7 @@ const _sfc_main = create({
17
17
  default: false
18
18
  }
19
19
  },
20
- emits: ["click-step"],
20
+ emits: ["clickStep"],
21
21
  setup(props, { emit, slots }) {
22
22
  const state = reactive({
23
23
  children: []
@@ -34,7 +34,7 @@ const _sfc_main = create({
34
34
  child && state.children.push(child);
35
35
  };
36
36
  const onEmit = (index) => {
37
- emit("click-step", index);
37
+ emit("clickStep", index);
38
38
  };
39
39
  provide("parent", {
40
40
  relation,
@@ -113,13 +113,13 @@ const _sfc_main = create({
113
113
  });
114
114
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
115
115
  return openBlock(), createElementBlock("div", {
116
- class: "nut-sticky",
117
116
  ref: "rootRef",
117
+ class: "nut-sticky",
118
118
  style: normalizeStyle(_ctx.rootStyle)
119
119
  }, [
120
120
  createElementVNode("div", {
121
- class: "nut-sticky__box",
122
121
  ref: "stickyRef",
122
+ class: "nut-sticky__box",
123
123
  style: normalizeStyle(_ctx.stickyStyle)
124
124
  }, [
125
125
  renderSlot(_ctx.$slots, "default")
@@ -39,7 +39,7 @@ const _sfc_main = create({
39
39
  }
40
40
  },
41
41
  components: { ArrowDown2, ArrowUp2 },
42
- emits: ["title-click"],
42
+ emits: ["titleClick"],
43
43
  setup: (props, context) => {
44
44
  const state = reactive({
45
45
  direction: ""
@@ -56,7 +56,7 @@ const _sfc_main = create({
56
56
  };
57
57
  });
58
58
  const handleClick = () => {
59
- context.emit("title-click");
59
+ context.emit("titleClick");
60
60
  state.direction = !state.direction ? "up" : "";
61
61
  };
62
62
  onMounted(() => {
@@ -202,8 +202,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
202
202
  onTouchcancel: _cache[6] || (_cache[6] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
203
203
  }, [
204
204
  createElementVNode("view", {
205
- class: "nut-swipe__left",
206
205
  ref: "leftRef",
206
+ class: "nut-swipe__left",
207
207
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.onClick($event, "left", true))
208
208
  }, [
209
209
  renderSlot(_ctx.$slots, "left")
@@ -215,8 +215,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
215
215
  renderSlot(_ctx.$slots, "default")
216
216
  ]),
217
217
  createElementVNode("view", {
218
- class: "nut-swipe__right",
219
218
  ref: "rightRef",
219
+ class: "nut-swipe__right",
220
220
  onClick: _cache[2] || (_cache[2] = ($event) => _ctx.onClick($event, "right", true))
221
221
  }, [
222
222
  renderSlot(_ctx.$slots, "right")
@@ -25,8 +25,8 @@ const _sfc_main = create({
25
25
  }
26
26
  });
27
27
  const _hoisted_1 = {
28
- class: "nut-swipe-group",
29
- ref: "swipeGroupRef"
28
+ ref: "swipeGroupRef",
29
+ class: "nut-swipe-group"
30
30
  };
31
31
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
32
32
  return openBlock(), createElementBlock("div", _hoisted_1, [
@@ -252,7 +252,7 @@ const _sfc_main = create({
252
252
  });
253
253
  };
254
254
  const autoplay = () => {
255
- if (props.autoPlay <= 0 || childCount.value <= 1)
255
+ if (+props.autoPlay <= 0 || childCount.value <= 1)
256
256
  return;
257
257
  stopAutoPlay();
258
258
  state.autoplayTimer = setTimeout(() => {
@@ -353,7 +353,7 @@ const _sfc_main = create({
353
353
  watch(
354
354
  () => props.autoPlay,
355
355
  (val) => {
356
- val > 0 ? autoplay() : stopAutoPlay();
356
+ +val > 0 ? autoplay() : stopAutoPlay();
357
357
  }
358
358
  );
359
359
  return {
@@ -391,11 +391,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
391
391
  }, [
392
392
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.state.children.length, (item, index) => {
393
393
  return openBlock(), createElementBlock("i", {
394
+ key: index,
394
395
  style: normalizeStyle({
395
396
  backgroundColor: _ctx.activePagination === index ? _ctx.paginationColor : "#ddd"
396
397
  }),
397
- class: normalizeClass({ active: _ctx.activePagination === index }),
398
- key: index
398
+ class: normalizeClass({ active: _ctx.activePagination === index })
399
399
  }, null, 6);
400
400
  }), 128))
401
401
  ], 2)) : createCommentVNode("", true)
@@ -93,8 +93,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
93
93
  const _component_Loading1 = resolveComponent("Loading1");
94
94
  return openBlock(), createElementBlock("view", {
95
95
  class: normalizeClass(_ctx.classes),
96
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
97
- style: normalizeStyle(_ctx.style)
96
+ style: normalizeStyle(_ctx.style),
97
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
98
98
  }, [
99
99
  createElementVNode("view", _hoisted_1, [
100
100
  _ctx.loading ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
@@ -34,7 +34,7 @@ const _sfc_main = create({
34
34
  default: false
35
35
  }
36
36
  },
37
- emits: ["tab-switch", "update:modelValue"],
37
+ emits: ["tabSwitch", "update:modelValue"],
38
38
  setup(props, { emit }) {
39
39
  const { bottom, placeholder } = toRefs(props);
40
40
  const height = ref();
@@ -46,7 +46,7 @@ const _sfc_main = create({
46
46
  function changeIndex(index2, active) {
47
47
  emit("update:modelValue", active);
48
48
  parentData.modelValue = active;
49
- emit("tab-switch", parentData.children[index2], active);
49
+ emit("tabSwitch", parentData.children[index2], active);
50
50
  }
51
51
  let parentData = reactive({
52
52
  children: mdValue.children,
@@ -160,10 +160,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
160
160
  createElementVNode("view", _hoisted_2, [
161
161
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (item) => {
162
162
  return openBlock(), createElementBlock("span", {
163
- class: normalizeClass(["nut-table__main__head__tr__th", _ctx.cellClasses(item)]),
164
163
  key: item.key,
165
- onClick: ($event) => _ctx.handleSorterClick(item),
166
- style: normalizeStyle(item.stylehead)
164
+ class: normalizeClass(["nut-table__main__head__tr__th", _ctx.cellClasses(item)]),
165
+ style: normalizeStyle(item.stylehead),
166
+ onClick: ($event) => _ctx.handleSorterClick(item)
167
167
  }, [
168
168
  createTextVNode(toDisplayString(item.title) + " ", 1),
169
169
  renderSlot(_ctx.$slots, "icon"),
@@ -179,13 +179,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
179
179
  createElementVNode("view", _hoisted_4, [
180
180
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.curData, (item) => {
181
181
  return openBlock(), createElementBlock("view", {
182
- class: "nut-table__main__body__tr",
183
- key: item
182
+ key: item,
183
+ class: "nut-table__main__body__tr"
184
184
  }, [
185
185
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.sortDataItem(), ([value, render]) => {
186
186
  return openBlock(), createElementBlock("span", {
187
- class: normalizeClass(["nut-table__main__body__tr__td", _ctx.cellClasses(_ctx.getColumnItem(value))]),
188
187
  key: value,
188
+ class: normalizeClass(["nut-table__main__body__tr__td", _ctx.cellClasses(_ctx.getColumnItem(value))]),
189
189
  style: normalizeStyle(_ctx.getColumnItemStyle(value))
190
190
  }, [
191
191
  typeof item[value] === "function" || typeof render === "function" ? (openBlock(), createBlock(_component_RenderColumn, {
@@ -438,8 +438,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
438
438
  const _component_JoySmile = resolveComponent("JoySmile");
439
439
  const _component_nut_sticky = resolveComponent("nut-sticky");
440
440
  return openBlock(), createElementBlock("view", {
441
- class: normalizeClass(["nut-tabs", [_ctx.direction]]),
442
- ref: "container"
441
+ ref: "container",
442
+ class: normalizeClass(["nut-tabs", [_ctx.direction]])
443
443
  }, [
444
444
  _ctx.sticky ? (openBlock(), createBlock(_component_nut_sticky, {
445
445
  key: 0,
@@ -449,16 +449,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
449
449
  }, {
450
450
  default: withCtx(() => [
451
451
  createElementVNode("view", {
452
+ ref: "navRef",
452
453
  class: normalizeClass(["nut-tabs__titles", { [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll, [_ctx.size]: _ctx.size }]),
453
- style: normalizeStyle(_ctx.tabsNavStyle),
454
- ref: "navRef"
454
+ style: normalizeStyle(_ctx.tabsNavStyle)
455
455
  }, [
456
456
  _ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index) => {
457
457
  return openBlock(), createElementBlock("view", {
458
+ key: item.paneKey,
458
459
  class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
459
460
  style: normalizeStyle(_ctx.titleStyle),
460
- onClick: ($event) => _ctx.tabChange(item, index),
461
- key: item.paneKey
461
+ onClick: ($event) => _ctx.tabChange(item, index)
462
462
  }, [
463
463
  _ctx.type == "line" ? (openBlock(), createElementBlock("view", {
464
464
  key: 0,
@@ -482,18 +482,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
482
482
  _: 3
483
483
  }, 8, ["top", "container", "onScroll"])) : (openBlock(), createElementBlock("view", {
484
484
  key: 1,
485
+ ref: "navRef",
485
486
  class: normalizeClass(["nut-tabs__titles", { [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll, "scroll-vertical": _ctx.getScrollY, [_ctx.size]: _ctx.size }]),
486
- style: normalizeStyle(_ctx.tabsNavStyle),
487
- ref: "navRef"
487
+ style: normalizeStyle(_ctx.tabsNavStyle)
488
488
  }, [
489
489
  _ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index) => {
490
490
  return openBlock(), createElementBlock("view", {
491
- class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
492
- style: normalizeStyle(_ctx.titleStyle),
493
- onClick: ($event) => _ctx.tabChange(item, index),
494
491
  key: item.paneKey,
495
492
  ref_for: true,
496
- ref: (e) => _ctx.setTabItemRef(e, index)
493
+ ref: (e) => _ctx.setTabItemRef(e, index),
494
+ class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
495
+ style: normalizeStyle(_ctx.titleStyle),
496
+ onClick: ($event) => _ctx.tabChange(item, index)
497
497
  }, [
498
498
  _ctx.type == "line" ? (openBlock(), createElementBlock("view", {
499
499
  key: 0,
@@ -514,8 +514,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
514
514
  }), 128))
515
515
  ], 6)),
516
516
  createElementVNode("view", {
517
- class: "nut-tabs__content",
518
517
  ref: "tabsContentRef",
518
+ class: "nut-tabs__content",
519
519
  style: normalizeStyle(_ctx.contentStyle),
520
520
  onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
521
521
  onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
@@ -168,12 +168,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
168
168
  disabled: _ctx.disabled,
169
169
  readonly: _ctx.readonly,
170
170
  value: _ctx.modelValue,
171
- onInput: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args)),
172
- onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
173
- onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
174
171
  maxlength: _ctx.maxLength,
175
172
  placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
176
173
  autofocus: _ctx.autofocus,
174
+ onInput: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args)),
175
+ onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
176
+ onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
177
177
  onChange: _cache[3] || (_cache[3] = (...args) => _ctx.endComposing && _ctx.endComposing(...args)),
178
178
  onCompositionend: _cache[4] || (_cache[4] = (...args) => _ctx.endComposing && _ctx.endComposing(...args)),
179
179
  onCompositionstart: _cache[5] || (_cache[5] = (...args) => _ctx.startComposing && _ctx.startComposing(...args))
@@ -81,8 +81,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
81
81
  createElementVNode("view", _hoisted_2, [
82
82
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.renderData, (item) => {
83
83
  return openBlock(), createElementBlock("view", {
84
- class: normalizeClass(_ctx.getClass(item)),
85
84
  key: item,
85
+ class: normalizeClass(_ctx.getClass(item)),
86
86
  onClick: ($event) => _ctx.handleTime(item)
87
87
  }, toDisplayString(item), 11, _hoisted_3);
88
88
  }), 128))
@@ -1,6 +1,6 @@
1
1
  import { computed, provide, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, renderSlot } from "vue";
2
2
  import { c as createComponent } from "./component-0fbad28e.js";
3
- import { P as Popup } from "./index-7fe29a2f.js";
3
+ import { P as Popup } from "./index-3032df15.js";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
6
6
  import "@nutui/icons-vue";
@@ -85,7 +85,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
85
85
  position: "bottom",
86
86
  closeable: "",
87
87
  round: "",
88
- teleportDisable: _ctx.teleportDisable,
88
+ "teleport-disable": _ctx.teleportDisable,
89
89
  visible: _ctx.visible,
90
90
  style: normalizeStyle(_ctx.popStyle),
91
91
  "lock-scroll": _ctx.lockScroll,
@@ -112,7 +112,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
112
112
  ], 2)
113
113
  ]),
114
114
  _: 3
115
- }, 8, ["teleportDisable", "visible", "style", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
115
+ }, 8, ["teleport-disable", "visible", "style", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
116
116
  }
117
117
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
118
118
  export {
@@ -25,7 +25,7 @@ import Popover from "./Popover.js";
25
25
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
26
26
  import "../locale/lang";
27
27
  import "./renderIcon-3d0fd47c.js";
28
- import "./index-7fe29a2f.js";
28
+ import "./index-3032df15.js";
29
29
  import "./Overlay.js";
30
30
  const { create } = createComponent("tour");
31
31
  const _sfc_main = create({
@@ -215,20 +215,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
215
215
  i == _ctx.active ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
216
216
  _ctx.showTour ? (openBlock(), createElementBlock("div", {
217
217
  key: 0,
218
+ id: "nut-tour-popid",
218
219
  class: normalizeClass(["nut-tour-mask", [_ctx.mask ? "" : "nut-tour-mask-none"]]),
219
- style: normalizeStyle(_ctx.maskStyle),
220
- id: "nut-tour-popid"
220
+ style: normalizeStyle(_ctx.maskStyle)
221
221
  }, null, 6)) : createCommentVNode("", true),
222
222
  createVNode(_component_nut_popover, {
223
223
  visible: _ctx.showPopup,
224
224
  "onUpdate:visible": _cache[5] || (_cache[5] = ($event) => _ctx.showPopup = $event),
225
225
  location: step.location || _ctx.location,
226
- targetId: "nut-tour-popid",
227
- bgColor: _ctx.bgColor,
226
+ "target-id": "nut-tour-popid",
227
+ "bg-color": _ctx.bgColor,
228
228
  theme: _ctx.theme,
229
229
  "close-on-click-outside": false,
230
230
  offset: step.popoverOffset || [0, 12],
231
- arrowOffset: step.arrowOffset || 0
231
+ "arrow-offset": step.arrowOffset || 0
232
232
  }, {
233
233
  content: withCtx(() => [
234
234
  renderSlot(_ctx.$slots, "default", {}, () => [
@@ -272,7 +272,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
272
272
  ])
273
273
  ]),
274
274
  _: 2
275
- }, 1032, ["visible", "location", "bgColor", "theme", "offset", "arrowOffset"])
275
+ }, 1032, ["visible", "location", "bg-color", "theme", "offset", "arrow-offset"])
276
276
  ], 64)) : createCommentVNode("", true)
277
277
  ]);
278
278
  }), 128))