@nutui/nutui 3.1.17 → 3.1.19-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 (155) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/LICENSE +1 -1
  3. package/README.md +7 -1
  4. package/dist/nutui.d.ts +3 -1
  5. package/dist/nutui.es.js +2335 -1280
  6. package/dist/nutui.umd.js +2350 -1293
  7. package/dist/packages/_es/ActionSheet.js +8 -3
  8. package/dist/packages/_es/Address.js +17 -11
  9. package/dist/packages/_es/Audio.js +2 -2
  10. package/dist/packages/_es/AudioOperate.js +125 -0
  11. package/dist/packages/_es/Avatar.js +2 -2
  12. package/dist/packages/_es/BackTop.js +7 -4
  13. package/dist/packages/_es/Badge.js +2 -2
  14. package/dist/packages/_es/Barrage.js +2 -2
  15. package/dist/packages/_es/Button.js +2 -2
  16. package/dist/packages/_es/Calendar.js +10 -687
  17. package/dist/packages/_es/CalendarItem.js +10 -0
  18. package/dist/packages/_es/Card.js +2 -2
  19. package/dist/packages/_es/Cascader.js +2 -2
  20. package/dist/packages/_es/Cell.js +25 -18
  21. package/dist/packages/_es/CellGroup.js +2 -2
  22. package/dist/packages/_es/Checkbox.js +4 -4
  23. package/dist/packages/_es/CheckboxGroup.js +4 -4
  24. package/dist/packages/_es/CircleProgress.js +2 -2
  25. package/dist/packages/_es/Col.js +2 -2
  26. package/dist/packages/_es/Collapse.js +2 -2
  27. package/dist/packages/_es/CollapseItem.js +31 -19
  28. package/dist/packages/_es/CountDown.js +4 -2
  29. package/dist/packages/_es/CountUp.js +25 -16
  30. package/dist/packages/_es/DatePicker.js +83 -47
  31. package/dist/packages/_es/Dialog.js +7 -5
  32. package/dist/packages/_es/Divider.js +2 -2
  33. package/dist/packages/_es/Drag.js +4 -4
  34. package/dist/packages/_es/Elevator.js +3 -3
  35. package/dist/packages/_es/Empty.js +2 -2
  36. package/dist/packages/_es/FixedNav.js +2 -2
  37. package/dist/packages/_es/Form.js +8 -6
  38. package/dist/packages/_es/FormItem.js +9 -6
  39. package/dist/packages/_es/Grid.js +2 -2
  40. package/dist/packages/_es/GridItem.js +3 -3
  41. package/dist/packages/_es/Icon.js +2 -2
  42. package/dist/packages/_es/ImagePreview.js +11 -6
  43. package/dist/packages/_es/Indicator.js +2 -2
  44. package/dist/packages/_es/InfiniteLoading.js +2 -2
  45. package/dist/packages/_es/Input.js +290 -66
  46. package/dist/packages/_es/InputNumber.js +2 -2
  47. package/dist/packages/_es/Layout.js +2 -2
  48. package/dist/packages/_es/List.js +124 -0
  49. package/dist/packages/_es/Menu.js +3 -3
  50. package/dist/packages/_es/MenuItem.js +4 -4
  51. package/dist/packages/_es/Navbar.js +31 -66
  52. package/dist/packages/_es/NoticeBar.js +41 -22
  53. package/dist/packages/_es/Notify.js +9 -5
  54. package/dist/packages/_es/NumberKeyboard.js +9 -4
  55. package/dist/packages/_es/OldPicker.js +484 -0
  56. package/dist/packages/_es/OverLay.js +2 -2
  57. package/dist/packages/_es/Pagination.js +2 -2
  58. package/dist/packages/_es/Picker.js +164 -157
  59. package/dist/packages/_es/Popover.js +7 -4
  60. package/dist/packages/_es/Popup.js +4 -4
  61. package/dist/packages/_es/Price.js +2 -2
  62. package/dist/packages/_es/Progress.js +14 -22
  63. package/dist/packages/_es/PullRefresh.js +363 -0
  64. package/dist/packages/_es/Radio.js +3 -3
  65. package/dist/packages/_es/RadioGroup.js +2 -2
  66. package/dist/packages/_es/Range.js +131 -21
  67. package/dist/packages/_es/Rate.js +2 -2
  68. package/dist/packages/_es/Row.js +2 -2
  69. package/dist/packages/_es/SearchBar.js +2 -2
  70. package/dist/packages/_es/ShortPassword.js +9 -4
  71. package/dist/packages/_es/SideNavBar.js +2 -2
  72. package/dist/packages/_es/SideNavBarItem.js +2 -2
  73. package/dist/packages/_es/Signature.js +25 -6
  74. package/dist/packages/_es/Skeleton.js +2 -2
  75. package/dist/packages/_es/Sku.js +31 -13
  76. package/dist/packages/_es/Step.js +28 -12
  77. package/dist/packages/_es/Steps.js +8 -3
  78. package/dist/packages/_es/Sticky.js +3 -3
  79. package/dist/packages/_es/SubSideNavBar.js +2 -2
  80. package/dist/packages/_es/Swipe.js +3 -3
  81. package/dist/packages/_es/Swiper.js +3 -3
  82. package/dist/packages/_es/SwiperItem.js +3 -3
  83. package/dist/packages/_es/Switch.js +2 -2
  84. package/dist/packages/_es/TabPane.js +2 -2
  85. package/dist/packages/_es/Tabbar.js +2 -2
  86. package/dist/packages/_es/TabbarItem.js +23 -8
  87. package/dist/packages/_es/Table.js +2 -2
  88. package/dist/packages/_es/Tabs.js +8 -5
  89. package/dist/packages/_es/Tag.js +11 -5
  90. package/dist/packages/_es/TextArea.js +38 -6
  91. package/dist/packages/_es/TimeDetail.js +2 -2
  92. package/dist/packages/_es/TimePannel.js +2 -2
  93. package/dist/packages/_es/TimeSelect.js +8 -3
  94. package/dist/packages/_es/Toast.js +16 -9
  95. package/dist/packages/_es/Uploader.js +2 -4
  96. package/dist/packages/_es/Video.js +12 -8
  97. package/dist/packages/_es/common.js +2 -2
  98. package/dist/packages/_es/component.js +2 -2
  99. package/dist/packages/_es/index.js +6 -8
  100. package/dist/packages/_es/index2.js +9 -32
  101. package/dist/packages/_es/index3.js +29 -57
  102. package/dist/packages/_es/index4.js +64 -0
  103. package/dist/packages/_es/index5.js +687 -0
  104. package/dist/packages/_es/plugin-vue_export-helper.js +2 -2
  105. package/dist/packages/_es/pxCheck.js +2 -2
  106. package/dist/packages/_es/raf.js +2 -2
  107. package/dist/packages/_es/util.js +2 -2
  108. package/dist/packages/actionsheet/index.scss +7 -6
  109. package/dist/packages/badge/index.scss +11 -13
  110. package/dist/packages/button/index.scss +6 -5
  111. package/dist/packages/calendar/index.scss +9 -4
  112. package/dist/packages/calendaritem/index.scss +0 -207
  113. package/dist/packages/cell/index.scss +9 -9
  114. package/dist/packages/cellgroup/index.scss +1 -1
  115. package/dist/packages/checkbox/index.scss +4 -3
  116. package/dist/packages/collapseitem/index.scss +21 -11
  117. package/dist/packages/countdown/index.scss +3 -1
  118. package/dist/packages/divider/index.scss +8 -8
  119. package/dist/packages/elevator/index.scss +36 -36
  120. package/dist/packages/formitem/index.scss +15 -8
  121. package/dist/packages/indicator/index.scss +1 -1
  122. package/dist/packages/input/index.scss +70 -24
  123. package/dist/packages/inputnumber/index.scss +4 -2
  124. package/dist/packages/list/index.scss +24 -0
  125. package/dist/packages/menu/index.scss +3 -3
  126. package/dist/packages/navbar/index.scss +30 -8
  127. package/dist/packages/noticebar/index.scss +10 -5
  128. package/dist/packages/notify/index.scss +10 -0
  129. package/dist/packages/numberkeyboard/index.scss +22 -21
  130. package/dist/packages/oldpicker/index.scss +131 -0
  131. package/dist/packages/picker/index.scss +38 -32
  132. package/dist/packages/progress/index.scss +24 -19
  133. package/dist/packages/radio/index.scss +7 -6
  134. package/dist/packages/range/index.scss +113 -6
  135. package/dist/packages/searchbar/index.scss +7 -7
  136. package/dist/packages/sidenavbaritem/index.scss +5 -5
  137. package/dist/packages/step/index.scss +29 -29
  138. package/dist/packages/subsidenavbar/index.scss +10 -8
  139. package/dist/packages/swiper/index.scss +4 -4
  140. package/dist/packages/switch/index.scss +8 -8
  141. package/dist/packages/tabbar/index.scss +3 -2
  142. package/dist/packages/tabbaritem/index.scss +19 -3
  143. package/dist/packages/tabs/index.scss +1 -0
  144. package/dist/packages/timedetail/index.scss +13 -13
  145. package/dist/packages/timepannel/index.scss +7 -7
  146. package/dist/packages/timeselect/index.scss +3 -3
  147. package/dist/packages/toast/index.scss +8 -7
  148. package/dist/packages/uploader/index.scss +4 -4
  149. package/dist/style.css +1 -1
  150. package/dist/styles/themes/default.scss +43 -41
  151. package/dist/styles/themes/jdt.scss +91 -0
  152. package/dist/styles/variables-jdt.scss +728 -0
  153. package/dist/styles/variables.scss +322 -38
  154. package/package.json +3 -2
  155. package/dist/styles/themes/jdd.scss +0 -2
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, withDirectives, normalizeStyle, vModelText, Fragment, renderList, createCommentVNode } from "vue";
@@ -44,6 +44,10 @@ const _sfc_main = create({
44
44
  length: {
45
45
  type: [String, Number],
46
46
  default: 6
47
+ },
48
+ isWrapTeleport: {
49
+ type: Boolean,
50
+ default: true
47
51
  }
48
52
  },
49
53
  emits: ["update:modelValue", "update:visible", "complete", "change", "ok", "tips", "close", "cancel"],
@@ -160,7 +164,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
160
164
  closeable: true,
161
165
  onClickCloseIcon: _ctx.closeIcon,
162
166
  "close-on-click-overlay": _ctx.closeOnClickOverlay,
163
- onClickOverlay: _ctx.close
167
+ onClickOverlay: _ctx.close,
168
+ isWrapTeleport: _ctx.isWrapTeleport
164
169
  }, {
165
170
  default: withCtx(() => [
166
171
  createElementVNode("view", _hoisted_1, toDisplayString(_ctx.title), 1),
@@ -217,7 +222,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
217
222
  ])) : createCommentVNode("", true)
