naive-ui 2.21.1 → 2.21.2
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/es/_internal/scrollbar/src/ScrollBar.d.ts +1 -0
- package/es/_internal/scrollbar/src/ScrollBar.js +9 -4
- package/es/_internal/select-menu/src/SelectMenu.d.ts +1 -0
- package/es/_internal/selection/src/Selection.d.ts +1 -0
- package/es/_styles/common/dark.js +2 -1
- package/es/_styles/common/light.d.ts +1 -0
- package/es/_styles/common/light.js +1 -1
- package/es/alert/src/Alert.d.ts +1 -0
- package/es/auto-complete/src/AutoComplete.d.ts +1 -0
- package/es/auto-complete/src/AutoComplete.js +4 -1
- package/es/calendar/src/Calendar.d.ts +1 -0
- package/es/card/src/Card.d.ts +1 -0
- package/es/cascader/src/Cascader.d.ts +1 -0
- package/es/cascader/src/CascaderOption.d.ts +1 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +1 -0
- package/es/checkbox/src/Checkbox.d.ts +1 -0
- package/es/collapse/src/Collapse.d.ts +1 -0
- package/es/color-picker/src/ColorInputUnit.d.ts +1 -0
- package/es/data-table/src/DataTable.d.ts +1 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +1 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -1
- package/es/data-table/src/TableParts/Body.d.ts +1 -0
- package/es/data-table/src/TableParts/Cell.d.ts +2 -0
- package/es/data-table/src/TableParts/Header.d.ts +1 -0
- package/es/data-table/src/styles/index.cssr.js +2 -2
- package/es/data-table/src/use-table-data.js +3 -3
- package/es/data-table/styles/light.js +4 -4
- package/es/date-picker/src/DatePicker.d.ts +1 -0
- package/es/date-picker/src/panel/date.d.ts +2 -1
- package/es/date-picker/src/panel/daterange.d.ts +3 -2
- package/es/date-picker/src/panel/datetime.d.ts +2 -1
- package/es/date-picker/src/panel/datetimerange.d.ts +3 -2
- package/es/date-picker/src/panel/month.d.ts +2 -1
- package/es/date-picker/src/panel/use-calendar.d.ts +2 -1
- package/es/date-picker/src/panel/use-calendar.js +2 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +3 -2
- package/es/date-picker/src/panel/use-dual-calendar.js +4 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +1 -0
- package/es/dialog/src/Dialog.d.ts +1 -0
- package/es/drawer/src/Drawer.d.ts +1 -0
- package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -0
- package/es/drawer/src/DrawerContent.d.ts +1 -0
- package/es/dropdown/src/Dropdown.d.ts +6 -5
- package/es/dynamic-input/src/DynamicInput.d.ts +1 -0
- package/es/dynamic-input/src/InputPreset.d.ts +1 -0
- package/es/dynamic-input/src/PairPreset.d.ts +1 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -0
- package/es/ellipsis/src/Ellipsis.d.ts +1 -0
- package/es/input/src/Input.d.ts +1 -0
- package/es/input-number/src/InputNumber.d.ts +35 -0
- package/es/input-number/src/InputNumber.js +22 -6
- package/es/layout/src/Layout.d.ts +2 -0
- package/es/layout/src/LayoutContent.d.ts +1 -0
- package/es/layout/src/LayoutSider.d.ts +1 -0
- package/es/log/src/Log.d.ts +7 -25
- package/es/log/src/Log.js +2 -11
- package/es/log/src/LogLine.d.ts +1 -0
- package/es/log/src/LogLine.js +12 -10
- package/es/mention/src/Mention.d.ts +1 -0
- package/es/menu/src/Menu.d.ts +1 -0
- package/es/menu/src/MenuOption.d.ts +1 -0
- package/es/modal/src/BodyWrapper.d.ts +1 -0
- package/es/notification/src/NotificationContainer.d.ts +8 -0
- package/es/notification/src/NotificationContainer.js +7 -2
- package/es/notification/src/NotificationProvider.d.ts +17 -0
- package/es/notification/src/NotificationProvider.js +38 -3
- package/es/notification/src/styles/index.cssr.d.ts +2 -1
- package/es/notification/src/styles/index.cssr.js +41 -12
- package/es/pagination/src/Pagination.d.ts +1 -0
- package/es/popconfirm/src/Popconfirm.d.ts +6 -5
- package/es/popover/src/Popover.d.ts +6 -6
- package/es/popover/src/Popover.js +2 -5
- package/es/popover/src/PopoverBody.d.ts +5 -5
- package/es/popover/src/PopoverBody.js +2 -1
- package/es/popover/src/styles/index.cssr.js +0 -1
- package/es/popselect/src/Popselect.d.ts +6 -5
- package/es/popselect/src/PopselectPanel.d.ts +1 -0
- package/es/select/src/Select.d.ts +1 -0
- package/es/slider/src/Slider.d.ts +1 -0
- package/es/slider/src/Slider.js +70 -54
- package/es/table/styles/light.js +2 -2
- package/es/theme-editor/src/ThemeEditor.d.ts +1 -0
- package/es/time-picker/src/Panel.d.ts +1 -0
- package/es/time-picker/src/TimePicker.d.ts +1 -0
- package/es/tooltip/src/Tooltip.d.ts +6 -5
- package/es/transfer/src/Transfer.d.ts +1 -0
- package/es/transfer/src/TransferFilter.d.ts +1 -0
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/transfer/src/TransferListItem.d.ts +1 -0
- package/es/tree/src/Tree.d.ts +1 -0
- package/es/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/es/tree-select/src/TreeSelect.d.ts +1 -0
- package/es/upload/index.d.ts +1 -2
- package/es/upload/src/Upload.d.ts +8 -9
- package/es/upload/src/Upload.js +69 -16
- package/es/upload/src/UploadFile.d.ts +1 -0
- package/es/upload/src/UploadProgress.d.ts +1 -0
- package/es/upload/src/interface.d.ts +14 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +1 -0
- package/lib/_internal/scrollbar/src/ScrollBar.js +9 -4
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +1 -0
- package/lib/_internal/selection/src/Selection.d.ts +1 -0
- package/lib/_styles/common/dark.js +2 -1
- package/lib/_styles/common/light.d.ts +1 -0
- package/lib/_styles/common/light.js +1 -1
- package/lib/alert/src/Alert.d.ts +1 -0
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -0
- package/lib/auto-complete/src/AutoComplete.js +4 -1
- package/lib/calendar/src/Calendar.d.ts +1 -0
- package/lib/card/src/Card.d.ts +1 -0
- package/lib/cascader/src/Cascader.d.ts +1 -0
- package/lib/cascader/src/CascaderOption.d.ts +1 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +1 -0
- package/lib/checkbox/src/Checkbox.d.ts +1 -0
- package/lib/collapse/src/Collapse.d.ts +1 -0
- package/lib/color-picker/src/ColorInputUnit.d.ts +1 -0
- package/lib/data-table/src/DataTable.d.ts +1 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +1 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -1
- package/lib/data-table/src/TableParts/Body.d.ts +1 -0
- package/lib/data-table/src/TableParts/Cell.d.ts +2 -0
- package/lib/data-table/src/TableParts/Header.d.ts +1 -0
- package/lib/data-table/src/styles/index.cssr.js +2 -2
- package/lib/data-table/src/use-table-data.js +3 -3
- package/lib/data-table/styles/light.js +4 -4
- package/lib/date-picker/src/DatePicker.d.ts +1 -0
- package/lib/date-picker/src/panel/date.d.ts +2 -1
- package/lib/date-picker/src/panel/daterange.d.ts +3 -2
- package/lib/date-picker/src/panel/datetime.d.ts +2 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +3 -2
- package/lib/date-picker/src/panel/month.d.ts +2 -1
- package/lib/date-picker/src/panel/use-calendar.d.ts +2 -1
- package/lib/date-picker/src/panel/use-calendar.js +2 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +3 -2
- package/lib/date-picker/src/panel/use-dual-calendar.js +4 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +1 -0
- package/lib/dialog/src/Dialog.d.ts +1 -0
- package/lib/drawer/src/Drawer.d.ts +1 -0
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -0
- package/lib/drawer/src/DrawerContent.d.ts +1 -0
- package/lib/dropdown/src/Dropdown.d.ts +6 -5
- package/lib/dynamic-input/src/DynamicInput.d.ts +1 -0
- package/lib/dynamic-input/src/InputPreset.d.ts +1 -0
- package/lib/dynamic-input/src/PairPreset.d.ts +1 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -0
- package/lib/ellipsis/src/Ellipsis.d.ts +1 -0
- package/lib/input/src/Input.d.ts +1 -0
- package/lib/input-number/src/InputNumber.d.ts +35 -0
- package/lib/input-number/src/InputNumber.js +22 -6
- package/lib/layout/src/Layout.d.ts +2 -0
- package/lib/layout/src/LayoutContent.d.ts +1 -0
- package/lib/layout/src/LayoutSider.d.ts +1 -0
- package/lib/log/src/Log.d.ts +7 -25
- package/lib/log/src/Log.js +2 -11
- package/lib/log/src/LogLine.d.ts +1 -0
- package/lib/log/src/LogLine.js +11 -9
- package/lib/mention/src/Mention.d.ts +1 -0
- package/lib/menu/src/Menu.d.ts +1 -0
- package/lib/menu/src/MenuOption.d.ts +1 -0
- package/lib/modal/src/BodyWrapper.d.ts +1 -0
- package/lib/notification/src/NotificationContainer.d.ts +8 -0
- package/lib/notification/src/NotificationContainer.js +7 -2
- package/lib/notification/src/NotificationProvider.d.ts +17 -0
- package/lib/notification/src/NotificationProvider.js +38 -3
- package/lib/notification/src/styles/index.cssr.d.ts +2 -1
- package/lib/notification/src/styles/index.cssr.js +41 -12
- package/lib/pagination/src/Pagination.d.ts +1 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +6 -5
- package/lib/popover/src/Popover.d.ts +6 -6
- package/lib/popover/src/Popover.js +2 -5
- package/lib/popover/src/PopoverBody.d.ts +5 -5
- package/lib/popover/src/PopoverBody.js +2 -1
- package/lib/popover/src/styles/index.cssr.js +0 -1
- package/lib/popselect/src/Popselect.d.ts +6 -5
- package/lib/popselect/src/PopselectPanel.d.ts +1 -0
- package/lib/select/src/Select.d.ts +1 -0
- package/lib/slider/src/Slider.d.ts +1 -0
- package/lib/slider/src/Slider.js +70 -54
- package/lib/table/styles/light.js +2 -2
- package/lib/theme-editor/src/ThemeEditor.d.ts +1 -0
- package/lib/time-picker/src/Panel.d.ts +1 -0
- package/lib/time-picker/src/TimePicker.d.ts +1 -0
- package/lib/tooltip/src/Tooltip.d.ts +6 -5
- package/lib/transfer/src/Transfer.d.ts +1 -0
- package/lib/transfer/src/TransferFilter.d.ts +1 -0
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/transfer/src/TransferListItem.d.ts +1 -0
- package/lib/tree/src/Tree.d.ts +1 -0
- package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/lib/tree-select/src/TreeSelect.d.ts +1 -0
- package/lib/upload/index.d.ts +1 -2
- package/lib/upload/src/Upload.d.ts +8 -9
- package/lib/upload/src/Upload.js +69 -16
- package/lib/upload/src/UploadFile.d.ts +1 -0
- package/lib/upload/src/UploadProgress.d.ts +1 -0
- package/lib/upload/src/interface.d.ts +14 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -3
- package/web-types.json +51 -6
|
@@ -18,6 +18,9 @@ exports.notificationApiInjectionKey = Symbol('notificationApi');
|
|
|
18
18
|
const notificationProviderProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { to: [String, Object], scrollable: {
|
|
19
19
|
type: Boolean,
|
|
20
20
|
default: true
|
|
21
|
+
}, max: Number, placement: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: 'top-right'
|
|
21
24
|
} });
|
|
22
25
|
exports.default = (0, vue_1.defineComponent)({
|
|
23
26
|
name: 'NotificationProvider',
|
|
@@ -26,11 +29,36 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
26
29
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
27
30
|
const notificationListRef = (0, vue_1.ref)([]);
|
|
28
31
|
const notificationRefs = {};
|
|
32
|
+
const leavingKeySet = new Set();
|
|
29
33
|
function create(options) {
|
|
30
34
|
const key = (0, seemly_1.createId)();
|
|
31
|
-
const destroy = () =>
|
|
35
|
+
const destroy = () => {
|
|
36
|
+
leavingKeySet.add(key);
|
|
37
|
+
// If you push n + 1 message when max is n, notificationRefs[key] maybe not be set
|
|
38
|
+
if (notificationRefs[key]) {
|
|
39
|
+
notificationRefs[key].hide();
|
|
40
|
+
}
|
|
41
|
+
};
|
|
32
42
|
const notificationReactive = (0, vue_1.reactive)(Object.assign(Object.assign({}, options), { key,
|
|
33
43
|
destroy, hide: destroy, deactivate: destroy }));
|
|
44
|
+
const { max } = props;
|
|
45
|
+
if (max && notificationListRef.value.length - leavingKeySet.size >= max) {
|
|
46
|
+
let someoneMountedRemoved = false;
|
|
47
|
+
let index = 0;
|
|
48
|
+
for (const notification of notificationListRef.value) {
|
|
49
|
+
if (!leavingKeySet.has(notification.key)) {
|
|
50
|
+
if (notificationRefs[notification.key]) {
|
|
51
|
+
notification.destroy();
|
|
52
|
+
someoneMountedRemoved = true;
|
|
53
|
+
}
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
index++;
|
|
57
|
+
}
|
|
58
|
+
if (!someoneMountedRemoved) {
|
|
59
|
+
notificationListRef.value.splice(index, 1);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
34
62
|
notificationListRef.value.push(notificationReactive);
|
|
35
63
|
return notificationReactive;
|
|
36
64
|
}
|
|
@@ -38,6 +66,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
38
66
|
return (options) => create(Object.assign(Object.assign({}, options), { type }));
|
|
39
67
|
});
|
|
40
68
|
function handleAfterLeave(key) {
|
|
69
|
+
leavingKeySet.delete(key);
|
|
41
70
|
notificationListRef.value.splice(notificationListRef.value.findIndex((notification) => notification.key === key), 1);
|
|
42
71
|
}
|
|
43
72
|
const themeRef = (0, _mixins_1.useTheme)('Notification', 'Notification', index_cssr_1.default, styles_1.notificationLight, props, mergedClsPrefixRef);
|
|
@@ -47,7 +76,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
47
76
|
success: apis[1],
|
|
48
77
|
warning: apis[2],
|
|
49
78
|
error: apis[3],
|
|
50
|
-
open
|
|
79
|
+
open,
|
|
80
|
+
destroyAll
|
|
51
81
|
};
|
|
52
82
|
(0, vue_1.provide)(exports.notificationApiInjectionKey, api);
|
|
53
83
|
(0, vue_1.provide)(exports.notificationProviderInjectionKey, {
|
|
@@ -58,6 +88,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
58
88
|
function open(options) {
|
|
59
89
|
return create(options);
|
|
60
90
|
}
|
|
91
|
+
function destroyAll() {
|
|
92
|
+
Object.values(notificationListRef.value).forEach((notification) => {
|
|
93
|
+
notification.hide();
|
|
94
|
+
});
|
|
95
|
+
}
|
|
61
96
|
return Object.assign({
|
|
62
97
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
63
98
|
notificationList: notificationListRef,
|
|
@@ -70,7 +105,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
70
105
|
return ((0, vue_1.h)(vue_1.Fragment, null,
|
|
71
106
|
(0, vue_1.renderSlot)(this.$slots, 'default'),
|
|
72
107
|
this.notificationList.length ? ((0, vue_1.h)(vue_1.Teleport, { to: (_a = this.to) !== null && _a !== void 0 ? _a : 'body' },
|
|
73
|
-
(0, vue_1.h)(NotificationContainer_1.default, { scrollable: this.scrollable }, {
|
|
108
|
+
(0, vue_1.h)(NotificationContainer_1.default, { scrollable: this.scrollable, placement: this.placement }, {
|
|
74
109
|
default: () => {
|
|
75
110
|
return this.notificationList.map((notification) => {
|
|
76
111
|
return ((0, vue_1.h)(NotificationEnvironment_1.default, Object.assign({ ref: ((inst) => {
|
|
@@ -33,10 +33,6 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
33
33
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('notification-container', `
|
|
34
34
|
z-index: 4000;
|
|
35
35
|
position: fixed;
|
|
36
|
-
top: 12px;
|
|
37
|
-
left: 0;
|
|
38
|
-
right: 0;
|
|
39
|
-
height: 0;
|
|
40
36
|
overflow: visible;
|
|
41
37
|
display: flex;
|
|
42
38
|
flex-direction: column;
|
|
@@ -54,15 +50,37 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('notification-container', `
|
|
|
54
50
|
`, [(0, cssr_1.cB)('scrollbar-content', `
|
|
55
51
|
padding-top: 12px;
|
|
56
52
|
padding-bottom: 33px;
|
|
57
|
-
`)])])])]), (0, cssr_1.cM)('
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
`)])])])]), (0, cssr_1.cM)('top-right, bottom-right', [(0, cssr_1.cB)('notification', `
|
|
54
|
+
margin-left: 28px;
|
|
55
|
+
margin-right: 16px;
|
|
56
|
+
`)]), (0, cssr_1.cM)('top-left, bottom-left', [(0, cssr_1.cB)('notification', `
|
|
57
|
+
margin-left: 16px;
|
|
58
|
+
margin-right: 28px;
|
|
59
|
+
`)]), (0, cssr_1.cM)('top-right', `
|
|
60
|
+
right: 0;
|
|
61
|
+
top: 12px;
|
|
62
|
+
`, [placementTransformStyle('top-right')]), (0, cssr_1.cM)('top-left', `
|
|
63
|
+
left: 0;
|
|
64
|
+
top: 12px;
|
|
65
|
+
`, [placementTransformStyle('top-left')]), (0, cssr_1.cM)('bottom-right', `
|
|
66
|
+
right: 0;
|
|
67
|
+
bottom: 12px;
|
|
68
|
+
`, [placementTransformStyle('bottom-right')]), (0, cssr_1.cM)('bottom-left', `
|
|
69
|
+
left: 0;
|
|
70
|
+
bottom: 12px;
|
|
71
|
+
`, [placementTransformStyle('bottom-left')]), (0, cssr_1.cM)('scrollable', [(0, cssr_1.cM)('top-right', `
|
|
72
|
+
top: 0;
|
|
73
|
+
`), (0, cssr_1.cM)('top-left', `
|
|
74
|
+
top: 0;
|
|
75
|
+
`), (0, cssr_1.cM)('bottom-right', `
|
|
76
|
+
bottom: 0;
|
|
77
|
+
`), (0, cssr_1.cM)('bottom-left', `
|
|
78
|
+
bottom: 0;
|
|
79
|
+
`)]), (0, cssr_1.cB)('notification', [(0, cssr_1.c)('&.notification-transition-enter-from, &.notification-transition-leave-to', `
|
|
60
80
|
opacity: 0;
|
|
61
81
|
margin-bottom: 0 !important;
|
|
62
|
-
transform: translateX(calc(100% + 16px));
|
|
63
82
|
`), (0, cssr_1.c)('&.notification-transition-leave-from, &.notification-transition-enter-to', `
|
|
64
83
|
opacity: 1;
|
|
65
|
-
transform: translateX(0);
|
|
66
84
|
`), (0, cssr_1.c)('&.notification-transition-leave-active', `
|
|
67
85
|
transition:
|
|
68
86
|
background-color .3s var(--bezier),
|
|
@@ -91,8 +109,6 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('notification-container', `
|
|
|
91
109
|
overflow: hidden;
|
|
92
110
|
flex-shrink: 0;
|
|
93
111
|
margin-bottom: 12px;
|
|
94
|
-
margin-left: 28px;
|
|
95
|
-
margin-right: 16px;
|
|
96
112
|
padding-left: var(--padding-left);
|
|
97
113
|
padding-right: var(--padding-right);
|
|
98
114
|
width: var(--width);
|
|
@@ -167,4 +183,17 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('notification-container', `
|
|
|
167
183
|
color: var(--text-color);
|
|
168
184
|
`, [(0, cssr_1.c)('&:first-child', {
|
|
169
185
|
margin: 0
|
|
170
|
-
})])])])])]);
|
|
186
|
+
})])])])])]);
|
|
187
|
+
|
|
188
|
+
function placementTransformStyle(placement) {
|
|
189
|
+
const [position, direction] = placement.split('-');
|
|
190
|
+
const transformYEnter = position === 'top' ? '-100%' : '100%';
|
|
191
|
+
const transformYLeave = position === 'top' ? '0' : '0';
|
|
192
|
+
const transformXEnter = direction === 'left' ? 'calc(-100%)' : 'calc(100%)';
|
|
193
|
+
const transformXLeave = '0';
|
|
194
|
+
return (0, cssr_1.cB)('notification', [(0, cssr_1.c)('&.notification-transition-enter-from, &.notification-transition-leave-to', `
|
|
195
|
+
transform: translate(${transformXEnter}, ${transformYEnter});
|
|
196
|
+
`), (0, cssr_1.c)('&.notification-transition-leave-from, &.notification-transition-enter-to', `
|
|
197
|
+
transform: translate(${transformXLeave}, ${transformYLeave});
|
|
198
|
+
`)]);
|
|
199
|
+
}
|
|
@@ -1545,6 +1545,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1545
1545
|
tableHeaderColor: string;
|
|
1546
1546
|
hoverColor: string;
|
|
1547
1547
|
tableColorHover: string;
|
|
1548
|
+
tableColorStriped: string;
|
|
1548
1549
|
pressedColor: string;
|
|
1549
1550
|
opacityDisabled: string;
|
|
1550
1551
|
inputColorDisabled: string;
|
|
@@ -45,7 +45,7 @@ declare const popconfirmProps: {
|
|
|
45
45
|
default: string;
|
|
46
46
|
};
|
|
47
47
|
arrowStyle: PropType<string | import("vue").CSSProperties>;
|
|
48
|
-
|
|
48
|
+
flip: {
|
|
49
49
|
type: BooleanConstructor;
|
|
50
50
|
default: boolean;
|
|
51
51
|
};
|
|
@@ -801,7 +801,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
801
801
|
default: string;
|
|
802
802
|
};
|
|
803
803
|
arrowStyle: PropType<string | import("vue").CSSProperties>;
|
|
804
|
-
|
|
804
|
+
flip: {
|
|
805
805
|
type: BooleanConstructor;
|
|
806
806
|
default: boolean;
|
|
807
807
|
};
|
|
@@ -1582,6 +1582,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1582
1582
|
tableHeaderColor: string;
|
|
1583
1583
|
hoverColor: string;
|
|
1584
1584
|
tableColorHover: string;
|
|
1585
|
+
tableColorStriped: string;
|
|
1585
1586
|
pressedColor: string;
|
|
1586
1587
|
opacityDisabled: string;
|
|
1587
1588
|
inputColorDisabled: string;
|
|
@@ -1879,7 +1880,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1879
1880
|
getDisabled?: unknown;
|
|
1880
1881
|
displayDirective?: unknown;
|
|
1881
1882
|
arrowStyle?: unknown;
|
|
1882
|
-
|
|
1883
|
+
flip?: unknown;
|
|
1883
1884
|
animated?: unknown;
|
|
1884
1885
|
width?: unknown;
|
|
1885
1886
|
overlap?: unknown;
|
|
@@ -1900,6 +1901,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1900
1901
|
themeOverrides?: unknown;
|
|
1901
1902
|
builtinThemeOverrides?: unknown;
|
|
1902
1903
|
} & {
|
|
1904
|
+
flip: boolean;
|
|
1903
1905
|
disabled: boolean;
|
|
1904
1906
|
duration: number;
|
|
1905
1907
|
raw: boolean;
|
|
@@ -1909,7 +1911,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1909
1911
|
showArrow: boolean;
|
|
1910
1912
|
delay: number;
|
|
1911
1913
|
displayDirective: "show" | "if";
|
|
1912
|
-
filp: boolean;
|
|
1913
1914
|
animated: boolean;
|
|
1914
1915
|
defaultShow: boolean;
|
|
1915
1916
|
internalExtraClass: string[];
|
|
@@ -2611,6 +2612,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2611
2612
|
onNegativeClick?: ((e: MouseEvent) => any) | undefined;
|
|
2612
2613
|
}>, {
|
|
2613
2614
|
show: boolean | undefined;
|
|
2615
|
+
flip: boolean;
|
|
2614
2616
|
width: number | "trigger";
|
|
2615
2617
|
disabled: boolean;
|
|
2616
2618
|
duration: number;
|
|
@@ -2622,7 +2624,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2622
2624
|
showArrow: boolean;
|
|
2623
2625
|
delay: number;
|
|
2624
2626
|
displayDirective: "show" | "if";
|
|
2625
|
-
filp: boolean;
|
|
2626
2627
|
animated: boolean;
|
|
2627
2628
|
defaultShow: boolean;
|
|
2628
2629
|
internalExtraClass: string[];
|
|
@@ -62,7 +62,7 @@ export declare const popoverBaseProps: {
|
|
|
62
62
|
default: string;
|
|
63
63
|
};
|
|
64
64
|
arrowStyle: PropType<string | CSSProperties>;
|
|
65
|
-
|
|
65
|
+
flip: {
|
|
66
66
|
type: BooleanConstructor;
|
|
67
67
|
default: boolean;
|
|
68
68
|
};
|
|
@@ -143,7 +143,7 @@ declare const popoverProps: {
|
|
|
143
143
|
default: string;
|
|
144
144
|
};
|
|
145
145
|
arrowStyle: PropType<string | CSSProperties>;
|
|
146
|
-
|
|
146
|
+
flip: {
|
|
147
147
|
type: BooleanConstructor;
|
|
148
148
|
default: boolean;
|
|
149
149
|
};
|
|
@@ -268,7 +268,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
268
268
|
default: string;
|
|
269
269
|
};
|
|
270
270
|
arrowStyle: PropType<string | CSSProperties>;
|
|
271
|
-
|
|
271
|
+
flip: {
|
|
272
272
|
type: BooleanConstructor;
|
|
273
273
|
default: boolean;
|
|
274
274
|
};
|
|
@@ -385,7 +385,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
385
385
|
getDisabled?: unknown;
|
|
386
386
|
displayDirective?: unknown;
|
|
387
387
|
arrowStyle?: unknown;
|
|
388
|
-
|
|
388
|
+
flip?: unknown;
|
|
389
389
|
animated?: unknown;
|
|
390
390
|
width?: unknown;
|
|
391
391
|
overlap?: unknown;
|
|
@@ -406,6 +406,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
406
406
|
themeOverrides?: unknown;
|
|
407
407
|
builtinThemeOverrides?: unknown;
|
|
408
408
|
} & {
|
|
409
|
+
flip: boolean;
|
|
409
410
|
disabled: boolean;
|
|
410
411
|
duration: number;
|
|
411
412
|
raw: boolean;
|
|
@@ -415,7 +416,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
415
416
|
showArrow: boolean;
|
|
416
417
|
delay: number;
|
|
417
418
|
displayDirective: "show" | "if";
|
|
418
|
-
filp: boolean;
|
|
419
419
|
animated: boolean;
|
|
420
420
|
defaultShow: boolean;
|
|
421
421
|
internalExtraClass: string[];
|
|
@@ -483,6 +483,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
483
483
|
internalRenderBody?: InternalRenderBody | undefined;
|
|
484
484
|
}>, {
|
|
485
485
|
show: boolean | undefined;
|
|
486
|
+
flip: boolean;
|
|
486
487
|
width: number | "trigger";
|
|
487
488
|
disabled: boolean;
|
|
488
489
|
duration: number;
|
|
@@ -494,7 +495,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
494
495
|
showArrow: boolean;
|
|
495
496
|
delay: number;
|
|
496
497
|
displayDirective: "show" | "if";
|
|
497
|
-
filp: boolean;
|
|
498
498
|
animated: boolean;
|
|
499
499
|
defaultShow: boolean;
|
|
500
500
|
internalExtraClass: string[];
|
|
@@ -90,7 +90,7 @@ exports.popoverBaseProps = {
|
|
|
90
90
|
default: 'if'
|
|
91
91
|
},
|
|
92
92
|
arrowStyle: [String, Object],
|
|
93
|
-
|
|
93
|
+
flip: {
|
|
94
94
|
type: Boolean,
|
|
95
95
|
default: true
|
|
96
96
|
},
|
|
@@ -141,9 +141,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
141
141
|
setup(props) {
|
|
142
142
|
if (process.env.NODE_ENV !== 'production') {
|
|
143
143
|
(0, vue_1.watchEffect)(() => {
|
|
144
|
-
if (props.maxWidth !== undefined) {
|
|
145
|
-
(0, _utils_1.warnOnce)('popover', '`max-width` is deprecated, please use `style` instead.');
|
|
146
|
-
}
|
|
147
144
|
if (props.minWidth !== undefined) {
|
|
148
145
|
(0, _utils_1.warnOnce)('popover', '`max-width` is deprecated, please use `style` instead.');
|
|
149
146
|
}
|
|
@@ -413,7 +410,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
413
410
|
},
|
|
414
411
|
onFocus: (e) => {
|
|
415
412
|
ascendantAndCurrentHandlers.forEach((_handlers) => {
|
|
416
|
-
_handlers.
|
|
413
|
+
_handlers.onFocus(e);
|
|
417
414
|
});
|
|
418
415
|
},
|
|
419
416
|
onClick: (e) => {
|
|
@@ -16,7 +16,7 @@ export declare const popoverBodyProps: {
|
|
|
16
16
|
displayDirective: PropType<"show" | "if">;
|
|
17
17
|
x: NumberConstructor;
|
|
18
18
|
y: NumberConstructor;
|
|
19
|
-
|
|
19
|
+
flip: BooleanConstructor;
|
|
20
20
|
overlap: BooleanConstructor;
|
|
21
21
|
placement: PropType<FollowerPlacement>;
|
|
22
22
|
width: PropType<number | "trigger">;
|
|
@@ -88,7 +88,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
88
88
|
displayDirective: PropType<"show" | "if">;
|
|
89
89
|
x: NumberConstructor;
|
|
90
90
|
y: NumberConstructor;
|
|
91
|
-
|
|
91
|
+
flip: BooleanConstructor;
|
|
92
92
|
overlap: BooleanConstructor;
|
|
93
93
|
placement: PropType<FollowerPlacement>;
|
|
94
94
|
width: PropType<number | "trigger">;
|
|
@@ -161,7 +161,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
161
161
|
displayDirective?: unknown;
|
|
162
162
|
x?: unknown;
|
|
163
163
|
y?: unknown;
|
|
164
|
-
|
|
164
|
+
flip?: unknown;
|
|
165
165
|
overlap?: unknown;
|
|
166
166
|
placement?: unknown;
|
|
167
167
|
width?: unknown;
|
|
@@ -174,10 +174,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
174
174
|
builtinThemeOverrides?: unknown;
|
|
175
175
|
} & {
|
|
176
176
|
show: boolean;
|
|
177
|
+
flip: boolean;
|
|
177
178
|
raw: boolean;
|
|
178
179
|
overlap: boolean;
|
|
179
180
|
showArrow: boolean;
|
|
180
|
-
filp: boolean;
|
|
181
181
|
animated: boolean;
|
|
182
182
|
} & {
|
|
183
183
|
x?: number | undefined;
|
|
@@ -237,11 +237,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
237
237
|
onClickoutside?: ((e: MouseEvent) => void) | undefined;
|
|
238
238
|
}>, {
|
|
239
239
|
show: boolean;
|
|
240
|
+
flip: boolean;
|
|
240
241
|
to: string | boolean | HTMLElement;
|
|
241
242
|
raw: boolean;
|
|
242
243
|
overlap: boolean;
|
|
243
244
|
showArrow: boolean;
|
|
244
|
-
filp: boolean;
|
|
245
245
|
animated: boolean;
|
|
246
246
|
}>;
|
|
247
247
|
export default _default;
|
|
@@ -14,7 +14,7 @@ const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
|
14
14
|
const interface_1 = require("./interface");
|
|
15
15
|
const interface_2 = require("../../drawer/src/interface");
|
|
16
16
|
const interface_3 = require("../../modal/src/interface");
|
|
17
|
-
exports.popoverBodyProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { to: _utils_1.useAdjustedTo.propTo, show: Boolean, trigger: String, showArrow: Boolean, delay: Number, duration: Number, raw: Boolean, arrowStyle: [String, Object], displayDirective: String, x: Number, y: Number,
|
|
17
|
+
exports.popoverBodyProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { to: _utils_1.useAdjustedTo.propTo, show: Boolean, trigger: String, showArrow: Boolean, delay: Number, duration: Number, raw: Boolean, arrowStyle: [String, Object], displayDirective: String, x: Number, y: Number, flip: Boolean, overlap: Boolean, placement: String, width: [Number, String],
|
|
18
18
|
// private
|
|
19
19
|
animated: Boolean, onClickoutside: Function,
|
|
20
20
|
/** @deprecated */
|
|
@@ -202,6 +202,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
202
202
|
to: this.adjustedTo,
|
|
203
203
|
x: this.x,
|
|
204
204
|
y: this.y,
|
|
205
|
+
flip: this.flip,
|
|
205
206
|
placement: this.placement,
|
|
206
207
|
containerClass: this.namespace,
|
|
207
208
|
ref: 'followerRef',
|
|
@@ -55,7 +55,6 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('popover', `
|
|
|
55
55
|
`), (0, cssr_1.cNotM)('raw', `
|
|
56
56
|
background-color: var(--color);
|
|
57
57
|
border-radius: var(--border-radius);
|
|
58
|
-
var(--padding);
|
|
59
58
|
`, [(0, cssr_1.cNotM)('show-header', 'padding: var(--padding);')]), (0, cssr_1.cE)('header', `
|
|
60
59
|
padding: var(--padding);
|
|
61
60
|
border-bottom: 1px solid var(--divider-color);
|
|
@@ -60,7 +60,7 @@ declare const popselectProps: {
|
|
|
60
60
|
default: string;
|
|
61
61
|
};
|
|
62
62
|
arrowStyle: PropType<string | import("vue").CSSProperties>;
|
|
63
|
-
|
|
63
|
+
flip: {
|
|
64
64
|
type: BooleanConstructor;
|
|
65
65
|
default: boolean;
|
|
66
66
|
};
|
|
@@ -359,7 +359,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
359
359
|
default: string;
|
|
360
360
|
};
|
|
361
361
|
arrowStyle: PropType<string | import("vue").CSSProperties>;
|
|
362
|
-
|
|
362
|
+
flip: {
|
|
363
363
|
type: BooleanConstructor;
|
|
364
364
|
default: boolean;
|
|
365
365
|
};
|
|
@@ -672,6 +672,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
672
672
|
tableHeaderColor: string;
|
|
673
673
|
hoverColor: string;
|
|
674
674
|
tableColorHover: string;
|
|
675
|
+
tableColorStriped: string;
|
|
675
676
|
pressedColor: string;
|
|
676
677
|
opacityDisabled: string;
|
|
677
678
|
inputColorDisabled: string;
|
|
@@ -831,7 +832,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
831
832
|
getDisabled?: unknown;
|
|
832
833
|
displayDirective?: unknown;
|
|
833
834
|
arrowStyle?: unknown;
|
|
834
|
-
|
|
835
|
+
flip?: unknown;
|
|
835
836
|
animated?: unknown;
|
|
836
837
|
overlap?: unknown;
|
|
837
838
|
internalExtraClass?: unknown;
|
|
@@ -853,6 +854,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
853
854
|
} & {
|
|
854
855
|
value: import("../../select/src/interface").Value | null;
|
|
855
856
|
size: import("./interface").PopselectSize;
|
|
857
|
+
flip: boolean;
|
|
856
858
|
multiple: boolean;
|
|
857
859
|
disabled: boolean;
|
|
858
860
|
duration: number;
|
|
@@ -864,7 +866,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
864
866
|
showArrow: boolean;
|
|
865
867
|
delay: number;
|
|
866
868
|
displayDirective: "show" | "if";
|
|
867
|
-
filp: boolean;
|
|
868
869
|
animated: boolean;
|
|
869
870
|
defaultShow: boolean;
|
|
870
871
|
internalExtraClass: string[];
|
|
@@ -1103,6 +1104,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1103
1104
|
value: import("../../select/src/interface").Value | null;
|
|
1104
1105
|
size: import("./interface").PopselectSize;
|
|
1105
1106
|
show: boolean | undefined;
|
|
1107
|
+
flip: boolean;
|
|
1106
1108
|
multiple: boolean;
|
|
1107
1109
|
disabled: boolean;
|
|
1108
1110
|
duration: number;
|
|
@@ -1116,7 +1118,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1116
1118
|
showArrow: boolean;
|
|
1117
1119
|
delay: number;
|
|
1118
1120
|
displayDirective: "show" | "if";
|
|
1119
|
-
filp: boolean;
|
|
1120
1121
|
animated: boolean;
|
|
1121
1122
|
defaultShow: boolean;
|
|
1122
1123
|
internalExtraClass: string[];
|
|
@@ -131,6 +131,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
131
131
|
tableHeaderColor: string;
|
|
132
132
|
hoverColor: string;
|
|
133
133
|
tableColorHover: string;
|
|
134
|
+
tableColorStriped: string;
|
|
134
135
|
pressedColor: string;
|
|
135
136
|
opacityDisabled: string;
|
|
136
137
|
inputColorDisabled: string;
|
|
@@ -1078,6 +1078,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1078
1078
|
tableHeaderColor: string;
|
|
1079
1079
|
hoverColor: string;
|
|
1080
1080
|
tableColorHover: string;
|
|
1081
|
+
tableColorStriped: string;
|
|
1081
1082
|
pressedColor: string;
|
|
1082
1083
|
opacityDisabled: string;
|
|
1083
1084
|
inputColorDisabled: string;
|
|
@@ -300,6 +300,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
300
300
|
getHandleStyle: (value: number, index: number) => Record<string, any>;
|
|
301
301
|
activeIndex: import("vue").Ref<number>;
|
|
302
302
|
arrifiedValues: import("vue").ComputedRef<number[]>;
|
|
303
|
+
followerEnabledIndexSet: import("vue").Ref<Set<number>>;
|
|
303
304
|
handleRailMouseDown: (event: MouseEvent | TouchEvent) => void;
|
|
304
305
|
handleHandleFocus: (index: number) => void;
|
|
305
306
|
handleHandleBlur: (index: number) => void;
|