@nutui/nutui 3.1.17-beta.0 → 3.1.18
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/CHANGELOG.md +78 -0
- package/LICENSE +1 -1
- package/README.md +7 -1
- package/dist/nutui.d.ts +3 -1
- package/dist/nutui.es.js +2335 -1280
- package/dist/nutui.umd.js +2350 -1293
- package/dist/packages/_es/ActionSheet.js +8 -3
- package/dist/packages/_es/Address.js +17 -11
- package/dist/packages/_es/Audio.js +2 -2
- package/dist/packages/_es/Avatar.js +2 -2
- package/dist/packages/_es/BackTop.js +7 -4
- package/dist/packages/_es/Badge.js +2 -2
- package/dist/packages/_es/Barrage.js +2 -2
- package/dist/packages/_es/Button.js +2 -2
- package/dist/packages/_es/Calendar.js +15 -16
- package/dist/packages/_es/Card.js +2 -2
- package/dist/packages/_es/Cascader.js +2 -2
- package/dist/packages/_es/Cell.js +25 -18
- package/dist/packages/_es/CellGroup.js +2 -2
- package/dist/packages/_es/Checkbox.js +4 -4
- package/dist/packages/_es/CheckboxGroup.js +4 -4
- package/dist/packages/_es/CircleProgress.js +2 -2
- package/dist/packages/_es/Col.js +2 -2
- package/dist/packages/_es/Collapse.js +2 -2
- package/dist/packages/_es/CollapseItem.js +31 -19
- package/dist/packages/_es/CountDown.js +4 -2
- package/dist/packages/_es/CountUp.js +25 -16
- package/dist/packages/_es/DatePicker.js +83 -47
- package/dist/packages/_es/Dialog.js +5 -3
- package/dist/packages/_es/Divider.js +2 -2
- package/dist/packages/_es/Drag.js +4 -4
- package/dist/packages/_es/Elevator.js +3 -3
- package/dist/packages/_es/Empty.js +2 -2
- package/dist/packages/_es/FixedNav.js +2 -2
- package/dist/packages/_es/Form.js +8 -6
- package/dist/packages/_es/FormItem.js +9 -6
- package/dist/packages/_es/Grid.js +2 -2
- package/dist/packages/_es/GridItem.js +3 -3
- package/dist/packages/_es/Icon.js +2 -2
- package/dist/packages/_es/ImagePreview.js +9 -4
- package/dist/packages/_es/Indicator.js +2 -2
- package/dist/packages/_es/InfiniteLoading.js +2 -2
- package/dist/packages/_es/Input.js +290 -66
- package/dist/packages/_es/InputNumber.js +2 -2
- package/dist/packages/_es/Layout.js +2 -2
- package/dist/packages/_es/List.js +124 -0
- package/dist/packages/_es/Menu.js +3 -3
- package/dist/packages/_es/MenuItem.js +2 -2
- package/dist/packages/_es/Navbar.js +31 -66
- package/dist/packages/_es/NoticeBar.js +41 -22
- package/dist/packages/_es/Notify.js +7 -3
- package/dist/packages/_es/NumberKeyboard.js +9 -4
- package/dist/packages/_es/OverLay.js +2 -2
- package/dist/packages/_es/Pagination.js +2 -2
- package/dist/packages/_es/Picker.js +163 -156
- package/dist/packages/_es/Popover.js +5 -2
- package/dist/packages/_es/Popup.js +2 -2
- package/dist/packages/_es/Price.js +2 -2
- package/dist/packages/_es/Progress.js +14 -22
- package/dist/packages/_es/Radio.js +3 -3
- package/dist/packages/_es/RadioGroup.js +2 -2
- package/dist/packages/_es/Range.js +131 -21
- package/dist/packages/_es/Rate.js +2 -2
- package/dist/packages/_es/Row.js +2 -2
- package/dist/packages/_es/SearchBar.js +2 -2
- package/dist/packages/_es/ShortPassword.js +9 -4
- package/dist/packages/_es/SideNavBar.js +2 -2
- package/dist/packages/_es/SideNavBarItem.js +2 -2
- package/dist/packages/_es/Signature.js +25 -6
- package/dist/packages/_es/Skeleton.js +2 -2
- package/dist/packages/_es/Sku.js +31 -13
- package/dist/packages/_es/Step.js +28 -12
- package/dist/packages/_es/Steps.js +8 -3
- package/dist/packages/_es/Sticky.js +3 -3
- package/dist/packages/_es/SubSideNavBar.js +2 -2
- package/dist/packages/_es/Swipe.js +3 -3
- package/dist/packages/_es/Swiper.js +3 -3
- package/dist/packages/_es/SwiperItem.js +3 -3
- package/dist/packages/_es/Switch.js +2 -2
- package/dist/packages/_es/TabPane.js +2 -2
- package/dist/packages/_es/Tabbar.js +2 -2
- package/dist/packages/_es/TabbarItem.js +23 -8
- package/dist/packages/_es/Table.js +2 -2
- package/dist/packages/_es/Tabs.js +8 -5
- package/dist/packages/_es/Tag.js +11 -5
- package/dist/packages/_es/TextArea.js +38 -6
- package/dist/packages/_es/TimeDetail.js +2 -2
- package/dist/packages/_es/TimePannel.js +2 -2
- package/dist/packages/_es/TimeSelect.js +8 -3
- package/dist/packages/_es/Toast.js +16 -9
- package/dist/packages/_es/Uploader.js +2 -4
- package/dist/packages/_es/Video.js +12 -8
- package/dist/packages/_es/common.js +2 -2
- package/dist/packages/_es/component.js +2 -2
- package/dist/packages/_es/index.js +6 -8
- package/dist/packages/_es/index2.js +9 -32
- package/dist/packages/_es/index3.js +29 -57
- package/dist/packages/_es/index4.js +64 -0
- package/dist/packages/_es/plugin-vue_export-helper.js +2 -2
- package/dist/packages/_es/pxCheck.js +2 -2
- package/dist/packages/_es/raf.js +2 -2
- package/dist/packages/_es/util.js +2 -2
- package/dist/packages/actionsheet/index.scss +7 -6
- package/dist/packages/badge/index.scss +11 -13
- package/dist/packages/button/index.scss +6 -5
- package/dist/packages/calendar/index.scss +9 -4
- package/dist/packages/calendaritem/index.scss +0 -207
- package/dist/packages/cell/index.scss +9 -9
- package/dist/packages/cellgroup/index.scss +1 -1
- package/dist/packages/checkbox/index.scss +4 -3
- package/dist/packages/collapseitem/index.scss +21 -11
- package/dist/packages/countdown/index.scss +3 -1
- package/dist/packages/divider/index.scss +8 -8
- package/dist/packages/elevator/index.scss +36 -36
- package/dist/packages/formitem/index.scss +15 -8
- package/dist/packages/indicator/index.scss +1 -1
- package/dist/packages/input/index.scss +70 -24
- package/dist/packages/inputnumber/index.scss +4 -2
- package/dist/packages/list/index.scss +24 -0
- package/dist/packages/menu/index.scss +3 -3
- package/dist/packages/navbar/index.scss +30 -8
- package/dist/packages/noticebar/index.scss +10 -5
- package/dist/packages/notify/index.scss +10 -0
- package/dist/packages/numberkeyboard/index.scss +22 -21
- package/dist/packages/oldpicker/index.scss +131 -0
- package/dist/packages/picker/index.scss +38 -32
- package/dist/packages/progress/index.scss +24 -19
- package/dist/packages/radio/index.scss +7 -6
- package/dist/packages/range/index.scss +113 -6
- package/dist/packages/searchbar/index.scss +7 -7
- package/dist/packages/sidenavbaritem/index.scss +5 -5
- package/dist/packages/step/index.scss +29 -29
- package/dist/packages/subsidenavbar/index.scss +10 -8
- 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 +19 -3
- package/dist/packages/tabs/index.scss +1 -0
- package/dist/packages/timedetail/index.scss +13 -13
- package/dist/packages/timepannel/index.scss +7 -7
- package/dist/packages/timeselect/index.scss +3 -3
- package/dist/packages/toast/index.scss +8 -7
- package/dist/packages/uploader/index.scss +4 -4
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +43 -41
- package/dist/styles/themes/jdt.scss +91 -0
- package/dist/styles/variables-jdt.scss +727 -0
- package/dist/styles/variables.scss +322 -38
- package/package.json +3 -2
- package/dist/styles/themes/jdd.scss +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
3
|
-
* (c)
|
|
2
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { toRefs, 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,33 +12,25 @@ 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
|
-
|
|
18
|
-
type:
|
|
19
|
-
default:
|
|
16
|
+
fixed: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: false
|
|
19
|
+
},
|
|
20
|
+
safeAreaInsetTop: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false
|
|
20
23
|
}
|
|
21
24
|
},
|
|
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
|
-
],
|
|
25
|
+
emits: ["click", "on-click-back", "on-click-title", "on-click-icon", "on-click-right"],
|
|
36
26
|
setup(props, { emit }) {
|
|
37
|
-
const
|
|
27
|
+
const { fixed, safeAreaInsetTop } = toRefs(props);
|
|
38
28
|
const classes = computed(() => {
|
|
39
29
|
const prefixCls = componentName;
|
|
40
30
|
return {
|
|
41
|
-
[prefixCls]: true
|
|
31
|
+
[prefixCls]: true,
|
|
32
|
+
[`${prefixCls}--fixed`]: fixed.value,
|
|
33
|
+
[`${prefixCls}--safe-area-inset-top`]: safeAreaInsetTop.value
|
|
42
34
|
};
|
|
43
35
|
});
|
|
44
36
|
function handleLeft() {
|
|
@@ -50,32 +42,21 @@ const _sfc_main = create({
|
|
|
50
42
|
function handleCenterIcon() {
|
|
51
43
|
emit("on-click-icon");
|
|
52
44
|
}
|
|
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");
|
|
45
|
+
function handleRight() {
|
|
46
|
+
emit("on-click-right");
|
|
64
47
|
}
|
|
65
48
|
return {
|
|
66
49
|
classes,
|
|
67
50
|
handleLeft,
|
|
68
51
|
handleCenter,
|
|
69
52
|
handleCenterIcon,
|
|
70
|
-
|
|
71
|
-
handleSend,
|
|
72
|
-
handleSlot,
|
|
73
|
-
handleSends,
|
|
74
|
-
activeIndex
|
|
53
|
+
handleRight
|
|
75
54
|
};
|
|
76
55
|
}
|
|
77
56
|
});
|
|
78
57
|
const _hoisted_1 = { class: "nut-navbar__left" };
|
|
58
|
+
const _hoisted_2 = { class: "nut-navbar__title" };
|
|
59
|
+
const _hoisted_3 = { class: "nut-navbar__right" };
|
|
79
60
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
80
61
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
81
62
|
return openBlock(), createElementBlock("view", {
|
|
@@ -87,13 +68,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
87
68
|
color: "#979797",
|
|
88
69
|
name: "left",
|
|
89
70
|
onClick: _ctx.handleLeft
|
|
90
|
-
}, null, 8, ["onClick"])) : createCommentVNode("", true)
|
|
71
|
+
}, null, 8, ["onClick"])) : createCommentVNode("", true),
|
|
72
|
+
renderSlot(_ctx.$slots, "left")
|
|
91
73
|
]),
|
|
92
|
-
createElementVNode("view",
|
|
93
|
-
class: normalizeClass(["nut-navbar__title", { icon: _ctx.icon }])
|
|
94
|
-
}, [
|
|
74
|
+
createElementVNode("view", _hoisted_2, [
|
|
95
75
|
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
96
76
|
key: 0,
|
|
77
|
+
class: "title",
|
|
97
78
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
|
|
98
79
|
}, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
99
80
|
_ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, {
|
|
@@ -103,31 +84,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
103
84
|
onClick: _ctx.handleCenterIcon
|
|
104
85
|
}, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
|
|
105
86
|
renderSlot(_ctx.$slots, "content")
|
|
106
|
-
]
|
|
107
|
-
|
|
108
|
-
key: 0,
|
|
109
|
-
class: normalizeClass(["nut-navbar__right", { icon: _ctx.icon }])
|
|
110
|
-
}, [
|
|
87
|
+
]),
|
|
88
|
+
createElementVNode("view", _hoisted_3, [
|
|
111
89
|
_ctx.desc ? (openBlock(), createElementBlock("view", {
|
|
112
90
|
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)
|
|
91
|
+
class: "right_text",
|
|
92
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
|
|
93
|
+
}, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
94
|
+
renderSlot(_ctx.$slots, "right")
|
|
95
|
+
])
|
|
131
96
|
], 2);
|
|
132
97
|
}
|
|
133
98
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -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.
|
|
22
|
-
* (c)
|
|
21
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
22
|
+
* (c) 2022 @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,
|
|
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:
|
|
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 props.wrapable;
|
|
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,9 @@ const _sfc_main = create({
|
|
|
176
186
|
}
|
|
177
187
|
const wrapWidth = wrap.value.getBoundingClientRect().width;
|
|
178
188
|
const offsetWidth = content.value.getBoundingClientRect().width;
|
|
179
|
-
|
|
189
|
+
state.isCanScroll = props.scrollable == null ? offsetWidth > wrapWidth : props.scrollable;
|
|
190
|
+
console.log(111, state.isCanScroll);
|
|
191
|
+
if (state.isCanScroll) {
|
|
180
192
|
state.wrapWidth = wrapWidth;
|
|
181
193
|
state.offsetWidth = offsetWidth;
|
|
182
194
|
state.duration = offsetWidth / props.speed;
|
|
@@ -184,13 +196,15 @@ const _sfc_main = create({
|
|
|
184
196
|
} else {
|
|
185
197
|
state.animationClass = "";
|
|
186
198
|
}
|
|
187
|
-
});
|
|
199
|
+
}, 0);
|
|
188
200
|
};
|
|
189
201
|
const handleClick = (event) => {
|
|
190
202
|
emit("click", event);
|
|
191
203
|
};
|
|
192
204
|
const onClickIcon = (event) => {
|
|
193
|
-
|
|
205
|
+
if (props.closeMode) {
|
|
206
|
+
state.showNoticeBar = !props.closeMode;
|
|
207
|
+
}
|
|
194
208
|
emit("close", event);
|
|
195
209
|
};
|
|
196
210
|
const onAnimationEnd = () => {
|
|
@@ -263,6 +277,7 @@ const _sfc_main = create({
|
|
|
263
277
|
clearInterval(state.timer);
|
|
264
278
|
});
|
|
265
279
|
return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(state)), {
|
|
280
|
+
isEllipsis,
|
|
266
281
|
classes,
|
|
267
282
|
iconShow,
|
|
268
283
|
barStyle,
|
|
@@ -302,17 +317,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
302
317
|
class: "left-icon",
|
|
303
318
|
style: normalizeStyle({ "background-image": `url(${_ctx.iconBg})` })
|
|
304
319
|
}, [
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
320
|
+
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
321
|
+
!_ctx.iconBg ? (openBlock(), createBlock(_component_nut_icon, {
|
|
322
|
+
key: 0,
|
|
323
|
+
name: "notice",
|
|
324
|
+
size: "16",
|
|
325
|
+
color: _ctx.color
|
|
326
|
+
}, null, 8, ["color"])) : createCommentVNode("", true)
|
|
327
|
+
])
|
|
311
328
|
], 4)) : createCommentVNode("", true),
|
|
312
329
|
createElementVNode("view", _hoisted_1, [
|
|
313
330
|
createElementVNode("view", {
|
|
314
331
|
ref: "content",
|
|
315
|
-
class: normalizeClass(["content",
|
|
332
|
+
class: normalizeClass(["content", _ctx.animationClass, { "nut-ellipsis": _ctx.isEllipsis }]),
|
|
316
333
|
style: normalizeStyle(_ctx.contentStyle),
|
|
317
334
|
onAnimationend: _cache[0] || (_cache[0] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args)),
|
|
318
335
|
onWebkitAnimationEnd: _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
|
|
@@ -322,15 +339,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
322
339
|
])
|
|
323
340
|
], 38)
|
|
324
341
|
], 512),
|
|
325
|
-
_ctx.closeMode ? (openBlock(), createElementBlock("view", {
|
|
342
|
+
_ctx.closeMode || _ctx.rightIcon ? (openBlock(), createElementBlock("view", {
|
|
326
343
|
key: 1,
|
|
327
344
|
class: "right-icon",
|
|
328
345
|
onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
|
|
329
346
|
}, [
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
347
|
+
renderSlot(_ctx.$slots, "right-icon", {}, () => [
|
|
348
|
+
createVNode(_component_nut_icon, {
|
|
349
|
+
name: _ctx.rightIcon ? _ctx.rightIcon : "close",
|
|
350
|
+
color: _ctx.color
|
|
351
|
+
}, null, 8, ["name", "color"])
|
|
352
|
+
])
|
|
334
353
|
])) : createCommentVNode("", true)
|
|
335
354
|
], 6)), [
|
|
336
355
|
[vShow, _ctx.showNoticeBar]
|
|
@@ -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.
|
|
22
|
-
* (c)
|
|
21
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
22
|
+
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
25
|
import { reactive, onMounted, watch, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, vShow, createVNode, render } from "vue";
|
|
@@ -52,6 +52,10 @@ const _sfc_main = create({
|
|
|
52
52
|
type: Boolean,
|
|
53
53
|
default: false
|
|
54
54
|
},
|
|
55
|
+
position: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: "top"
|
|
58
|
+
},
|
|
55
59
|
onClose: Function,
|
|
56
60
|
onClick: Function,
|
|
57
61
|
unmount: Function
|
|
@@ -107,7 +111,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
107
111
|
}, {
|
|
108
112
|
default: withCtx(() => [
|
|
109
113
|
withDirectives(createElementVNode("view", {
|
|
110
|
-
class: normalizeClass([
|
|
114
|
+
class: normalizeClass([`popup-${_ctx.position}`, "nut-notify", `nut-notify--${_ctx.type}`, [_ctx.className]]),
|
|
111
115
|
style: normalizeStyle({ color: _ctx.color, background: _ctx.background }),
|
|
112
116
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.clickCover && _ctx.clickCover(...args))
|
|
113
117
|
}, [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
3
|
-
* (c)
|
|
2
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { ref, computed, watch, onMounted, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createTextVNode } from "vue";
|
|
@@ -40,6 +40,10 @@ const _sfc_main = create({
|
|
|
40
40
|
overlay: {
|
|
41
41
|
type: Boolean,
|
|
42
42
|
default: true
|
|
43
|
+
},
|
|
44
|
+
isWrapTeleport: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: true
|
|
43
47
|
}
|
|
44
48
|
},
|
|
45
49
|
emits: ["input", "delete", "close", "update:value"],
|
|
@@ -177,6 +181,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
177
181
|
position: "bottom",
|
|
178
182
|
overlay: _ctx.overlay,
|
|
179
183
|
onClickOverlay: _cache[7] || (_cache[7] = ($event) => _ctx.closeBoard()),
|
|
184
|
+
isWrapTeleport: _ctx.isWrapTeleport,
|
|
180
185
|
"overlay-class": "nut-numberkeyboard-overlay"
|
|
181
186
|
}, {
|
|
182
187
|
default: withCtx(() => [
|
|
@@ -231,7 +236,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
231
236
|
]),
|
|
232
237
|
_ctx.title == "" ? (openBlock(), createElementBlock("div", {
|
|
233
238
|
key: 0,
|
|
234
|
-
class: "key-board-wrapper",
|
|
239
|
+
class: "key-board-wrapper key-board-finish",
|
|
235
240
|
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.closeBoard())
|
|
236
241
|
}, [
|
|
237
242
|
createElementVNode("div", {
|
|
@@ -243,7 +248,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
243
248
|
], 512)
|
|
244
249
|
]),
|
|
245
250
|
_: 1
|
|
246
|
-
}, 8, ["visible", "overlay"]);
|
|
251
|
+
}, 8, ["visible", "overlay", "isWrapTeleport"]);
|
|
247
252
|
}
|
|
248
253
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
249
254
|
export { index as default };
|
|
@@ -15,8 +15,8 @@ var __spreadValues = (a, b) => {
|
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
17
|
/*!
|
|
18
|
-
* @nutui/nutui v3.1.
|
|
19
|
-
* (c)
|
|
18
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
19
|
+
* (c) 2022 @jdf2e.
|
|
20
20
|
* Released under the MIT License.
|
|
21
21
|
*/
|
|
22
22
|
import { computed, watch, onDeactivated, onBeforeUnmount, onMounted, onActivated, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, withModifiers, normalizeStyle, renderSlot, vShow } from "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
3
|
-
* (c)
|
|
2
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { toRefs, computed, watchEffect, openBlock, createElementBlock, createElementVNode, normalizeClass, renderSlot, createTextVNode, toDisplayString, Fragment, renderList, createCommentVNode } from "vue";
|