218
223
  ]),
219
224
  _: 1
220
- }, 8, ["visible", "onClickCloseIcon", "close-on-click-overlay", "onClickOverlay"])
225
+ }, 8, ["visible", "onClickCloseIcon", "close-on-click-overlay", "onClickOverlay", "isWrapTeleport"])
221
226
  ]);
222
227
  }
223
228
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
22
- * (c) 2021 @jdf2e.
21
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
22
+ * (c) 2022 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
25
  import { ref, reactive, computed, onMounted, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot } from "vue";
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { computed, openBlock, createElementBlock, withModifiers, createElementVNode, toDisplayString } from "vue";
@@ -1,9 +1,28 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1
20
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
21
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
22
+ * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
6
- import { ref, computed, reactive, onMounted, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createVNode, withCtx, createTextVNode } from "vue";
25
+ import { ref, computed, reactive, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, withCtx, createTextVNode } from "vue";
7
26
  import { c as createComponent } from "./component.js";
8
27
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
28
  const { componentName, create } = createComponent("signature");
@@ -114,7 +133,7 @@ const _sfc_main = create({
114
133
  addEvent();
115
134
  }
116
135
  });
117
- return { canvas, wrap, isCanvasSupported, confirm, clear, classes };
136
+ return __spreadProps(__spreadValues({}, toRefs(state)), { canvas, wrap, isCanvasSupported, confirm, clear, classes });
118
137
  }
