ele-admin-plus 1.1.8-beta.3 → 1.1.8-beta.5
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/components.d.ts +1 -49
- package/es/components.js +13 -110
- package/es/core-components.d.ts +49 -0
- package/es/core-components.js +100 -0
- package/es/core-export.d.ts +9 -0
- package/es/core-export.js +14 -0
- package/es/core-installer.d.ts +3 -0
- package/es/core-installer.js +11 -0
- package/es/core.d.ts +3 -0
- package/es/core.js +6 -0
- package/es/ele-alert/index.d.ts +4 -4
- package/es/ele-alert/index.js +13 -13
- package/es/ele-app/style/overwrite/input/index.scss +32 -39
- package/es/ele-app/style/overwrite/message-box/index.scss +6 -1
- package/es/ele-app/style/scrollbar/css-var.scss +20 -5
- package/es/ele-basic-select/index.d.ts +6 -6
- package/es/ele-basic-select/index.js +4 -4
- package/es/ele-basic-select/props.d.ts +1 -1
- package/es/ele-basic-select/style/index.scss +2 -9
- package/es/ele-copyable/index.d.ts +4 -2
- package/es/ele-copyable/index.js +6 -6
- package/es/ele-cropper/components/cropper-tools.js +14 -14
- package/es/ele-cropper/props.js +1 -1
- package/es/ele-cropper/style/index.scss +3 -3
- package/es/ele-cropper-modal/index.js +1 -1
- package/es/ele-data-table/index.d.ts +8 -10
- package/es/ele-data-table/index.js +2 -17
- package/es/ele-data-table/style/index.scss +17 -6
- package/es/ele-data-table/util.d.ts +7 -0
- package/es/ele-data-table/util.js +17 -0
- package/es/ele-drawer/index.d.ts +7 -7
- package/es/ele-drawer/index.js +4 -4
- package/es/ele-drawer/props.d.ts +1 -1
- package/es/ele-dropdown/index.d.ts +2 -0
- package/es/ele-dropdown/index.js +18 -8
- package/es/ele-dropdown/props.d.ts +3 -0
- package/es/ele-dropdown/props.js +3 -1
- package/es/ele-edit-tag/index.d.ts +4 -4
- package/es/ele-edit-tag/index.js +24 -23
- package/es/ele-edit-tag/props.d.ts +1 -1
- package/es/ele-edit-tag/style/index.scss +71 -74
- package/es/ele-ellipsis/index.d.ts +1 -1
- package/es/ele-map-picker/components/map-view.d.ts +10 -12
- package/es/ele-map-picker/components/map-view.js +30 -30
- package/es/ele-map-picker/style/index.scss +5 -5
- package/es/ele-menus/index.js +3 -1
- package/es/ele-menus/style/index.scss +14 -8
- package/es/ele-menus/util.js +5 -2
- package/es/ele-modal/index.d.ts +13 -13
- package/es/ele-modal/index.js +11 -6
- package/es/ele-modal/props.d.ts +1 -1
- package/es/ele-modal/style/index.scss +2 -1
- package/es/ele-popconfirm/index.d.ts +2 -2
- package/es/ele-popconfirm/index.js +4 -4
- package/es/ele-pro-layout/components/pro-header.js +2 -2
- package/es/ele-pro-layout/components/pro-tabs.js +1 -1
- package/es/ele-pro-layout/components/tab-dropdown.js +3 -3
- package/es/ele-pro-table/components/table-tools.js +4 -5
- package/es/ele-pro-table/components/tool-column.js +4 -4
- package/es/ele-pro-table/index.d.ts +1 -1
- package/es/ele-pro-table/index.js +4 -4
- package/es/ele-pro-table/style/index.scss +2 -2
- package/es/ele-split-panel/index.js +7 -1
- package/es/ele-split-panel/style/index.scss +5 -1
- package/es/ele-table-select/index.d.ts +3 -3
- package/es/ele-table-select/props.d.ts +1 -1
- package/es/ele-tabs/index.js +8 -1
- package/es/ele-tabs/style/index.scss +26 -0
- package/es/ele-toolbar/index.d.ts +4 -0
- package/es/ele-toolbar/index.js +7 -7
- package/es/ele-toolbar/props.d.ts +5 -0
- package/es/ele-toolbar/props.js +5 -1
- package/es/ele-tree-select/index.d.ts +13 -8
- package/es/ele-tree-select/index.js +49 -6
- package/es/ele-tree-select/props.d.ts +3 -1
- package/es/ele-tree-select/props.js +2 -0
- package/es/ele-tree-select/util.d.ts +7 -0
- package/es/ele-tree-select/util.js +13 -0
- package/es/ele-upload-list/components/list-item.js +10 -10
- package/es/ele-upload-list/index.js +4 -4
- package/es/ele-upload-list/style/index.scss +12 -4
- package/es/ele-virtual-table/components/body-cell.js +10 -5
- package/es/ele-virtual-table/style/index.scss +3 -2
- package/es/icons/ArrowDown.js +5 -7
- package/es/icons/ArrowDownOutlined.d.ts +2 -0
- package/es/icons/ArrowDownOutlined.js +30 -0
- package/es/icons/ArrowLeft.js +7 -6
- package/es/icons/ArrowLeftOutlined.d.ts +2 -0
- package/es/icons/ArrowLeftOutlined.js +30 -0
- package/es/icons/ArrowRight.js +6 -7
- package/es/icons/ArrowRightOutlined.d.ts +2 -0
- package/es/icons/ArrowRightOutlined.js +30 -0
- package/es/icons/ArrowUp.js +6 -6
- package/es/icons/ArrowUpOutlined.d.ts +2 -0
- package/es/icons/ArrowUpOutlined.js +30 -0
- package/es/icons/CheckCircleFilled.d.ts +2 -0
- package/es/icons/CheckCircleFilled.js +26 -0
- package/es/icons/CheckCircleOutlined.d.ts +2 -0
- package/es/icons/CheckCircleOutlined.js +32 -0
- package/es/icons/CheckOutlined.d.ts +2 -0
- package/es/icons/CheckOutlined.js +30 -0
- package/es/icons/CloseCircleFilled.d.ts +2 -0
- package/es/icons/CloseCircleFilled.js +26 -0
- package/es/icons/CloseOutlined.js +7 -17
- package/es/icons/ColumnHeightOutlined.js +17 -5
- package/es/icons/CompressOutlined.js +18 -5
- package/es/icons/CopyOutlined.d.ts +2 -0
- package/es/icons/CopyOutlined.js +35 -0
- package/es/icons/EllipsisOutlined.js +6 -9
- package/es/icons/EnvironmentOutlined.d.ts +2 -0
- package/es/icons/EnvironmentOutlined.js +31 -0
- package/es/icons/ExclamationCircleFilled.d.ts +2 -0
- package/es/icons/ExclamationCircleFilled.js +26 -0
- package/es/icons/ExpandOutlined.js +18 -5
- package/es/icons/FileOutlined.d.ts +2 -0
- package/es/icons/FileOutlined.js +35 -0
- package/es/icons/FilterFilled.js +5 -2
- package/es/icons/FullscreenExitOutlined.js +16 -5
- package/es/icons/FullscreenOutlined.js +16 -5
- package/es/icons/HolderOutlined.js +8 -5
- package/es/icons/HomeOutlined.js +5 -24
- package/es/icons/InfoCircleFilled.d.ts +2 -0
- package/es/icons/InfoCircleFilled.js +26 -0
- package/es/icons/LoadingDotOutlined.d.ts +2 -0
- package/es/icons/LoadingDotOutlined.js +29 -0
- package/es/icons/LoadingOutlined.js +8 -2
- package/es/icons/PlusOutlined.d.ts +2 -0
- package/es/icons/PlusOutlined.js +29 -0
- package/es/icons/QuestionCircleFilled.d.ts +2 -0
- package/es/icons/QuestionCircleFilled.js +26 -0
- package/es/icons/ReloadOutlined.d.ts +2 -0
- package/es/icons/ReloadOutlined.js +30 -0
- package/es/icons/SearchOutlined.d.ts +2 -0
- package/es/icons/SearchOutlined.js +29 -0
- package/es/icons/SettingOutlined.d.ts +2 -0
- package/es/icons/SettingOutlined.js +31 -0
- package/es/icons/SortOutlined.d.ts +2 -0
- package/es/icons/SortOutlined.js +32 -0
- package/es/icons/SwapOutlined.d.ts +2 -0
- package/es/icons/SwapOutlined.js +32 -0
- package/es/icons/SyncOutlined.d.ts +2 -0
- package/es/icons/SyncOutlined.js +32 -0
- package/es/icons/UndoOutlined.d.ts +2 -0
- package/es/icons/UndoOutlined.js +30 -0
- package/es/icons/UploadOutlined.d.ts +2 -0
- package/es/icons/UploadOutlined.js +32 -0
- package/es/icons/VerticalLeftOutlined.js +7 -2
- package/es/icons/VerticalRightOutlined.js +7 -2
- package/es/icons/ZoomInOutlined.d.ts +2 -0
- package/es/icons/ZoomInOutlined.js +31 -0
- package/es/icons/ZoomOutOutlined.d.ts +2 -0
- package/es/icons/ZoomOutOutlined.js +31 -0
- package/es/icons/index.d.ts +26 -0
- package/es/icons/index.js +84 -32
- package/es/index.d.ts +1 -9
- package/es/index.js +1 -12
- package/es/style/themes/default.scss +11 -11
- package/es/style/themes/rounded.scss +1 -2
- package/lib/components.cjs +20 -110
- package/lib/components.d.ts +1 -49
- package/lib/core-components.cjs +100 -0
- package/lib/core-components.d.ts +49 -0
- package/lib/core-export.cjs +56 -0
- package/lib/core-export.d.ts +9 -0
- package/lib/core-installer.cjs +28 -0
- package/lib/core-installer.d.ts +3 -0
- package/lib/core.cjs +23 -0
- package/lib/core.d.ts +3 -0
- package/lib/ele-alert/index.cjs +13 -13
- package/lib/ele-alert/index.d.ts +4 -4
- package/lib/ele-app/style/overwrite/input/index.scss +32 -39
- package/lib/ele-app/style/overwrite/message-box/index.scss +6 -1
- package/lib/ele-app/style/scrollbar/css-var.scss +20 -5
- package/lib/ele-basic-select/index.cjs +3 -3
- package/lib/ele-basic-select/index.d.ts +6 -6
- package/lib/ele-basic-select/props.d.ts +1 -1
- package/lib/ele-basic-select/style/index.scss +2 -9
- package/lib/ele-copyable/index.cjs +6 -6
- package/lib/ele-copyable/index.d.ts +4 -2
- package/lib/ele-cropper/components/cropper-tools.cjs +14 -14
- package/lib/ele-cropper/props.cjs +1 -1
- package/lib/ele-cropper/style/index.scss +3 -3
- package/lib/ele-cropper-modal/index.cjs +1 -1
- package/lib/ele-data-table/index.cjs +1 -16
- package/lib/ele-data-table/index.d.ts +8 -10
- package/lib/ele-data-table/style/index.scss +17 -6
- package/lib/ele-data-table/util.cjs +17 -0
- package/lib/ele-data-table/util.d.ts +7 -0
- package/lib/ele-drawer/index.cjs +4 -4
- package/lib/ele-drawer/index.d.ts +7 -7
- package/lib/ele-drawer/props.d.ts +1 -1
- package/lib/ele-dropdown/index.cjs +18 -8
- package/lib/ele-dropdown/index.d.ts +2 -0
- package/lib/ele-dropdown/props.cjs +3 -1
- package/lib/ele-dropdown/props.d.ts +3 -0
- package/lib/ele-edit-tag/index.cjs +23 -22
- package/lib/ele-edit-tag/index.d.ts +4 -4
- package/lib/ele-edit-tag/props.d.ts +1 -1
- package/lib/ele-edit-tag/style/index.scss +71 -74
- package/lib/ele-ellipsis/index.d.ts +1 -1
- package/lib/ele-map-picker/components/map-view.cjs +30 -30
- package/lib/ele-map-picker/components/map-view.d.ts +10 -12
- package/lib/ele-map-picker/style/index.scss +5 -5
- package/lib/ele-menus/index.cjs +3 -1
- package/lib/ele-menus/style/index.scss +14 -8
- package/lib/ele-menus/util.cjs +5 -2
- package/lib/ele-modal/index.cjs +10 -5
- package/lib/ele-modal/index.d.ts +13 -13
- package/lib/ele-modal/props.d.ts +1 -1
- package/lib/ele-modal/style/index.scss +2 -1
- package/lib/ele-popconfirm/index.cjs +4 -4
- package/lib/ele-popconfirm/index.d.ts +2 -2
- package/lib/ele-pro-layout/components/pro-header.cjs +2 -2
- package/lib/ele-pro-layout/components/pro-tabs.cjs +1 -1
- package/lib/ele-pro-layout/components/tab-dropdown.cjs +4 -4
- package/lib/ele-pro-table/components/table-tools.cjs +3 -4
- package/lib/ele-pro-table/components/tool-column.cjs +4 -4
- package/lib/ele-pro-table/index.cjs +4 -4
- package/lib/ele-pro-table/index.d.ts +1 -1
- package/lib/ele-pro-table/style/index.scss +2 -2
- package/lib/ele-split-panel/index.cjs +7 -1
- package/lib/ele-split-panel/style/index.scss +5 -1
- package/lib/ele-table-select/index.d.ts +3 -3
- package/lib/ele-table-select/props.d.ts +1 -1
- package/lib/ele-tabs/index.cjs +8 -1
- package/lib/ele-tabs/style/index.scss +26 -0
- package/lib/ele-toolbar/index.cjs +6 -6
- package/lib/ele-toolbar/index.d.ts +4 -0
- package/lib/ele-toolbar/props.cjs +5 -1
- package/lib/ele-toolbar/props.d.ts +5 -0
- package/lib/ele-tree-select/index.cjs +48 -5
- package/lib/ele-tree-select/index.d.ts +13 -8
- package/lib/ele-tree-select/props.cjs +2 -0
- package/lib/ele-tree-select/props.d.ts +3 -1
- package/lib/ele-tree-select/util.cjs +13 -0
- package/lib/ele-tree-select/util.d.ts +7 -0
- package/lib/ele-upload-list/components/list-item.cjs +10 -10
- package/lib/ele-upload-list/index.cjs +4 -4
- package/lib/ele-upload-list/style/index.scss +12 -4
- package/lib/ele-virtual-table/components/body-cell.cjs +9 -4
- package/lib/ele-virtual-table/style/index.scss +3 -2
- package/lib/icons/ArrowDown.cjs +5 -7
- package/lib/icons/ArrowDownOutlined.cjs +29 -0
- package/lib/icons/ArrowDownOutlined.d.ts +2 -0
- package/lib/icons/ArrowLeft.cjs +7 -6
- package/lib/icons/ArrowLeftOutlined.cjs +29 -0
- package/lib/icons/ArrowLeftOutlined.d.ts +2 -0
- package/lib/icons/ArrowRight.cjs +6 -7
- package/lib/icons/ArrowRightOutlined.cjs +29 -0
- package/lib/icons/ArrowRightOutlined.d.ts +2 -0
- package/lib/icons/ArrowUp.cjs +6 -6
- package/lib/icons/ArrowUpOutlined.cjs +29 -0
- package/lib/icons/ArrowUpOutlined.d.ts +2 -0
- package/lib/icons/CheckCircleFilled.cjs +25 -0
- package/lib/icons/CheckCircleFilled.d.ts +2 -0
- package/lib/icons/CheckCircleOutlined.cjs +31 -0
- package/lib/icons/CheckCircleOutlined.d.ts +2 -0
- package/lib/icons/CheckOutlined.cjs +29 -0
- package/lib/icons/CheckOutlined.d.ts +2 -0
- package/lib/icons/CloseCircleFilled.cjs +25 -0
- package/lib/icons/CloseCircleFilled.d.ts +2 -0
- package/lib/icons/CloseOutlined.cjs +7 -17
- package/lib/icons/ColumnHeightOutlined.cjs +17 -5
- package/lib/icons/CompressOutlined.cjs +18 -5
- package/lib/icons/CopyOutlined.cjs +34 -0
- package/lib/icons/CopyOutlined.d.ts +2 -0
- package/lib/icons/EllipsisOutlined.cjs +6 -9
- package/lib/icons/EnvironmentOutlined.cjs +30 -0
- package/lib/icons/EnvironmentOutlined.d.ts +2 -0
- package/lib/icons/ExclamationCircleFilled.cjs +25 -0
- package/lib/icons/ExclamationCircleFilled.d.ts +2 -0
- package/lib/icons/ExpandOutlined.cjs +18 -5
- package/lib/icons/FileOutlined.cjs +34 -0
- package/lib/icons/FileOutlined.d.ts +2 -0
- package/lib/icons/FilterFilled.cjs +5 -2
- package/lib/icons/FullscreenExitOutlined.cjs +16 -5
- package/lib/icons/FullscreenOutlined.cjs +16 -5
- package/lib/icons/HolderOutlined.cjs +7 -4
- package/lib/icons/HomeOutlined.cjs +5 -24
- package/lib/icons/InfoCircleFilled.cjs +25 -0
- package/lib/icons/InfoCircleFilled.d.ts +2 -0
- package/lib/icons/LoadingDotOutlined.cjs +28 -0
- package/lib/icons/LoadingDotOutlined.d.ts +2 -0
- package/lib/icons/LoadingOutlined.cjs +8 -2
- package/lib/icons/PlusOutlined.cjs +28 -0
- package/lib/icons/PlusOutlined.d.ts +2 -0
- package/lib/icons/QuestionCircleFilled.cjs +25 -0
- package/lib/icons/QuestionCircleFilled.d.ts +2 -0
- package/lib/icons/ReloadOutlined.cjs +29 -0
- package/lib/icons/ReloadOutlined.d.ts +2 -0
- package/lib/icons/SearchOutlined.cjs +28 -0
- package/lib/icons/SearchOutlined.d.ts +2 -0
- package/lib/icons/SettingOutlined.cjs +30 -0
- package/lib/icons/SettingOutlined.d.ts +2 -0
- package/lib/icons/SortOutlined.cjs +31 -0
- package/lib/icons/SortOutlined.d.ts +2 -0
- package/lib/icons/SwapOutlined.cjs +31 -0
- package/lib/icons/SwapOutlined.d.ts +2 -0
- package/lib/icons/SyncOutlined.cjs +31 -0
- package/lib/icons/SyncOutlined.d.ts +2 -0
- package/lib/icons/UndoOutlined.cjs +29 -0
- package/lib/icons/UndoOutlined.d.ts +2 -0
- package/lib/icons/UploadOutlined.cjs +31 -0
- package/lib/icons/UploadOutlined.d.ts +2 -0
- package/lib/icons/VerticalLeftOutlined.cjs +7 -2
- package/lib/icons/VerticalRightOutlined.cjs +7 -2
- package/lib/icons/ZoomInOutlined.cjs +30 -0
- package/lib/icons/ZoomInOutlined.d.ts +2 -0
- package/lib/icons/ZoomOutOutlined.cjs +30 -0
- package/lib/icons/ZoomOutOutlined.d.ts +2 -0
- package/lib/icons/index.cjs +52 -0
- package/lib/icons/index.d.ts +26 -0
- package/lib/index.cjs +3 -49
- package/lib/index.d.ts +1 -9
- package/lib/style/themes/default.scss +11 -11
- package/lib/style/themes/rounded.scss +1 -2
- package/package.json +1 -1
|
@@ -7,6 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
/* 滚动条样式 */
|
|
9
9
|
@mixin scrollbar-style() {
|
|
10
|
+
* {
|
|
11
|
+
scrollbar-width: thin;
|
|
12
|
+
scrollbar-color: eleVar('scrollbar', 'color') eleVar('scrollbar', 'bg');
|
|
13
|
+
}
|
|
14
|
+
|
|
10
15
|
::-webkit-scrollbar {
|
|
11
16
|
width: eleVar('scrollbar', 'size');
|
|
12
17
|
height: eleVar('scrollbar', 'size');
|
|
@@ -30,24 +35,34 @@
|
|
|
30
35
|
::-webkit-scrollbar-corner {
|
|
31
36
|
background: transparent;
|
|
32
37
|
}
|
|
33
|
-
|
|
34
|
-
* {
|
|
35
|
-
scrollbar-width: thin;
|
|
36
|
-
scrollbar-color: eleVar('scrollbar', 'color') eleVar('scrollbar', 'bg');
|
|
37
|
-
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/* 美化滚动条样式 */
|
|
41
41
|
@mixin set-scrollbar-style($selector) {
|
|
42
42
|
@if $selector == '' {
|
|
43
43
|
@include scrollbar-style();
|
|
44
|
+
|
|
45
|
+
html.is-webkit * {
|
|
46
|
+
scrollbar-width: auto;
|
|
47
|
+
scrollbar-color: auto;
|
|
48
|
+
}
|
|
44
49
|
} @else if $selector == 'pc' {
|
|
45
50
|
@media (hover: hover) and (pointer: fine) {
|
|
46
51
|
@include scrollbar-style();
|
|
52
|
+
|
|
53
|
+
html.is-webkit * {
|
|
54
|
+
scrollbar-width: auto;
|
|
55
|
+
scrollbar-color: auto;
|
|
56
|
+
}
|
|
47
57
|
}
|
|
48
58
|
} @else if $selector != 'never' {
|
|
49
59
|
#{$selector} {
|
|
50
60
|
@include scrollbar-style();
|
|
61
|
+
|
|
62
|
+
&.is-webkit * {
|
|
63
|
+
scrollbar-width: auto;
|
|
64
|
+
scrollbar-color: auto;
|
|
65
|
+
}
|
|
51
66
|
}
|
|
52
67
|
}
|
|
53
68
|
}
|
|
@@ -15,13 +15,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
selected: import("vue").PropType<SelectedItem[]>;
|
|
16
16
|
maxTagCount: NumberConstructor;
|
|
17
17
|
maxTagTextLength: NumberConstructor;
|
|
18
|
-
tagType: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "" | "
|
|
18
|
+
tagType: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>;
|
|
19
19
|
automaticDropdown: BooleanConstructor;
|
|
20
20
|
filterable: BooleanConstructor;
|
|
21
21
|
visible: BooleanConstructor;
|
|
22
22
|
teleported: BooleanConstructor;
|
|
23
23
|
persistent: BooleanConstructor;
|
|
24
|
-
placement: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>;
|
|
24
|
+
placement: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>; /** 多选时搜索框值 */
|
|
25
25
|
transition: {
|
|
26
26
|
type: StringConstructor;
|
|
27
27
|
default: string;
|
|
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
29
|
popperOptions: import("vue").PropType<Partial<import("element-plus").Options> | undefined>;
|
|
30
30
|
popperClass: StringConstructor;
|
|
31
31
|
popperWidth: (StringConstructor | NumberConstructor)[];
|
|
32
|
-
selectClass: StringConstructor;
|
|
32
|
+
selectClass: StringConstructor; /** 输入框提示文本 */
|
|
33
33
|
selectStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
34
34
|
inputStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
35
35
|
}, {
|
|
@@ -74,13 +74,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
74
|
selected: import("vue").PropType<SelectedItem[]>;
|
|
75
75
|
maxTagCount: NumberConstructor;
|
|
76
76
|
maxTagTextLength: NumberConstructor;
|
|
77
|
-
tagType: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "" | "
|
|
77
|
+
tagType: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>;
|
|
78
78
|
automaticDropdown: BooleanConstructor;
|
|
79
79
|
filterable: BooleanConstructor;
|
|
80
80
|
visible: BooleanConstructor;
|
|
81
81
|
teleported: BooleanConstructor;
|
|
82
82
|
persistent: BooleanConstructor;
|
|
83
|
-
placement: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>;
|
|
83
|
+
placement: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>; /** 多选时搜索框值 */
|
|
84
84
|
transition: {
|
|
85
85
|
type: StringConstructor;
|
|
86
86
|
default: string;
|
|
@@ -88,7 +88,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
88
88
|
popperOptions: import("vue").PropType<Partial<import("element-plus").Options> | undefined>;
|
|
89
89
|
popperClass: StringConstructor;
|
|
90
90
|
popperWidth: (StringConstructor | NumberConstructor)[];
|
|
91
|
-
selectClass: StringConstructor;
|
|
91
|
+
selectClass: StringConstructor; /** 输入框提示文本 */
|
|
92
92
|
selectStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
93
93
|
inputStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
94
94
|
}>> & {
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, watch, resolveComponent, openBlock, cre
|
|
|
2
2
|
import { ElInput, ElIcon, ElTag } from "element-plus";
|
|
3
3
|
import { useLicense } from "../ele-config-provider/receiver";
|
|
4
4
|
import EleTooltip from "../ele-tooltip/index";
|
|
5
|
-
import {
|
|
5
|
+
import { CloseCircleFilled, ArrowDown } from "../icons";
|
|
6
6
|
import { basicSelectProps, basicSelectEmits } from "./props";
|
|
7
7
|
const _sfc_main = defineComponent({
|
|
8
8
|
name: "EleBasicSelect",
|
|
@@ -11,7 +11,7 @@ const _sfc_main = defineComponent({
|
|
|
11
11
|
ElIcon,
|
|
12
12
|
ElTag,
|
|
13
13
|
EleTooltip,
|
|
14
|
-
|
|
14
|
+
CloseCircleFilled,
|
|
15
15
|
ArrowDown
|
|
16
16
|
},
|
|
17
17
|
props: basicSelectProps,
|
|
@@ -162,7 +162,7 @@ const _hoisted_1 = {
|
|
|
162
162
|
class: "ele-select-tags"
|
|
163
163
|
};
|
|
164
164
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
165
|
-
const
|
|
165
|
+
const _component_CloseCircleFilled = resolveComponent("CloseCircleFilled");
|
|
166
166
|
const _component_ElIcon = resolveComponent("ElIcon");
|
|
167
167
|
const _component_ArrowDown = resolveComponent("ArrowDown");
|
|
168
168
|
const _component_ElInput = resolveComponent("ElInput");
|
|
@@ -230,7 +230,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
230
230
|
}, {
|
|
231
231
|
default: withCtx(() => [
|
|
232
232
|
renderSlot(_ctx.$slots, "clearIcon", {}, () => [
|
|
233
|
-
createVNode(
|
|
233
|
+
createVNode(_component_CloseCircleFilled)
|
|
234
234
|
])
|
|
235
235
|
]),
|
|
236
236
|
_: 3
|
|
@@ -28,7 +28,7 @@ export declare const basicSelectProps: {
|
|
|
28
28
|
/** 多选标签最大显示文本长度 */
|
|
29
29
|
maxTagTextLength: NumberConstructor;
|
|
30
30
|
/** 多选标签类型 */
|
|
31
|
-
tagType: PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "" | "
|
|
31
|
+
tagType: PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>;
|
|
32
32
|
/** 是否在输入框获得焦点后自动弹出选项菜单 */
|
|
33
33
|
automaticDropdown: BooleanConstructor;
|
|
34
34
|
/** 是否可以筛选 */
|
|
@@ -64,14 +64,11 @@
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
& > .el-input .el-input__icon.ele-select-clear {
|
|
67
|
-
color:
|
|
68
|
-
font-size: eleVar('input', 'clear-size');
|
|
69
|
-
background: eleVar('input', 'clear-color');
|
|
70
|
-
border-radius: 50%;
|
|
67
|
+
color: eleVar('input', 'clear-color');
|
|
71
68
|
cursor: pointer;
|
|
72
69
|
|
|
73
70
|
&:hover {
|
|
74
|
-
|
|
71
|
+
color: eleVar('input', 'clear-hover-color');
|
|
75
72
|
}
|
|
76
73
|
}
|
|
77
74
|
|
|
@@ -93,10 +90,6 @@
|
|
|
93
90
|
#{'d'}: path('M10 31 24 17 38 31');
|
|
94
91
|
}
|
|
95
92
|
|
|
96
|
-
.ele-select-arrow > svg > path {
|
|
97
|
-
stroke-width: 4;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
93
|
/* 多选 */
|
|
101
94
|
&.is-multiple {
|
|
102
95
|
min-height: elVar('component-size');
|
|
@@ -12,10 +12,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
copiedIconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
13
13
|
tooltip: {
|
|
14
14
|
type: import("vue").PropType<boolean | Partial<import("../ele-tooltip/props").TooltipProps>>;
|
|
15
|
-
default: boolean;
|
|
15
|
+
default: boolean; /** 提示单例目标 */
|
|
16
16
|
};
|
|
17
17
|
resetAfter: {
|
|
18
18
|
type: NumberConstructor;
|
|
19
|
+
/** 是否拷贝完成 */
|
|
19
20
|
default: number;
|
|
20
21
|
};
|
|
21
22
|
locale: import("vue").PropType<Partial<CopyableLocale>>;
|
|
@@ -41,10 +42,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
42
|
copiedIconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
42
43
|
tooltip: {
|
|
43
44
|
type: import("vue").PropType<boolean | Partial<import("../ele-tooltip/props").TooltipProps>>;
|
|
44
|
-
default: boolean;
|
|
45
|
+
default: boolean; /** 提示单例目标 */
|
|
45
46
|
};
|
|
46
47
|
resetAfter: {
|
|
47
48
|
type: NumberConstructor;
|
|
49
|
+
/** 是否拷贝完成 */
|
|
48
50
|
default: number;
|
|
49
51
|
};
|
|
50
52
|
locale: import("vue").PropType<Partial<CopyableLocale>>;
|
package/es/ele-copyable/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent, ref, onDeactivated, onBeforeUnmount, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, createBlock, normalizeProps, mergeProps, withCtx, resolveDynamicComponent, createVNode } from "vue";
|
|
2
2
|
import { ElIcon } from "element-plus";
|
|
3
|
-
import {
|
|
3
|
+
import { CopyOutlined, CheckOutlined } from "../icons";
|
|
4
4
|
import { useLicense, useLocale } from "../ele-config-provider/receiver";
|
|
5
5
|
import EleTooltip from "../ele-tooltip/index";
|
|
6
6
|
import { copyableProps, copyableEmits } from "./props";
|
|
7
7
|
const _sfc_main = defineComponent({
|
|
8
8
|
name: "EleCopyable",
|
|
9
|
-
components: { ElIcon,
|
|
9
|
+
components: { ElIcon, CopyOutlined, CheckOutlined, EleTooltip },
|
|
10
10
|
props: copyableProps,
|
|
11
11
|
emits: copyableEmits,
|
|
12
12
|
setup(props, { emit }) {
|
|
@@ -104,9 +104,9 @@ const _export_sfc = (sfc, props) => {
|
|
|
104
104
|
return target;
|
|
105
105
|
};
|
|
106
106
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
107
|
-
const
|
|
107
|
+
const _component_CheckOutlined = resolveComponent("CheckOutlined");
|
|
108
108
|
const _component_ElIcon = resolveComponent("ElIcon");
|
|
109
|
-
const
|
|
109
|
+
const _component_CopyOutlined = resolveComponent("CopyOutlined");
|
|
110
110
|
const _component_EleTooltip = resolveComponent("EleTooltip");
|
|
111
111
|
return openBlock(), createElementBlock("div", {
|
|
112
112
|
class: normalizeClass(["ele-copyable", { "ele-copyable-done": _ctx.copied }])
|
|
@@ -129,7 +129,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
129
129
|
_ctx.copiedIcon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.copiedIcon), {
|
|
130
130
|
key: 0,
|
|
131
131
|
style: normalizeStyle(_ctx.copiedIconStyle)
|
|
132
|
-
}, null, 8, ["style"])) : (openBlock(), createBlock(
|
|
132
|
+
}, null, 8, ["style"])) : (openBlock(), createBlock(_component_CheckOutlined, {
|
|
133
133
|
key: 1,
|
|
134
134
|
style: normalizeStyle(_ctx.copiedIconStyle)
|
|
135
135
|
}, null, 8, ["style"]))
|
|
@@ -140,7 +140,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
140
140
|
_ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
|
|
141
141
|
key: 0,
|
|
142
142
|
style: normalizeStyle(_ctx.iconStyle)
|
|
143
|
-
}, null, 8, ["style"])) : (openBlock(), createBlock(
|
|
143
|
+
}, null, 8, ["style"])) : (openBlock(), createBlock(_component_CopyOutlined, {
|
|
144
144
|
key: 1,
|
|
145
145
|
style: normalizeStyle(_ctx.iconStyle)
|
|
146
146
|
}, null, 8, ["style"]))
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { defineComponent, shallowRef, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, renderList, createBlock, withCtx, createVNode, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, mergeProps } from "vue";
|
|
2
|
-
import { ZoomIn, ZoomOut, Back, Right, Top, Bottom, RefreshLeft, RefreshRight, Switch, Sort, Refresh, Upload, Check } from "@element-plus/icons-vue";
|
|
3
2
|
import { ElButtonGroup, ElButton, ElUpload } from "element-plus";
|
|
3
|
+
import { ZoomInOutlined, ZoomOutOutlined, ArrowLeftOutlined, ArrowRightOutlined, ArrowUpOutlined, ArrowDownOutlined, UndoOutlined, ReloadOutlined, SwapOutlined, SortOutlined, SyncOutlined, UploadOutlined, CheckOutlined } from "../../icons";
|
|
4
4
|
import EleTooltip from "../../ele-tooltip/index";
|
|
5
5
|
import { useLocale } from "../../ele-config-provider/receiver";
|
|
6
6
|
const TOOL_ICONS = {
|
|
7
|
-
zoomIn:
|
|
8
|
-
zoomOut:
|
|
9
|
-
moveLeft:
|
|
10
|
-
moveRight:
|
|
11
|
-
moveUp:
|
|
12
|
-
moveDown:
|
|
13
|
-
rotateLeft:
|
|
14
|
-
rotateRight:
|
|
15
|
-
flipX:
|
|
16
|
-
flipY:
|
|
17
|
-
reset:
|
|
18
|
-
upload:
|
|
19
|
-
ok:
|
|
7
|
+
zoomIn: ZoomInOutlined,
|
|
8
|
+
zoomOut: ZoomOutOutlined,
|
|
9
|
+
moveLeft: ArrowLeftOutlined,
|
|
10
|
+
moveRight: ArrowRightOutlined,
|
|
11
|
+
moveUp: ArrowUpOutlined,
|
|
12
|
+
moveDown: ArrowDownOutlined,
|
|
13
|
+
rotateLeft: UndoOutlined,
|
|
14
|
+
rotateRight: ReloadOutlined,
|
|
15
|
+
flipX: SwapOutlined,
|
|
16
|
+
flipY: SortOutlined,
|
|
17
|
+
reset: SyncOutlined,
|
|
18
|
+
upload: UploadOutlined,
|
|
19
|
+
ok: CheckOutlined
|
|
20
20
|
};
|
|
21
21
|
const _sfc_main = defineComponent({
|
|
22
22
|
name: "CropperTools",
|
package/es/ele-cropper/props.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
.ele-cropper-image {
|
|
10
10
|
flex: 1;
|
|
11
|
-
height:
|
|
11
|
+
height: 300px;
|
|
12
12
|
position: relative;
|
|
13
13
|
box-sizing: border-box;
|
|
14
14
|
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
display: none;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
&.ele-cropper-ok > .el-icon + span {
|
|
86
|
+
margin-left: 4px;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -30,7 +30,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30
30
|
const _component_EleCropper = resolveComponent("EleCropper");
|
|
31
31
|
const _component_EleModal = resolveComponent("EleModal");
|
|
32
32
|
return openBlock(), createBlock(_component_EleModal, mergeProps({
|
|
33
|
-
width: "
|
|
33
|
+
width: "620px",
|
|
34
34
|
title: _ctx.lang.title
|
|
35
35
|
}, _ctx.modalProps, {
|
|
36
36
|
modelValue: _ctx.modelValue,
|
|
@@ -34,10 +34,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
};
|
|
35
35
|
emptyProps: {
|
|
36
36
|
type: import("vue").PropType<import("./types").TableEmptyProps>;
|
|
37
|
-
default: () => null;
|
|
37
|
+
default: () => null;
|
|
38
38
|
};
|
|
39
|
-
rowClickChecked: import("vue").PropType<import("./types").RowClickChecked>;
|
|
40
|
-
reserveCurrent: BooleanConstructor;
|
|
39
|
+
rowClickChecked: import("vue").PropType<import("./types").RowClickChecked>; /** 表格列配置 */
|
|
40
|
+
reserveCurrent: BooleanConstructor;
|
|
41
41
|
selectedRowKeys: import("vue").PropType<DataKey[]>;
|
|
42
42
|
cacheData: import("vue").PropType<DataItem[]>;
|
|
43
43
|
size: {
|
|
@@ -139,10 +139,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
139
139
|
toggleAllSelection: () => void;
|
|
140
140
|
toggleRowExpansion: (row: DataItem, expanded?: boolean | undefined) => void;
|
|
141
141
|
clearFilter: (columnKeys?: string[] | undefined) => void;
|
|
142
|
-
/** 设置单选选中值 */
|
|
143
142
|
doLayout: () => void;
|
|
144
143
|
sort: (prop: string, order: string) => void;
|
|
145
|
-
scrollTo: (options: number | ScrollToOptions, yCoord?: number | undefined) => void;
|
|
144
|
+
scrollTo: (options: number | ScrollToOptions, yCoord?: number | undefined) => void; /** 获取单选选中行 */
|
|
146
145
|
setScrollTop: (top?: number | undefined) => void;
|
|
147
146
|
setScrollLeft: (left?: number | undefined) => void;
|
|
148
147
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -156,11 +155,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
156
155
|
cellContextmenu: (_row: DataItem, _column: Column, _cell: HTMLTableCellElement, _e: MouseEvent) => boolean;
|
|
157
156
|
rowClick: (_row: DataItem, _column: Column, _e: MouseEvent) => boolean;
|
|
158
157
|
rowContextmenu: (_row: DataItem, _column: Column, _e: MouseEvent) => boolean;
|
|
159
|
-
rowDblclick: (_row: DataItem, _column: Column, _e: MouseEvent) => boolean;
|
|
158
|
+
rowDblclick: (_row: DataItem, _column: Column, _e: MouseEvent) => boolean; /** 设置多选选中数据 */
|
|
160
159
|
headerClick: (_column: Column, _e: MouseEvent) => boolean;
|
|
161
160
|
headerContextmenu: (_column: Column, _e: MouseEvent) => boolean;
|
|
162
161
|
sortChange: (_sorter: Sorter) => boolean;
|
|
163
|
-
/** 设置多选选中值 */
|
|
164
162
|
filterChange: (_filter: Filter) => boolean;
|
|
165
163
|
currentChange: (_current?: DataItem | null | undefined, _old?: DataItem | null | undefined) => boolean;
|
|
166
164
|
headerDragend: (_width: number, _old: number, _column: Column, _e: MouseEvent) => boolean;
|
|
@@ -201,10 +199,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
201
199
|
};
|
|
202
200
|
emptyProps: {
|
|
203
201
|
type: import("vue").PropType<import("./types").TableEmptyProps>;
|
|
204
|
-
default: () => null;
|
|
202
|
+
default: () => null;
|
|
205
203
|
};
|
|
206
|
-
rowClickChecked: import("vue").PropType<import("./types").RowClickChecked>;
|
|
207
|
-
reserveCurrent: BooleanConstructor;
|
|
204
|
+
rowClickChecked: import("vue").PropType<import("./types").RowClickChecked>; /** 表格列配置 */
|
|
205
|
+
reserveCurrent: BooleanConstructor;
|
|
208
206
|
selectedRowKeys: import("vue").PropType<DataKey[]>;
|
|
209
207
|
cacheData: import("vue").PropType<DataItem[]>;
|
|
210
208
|
size: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, nextTick, onMounted, h } from "vue";
|
|
2
2
|
import { ElTable } from "element-plus";
|
|
3
3
|
import { pick, omit, eachTree } from "../utils/core";
|
|
4
|
-
import { useEmits, useMethods, isReserveChecked, getGlobalTooltipProps, getStateCols, getBodyRowClass, getHeadRowClass, isDisableRow, getValue, getTableFilter, getRowKeys, getCols, getEmptySlot, valueIsChanged, getRowByKey, arrayIsChanged, getKeysAndList } from "./util";
|
|
4
|
+
import { useEmits, useMethods, isReserveChecked, getGlobalTooltipProps, getStateCols, getBodyRowClass, getHeadRowClass, isDisableRow, getValue, getTableFilter, getRowKeys, getCols, getEmptySlot, valueIsChanged, getRowByKey, arrayIsChanged, getKeysAndList, toggleRowSelectionPro } from "./util";
|
|
5
5
|
import { dataTableProps, dataTableEmits, tablePropKeys } from "./props";
|
|
6
6
|
const index = defineComponent({
|
|
7
7
|
name: "EleDataTable",
|
|
@@ -167,24 +167,9 @@ const index = defineComponent({
|
|
|
167
167
|
tableState.checkedKeys = checkedKeys;
|
|
168
168
|
if (isChanged) {
|
|
169
169
|
methods.clearSelection();
|
|
170
|
-
let flag = false;
|
|
171
170
|
checked.forEach((row) => {
|
|
172
|
-
|
|
173
|
-
if ((_a = row[childKey.value]) == null ? void 0 : _a.length) {
|
|
174
|
-
flag = true;
|
|
175
|
-
}
|
|
176
|
-
methods.toggleRowSelection(row, true);
|
|
171
|
+
toggleRowSelectionPro(tableRef.value, row, true);
|
|
177
172
|
});
|
|
178
|
-
if (flag) {
|
|
179
|
-
const temp = methods.getSelectionRows() || [];
|
|
180
|
-
temp.forEach((t) => {
|
|
181
|
-
var _a;
|
|
182
|
-
const k = getValue(t, props.rowKey);
|
|
183
|
-
if (!checkedKeys.includes(k) && !((_a = t[childKey.value]) == null ? void 0 : _a.length)) {
|
|
184
|
-
methods.toggleRowSelection(t, false);
|
|
185
|
-
}
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
173
|
}
|
|
189
174
|
updateSelectedRowKeys(checkedKeys);
|
|
190
175
|
if (isChanged) {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
@use '../../style/themes/default.scss' as *;
|
|
2
2
|
@use '../../style/util.scss' as *;
|
|
3
3
|
@use './css-var.scss' as *;
|
|
4
|
-
$ele-filter-path: 'M349 838c0 17 14 32 31 32h262c17 0 31-14 31-32V642H349v196ZM880 154H143c-24 0-39 26-27 48l221 376h348l221-376c12-21-3-48-27-48' !default;
|
|
5
4
|
$ele-expand-path: 'M362 811 662 512 362 213' !default;
|
|
5
|
+
$ele-loading-path: 'M512 128V299M789 235 672 352M896 512H725M789 789 672 672M512 896V725M235 789 352 672M128 512H299M235 235 352 352' !default;
|
|
6
|
+
$ele-filter-path: 'M349 838c0 17 14 32 31 32h262c17 0 31-14 31-32V642H349v196ZM880 154H143c-24 0-39 26-27 48l221 376h348l221-376c12-21-3-48-27-48' !default;
|
|
6
7
|
|
|
7
8
|
@include set-data-table-var($ele);
|
|
8
9
|
@include table-var-style('body .ele-data-table.el-table');
|
|
@@ -216,21 +217,31 @@ $ele-expand-path: 'M362 811 662 512 362 213' !default;
|
|
|
216
217
|
transition: (color $ele-transition, background-color $ele-transition);
|
|
217
218
|
transform: none;
|
|
218
219
|
|
|
220
|
+
&:hover {
|
|
221
|
+
background: eleVar('table', 'icon-hover-bg');
|
|
222
|
+
}
|
|
223
|
+
|
|
219
224
|
& > .el-icon {
|
|
220
225
|
transition: all $ele-transition;
|
|
221
226
|
font-size: inherit;
|
|
222
227
|
|
|
223
|
-
|
|
228
|
+
& > svg > path {
|
|
224
229
|
fill: none;
|
|
225
230
|
stroke: currentColor;
|
|
226
|
-
stroke-width: 100;
|
|
227
231
|
stroke-linecap: round;
|
|
232
|
+
stroke-linejoin: round;
|
|
233
|
+
stroke-width: 98;
|
|
228
234
|
#{'d'}: path($ele-expand-path);
|
|
229
235
|
}
|
|
230
236
|
}
|
|
231
237
|
|
|
232
|
-
|
|
233
|
-
|
|
238
|
+
& > .is-loading > svg > path {
|
|
239
|
+
stroke-width: 85;
|
|
240
|
+
#{'d'}: path($ele-loading-path);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
& > .el-icon:not(.is-loading) > svg {
|
|
244
|
+
transform: translateX(0.4px);
|
|
234
245
|
}
|
|
235
246
|
}
|
|
236
247
|
|
|
@@ -239,7 +250,7 @@ $ele-expand-path: 'M362 811 662 512 362 213' !default;
|
|
|
239
250
|
& > .el-table__placeholder {
|
|
240
251
|
height: 16px;
|
|
241
252
|
display: inline-flex;
|
|
242
|
-
vertical-align: -
|
|
253
|
+
vertical-align: -2px;
|
|
243
254
|
}
|
|
244
255
|
|
|
245
256
|
& > .el-table__expand-icon,
|
|
@@ -90,6 +90,13 @@ export declare function getEmptySlot(slots: Slots, emptyProps?: boolean | ElEmpt
|
|
|
90
90
|
}> | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
91
91
|
[key: string]: any;
|
|
92
92
|
}>[] | undefined) | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* 切换表格指定数据的选中状态
|
|
95
|
+
* @param tableRef 表格实例
|
|
96
|
+
* @param row 数据
|
|
97
|
+
* @param selected 选中状态
|
|
98
|
+
*/
|
|
99
|
+
export declare function toggleRowSelectionPro(tableRef: ElTableInstance | undefined, row: DataItem, selected: boolean): void;
|
|
93
100
|
/**
|
|
94
101
|
* 获取表格筛选值
|
|
95
102
|
* @param tableRef 表格实例
|
|
@@ -169,6 +169,22 @@ function getEmptySlot(slots, emptyProps, emptyText, errorText) {
|
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
+
function toggleRowSelectionPro(tableRef, row, selected) {
|
|
173
|
+
var _a, _b;
|
|
174
|
+
if (tableRef == null) {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
const store = (_a = unref(tableRef)) == null ? void 0 : _a.store;
|
|
178
|
+
const selection = unref((_b = store == null ? void 0 : store.states) == null ? void 0 : _b.selection);
|
|
179
|
+
const index = selection.indexOf(row);
|
|
180
|
+
const included = index !== -1;
|
|
181
|
+
if (selected && !included) {
|
|
182
|
+
selection.push(row);
|
|
183
|
+
} else if (!selected && included) {
|
|
184
|
+
selection.splice(index, 1);
|
|
185
|
+
}
|
|
186
|
+
store.updateAllSelected();
|
|
187
|
+
}
|
|
172
188
|
function getTableFilter(tableRef) {
|
|
173
189
|
var _a, _b;
|
|
174
190
|
const states = (_b = (_a = unref(tableRef)) == null ? void 0 : _a.store) == null ? void 0 : _b.states;
|
|
@@ -459,6 +475,7 @@ export {
|
|
|
459
475
|
isReserveChecked,
|
|
460
476
|
mergeTooltipProps,
|
|
461
477
|
renderSlot,
|
|
478
|
+
toggleRowSelectionPro,
|
|
462
479
|
useEmits,
|
|
463
480
|
useMethods,
|
|
464
481
|
valueIsChanged
|
package/es/ele-drawer/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
appendToBody: BooleanConstructor;
|
|
14
14
|
appendTo: import("element-plus/es/utils/index").EpPropFinalized<(new (...args: any[]) => string & {}) | (() => string) | ((new (...args: any[]) => string & {}) | (() => string))[], unknown, unknown, "body", boolean>;
|
|
15
15
|
beforeClose: {
|
|
16
|
-
readonly type: import("vue").PropType<import("element-plus").DialogBeforeCloseFn>;
|
|
16
|
+
readonly type: import("vue").PropType<import("element-plus").DialogBeforeCloseFn>; /** 关闭事件 */
|
|
17
17
|
readonly required: false;
|
|
18
18
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
19
19
|
__epPropKey: true;
|
|
@@ -54,8 +54,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
54
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
55
55
|
__epPropKey: true;
|
|
56
56
|
};
|
|
57
|
-
customClass: import("element-plus/es/utils/index").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
58
57
|
draggable: BooleanConstructor;
|
|
58
|
+
overflow: BooleanConstructor;
|
|
59
59
|
fullscreen: BooleanConstructor;
|
|
60
60
|
showClose: import("element-plus/es/utils/index").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
61
61
|
title: import("element-plus/es/utils/index").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -90,7 +90,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
90
90
|
appendToBody: BooleanConstructor;
|
|
91
91
|
appendTo: import("element-plus/es/utils/index").EpPropFinalized<(new (...args: any[]) => string & {}) | (() => string) | ((new (...args: any[]) => string & {}) | (() => string))[], unknown, unknown, "body", boolean>;
|
|
92
92
|
beforeClose: {
|
|
93
|
-
readonly type: import("vue").PropType<import("element-plus").DialogBeforeCloseFn>;
|
|
93
|
+
readonly type: import("vue").PropType<import("element-plus").DialogBeforeCloseFn>; /** 关闭事件 */
|
|
94
94
|
readonly required: false;
|
|
95
95
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
96
96
|
__epPropKey: true;
|
|
@@ -131,8 +131,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
131
131
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
132
132
|
__epPropKey: true;
|
|
133
133
|
};
|
|
134
|
-
customClass: import("element-plus/es/utils/index").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
135
134
|
draggable: BooleanConstructor;
|
|
135
|
+
overflow: BooleanConstructor;
|
|
136
136
|
fullscreen: BooleanConstructor;
|
|
137
137
|
showClose: import("element-plus/es/utils/index").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
138
138
|
title: import("element-plus/es/utils/index").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -140,11 +140,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
140
140
|
}>> & {
|
|
141
141
|
onOpen?: (() => any) | undefined;
|
|
142
142
|
onClose?: (() => any) | undefined;
|
|
143
|
+
onOpenAutoFocus?: (() => any) | undefined;
|
|
144
|
+
onCloseAutoFocus?: (() => any) | undefined;
|
|
143
145
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
144
146
|
onOpened?: (() => any) | undefined;
|
|
145
147
|
onClosed?: (() => any) | undefined;
|
|
146
|
-
onOpenAutoFocus?: (() => any) | undefined;
|
|
147
|
-
onCloseAutoFocus?: (() => any) | undefined;
|
|
148
148
|
}, {
|
|
149
149
|
size: import("element-plus/es/utils/index").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
150
150
|
center: boolean;
|
|
@@ -162,8 +162,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
162
162
|
trapFocus: import("element-plus/es/utils/index").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
163
163
|
headerAriaLevel: string;
|
|
164
164
|
alignCenter: boolean;
|
|
165
|
-
customClass: string;
|
|
166
165
|
draggable: boolean;
|
|
166
|
+
overflow: boolean;
|
|
167
167
|
fullscreen: boolean;
|
|
168
168
|
showClose: import("element-plus/es/utils/index").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
169
169
|
ariaLevel: string;
|
package/es/ele-drawer/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, createSlots, withCtx, createElementVNode, normalizeStyle, renderSlot, createTextVNode, toDisplayString, createElementBlock, createVNode, createCommentVNode } from "vue";
|
|
2
|
-
import { Close } from "@element-plus/icons-vue";
|
|
3
2
|
import { ElDrawer, ElIcon, drawerEmits } from "element-plus";
|
|
4
3
|
import { useLicense } from "../ele-config-provider/receiver";
|
|
4
|
+
import { CloseOutlined } from "../icons";
|
|
5
5
|
import { drawerProps } from "./props";
|
|
6
6
|
const _sfc_main = defineComponent({
|
|
7
7
|
name: "EleDrawer",
|
|
8
|
-
components: { ElDrawer, ElIcon,
|
|
8
|
+
components: { ElDrawer, ElIcon, CloseOutlined },
|
|
9
9
|
props: drawerProps,
|
|
10
10
|
emits: drawerEmits,
|
|
11
11
|
setup(_props, { emit }) {
|
|
@@ -53,7 +53,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
53
53
|
};
|
|
54
54
|
const _hoisted_1 = ["onClick"];
|
|
55
55
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
56
|
-
const
|
|
56
|
+
const _component_CloseOutlined = resolveComponent("CloseOutlined");
|
|
57
57
|
const _component_ElIcon = resolveComponent("ElIcon");
|
|
58
58
|
const _component_ElDrawer = resolveComponent("ElDrawer");
|
|
59
59
|
return openBlock(), createBlock(_component_ElDrawer, {
|
|
@@ -105,7 +105,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
105
105
|
renderSlot(_ctx.$slots, "closeBtn", {}, () => [
|
|
106
106
|
createVNode(_component_ElIcon, null, {
|
|
107
107
|
default: withCtx(() => [
|
|
108
|
-
createVNode(
|
|
108
|
+
createVNode(_component_CloseOutlined)
|
|
109
109
|
]),
|
|
110
110
|
_: 1
|
|
111
111
|
})
|
package/es/ele-drawer/props.d.ts
CHANGED
|
@@ -62,8 +62,8 @@ export declare const drawerProps: {
|
|
|
62
62
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
63
63
|
__epPropKey: true;
|
|
64
64
|
};
|
|
65
|
-
customClass: import("element-plus/es/utils/index").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
66
65
|
draggable: BooleanConstructor;
|
|
66
|
+
overflow: BooleanConstructor;
|
|
67
67
|
fullscreen: BooleanConstructor;
|
|
68
68
|
showClose: import("element-plus/es/utils/index").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
69
69
|
title: import("element-plus/es/utils/index").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -5,6 +5,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
items: import("vue").PropType<DropdownItem[]>;
|
|
6
6
|
modelValue: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<readonly [ObjectConstructor, StringConstructor, NumberConstructor], unknown, unknown> | undefined>;
|
|
7
7
|
menuStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
8
|
+
iconProps: import("vue").PropType<import("../ele-app/el").ElIconProps>;
|
|
8
9
|
trigger: import("element-plus/es/utils/index").EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import("element-plus").TooltipTriggerType[]) | (() => import("element-plus/es/utils/typescript").Arrayable<import("element-plus").TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import("element-plus").TooltipTriggerType[]) | (() => import("element-plus/es/utils/typescript").Arrayable<import("element-plus").TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
9
10
|
effect: {
|
|
10
11
|
readonly default: "light";
|
|
@@ -60,6 +61,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
61
|
items: import("vue").PropType<DropdownItem[]>;
|
|
61
62
|
modelValue: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<readonly [ObjectConstructor, StringConstructor, NumberConstructor], unknown, unknown> | undefined>;
|
|
62
63
|
menuStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
64
|
+
iconProps: import("vue").PropType<import("../ele-app/el").ElIconProps>;
|
|
63
65
|
trigger: import("element-plus/es/utils/index").EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import("element-plus").TooltipTriggerType[]) | (() => import("element-plus/es/utils/typescript").Arrayable<import("element-plus").TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | import("element-plus").TooltipTriggerType[]) | (() => import("element-plus/es/utils/typescript").Arrayable<import("element-plus").TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
64
66
|
effect: {
|
|
65
67
|
readonly default: "light";
|