@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.
- package/README.md +1 -1
- package/dist/nutui.es.js +179 -162
- package/dist/nutui.umd.js +183 -165
- package/dist/packages/_es/ActionSheet.js +7 -2
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/Audio.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/BackTop.js +3 -3
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +1 -1
- package/dist/packages/_es/Cell.js +2 -2
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +2 -2
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +4 -2
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +1 -1
- package/dist/packages/_es/Dialog.js +1 -1
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Elevator.js +2 -2
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +1 -1
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +2 -2
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/ImagePreview.js +8 -3
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +1 -1
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/Menu.js +2 -2
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +18 -59
- package/dist/packages/_es/NoticeBar.js +38 -20
- package/dist/packages/_es/Notify.js +2 -2
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +2 -1
- package/dist/packages/_es/Popover.js +4 -1
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +3 -3
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +8 -3
- package/dist/packages/_es/SideNavBar.js +1 -1
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +1 -1
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +2 -2
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +2 -2
- package/dist/packages/_es/Swiper.js +2 -2
- package/dist/packages/_es/SwiperItem.js +2 -2
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +7 -3
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +7 -2
- package/dist/packages/_es/Toast.js +15 -8
- package/dist/packages/_es/Uploader.js +1 -1
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +5 -7
- package/dist/packages/_es/index2.js +8 -31
- package/dist/packages/_es/index3.js +28 -56
- package/dist/packages/_es/index4.js +64 -0
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/util.js +1 -1
- package/dist/packages/actionsheet/index.scss +7 -6
- package/dist/packages/button/index.scss +5 -5
- package/dist/packages/cell/index.scss +3 -3
- package/dist/packages/cellgroup/index.scss +1 -1
- package/dist/packages/navbar/index.scss +2 -0
- package/dist/packages/noticebar/index.scss +11 -5
- package/dist/packages/notify/index.scss +1 -0
- package/dist/packages/progress/index.scss +21 -17
- package/dist/packages/range/index.scss +4 -4
- package/dist/packages/swiper/index.scss +4 -4
- package/dist/packages/switch/index.scss +8 -8
- package/dist/packages/tabbar/index.scss +3 -2
- package/dist/packages/tabbaritem/index.scss +4 -3
- package/dist/packages/tabs/index.scss +1 -0
- package/dist/packages/toast/index.scss +8 -7
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +41 -41
- package/dist/styles/variables.scss +89 -11
- 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.
|
|
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.
|
|
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.
|
|
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.
|
|
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,
|
|
@@ -15,7 +15,7 @@ var __spreadValues = (a, b) => {
|
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
17
|
/*!
|
|
18
|
-
* @nutui/nutui v3.1.
|
|
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
|
*/
|
|
@@ -35,7 +35,7 @@ var __publicField = (obj, key, value) => {
|
|
|
35
35
|
return value;
|
|
36
36
|
};
|
|
37
37
|
/*!
|
|
38
|
-
* @nutui/nutui v3.1.
|
|
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.
|
|
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 "
|
|
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,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
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 "./
|
|
8
|
+
import { u as useExpose } from "./index2.js";
|
|
9
9
|
const { create, componentName } = createComponent("checkboxgroup");
|
|
10
10
|
const _sfc_main = create({
|
|
11
11
|
props: {
|
package/dist/packages/_es/Col.js
CHANGED
|
@@ -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.
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
*/
|
|
@@ -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.
|
|
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 "./
|
|
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,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
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 "
|
|
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";
|
|
@@ -22,7 +22,7 @@ var __publicField = (obj, key, value) => {
|
|
|
22
22
|
return value;
|
|
23
23
|
};
|
|
24
24
|
/*!
|
|
25
|
-
* @nutui/nutui v3.1.
|
|
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 "./
|
|
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 {
|
|
@@ -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.
|
|
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,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
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 "./
|
|
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,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
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,
|
|
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
|
|
54
|
-
emit("on-click-
|
|
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
|
-
|
|
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
|
-
]
|
|
107
|
-
|
|
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
|
-
|
|
114
|
-
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.
|
|
115
|
-
}, toDisplayString(_ctx.desc),
|
|
116
|
-
_ctx
|
|
117
|
-
|
|
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]]);
|