119
138
  });
120
139
  const _hoisted_1 = {
@@ -134,12 +153,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
134
153
  class: normalizeClass(_ctx.classes)
135
154
  }, [
136
155
  createElementVNode("div", _hoisted_1, [
137
- _ctx.isCanvasSupported ? (openBlock(), createElementBlock("canvas", {
156
+ (() => _ctx.isCanvasSupported()) ? (openBlock(), createElementBlock("canvas", {
138
157
  key: 0,
139
158
  ref: "canvas",
140
159
  height: _ctx.canvasHeight,
141
160
  width: _ctx.canvasWidth
142
- }, null, 8, _hoisted_2)) : (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(_ctx.unSupportTpl), 1))
161
+ }, null, 8, _hoisted_2)) : (openBlock(), createElementBlock("p", _hoisted_3, _toDisplayString(_ctx.unSupportTpl), 1))
143
162
  ], 512),
144
163
  createVNode(_component_nut_button, {
145
164
  class: "nut-signature-btn",
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { c as createComponent } from "./component.js";
@@ -1,12 +1,35 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1
20
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
21
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
22
+ * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
6
25
  import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
7
26
  import { c as createComponent } from "./component.js";
8
27
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
28
  import { T as TypeOfFun } from "./util.js";
29
+ import { popupProps } from "./Popup.js";
30
+ import "./OverLay.js";
31
+ import "./Icon.js";
32
+ import "./pxCheck.js";
10
33
  const { componentName: componentName$4, create: create$4 } = createComponent("sku-header");
11
34
  const _sfc_main$4 = create$4({
12
35
  props: {
@@ -232,9 +255,6 @@ const _sfc_main$1 = create$1({
232
255
  };
233
256
  return mapD[type];
234
257
  };
235
- onMounted(() => {
236
- console.log(slots);
237
- });
238
258
  const getSlots = (name) => slots[name];
239
259
  const clickBtnOperate = (btn) => {
240
260
  emit("clickBtnOperate", btn);
@@ -278,11 +298,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
278
298
  var SkuOperate = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
279
299
  const { componentName, create } = createComponent("sku");
280
300
  const _sfc_main = create({
281
- props: {
282
- visible: {
283
- type: Boolean,
284
- default: false
285
- },
301
+ props: __spreadProps(__spreadValues({}, popupProps), {
286
302
  sku: {
287
303
  type: Array,
288
304
  default: []
@@ -327,7 +343,7 @@ const _sfc_main = create({
327
343
  type: String,
328
344
  default: "\u786E\u5B9A"
329
345
  }
330
- },
346
+ }),
331
347
  emits: [
332
348
  "update:visible",
333
349
  "selectSku",
@@ -428,7 +444,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
428
444
  onClickCloseIcon: _cache[1] || (_cache[1] = ($event) => _ctx.closePopup("icon")),
429
445
  onClickOverlay: _cache[2] || (_cache[2] = ($event) => _ctx.closePopup("overlay")),
430
446
  onClose: _cache[3] || (_cache[3] = ($event) => _ctx.closePopup("close")),
431
- style: { "height": "75%" }
447
+ style: { "height": "75%" },
448
+ isWrapTeleport: _ctx.isWrapTeleport,
449
+ teleport: _ctx.teleport
432
450
  }, {
433
451
  default: withCtx(() => [
434
452
  createElementVNode("view", _hoisted_1, [
@@ -491,7 +509,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
491
509
  ])
492
510
  ]),
493
511
  _: 3
494
- }, 8, ["visible"]);
512
+ }, 8, ["visible", "isWrapTeleport", "teleport"]);
495
513
  }
496
514
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
497
515
  export { index as default };
@@ -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.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
22
- * (c) 2021 @jdf2e.
21
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
22
+ * (c) 2022 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
- import { getCurrentInstance, inject, reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, Fragment, toDisplayString, createCommentVNode } from "vue";
25
+ import { getCurrentInstance, inject, reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, Fragment, toDisplayString, createCommentVNode, renderSlot } 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
  const { create, componentName } = createComponent("step");
@@ -49,6 +49,7 @@ const _sfc_main = create({
49
49
  default: "12px"
50
50
  }
51
51
  },
52
+ emits: ["click-step"],
52
53
  setup(props, { emit, slots }) {
53
54
  const { proxy } = getCurrentInstance();
54
55
  const parent = inject("parent");
@@ -73,9 +74,13 @@ const _sfc_main = create({
73
74
  [`${prefixCls}-${status.value}`]: true
74
75
  };
75
76
  });
77
+ const handleClickStep = () => {
78
+ parent["onEmit"](index2.value);
79
+ };
76
80
  return __spreadProps(__spreadValues({}, toRefs(state)), {
77
81
  index: index2,
78
- classes
82
+ classes,
83
+ handleClickStep
79
84
  });
80
85
  }
81
86
  });
@@ -87,11 +92,17 @@ const _hoisted_3 = {
87
92
  };
88
93
  const _hoisted_4 = { class: "nut-step-main" };
89
94
  const _hoisted_5 = { class: "nut-step-title" };
90
- const _hoisted_6 = ["innerHTML"];
95
+ const _hoisted_6 = { key: 0 };
96
+ const _hoisted_7 = {
97
+ key: 0,
98
+ class: "nut-step-content"
99
+ };
100
+ const _hoisted_8 = ["innerHTML"];
91
101
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
92
102
  const _component_nut_icon = resolveComponent("nut-icon");
93
103
  return openBlock(), createElementBlock("view", {
94
- class: normalizeClass(_ctx.classes)
104
+ class: normalizeClass(_ctx.classes),
105
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClickStep && _ctx.handleClickStep(...args))
95
106
  }, [
96
107
  createElementVNode("view", _hoisted_1, [
97
108
  _hoisted_2,
@@ -108,12 +119,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
108
119
  ], 2)
109
120
  ]),
110
121
  createElementVNode("view", _hoisted_4, [
111
- createElementVNode("view", _hoisted_5, toDisplayString(_ctx.title), 1),
112
- _ctx.content ? (openBlock(), createElementBlock("view", {
113
- key: 0,
114
- class: "nut-step-content",
115
- innerHTML: _ctx.content
116
- }, null, 8, _hoisted_6)) : createCommentVNode("", true)
122
+ createElementVNode("view", _hoisted_5, [
123
+ !_ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
124
+ renderSlot(_ctx.$slots, "title")
125
+ ]),
126
+ _ctx.content || _ctx.$slots.content ? (openBlock(), createElementBlock("view", _hoisted_7, [
127
+ !_ctx.$slots.content ? (openBlock(), createElementBlock("span", {
128
+ key: 0,
129
+ innerHTML: _ctx.content
130
+ }, null, 8, _hoisted_8)) : createCommentVNode("", true),
131
+ renderSlot(_ctx.$slots, "content")
132
+ ])) : createCommentVNode("", true)
117
133
  ])
118
134
  ], 2);
