@nutui/nutui 3.2.7 → 3.2.8-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/dist/nutui.es.js +1931 -3371
- package/dist/nutui.umd.js +1928 -3369
- package/dist/packages/_es/ActionSheet.js +2 -5
- package/dist/packages/_es/Address.js +162 -250
- package/dist/packages/_es/AddressList.js +229 -307
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +1 -1
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +1 -1
- 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/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +2 -5
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.js +1 -1
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +1 -1
- package/dist/packages/_es/CircleProgress.js +2 -2
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +4 -11
- package/dist/packages/_es/CollapseItem.js +8 -5
- package/dist/packages/_es/Comment.js +1 -1
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +2 -10
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +8 -17
- package/dist/packages/_es/Dialog.js +38 -63
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +2 -2
- package/dist/packages/_es/Ellipsis.js +1 -1
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +39 -31
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +2 -2
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +1 -1
- package/dist/packages/_es/ImagePreview.js +126 -220
- package/dist/packages/_es/Indicator.js +4 -4
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +107 -123
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Invoice.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +1 -1
- package/dist/packages/_es/Menu.js +14 -1
- package/dist/packages/_es/MenuItem.js +10 -7
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +1 -1
- package/dist/packages/_es/Notify.js +5 -7
- package/dist/packages/_es/NumberKeyboard.js +4 -4
- package/dist/packages/_es/OverLay.js +60 -63
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +25 -50
- package/dist/packages/_es/Popover.js +111 -930
- package/dist/packages/_es/Popup.js +105 -217
- 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 +1 -1
- 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 +4 -4
- 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 +4 -7
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +1 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- 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 +2 -2
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +2 -2
- 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 +4 -4
- package/dist/packages/_es/Toast.js +5 -6
- package/dist/packages/_es/TrendArrow.js +1 -1
- package/dist/packages/_es/Uploader.js +2 -2
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/WaterMark.js +1 -1
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +22 -2
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +1 -1
- package/dist/packages/_es/index5.js +1 -1
- package/dist/packages/_es/interceptor.js +32 -0
- package/dist/packages/_es/mountComponent.js +42 -0
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/props.js +80 -0
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/style.css +1 -1
- package/dist/packages/address/index.scss +7 -2
- package/dist/packages/addresslist/index.scss +61 -101
- package/dist/packages/imagepreview/index.scss +9 -1
- package/dist/packages/inputnumber/index.scss +5 -1
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/menuitem/index.scss +0 -15
- package/dist/packages/notify/index.scss +2 -2
- package/dist/packages/overlay/index.scss +2 -1
- package/dist/packages/picker/index.scss +20 -12
- package/dist/packages/popover/index.scss +191 -363
- package/dist/packages/popup/index.scss +3 -14
- package/dist/smartips/attributes.json +59 -55
- package/dist/smartips/tags.json +16 -19
- package/dist/smartips/web-types.json +114 -112
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +51 -52
- package/dist/styles/themes/jdb.scss +51 -52
- package/dist/styles/themes/jddkh.scss +51 -52
- package/dist/styles/themes/jdt.scss +51 -52
- package/dist/styles/variables.scss +9 -0
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +58 -54
- package/dist/types/__VUE/address/index.vue.d.ts +72 -92
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +29 -9
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +4 -13
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +9 -9
- package/dist/types/__VUE/addresslist/index.vue.d.ts +23 -20
- package/dist/types/__VUE/avatar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
- package/dist/types/__VUE/badge/index.vue.d.ts +1 -1
- package/dist/types/__VUE/button/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cascader/index.vue.d.ts +47 -52
- package/dist/types/__VUE/cell/index.vue.d.ts +3 -3
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countdown/index.vue.d.ts +0 -1
- package/dist/types/__VUE/countdown/util.d.ts +0 -1
- package/dist/types/__VUE/datepicker/index.vue.d.ts +55 -60
- package/dist/types/__VUE/dialog/index.d.ts +0 -3
- package/dist/types/__VUE/dialog/index.vue.d.ts +48 -57
- package/dist/types/__VUE/form/common.d.ts +4 -2
- package/dist/types/__VUE/form/index.vue.d.ts +4 -4
- package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
- package/dist/types/__VUE/image/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +27 -20
- package/dist/types/__VUE/imagepreview/index.d.ts +19 -5
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +56 -42
- package/dist/types/__VUE/imagepreview/types.d.ts +44 -0
- package/dist/types/__VUE/indicator/index.vue.d.ts +1 -0
- package/dist/types/__VUE/input/index.vue.d.ts +37 -25
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/invoice/index.vue.d.ts +1 -1
- package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/navbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/noticebar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/notify/index.vue.d.ts +3 -3
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +3 -3
- package/dist/types/__VUE/overlay/index.vue.d.ts +11 -12
- package/dist/types/__VUE/picker/Column.vue.d.ts +0 -2
- package/dist/types/__VUE/picker/index.vue.d.ts +56 -63
- package/dist/types/__VUE/popover/index.vue.d.ts +37 -140
- package/dist/types/__VUE/popup/common.d.ts +103 -0
- package/dist/types/__VUE/popup/index.vue.d.ts +55 -1591
- package/dist/types/__VUE/popup/props.d.ts +82 -0
- package/dist/types/__VUE/rate/index.vue.d.ts +1 -1
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +4 -4
- package/dist/types/__VUE/sku/index.vue.d.ts +56 -61
- package/dist/types/__VUE/step/index.vue.d.ts +1 -1
- package/dist/types/__VUE/switch/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timeselect/index.vue.d.ts +3 -3
- package/dist/types/__VUE/toast/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +1 -1
- package/dist/types/__VUE/video/index.vue.d.ts +3 -3
- package/dist/types/nutui.d.ts +1 -2
- package/package.json +2 -3
- package/dist/packages/_es/PullRefresh.js +0 -349
- package/dist/packages/pullrefresh/index.scss +0 -71
- package/dist/types/__VUE/addresslist/components/LongPressShell.vue.d.ts +0 -47
- package/dist/types/__VUE/datepicker/utils.d.ts +0 -5
- package/dist/types/__VUE/popup/use-lock-scroll.d.ts +0 -5
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -128
- package/dist/types/__VUE/pullrefresh/use-touch.d.ts +0 -20
- package/dist/types/__VUE/pullrefresh/util.d.ts +0 -6
|
@@ -1,240 +1,129 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.7 Fri
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, reactive, computed, onMounted, onBeforeUnmount, onBeforeMount, onActivated, onDeactivated, watch, toRefs, resolveComponent, openBlock, createBlock, Teleport, normalizeClass, normalizeStyle, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, renderSlot, createElementBlock, mergeProps, vShow } from "vue";
|
|
7
|
-
import overlay, { overlayProps } from "./OverLay.js";
|
|
8
|
-
import _sfc_main$1 from "./Icon.js";
|
|
9
6
|
import { c as createComponent } from "./component.js";
|
|
7
|
+
import { reactive, computed, watch, watchEffect, toRefs, resolveComponent, openBlock, createBlock, Teleport, mergeProps, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, vShow } from "vue";
|
|
8
|
+
import { p as popupProps } from "./props.js";
|
|
10
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
11
10
|
import "../locale/lang";
|
|
12
|
-
|
|
13
|
-
let
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
const initIndex = 2e3;
|
|
12
|
+
let _zIndex = initIndex;
|
|
13
|
+
const component = (componentName2) => {
|
|
14
|
+
return {
|
|
15
|
+
components: {},
|
|
16
|
+
props: {
|
|
17
|
+
...popupProps
|
|
18
|
+
},
|
|
19
|
+
emits: ["click-pop", "click-close-icon", "open", "close", "opend", "closed", "click-overlay", "update:visible"],
|
|
20
|
+
setup(props, { emit }) {
|
|
21
|
+
const state = reactive({
|
|
22
|
+
zIndex: props.zIndex,
|
|
23
|
+
showSlot: true,
|
|
24
|
+
closed: props.closeable
|
|
25
|
+
});
|
|
26
|
+
const classes = computed(() => {
|
|
27
|
+
const prefixCls = componentName2;
|
|
28
|
+
return {
|
|
29
|
+
[prefixCls]: true,
|
|
30
|
+
["round"]: props.round,
|
|
31
|
+
[`popup-${props.position}`]: true,
|
|
32
|
+
[`popup-${props.position}--safebottom`]: props.position === "bottom" && props.safeAreaInsetBottom,
|
|
33
|
+
[props.popClass]: true
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
const popStyle = computed(() => {
|
|
37
|
+
return {
|
|
38
|
+
zIndex: state.zIndex,
|
|
39
|
+
transitionDuration: `${props.duration}s`,
|
|
40
|
+
...props.style
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
const transitionName = computed(() => {
|
|
44
|
+
return props.transition ? props.transition : `popup-slide-${props.position}`;
|
|
45
|
+
});
|
|
46
|
+
const open = () => {
|
|
47
|
+
if (props.zIndex !== initIndex) {
|
|
48
|
+
_zIndex = Number(props.zIndex);
|
|
49
|
+
}
|
|
50
|
+
emit("update:visible", true);
|
|
51
|
+
state.zIndex = ++_zIndex;
|
|
52
|
+
if (props.destroyOnClose) {
|
|
53
|
+
state.showSlot = true;
|
|
54
|
+
}
|
|
55
|
+
emit("open");
|
|
56
|
+
};
|
|
57
|
+
const close = () => {
|
|
58
|
+
emit("update:visible", false);
|
|
59
|
+
emit("close");
|
|
60
|
+
if (props.destroyOnClose) {
|
|
61
|
+
setTimeout(() => {
|
|
62
|
+
state.showSlot = false;
|
|
63
|
+
}, +props.duration * 1e3);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const onClick = (e) => {
|
|
67
|
+
emit("click-pop", e);
|
|
68
|
+
};
|
|
69
|
+
const onClickCloseIcon = (e) => {
|
|
70
|
+
e.stopPropagation();
|
|
71
|
+
emit("click-close-icon", e);
|
|
72
|
+
emit("update:visible", false);
|
|
73
|
+
};
|
|
74
|
+
const onClickOverlay = (e) => {
|
|
75
|
+
if (props.closeOnClickOverlay) {
|
|
76
|
+
emit("click-overlay", e);
|
|
77
|
+
emit("update:visible", false);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
const onOpened = (e) => {
|
|
81
|
+
emit("opend", e);
|
|
82
|
+
};
|
|
83
|
+
const onClosed = (e) => {
|
|
84
|
+
emit("closed", e);
|
|
85
|
+
};
|
|
86
|
+
watch(
|
|
87
|
+
() => props.visible,
|
|
88
|
+
(val) => {
|
|
89
|
+
props.visible ? open() : close();
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
watchEffect(() => {
|
|
93
|
+
state.closed = props.closeable;
|
|
94
|
+
});
|
|
95
|
+
return {
|
|
96
|
+
...toRefs(state),
|
|
97
|
+
popStyle,
|
|
98
|
+
transitionName,
|
|
99
|
+
classes,
|
|
100
|
+
onClick,
|
|
101
|
+
onClickCloseIcon,
|
|
102
|
+
onClickOverlay,
|
|
103
|
+
onOpened,
|
|
104
|
+
onClosed
|
|
105
|
+
};
|
|
26
106
|
}
|
|
27
107
|
};
|
|
28
|
-
return [lock, unlock];
|
|
29
108
|
};
|
|
30
109
|
const { componentName, create } = createComponent("popup");
|
|
31
|
-
|
|
32
|
-
const popupProps = {
|
|
33
|
-
...overlayProps,
|
|
34
|
-
position: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: "center"
|
|
37
|
-
},
|
|
38
|
-
transition: String,
|
|
39
|
-
style: {
|
|
40
|
-
type: Object
|
|
41
|
-
},
|
|
42
|
-
popClass: {
|
|
43
|
-
type: String,
|
|
44
|
-
default: ""
|
|
45
|
-
},
|
|
46
|
-
closeable: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: false
|
|
49
|
-
},
|
|
50
|
-
closeIconPosition: {
|
|
51
|
-
type: String,
|
|
52
|
-
default: "top-right"
|
|
53
|
-
},
|
|
54
|
-
closeIcon: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: "close"
|
|
57
|
-
},
|
|
58
|
-
destroyOnClose: {
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: true
|
|
61
|
-
},
|
|
62
|
-
teleport: {
|
|
63
|
-
type: [String, Element],
|
|
64
|
-
default: "body"
|
|
65
|
-
},
|
|
66
|
-
overlay: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: true
|
|
69
|
-
},
|
|
70
|
-
round: {
|
|
71
|
-
type: Boolean,
|
|
72
|
-
default: false
|
|
73
|
-
},
|
|
74
|
-
isWrapTeleport: {
|
|
75
|
-
type: Boolean,
|
|
76
|
-
default: false
|
|
77
|
-
},
|
|
78
|
-
safeAreaInsetBottom: {
|
|
79
|
-
type: Boolean,
|
|
80
|
-
default: false
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
const _sfc_main = create({
|
|
84
|
-
components: {
|
|
85
|
-
[overlay.name]: overlay,
|
|
86
|
-
[_sfc_main$1.name]: _sfc_main$1
|
|
87
|
-
},
|
|
88
|
-
props: {
|
|
89
|
-
...popupProps
|
|
90
|
-
},
|
|
91
|
-
emits: ["click", "click-close-icon", "open", "close", "opend", "closed", "update:visible", "click-overlay"],
|
|
92
|
-
setup(props, { emit }) {
|
|
93
|
-
const popupRef = ref();
|
|
94
|
-
const state = reactive({
|
|
95
|
-
zIndex: props.zIndex,
|
|
96
|
-
showSlot: true,
|
|
97
|
-
transitionName: `popup-fade-${props.position}`,
|
|
98
|
-
overLayCount: 1,
|
|
99
|
-
keepAlive: false,
|
|
100
|
-
closed: props.closeable
|
|
101
|
-
});
|
|
102
|
-
const [lockScroll, unlockScroll] = useLockScroll(() => props.lockScroll);
|
|
103
|
-
const classes = computed(() => {
|
|
104
|
-
const prefixCls = componentName;
|
|
105
|
-
return {
|
|
106
|
-
[prefixCls]: true,
|
|
107
|
-
["round"]: props.round,
|
|
108
|
-
[`popup-${props.position}`]: true,
|
|
109
|
-
[`popup-${props.position}--safebottom`]: props.position === "bottom" && props.safeAreaInsetBottom,
|
|
110
|
-
[props.popClass]: true
|
|
111
|
-
};
|
|
112
|
-
});
|
|
113
|
-
const popStyle = computed(() => {
|
|
114
|
-
return {
|
|
115
|
-
zIndex: state.zIndex,
|
|
116
|
-
animationDuration: props.duration ? `${props.duration}s` : "initial",
|
|
117
|
-
...props.style
|
|
118
|
-
};
|
|
119
|
-
});
|
|
120
|
-
const open = () => {
|
|
121
|
-
if (props.zIndex != 2e3) {
|
|
122
|
-
_zIndex = Number(props.zIndex);
|
|
123
|
-
}
|
|
124
|
-
emit("update:visible", true);
|
|
125
|
-
lockScroll();
|
|
126
|
-
state.zIndex = ++_zIndex;
|
|
127
|
-
if (props.destroyOnClose) {
|
|
128
|
-
state.showSlot = true;
|
|
129
|
-
}
|
|
130
|
-
emit("open");
|
|
131
|
-
};
|
|
132
|
-
const close = () => {
|
|
133
|
-
unlockScroll();
|
|
134
|
-
emit("update:visible", false);
|
|
135
|
-
emit("close");
|
|
136
|
-
if (props.destroyOnClose) {
|
|
137
|
-
setTimeout(() => {
|
|
138
|
-
state.showSlot = false;
|
|
139
|
-
}, +props.duration * 1e3);
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
const onClick = (e) => {
|
|
143
|
-
emit("click", e);
|
|
144
|
-
};
|
|
145
|
-
const onClickCloseIcon = (e) => {
|
|
146
|
-
emit("click-close-icon", e);
|
|
147
|
-
close();
|
|
148
|
-
};
|
|
149
|
-
const onClickOverlay = (e) => {
|
|
150
|
-
if (props.closeOnClickOverlay) {
|
|
151
|
-
emit("click-overlay", e);
|
|
152
|
-
close();
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
const onOpened = (e) => {
|
|
156
|
-
emit("opend", e);
|
|
157
|
-
};
|
|
158
|
-
const onClosed = (e) => {
|
|
159
|
-
emit("closed", e);
|
|
160
|
-
};
|
|
161
|
-
onMounted(() => {
|
|
162
|
-
props.transition ? state.transitionName = props.transition : state.transitionName = `popup-slide-${props.position}`;
|
|
163
|
-
props.visible && open();
|
|
164
|
-
});
|
|
165
|
-
onBeforeUnmount(() => {
|
|
166
|
-
props.visible && close();
|
|
167
|
-
});
|
|
168
|
-
onBeforeMount(() => {
|
|
169
|
-
if (props.visible) {
|
|
170
|
-
unlockScroll();
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
onActivated(() => {
|
|
174
|
-
if (state.keepAlive) {
|
|
175
|
-
emit("update:visible", true);
|
|
176
|
-
state.keepAlive = false;
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
onDeactivated(() => {
|
|
180
|
-
if (props.visible) {
|
|
181
|
-
close();
|
|
182
|
-
state.keepAlive = true;
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
watch(
|
|
186
|
-
() => props.visible,
|
|
187
|
-
(value) => {
|
|
188
|
-
if (value) {
|
|
189
|
-
open();
|
|
190
|
-
} else {
|
|
191
|
-
close();
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
);
|
|
195
|
-
watch(
|
|
196
|
-
() => props.position,
|
|
197
|
-
(value) => {
|
|
198
|
-
value === "center" ? state.transitionName = "popup-fade" : state.transitionName = `popup-slide-${value}`;
|
|
199
|
-
}
|
|
200
|
-
);
|
|
201
|
-
watch(
|
|
202
|
-
() => props.closeable,
|
|
203
|
-
(value) => {
|
|
204
|
-
state.closed = value;
|
|
205
|
-
}
|
|
206
|
-
);
|
|
207
|
-
return {
|
|
208
|
-
...toRefs(state),
|
|
209
|
-
popStyle,
|
|
210
|
-
classes,
|
|
211
|
-
onClick,
|
|
212
|
-
onClickCloseIcon,
|
|
213
|
-
onClickOverlay,
|
|
214
|
-
onOpened,
|
|
215
|
-
onClosed,
|
|
216
|
-
popupRef
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
});
|
|
110
|
+
const _sfc_main = create(component(componentName));
|
|
220
111
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
221
112
|
const _component_nut_overlay = resolveComponent("nut-overlay");
|
|
222
113
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
223
114
|
return openBlock(), createBlock(Teleport, {
|
|
224
115
|
to: _ctx.teleport,
|
|
225
|
-
disabled: !_ctx.
|
|
116
|
+
disabled: !_ctx.teleportDisable
|
|
226
117
|
}, [
|
|
227
|
-
_ctx.overlay ? (openBlock(), createBlock(_component_nut_overlay, {
|
|
118
|
+
_ctx.overlay ? (openBlock(), createBlock(_component_nut_overlay, mergeProps({
|
|
228
119
|
key: 0,
|
|
229
120
|
visible: _ctx.visible,
|
|
230
121
|
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
231
|
-
class: normalizeClass(_ctx.overlayClass),
|
|
232
|
-
style: normalizeStyle(_ctx.overlayStyle),
|
|
233
122
|
"z-index": _ctx.zIndex,
|
|
234
123
|
"lock-scroll": _ctx.lockScroll,
|
|
235
124
|
duration: _ctx.duration,
|
|
236
125
|
onClick: _ctx.onClickOverlay
|
|
237
|
-
}, null,
|
|
126
|
+
}, _ctx.$attrs), null, 16, ["visible", "close-on-click-overlay", "z-index", "lock-scroll", "duration", "onClick"])) : createCommentVNode("", true),
|
|
238
127
|
createVNode(Transition, {
|
|
239
128
|
name: _ctx.transitionName,
|
|
240
129
|
onAfterEnter: _ctx.onOpened,
|
|
@@ -244,14 +133,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
244
133
|
withDirectives(createElementVNode("view", {
|
|
245
134
|
class: normalizeClass(_ctx.classes),
|
|
246
135
|
style: normalizeStyle(_ctx.popStyle),
|
|
247
|
-
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
248
|
-
ref: "popupRef"
|
|
136
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
249
137
|
}, [
|
|
250
138
|
_ctx.showSlot ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
|
|
251
139
|
_ctx.closed ? (openBlock(), createElementBlock("view", {
|
|
252
140
|
key: 1,
|
|
253
141
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
|
|
254
|
-
class: normalizeClass(["
|
|
142
|
+
class: normalizeClass(["nut-popup__close-icon", "nut-popup__close-icon--" + _ctx.closeIconPosition])
|
|
255
143
|
}, [
|
|
256
144
|
createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
|
|
257
145
|
name: _ctx.closeIcon,
|
|
@@ -267,4 +155,4 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
267
155
|
], 8, ["to", "disabled"]);
|
|
268
156
|
}
|
|
269
157
|
var Popup = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
270
|
-
export { Popup as default
|
|
158
|
+
export { Popup as default };
|
package/dist/packages/_es/Row.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.7 Fri
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -46,7 +46,7 @@ const _sfc_main = create({
|
|
|
46
46
|
type: [String, Number],
|
|
47
47
|
default: 6
|
|
48
48
|
},
|
|
49
|
-
|
|
49
|
+
teleportDisable: {
|
|
50
50
|
type: Boolean,
|
|
51
51
|
default: true
|
|
52
52
|
}
|
|
@@ -174,7 +174,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
174
174
|
onClickCloseIcon: _ctx.closeIcon,
|
|
175
175
|
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
176
176
|
onClickOverlay: _ctx.close,
|
|
177
|
-
|
|
177
|
+
teleportDisable: _ctx.teleportDisable
|
|
178
178
|
}, {
|
|
179
179
|
default: withCtx(() => [
|
|
180
180
|
createElementVNode("view", _hoisted_1, toDisplayString(_ctx.title || _ctx.translate("title")), 1),
|
|
@@ -231,7 +231,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
231
231
|
])) : createCommentVNode("", true)
|
|
232
232
|
]),
|
|
233
233
|
_: 1
|
|
234
|
-
}, 8, ["visible", "onClickCloseIcon", "close-on-click-overlay", "onClickOverlay", "
|
|
234
|
+
}, 8, ["visible", "onClickCloseIcon", "close-on-click-overlay", "onClickOverlay", "teleportDisable"])
|
|
235
235
|
]);
|
|
236
236
|
}
|
|
237
237
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
package/dist/packages/_es/Sku.js
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.7 Fri
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
|
|
7
7
|
import { c as createComponent, T as TypeOfFun } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
|
-
import { popupProps } from "./
|
|
9
|
+
import { p as popupProps } from "./props.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
|
-
import "./OverLay.js";
|
|
12
|
-
import "./Icon.js";
|
|
13
|
-
import "./pxCheck.js";
|
|
14
11
|
const { componentName: componentName$4, create: create$4, translate: translate$1 } = createComponent("sku-header");
|
|
15
12
|
const _sfc_main$4 = create$4({
|
|
16
13
|
props: {
|
|
@@ -439,7 +436,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
439
436
|
onClickOverlay: _cache[2] || (_cache[2] = ($event) => _ctx.closePopup("overlay")),
|
|
440
437
|
onClose: _cache[3] || (_cache[3] = ($event) => _ctx.closePopup("close")),
|
|
441
438
|
style: { "height": "75%" },
|
|
442
|
-
|
|
439
|
+
teleportDisable: _ctx.teleportDisable,
|
|
443
440
|
teleport: _ctx.teleport
|
|
444
441
|
}, {
|
|
445
442
|
default: withCtx(() => [
|
|
@@ -506,7 +503,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
506
503
|
])
|
|
507
504
|
]),
|
|
508
505
|
_: 3
|
|
509
|
-
}, 8, ["visible", "
|
|
506
|
+
}, 8, ["visible", "teleportDisable", "teleport"]);
|
|
510
507
|
}
|
|
511
508
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
512
509
|
export { index as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.7 Fri
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { c as createComponent } from "./component.js";
|
|
7
|
-
import { u as useRouter } from "./index.js";
|
|
8
7
|
import { inject, reactive, getCurrentInstance, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, toDisplayString, createCommentVNode, renderSlot, createVNode } from "vue";
|
|
8
|
+
import { u as useRouter } from "./index.js";
|
|
9
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
11
|
const { create } = createComponent("tabbar-item");
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.7 Fri
|
|
2
|
+
* @nutui/nutui v3.2.7 Fri Dec 02 2022 14:12:17 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { T as TypeOfFun, c as createComponent } from "./component.js";
|
|
7
|
+
import { ref, provide, computed, watch, onMounted, onActivated, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode, createVNode, toDisplayString } from "vue";
|
|
7
8
|
import { p as pxCheck } from "./pxCheck.js";
|
|
8
9
|
import { u as useRect } from "./index2.js";
|
|
9
|
-
import { ref, provide, computed, watch, onMounted, onActivated, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode, createVNode, toDisplayString } from "vue";
|
|
10
10
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
11
11
|
import "../locale/lang";
|
|
12
12
|
class Title {
|
package/dist/packages/_es/Tag.js
CHANGED