@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,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
  */
@@ -63,6 +63,10 @@ const _sfc_main = create({
63
63
  menuItems: {
64
64
  type: Array,
65
65
  default: () => []
66
+ },
67
+ isWrapTeleport: {
68
+ type: Boolean,
69
+ default: true
66
70
  }
67
71
  }),
68
72
  emits: ["cancel", "close", "choose", "update:visible"],
@@ -122,6 +126,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
122
126
  createVNode(_component_nut_popup, {
123
127
  "pop-class": "popclass",
124
128
  visible: _ctx.visible,
129
+ isWrapTeleport: _ctx.isWrapTeleport,
125
130
  position: "bottom",
126
131
  round: "",
127
132
  onClickOverlay: _ctx.close
@@ -151,7 +156,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
151
156
  ])
152
157
  ]),
153
158
  _: 1
154
- }, 8, ["visible", "onClickOverlay"])
159
+ }, 8, ["visible", "isWrapTeleport", "onClickOverlay"])
155
160
  ], 2);
156
161
  }
157
162
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
@@ -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
  */
@@ -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
  */
@@ -18,8 +18,8 @@ const _sfc_main = create({
18
18
  default: 10
19
19
  },
20
20
  elId: {
21
- type: String,
22
- default: ""
21
+ type: [String, Element],
22
+ default: "body"
23
23
  },
24
24
  distance: {
25
25
  type: Number,
@@ -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
  */
@@ -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
  */
@@ -35,7 +35,7 @@ var __publicField = (obj, key, value) => {
35
35
  return value;
36
36
  };
37
37
  /*!
38
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
38
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
39
39
  * (c) 2021 @jdf2e.
40
40
  * Released under the MIT License.
41
41
  */
@@ -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 { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode, Fragment, createElementVNode, toDisplayString, createTextVNode } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import { useRouter } from "vue-router";
8
+ import { u as useRouter } from "./index.js";
9
9
  import { p as pxCheck } from "./pxCheck.js";
10
10
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
11
11
  const { componentName, create } = createComponent("cell");
@@ -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,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, provide, computed, watch, h } 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
  const { create, componentName } = createComponent("checkboxgroup");
10
10
  const _sfc_main = create({
11
11
  props: {
@@ -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
  */
@@ -85,7 +85,9 @@ const _sfc_main = create({
85
85
  const contentRef = ref(null);
86
86
  const onTransitionEnd = () => {
87
87
  const wrapperRefEle = document.getElementsByClassName("collapse-wrapper")[0];
88
- wrapperRefEle.style.willChange = "auto";
88
+ if (wrapperRefEle) {
89
+ wrapperRefEle.style.willChange = "auto";
90
+ }
89
91
  };
90
92
  const animation = () => {
91
93
  const wrapperRefEle = wrapperRef.value;
@@ -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
  */
@@ -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
  */
@@ -22,7 +22,7 @@ var __publicField = (obj, key, value) => {
22
22
  return value;
23
23
  };
24
24
  /*!
25
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
25
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
26
26
  * (c) 2021 @jdf2e.
27
27
  * Released under the MIT License.
28
28
  */
@@ -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,13 +18,13 @@ 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, reactive, computed, toRefs, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, Fragment, renderList, toDisplayString, withDirectives, vShow, createCommentVNode, withModifiers } from "vue";
26
26
  import { c as createComponent } from "./component.js";
27
- import { u as useExpose } from "./index.js";
27
+ import { u as useExpose } from "./index2.js";
28
28
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
29
29
  const { componentName, create } = createComponent("elevator");
30
30
  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,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 { inject, getCurrentInstance, onUnmounted, computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, Fragment, createBlock, toDisplayString } from "vue";
7
- import { useRouter } from "vue-router";
7
+ import { u as useRouter } from "./index.js";
8
8
  import { c as createComponent } from "./component.js";
9
9
  import { p as pxCheck } from "./pxCheck.js";
10
10
  import { G as GRID_KEY } from "./common.js";
@@ -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
  */
@@ -22,7 +22,7 @@ var __publicField = (obj, key, value) => {
22
22
  return value;
23
23
  };
24
24
  /*!
25
- * @nutui/nutui v3.1.16 Fri Feb 25 2022 18:32:15 GMT+0800 (中国标准时间)
25
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
26
26
  * (c) 2021 @jdf2e.
27
27
  * Released under the MIT License.
28
28
  */
@@ -36,7 +36,7 @@ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
36
36
  import "./OverLay.js";
37
37
  import "./Icon.js";
38
38
  import "./pxCheck.js";
39
- import "./index.js";
39
+ import "./index2.js";
40
40
  const { componentName, create } = createComponent("imagepreview");
41
41
  const _sfc_main = create({
42
42
  props: {
@@ -71,6 +71,10 @@ const _sfc_main = create({
71
71
  autoplay: {
72
72
  type: [Number, String],
73
73
  default: 3e3
74
+ },
75
+ isWrapTeleport: {
76
+ type: Boolean,
77
+ default: false
74
78
  }
75
79
  },
76
80
  emits: ["close"],
@@ -220,6 +224,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
220
224
  "pop-class": "custom-pop",
221
225
  visible: _ctx.showPop,
222
226
  "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.showPop = $event),
227
+ isWrapTeleport: _ctx.isWrapTeleport,
223
228
  onClick: _ctx.onClose,
224
229
  style: { "width": "100%" }
225
230
  }, {
@@ -271,7 +276,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
271
276
  createElementVNode("view", _hoisted_2, toDisplayString(_ctx.active) + " / " + toDisplayString(_ctx.images.length + _ctx.videos.length), 1)
272
277
  ]),
273
278
  _: 1
274
- }, 8, ["visible", "onClick"]);
279
+ }, 8, ["visible", "isWrapTeleport", "onClick"]);
275
280
  }
276
281
  var ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
277
282
  class ImagePreviewOptions {
@@ -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,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,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, computed, reactive, provide, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, createVNode, renderSlot } 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
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
10
10
  const { componentName, create } = createComponent("menu");
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,9 +1,9 @@
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
- import { ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, toDisplayString, renderSlot, normalizeStyle } from "vue";
6
+ import { ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, renderSlot, toDisplayString } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
9
  const { componentName, create } = createComponent("navbar");
@@ -12,27 +12,13 @@ const _sfc_main = create({
12
12
  leftShow: { type: Boolean, default: true },
13
13
  title: { type: String, default: "" },
14
14
  titIcon: { type: String, default: "" },
15
- icon: { type: String, default: "" },
16
15
  desc: { type: String, default: "" },
17
16
  defaultIndex: {
18
17
  type: Number,
19
18
  default: 0
20
19
  }
21
20
  },
22
- emits: [
23
- "click",
24
- "on-click-back",
25
- "on-click-title",
26
- "on-click-right",
27
- "on-click-desc",
28
- "on-click-icon",
29
- "on-click-more",
30
- "on-click-clear",
31
- "on-click-send",
32
- "on-click-slot",
33
- "on-click-slot-send",
34
- "switch-tab"
35
- ],
21
+ emits: ["click", "on-click-back", "on-click-title", "on-click-icon", "on-click-right"],
36
22
  setup(props, { emit }) {
37
23
  const activeIndex = ref(props.defaultIndex);
38
24
  const classes = computed(() => {
@@ -50,32 +36,22 @@ const _sfc_main = create({
50
36
  function handleCenterIcon() {
51
37
  emit("on-click-icon");
52
38
  }
53
- function handleClear() {
54
- emit("on-click-clear");
55
- }
56
- function handleSend() {
57
- emit("on-click-send");
58
- }
59
- function handleSlot() {
60
- emit("on-click-slot");
61
- }
62
- function handleSends() {
63
- emit("on-click-slot-send");
39
+ function handleRight() {
40
+ emit("on-click-right");
64
41
  }
65
42
  return {
66
43
  classes,
67
44
  handleLeft,
68
45
  handleCenter,
69
46
  handleCenterIcon,
70
- handleClear,
71
- handleSend,
72
- handleSlot,
73
- handleSends,
47
+ handleRight,
74
48
  activeIndex
75
49
  };
76
50
  }
77
51
  });
78
52
  const _hoisted_1 = { class: "nut-navbar__left" };
53
+ const _hoisted_2 = { class: "nut-navbar__title" };
54
+ const _hoisted_3 = { class: "nut-navbar__right" };
79
55
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
80
56
  const _component_nut_icon = resolveComponent("nut-icon");
81
57
  return openBlock(), createElementBlock("view", {
@@ -87,11 +63,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
87
63
  color: "#979797",
88
64
  name: "left",
89
65
  onClick: _ctx.handleLeft
90
- }, null, 8, ["onClick"])) : createCommentVNode("", true)
66
+ }, null, 8, ["onClick"])) : createCommentVNode("", true),
67
+ renderSlot(_ctx.$slots, "left")
91
68
  ]),
92
- createElementVNode("view", {
93
- class: normalizeClass(["nut-navbar__title", { icon: _ctx.icon }])
94
- }, [
69
+ createElementVNode("view", _hoisted_2, [
95
70
  _ctx.title ? (openBlock(), createElementBlock("view", {
96
71
  key: 0,
97
72
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
@@ -103,31 +78,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
103
78
  onClick: _ctx.handleCenterIcon
104
79
  }, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
105
80
  renderSlot(_ctx.$slots, "content")
106
- ], 2),
107
- _ctx.desc || _ctx.icon ? (openBlock(), createElementBlock("view", {
108
- key: 0,
109
- class: normalizeClass(["nut-navbar__right", { icon: _ctx.icon }])
110
- }, [
81
+ ]),
82
+ createElementVNode("view", _hoisted_3, [
111
83
  _ctx.desc ? (openBlock(), createElementBlock("view", {
112
84
  key: 0,
113
- style: normalizeStyle({ "text-align": _ctx.descTextAlign }),
114
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleClear && _ctx.handleClear(...args))
115
- }, toDisplayString(_ctx.desc), 5)) : createCommentVNode("", true),
116
- _ctx.icon ? (openBlock(), createElementBlock("view", {
117
- key: 1,
118
- onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleSends && _ctx.handleSends(...args))
119
- }, [
120
- renderSlot(_ctx.$slots, "icons")
121
- ])) : createCommentVNode("", true),
122
- createElementVNode("view", null, [
123
- _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
124
- key: 0,
125
- class: "rightIcon",
126
- name: _ctx.icon,
127
- onClick: _ctx.handleSend
128
- }, null, 8, ["name", "onClick"])) : createCommentVNode("", true)
129
- ])
130
- ], 2)) : createCommentVNode("", true)
85
+ class: "right_text",
86
+ onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
87
+ }, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
88
+ renderSlot(_ctx.$slots, "right")
89
+ ])
131
90
  ], 2);
132
91
  }
133
92
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);