119
135
  }
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { reactive, computed, provide, h } from "vue";
@@ -21,6 +21,7 @@ const _sfc_main = create({
21
21
  default: false
22
22
  }
23
23
  },
24
+ emits: ["click-step"],
24
25
  setup(props, { emit, slots }) {
25
26
  const state = reactive({
26
27
  children: []
@@ -36,10 +37,14 @@ const _sfc_main = create({
36
37
  const relation = (child) => {
37
38
  child && state.children.push(child);
38
39
  };
40
+ const onEmit = (index) => {
41
+ emit("click-step", index);
42
+ };
39
43
  provide("parent", {
40
44
  relation,
41
45
  state,
42
- props
46
+ props,
47
+ onEmit
43
48
  });
44
49
  return () => {
45
50
  var _a;
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { ref, reactive, computed, watch, onMounted, onUnmounted, h, unref } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import { u as useRect } from "./index2.js";
8
+ import { u as useRect } from "./index3.js";
9
9
  const { componentName, create } = createComponent("sticky");
10
10
  const _sfc_main = create({
11
11
  props: {
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
22
- * (c) 2021 @jdf2e.
21
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
22
+ * (c) 2022 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
25
  import { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, toDisplayString, createVNode, normalizeStyle, renderSlot } from "vue";
@@ -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.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
22
- * (c) 2021 @jdf2e.
21
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
22
+ * (c) 2022 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
- import { u as useTouch } from "./index3.js";
25
+ import { u as useTouch } from "./index4.js";
26
26
  import { computed, ref, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
27
27
  import { c as createComponent } from "./component.js";
28
28
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { reactive, ref, computed, provide, onMounted, nextTick, onActivated, onDeactivated, onBeforeUnmount, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import { u as useExpose } from "./index.js";
8
+ import { u as useExpose } from "./index2.js";
9
9
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
10
10
  const DISTANCE = 5;
11
11
  function useTouch() {
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { inject, getCurrentInstance, reactive, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import { u as useExpose } from "./index.js";
8
+ import { u as useExpose } from "./index2.js";
9
9
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
10
10
  const { create, componentName } = createComponent("swiper-item");
11
11
  const _sfc_main = create({
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } from "vue";
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { inject, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { reactive, provide, watch, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { c as createComponent } from "./component.js";
7
- import { useRouter } from "vue-router";
8
- import { inject, reactive, getCurrentInstance, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, toDisplayString, createCommentVNode, createVNode } from "vue";
7
+ import { u as useRouter } from "./index.js";
8
+ import { inject, reactive, getCurrentInstance, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, toDisplayString, createCommentVNode, createVNode } from "vue";
9
9
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
10
10
  const { create } = createComponent("tabbar-item");
11
11
  const _sfc_main = create({
@@ -38,6 +38,10 @@ const _sfc_main = create({
38
38
  type: String,
39
39
  default: "nut-icon"
40
40
  },
41
+ dot: {
42
+ type: Boolean,
43
+ default: false
44
+ },
41
45
  fontClassName: {
42
46
  type: String,
43
47
  default: "nutui-iconfont"
@@ -79,7 +83,11 @@ const _sfc_main = create({
79
83
  }
80
84
  if (parent.children[value].to) {
81
85
  let to = parent.children[value].to;
82
- router.push(to);
86
+ if (to && router) {
87
+ router.push(to);
88
+ } else {
89
+ location.replace(to);
90
+ }
83
91
  }
84
92
  });
85
93
  });
@@ -98,7 +106,11 @@ const _hoisted_3 = {
98
106
  key: 1,
99
107
  class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums"
100
108
  };
101
- const _hoisted_4 = { key: 2 };
109
+ const _hoisted_4 = {
110
+ key: 1,
111
+ class: "nut-tabbar-item_icon-box_dot"
112
+ };
113
+ const _hoisted_5 = { key: 2 };
102
114
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
103
115
  const _component_nut_icon = resolveComponent("nut-icon");
104
116
  return openBlock(), createElementBlock("div", {
@@ -109,8 +121,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
109
121
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.change(_ctx.state.index))
110
122
  }, [
111
123
  createElementVNode("view", _hoisted_1, [
112
- _ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString("99+"))) : createCommentVNode("", true),
113
- _ctx.icon ? (openBlock(), createElementBlock("view", _hoisted_4, [
124
+ !_ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
125
+ _ctx.num && _ctx.num <= 99 ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString("99+"))) : createCommentVNode("", true)
126
+ ], 64)) : createCommentVNode("", true),
127
+ _ctx.dot ? (openBlock(), createElementBlock("div", _hoisted_4)) : createCommentVNode("", true),
128
+ _ctx.icon ? (openBlock(), createElementBlock("view", _hoisted_5, [
114
129
  createVNode(_component_nut_icon, {
115
130
  class: "nut-tabbar-item_icon-box_icon",
116
131
  size: _ctx.state.size,
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
22
- * (c) 2021 @jdf2e.
21
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
22
+ * (c) 2022 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
25
  import { c as createComponent } from "./component.js";
@@ -19,8 +19,8 @@ var __publicField = (obj, key, value) => {
19
19
  return value;
20
20
  };
21
21
  /*!
22
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
23
- * (c) 2021 @jdf2e.
22
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
23
+ * (c) 2022 @jdf2e.
24
24
  * Released under the MIT License.
25
25
  */
26
26
  import { p as pxCheck } from "./pxCheck.js";
@@ -103,13 +103,16 @@ const _sfc_main = create({
103
103
  }
104
104
  });
105
105
  };
106
- const init = (vnodes = slots.default()) => {
106
+ const init = (vnodes = ((_a) => (_a = slots.default) == null ? void 0 : _a.call(slots))()) => {
107
107
  titles.value = [];
108
- if (vnodes.length) {
108
+ if (vnodes && vnodes.length) {
109
109
  renderTitles(vnodes);
110
110
  }
111
111
  };
112
- watch(() => slots.default(), (vnodes) => {
112
+ watch(() => {
113
+ var _a;
114
+ return (_a = slots.default) == null ? void 0 : _a.call(slots);
115
+ }, (vnodes) => {
113
116
  init(vnodes);
114
117
  });
115
118
  watch(() => props.modelValue, (value) => {
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode } from "vue";
@@ -32,7 +32,7 @@ const _sfc_main = create({
32
32
  default: false
33
33
  }
34
34
  },
35
- emits: ["close"],
35
+ emits: ["close", "click"],
36
36
  setup(props, { emit }) {
37
37
  const { type, color, plain, round, mark, textColor } = toRefs(props);
38
38
  const classes = computed(() => {
@@ -68,10 +68,15 @@ const _sfc_main = create({
68
68
  event.stopPropagation();
69
69
  emit("close", event);
70
70
  };
71
+ const onClick = (event) => {
72
+ event.stopPropagation();
73
+ emit("click", event);
74
+ };
71
75
  return {
72
76
  classes,
73
77
  getStyle,
74
- onClose
78
+ onClose,
79
+ onClick
75
80
  };
76
81
  }
77
82
  });
@@ -79,7 +84,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
79
84
  const _component_nut_icon = resolveComponent("nut-icon");
80
85
  return openBlock(), createElementBlock("view", {
81
86
  class: normalizeClass(_ctx.classes),
82
- style: normalizeStyle(_ctx.getStyle())
87
+ style: normalizeStyle(_ctx.getStyle()),
88
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
83
89
  }, [
84
90
  renderSlot(_ctx.$slots, "default"),
85
91
  _ctx.closeable ? (openBlock(), createBlock(_component_nut_icon, {