@nutui/nutui 3.1.17 → 3.1.18-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 (117) hide show
  1. package/README.md +1 -1
  2. package/dist/nutui.es.js +179 -162
  3. package/dist/nutui.umd.js +183 -165
  4. package/dist/packages/_es/ActionSheet.js +7 -2
  5. package/dist/packages/_es/Address.js +1 -1
  6. package/dist/packages/_es/Audio.js +1 -1
  7. package/dist/packages/_es/Avatar.js +1 -1
  8. package/dist/packages/_es/BackTop.js +3 -3
  9. package/dist/packages/_es/Badge.js +1 -1
  10. package/dist/packages/_es/Barrage.js +1 -1
  11. package/dist/packages/_es/Button.js +1 -1
  12. package/dist/packages/_es/Calendar.js +1 -1
  13. package/dist/packages/_es/Card.js +1 -1
  14. package/dist/packages/_es/Cascader.js +1 -1
  15. package/dist/packages/_es/Cell.js +2 -2
  16. package/dist/packages/_es/CellGroup.js +1 -1
  17. package/dist/packages/_es/Checkbox.js +1 -1
  18. package/dist/packages/_es/CheckboxGroup.js +2 -2
  19. package/dist/packages/_es/CircleProgress.js +1 -1
  20. package/dist/packages/_es/Col.js +1 -1
  21. package/dist/packages/_es/Collapse.js +1 -1
  22. package/dist/packages/_es/CollapseItem.js +4 -2
  23. package/dist/packages/_es/CountDown.js +1 -1
  24. package/dist/packages/_es/CountUp.js +1 -1
  25. package/dist/packages/_es/DatePicker.js +1 -1
  26. package/dist/packages/_es/Dialog.js +1 -1
  27. package/dist/packages/_es/Divider.js +1 -1
  28. package/dist/packages/_es/Drag.js +1 -1
  29. package/dist/packages/_es/Elevator.js +2 -2
  30. package/dist/packages/_es/Empty.js +1 -1
  31. package/dist/packages/_es/FixedNav.js +1 -1
  32. package/dist/packages/_es/Form.js +1 -1
  33. package/dist/packages/_es/FormItem.js +1 -1
  34. package/dist/packages/_es/Grid.js +1 -1
  35. package/dist/packages/_es/GridItem.js +2 -2
  36. package/dist/packages/_es/Icon.js +1 -1
  37. package/dist/packages/_es/ImagePreview.js +8 -3
  38. package/dist/packages/_es/Indicator.js +1 -1
  39. package/dist/packages/_es/InfiniteLoading.js +1 -1
  40. package/dist/packages/_es/Input.js +1 -1
  41. package/dist/packages/_es/InputNumber.js +1 -1
  42. package/dist/packages/_es/Layout.js +1 -1
  43. package/dist/packages/_es/Menu.js +2 -2
  44. package/dist/packages/_es/MenuItem.js +1 -1
  45. package/dist/packages/_es/Navbar.js +18 -59
  46. package/dist/packages/_es/NoticeBar.js +38 -20
  47. package/dist/packages/_es/Notify.js +2 -2
  48. package/dist/packages/_es/NumberKeyboard.js +1 -1
  49. package/dist/packages/_es/OverLay.js +1 -1
  50. package/dist/packages/_es/Pagination.js +1 -1
  51. package/dist/packages/_es/Picker.js +2 -1
  52. package/dist/packages/_es/Popover.js +4 -1
  53. package/dist/packages/_es/Popup.js +1 -1
  54. package/dist/packages/_es/Price.js +1 -1
  55. package/dist/packages/_es/Progress.js +1 -1
  56. package/dist/packages/_es/Radio.js +1 -1
  57. package/dist/packages/_es/RadioGroup.js +1 -1
  58. package/dist/packages/_es/Range.js +3 -3
  59. package/dist/packages/_es/Rate.js +1 -1
  60. package/dist/packages/_es/Row.js +1 -1
  61. package/dist/packages/_es/SearchBar.js +1 -1
  62. package/dist/packages/_es/ShortPassword.js +8 -3
  63. package/dist/packages/_es/SideNavBar.js +1 -1
  64. package/dist/packages/_es/SideNavBarItem.js +1 -1
  65. package/dist/packages/_es/Signature.js +1 -1
  66. package/dist/packages/_es/Skeleton.js +1 -1
  67. package/dist/packages/_es/Sku.js +1 -1
  68. package/dist/packages/_es/Step.js +1 -1
  69. package/dist/packages/_es/Steps.js +1 -1
  70. package/dist/packages/_es/Sticky.js +2 -2
  71. package/dist/packages/_es/SubSideNavBar.js +1 -1
  72. package/dist/packages/_es/Swipe.js +2 -2
  73. package/dist/packages/_es/Swiper.js +2 -2
  74. package/dist/packages/_es/SwiperItem.js +2 -2
  75. package/dist/packages/_es/Switch.js +1 -1
  76. package/dist/packages/_es/TabPane.js +1 -1
  77. package/dist/packages/_es/Tabbar.js +1 -1
  78. package/dist/packages/_es/TabbarItem.js +7 -3
  79. package/dist/packages/_es/Table.js +1 -1
  80. package/dist/packages/_es/Tabs.js +1 -1
  81. package/dist/packages/_es/Tag.js +1 -1
  82. package/dist/packages/_es/TextArea.js +1 -1
  83. package/dist/packages/_es/TimeDetail.js +1 -1
  84. package/dist/packages/_es/TimePannel.js +1 -1
  85. package/dist/packages/_es/TimeSelect.js +7 -2
  86. package/dist/packages/_es/Toast.js +15 -8
  87. package/dist/packages/_es/Uploader.js +1 -1
  88. package/dist/packages/_es/Video.js +1 -1
  89. package/dist/packages/_es/common.js +1 -1
  90. package/dist/packages/_es/component.js +1 -1
  91. package/dist/packages/_es/index.js +5 -7
  92. package/dist/packages/_es/index2.js +8 -31
  93. package/dist/packages/_es/index3.js +28 -56
  94. package/dist/packages/_es/index4.js +64 -0
  95. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  96. package/dist/packages/_es/pxCheck.js +1 -1
  97. package/dist/packages/_es/raf.js +1 -1
  98. package/dist/packages/_es/util.js +1 -1
  99. package/dist/packages/actionsheet/index.scss +7 -6
  100. package/dist/packages/button/index.scss +5 -5
  101. package/dist/packages/cell/index.scss +3 -3
  102. package/dist/packages/cellgroup/index.scss +1 -1
  103. package/dist/packages/navbar/index.scss +2 -0
  104. package/dist/packages/noticebar/index.scss +11 -5
  105. package/dist/packages/notify/index.scss +1 -0
  106. package/dist/packages/progress/index.scss +21 -17
  107. package/dist/packages/range/index.scss +4 -4
  108. package/dist/packages/swiper/index.scss +4 -4
  109. package/dist/packages/switch/index.scss +8 -8
  110. package/dist/packages/tabbar/index.scss +3 -2
  111. package/dist/packages/tabbaritem/index.scss +4 -3
  112. package/dist/packages/tabs/index.scss +1 -0
  113. package/dist/packages/toast/index.scss +8 -7
  114. package/dist/style.css +1 -1
  115. package/dist/styles/themes/default.scss +41 -41
  116. package/dist/styles/variables.scss +89 -11
  117. package/package.json +2 -2
@@ -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 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
- import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, createBlock, createCommentVNode, createElementVNode, renderSlot, createTextVNode, toDisplayString, withModifiers, createVNode, vShow, Fragment, renderList } from "vue";
25
+ import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, renderSlot, createBlock, createCommentVNode, createElementVNode, createTextVNode, toDisplayString, withModifiers, createVNode, vShow, Fragment, renderList } 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 { componentName, create } = createComponent("noticebar");
@@ -63,6 +63,7 @@ const _sfc_main = create({
63
63
  default: false
64
64
  },
65
65
  leftIcon: { type: String, default: "" },
66
+ rightIcon: { type: String, default: "" },
66
67
  color: {
67
68
  type: String,
68
69
  default: ""
@@ -77,7 +78,7 @@ const _sfc_main = create({
77
78
  },
78
79
  scrollable: {
79
80
  type: Boolean,
80
- default: true
81
+ default: null
81
82
  },
82
83
  speed: {
83
84
  type: Number,
@@ -87,6 +88,7 @@ const _sfc_main = create({
87
88
  components: {
88
89
  ScrollItem: function(props) {
89
90
  props.item.props.style = props.style;
91
+ props.item.key = props.key;
90
92
  return h(props.item);
91
93
  }
92
94
  },
@@ -105,7 +107,8 @@ const _sfc_main = create({
105
107
  scrollList: [],
106
108
  distance: 0,
107
109
  timer: null,
108
- keepAlive: false
110
+ keepAlive: false,
111
+ isCanScroll: null
109
112
  });
110
113
  const classes = computed(() => {
111
114
  const prefixCls = componentName;
@@ -113,6 +116,13 @@ const _sfc_main = create({
113
116
  [prefixCls]: true
114
117
  };
115
118
  });
119
+ const isEllipsis = computed(() => {
120
+ if (state.isCanScroll == null) {
121
+ return false;
122
+ } else {
123
+ return !state.isCanScroll && !props.wrapable;
124
+ }
125
+ });
116
126
  const iconShow = computed(() => {
117
127
  if (props.leftIcon == "close") {
118
128
  return false;
@@ -131,9 +141,9 @@ const _sfc_main = create({
131
141
  });
132
142
  const contentStyle = computed(() => {
133
143
  return {
134
- paddingLeft: state.firstRound ? 0 : state.wrapWidth + "px",
135
144
  animationDelay: (state.firstRound ? props.delay : 0) + "s",
136
- animationDuration: state.duration + "s"
145
+ animationDuration: state.duration + "s",
146
+ transform: `translateX(${state.firstRound ? 0 : state.wrapWidth + "px"})`
137
147
  };
138
148
  });
139
149
  const iconBg = computed(() => {
@@ -176,7 +186,8 @@ const _sfc_main = create({
176
186
  }
177
187
  const wrapWidth = wrap.value.getBoundingClientRect().width;
178
188
  const offsetWidth = content.value.getBoundingClientRect().width;
179
- if (props.scrollable && offsetWidth > wrapWidth) {
189
+ state.isCanScroll = props.scrollable == null ? offsetWidth > wrapWidth : props.scrollable;
190
+ if (state.isCanScroll) {
180
191
  state.wrapWidth = wrapWidth;
181
192
  state.offsetWidth = offsetWidth;
182
193
  state.duration = offsetWidth / props.speed;
@@ -190,7 +201,9 @@ const _sfc_main = create({
190
201
  emit("click", event);
191
202
  };
192
203
  const onClickIcon = (event) => {
193
- state.showNoticeBar = !props.closeMode;
204
+ if (props.closeMode) {
205
+ state.showNoticeBar = !props.closeMode;
206
+ }
194
207
  emit("close", event);
195
208
  };
196
209
  const onAnimationEnd = () => {
@@ -263,6 +276,7 @@ const _sfc_main = create({
263
276
  clearInterval(state.timer);
264
277
  });
265
278
  return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(state)), {
279
+ isEllipsis,
266
280
  classes,
267
281
  iconShow,
268
282
  barStyle,
@@ -302,17 +316,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
302
316
  class: "left-icon",
303
317
  style: normalizeStyle({ "background-image": `url(${_ctx.iconBg})` })
304
318
  }, [
305
- !_ctx.iconBg ? (openBlock(), createBlock(_component_nut_icon, {
306
- key: 0,
307
- name: "notice",
308
- size: "16",
309
- color: _ctx.color
310
- }, null, 8, ["color"])) : createCommentVNode("", true)
319
+ renderSlot(_ctx.$slots, "left-icon", {}, () => [
320
+ !_ctx.iconBg ? (openBlock(), createBlock(_component_nut_icon, {
321
+ key: 0,
322
+ name: "notice",
323
+ size: "16",
324
+ color: _ctx.color
325
+ }, null, 8, ["color"])) : createCommentVNode("", true)
326
+ ])
311
327
  ], 4)) : createCommentVNode("", true),
312
328
  createElementVNode("view", _hoisted_1, [
313
329
  createElementVNode("view", {
314
330
  ref: "content",
315
- class: normalizeClass(["content", [_ctx.animationClass, { "nut-ellipsis": !_ctx.scrollable && !_ctx.wrapable }]]),
331
+ class: normalizeClass(["content", [_ctx.animationClass, { "nut-ellipsis": _ctx.isEllipsis }]]),
316
332
  style: normalizeStyle(_ctx.contentStyle),
317
333
  onAnimationend: _cache[0] || (_cache[0] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args)),
318
334
  onWebkitAnimationEnd: _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
@@ -322,15 +338,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
322
338
  ])
323
339
  ], 38)
324
340
  ], 512),
325
- _ctx.closeMode ? (openBlock(), createElementBlock("view", {
341
+ _ctx.closeMode || _ctx.rightIcon ? (openBlock(), createElementBlock("view", {
326
342
  key: 1,
327
343
  class: "right-icon",
328
344
  onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
329
345
  }, [
330
- createVNode(_component_nut_icon, {
331
- name: "close",
332
- color: _ctx.color
333
- }, null, 8, ["color"])
346
+ renderSlot(_ctx.$slots, "right-icon", {}, () => [
347
+ createVNode(_component_nut_icon, {
348
+ name: _ctx.rightIcon ? _ctx.rightIcon : "close",
349
+ color: _ctx.color
350
+ }, null, 8, ["name", "color"])
351
+ ])
334
352
  ])) : createCommentVNode("", true)
335
353
  ], 6)), [
336
354
  [vShow, _ctx.showNoticeBar]
@@ -18,7 +18,7 @@ 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 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -107,7 +107,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
107
107
  }, {
108
108
  default: withCtx(() => [
109
109
  withDirectives(createElementVNode("view", {
110
- class: normalizeClass(["popup-top", "nut-notify", `nut-notify--${_ctx.type}`, { className: _ctx.className }]),
110
+ class: normalizeClass(["popup-top", "nut-notify", `nut-notify--${_ctx.type}`, [_ctx.className]]),
111
111
  style: normalizeStyle({ color: _ctx.color, background: _ctx.background }),
112
112
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.clickCover && _ctx.clickCover(...args))
113
113
  }, [
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -15,7 +15,7 @@ var __spreadValues = (a, b) => {
15
15
  return a;
16
16
  };
17
17
  /*!
18
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
18
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
19
19
  * (c) 2021 @jdf2e.
20
20
  * Released under the MIT License.
21
21
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -18,7 +18,7 @@ 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 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -303,6 +303,7 @@ const _sfc_main = create({
303
303
  return "text";
304
304
  });
305
305
  const columnList = computed(() => {
306
+ console.log("\u521D\u59CB\u5316", dataType.value);
306
307
  if (dataType.value === "text") {
307
308
  return [{ values: state.formattedColumns, defaultIndex: state.defaultIndex }];
308
309
  } else if (dataType.value === "multipleColumns") {
@@ -18,7 +18,7 @@ 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 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -138,6 +138,9 @@ const _sfc_main = create({
138
138
  emit("update:visible", false);
139
139
  };
140
140
  const chooseItem = (item, index2) => {
141
+ if (item.disabled) {
142
+ return;
143
+ }
141
144
  emit("choose", item, index2);
142
145
  };
143
146
  return {
@@ -18,7 +18,7 @@ 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 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -18,14 +18,14 @@ 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 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
25
  import { ref, computed, toRefs, openBlock, createElementBlock, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle, normalizeClass, withModifiers, Fragment, renderList, renderSlot } from "vue";
26
26
  import { c as createComponent } from "./component.js";
27
- import { u as useTouch } from "./index3.js";
28
- import { u as useRect } from "./index2.js";
27
+ import { u as useTouch } from "./index4.js";
28
+ import { u as useRect } from "./index3.js";
29
29
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
30
30
  const { componentName, create } = createComponent("range");
31
31
  const _sfc_main = create({
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -18,7 +18,7 @@ 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 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -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,7 +18,7 @@ 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 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -18,7 +18,7 @@ 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 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @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,7 +18,7 @@ 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 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -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 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @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 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @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 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @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,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @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";
7
+ import { u as useRouter } from "./index.js";
8
8
  import { inject, reactive, getCurrentInstance, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, toDisplayString, createCommentVNode, createVNode } from "vue";
9
9
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
10
10
  const { create } = createComponent("tabbar-item");
@@ -79,7 +79,11 @@ const _sfc_main = create({
79
79
  }
80
80
  if (parent.children[value].to) {
81
81
  let to = parent.children[value].to;
82
- router.push(to);
82
+ if (to && router) {
83
+ router.push(to);
84
+ } else {
85
+ location.replace(to);
86
+ }
83
87
  }
84
88
  });
85
89
  });
@@ -18,7 +18,7 @@ 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 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -19,7 +19,7 @@ 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 (中国标准时间)
22
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
23
23
  * (c) 2021 @jdf2e.
24
24
  * Released under the MIT License.
25
25
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -18,7 +18,7 @@ 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 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -18,7 +18,7 @@ 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 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */