ele-admin-plus 1.1.8-beta.4 → 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/style/index.scss +17 -6
- 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/style/index.scss +17 -6
- 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
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const vue = require("vue");
|
|
3
3
|
const elementPlus = require("element-plus");
|
|
4
|
-
const iconsVue = require("@element-plus/icons-vue");
|
|
5
4
|
const icons = require("../../icons");
|
|
6
5
|
const receiver = require("../../ele-config-provider/receiver");
|
|
7
6
|
const EleDropdown = require("../../ele-dropdown/index");
|
|
@@ -12,7 +11,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
12
11
|
name: "TableTools",
|
|
13
12
|
components: {
|
|
14
13
|
ElIcon: elementPlus.ElIcon,
|
|
15
|
-
|
|
14
|
+
ReloadOutlined: icons.ReloadOutlined,
|
|
16
15
|
ColumnHeightOutlined: icons.ColumnHeightOutlined,
|
|
17
16
|
FullscreenOutlined: icons.FullscreenOutlined,
|
|
18
17
|
FullscreenExitOutlined: icons.FullscreenExitOutlined,
|
|
@@ -82,7 +81,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
82
81
|
return target;
|
|
83
82
|
};
|
|
84
83
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
85
|
-
const
|
|
84
|
+
const _component_ReloadOutlined = vue.resolveComponent("ReloadOutlined");
|
|
86
85
|
const _component_ElIcon = vue.resolveComponent("ElIcon");
|
|
87
86
|
const _component_EleTool = vue.resolveComponent("EleTool");
|
|
88
87
|
const _component_ColumnHeightOutlined = vue.resolveComponent("ColumnHeightOutlined");
|
|
@@ -101,7 +100,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
101
100
|
default: vue.withCtx(() => [
|
|
102
101
|
vue.createVNode(_component_ElIcon, null, {
|
|
103
102
|
default: vue.withCtx(() => [
|
|
104
|
-
vue.createVNode(
|
|
103
|
+
vue.createVNode(_component_ReloadOutlined)
|
|
105
104
|
]),
|
|
106
105
|
_: 1
|
|
107
106
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const vue = require("vue");
|
|
3
|
-
const iconsVue = require("@element-plus/icons-vue");
|
|
4
3
|
const elementPlus = require("element-plus");
|
|
4
|
+
const icons = require("../../icons");
|
|
5
5
|
const core = require("../../utils/core");
|
|
6
6
|
const EleTooltip = require("../../ele-tooltip/index");
|
|
7
7
|
const EleTool = require("../../ele-tool/index");
|
|
@@ -13,7 +13,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
13
13
|
ElCheckbox: elementPlus.ElCheckbox,
|
|
14
14
|
ElIcon: elementPlus.ElIcon,
|
|
15
15
|
EleTooltip,
|
|
16
|
-
|
|
16
|
+
SettingOutlined: icons.SettingOutlined,
|
|
17
17
|
EleTool,
|
|
18
18
|
ToolColumnList
|
|
19
19
|
},
|
|
@@ -208,7 +208,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
208
208
|
const _hoisted_1 = { class: "ele-tool-column-header" };
|
|
209
209
|
const _hoisted_2 = { class: "ele-tool-column-label" };
|
|
210
210
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
211
|
-
const
|
|
211
|
+
const _component_SettingOutlined = vue.resolveComponent("SettingOutlined");
|
|
212
212
|
const _component_ElIcon = vue.resolveComponent("ElIcon");
|
|
213
213
|
const _component_ElCheckbox = vue.resolveComponent("ElCheckbox");
|
|
214
214
|
const _component_ToolColumnList = vue.resolveComponent("ToolColumnList");
|
|
@@ -279,7 +279,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
279
279
|
default: vue.withCtx(() => [
|
|
280
280
|
vue.createVNode(_component_ElIcon, null, {
|
|
281
281
|
default: vue.withCtx(() => [
|
|
282
|
-
vue.createVNode(
|
|
282
|
+
vue.createVNode(_component_SettingOutlined)
|
|
283
283
|
]),
|
|
284
284
|
_: 1
|
|
285
285
|
})
|
|
@@ -101,7 +101,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
101
101
|
onCurrentChange
|
|
102
102
|
};
|
|
103
103
|
});
|
|
104
|
-
const
|
|
104
|
+
const toolNames = vue.computed(() => {
|
|
105
105
|
const tools = props2.tools ?? globalProps.value.tools ?? true;
|
|
106
106
|
if (tools === true) {
|
|
107
107
|
return ["reload", "size", "columns", "maximized"];
|
|
@@ -431,7 +431,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
431
431
|
tableIndex,
|
|
432
432
|
paginationProps,
|
|
433
433
|
tableProps,
|
|
434
|
-
|
|
434
|
+
toolNames,
|
|
435
435
|
rootProps,
|
|
436
436
|
onRefresh,
|
|
437
437
|
onSizeChange,
|
|
@@ -468,11 +468,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
468
468
|
_ctx.toolbar ? (vue.openBlock(), vue.createBlock(_component_EleToolbar, vue.normalizeProps(vue.mergeProps({ key: 0 }, _ctx.toolbar === true ? {} : _ctx.toolbar)), {
|
|
469
469
|
tools: vue.withCtx(() => [
|
|
470
470
|
vue.renderSlot(_ctx.$slots, "tools"),
|
|
471
|
-
_ctx.
|
|
471
|
+
_ctx.toolNames && _ctx.toolNames.length ? (vue.openBlock(), vue.createBlock(_component_TableTools, {
|
|
472
472
|
key: 0,
|
|
473
473
|
size: _ctx.tableSize,
|
|
474
474
|
columns: _ctx.columns,
|
|
475
|
-
tools: _ctx.
|
|
475
|
+
tools: _ctx.toolNames,
|
|
476
476
|
columnSortable: _ctx.columnSortable,
|
|
477
477
|
columnFixed: _ctx.columnFixed,
|
|
478
478
|
maximized: _ctx.tableMaximized,
|
|
@@ -173,7 +173,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
173
173
|
tableIndex: import("vue").ComputedRef<number>;
|
|
174
174
|
paginationProps: import("vue").ComputedRef<ElePaginationProps | null>;
|
|
175
175
|
tableProps: import("vue").ComputedRef<EleDataTableProps>;
|
|
176
|
-
|
|
176
|
+
toolNames: import("vue").ComputedRef<string[]>;
|
|
177
177
|
rootProps: import("vue").ComputedRef<EleLoadingProps>;
|
|
178
178
|
onRefresh: () => void;
|
|
179
179
|
onSizeChange: (size: TableSize) => void;
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
|
|
200
200
|
.ele-tool-column-handle {
|
|
201
201
|
display: flex;
|
|
202
|
-
font-size:
|
|
202
|
+
font-size: 12px;
|
|
203
203
|
color: elVar('text-color', 'placeholder');
|
|
204
204
|
margin-right: 4px;
|
|
205
205
|
cursor: move;
|
|
@@ -238,6 +238,6 @@
|
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
.ele-tool-column-header .ele-tool-column-label {
|
|
241
|
-
padding-left: calc(
|
|
241
|
+
padding-left: calc(22px - #{eleVar('tool-column', 'item-padding')});
|
|
242
242
|
}
|
|
243
243
|
}
|
|
@@ -179,7 +179,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
179
179
|
vue.renderSlot(_ctx.$slots, "collapse", { collapse: _ctx.isCollapse }, () => [
|
|
180
180
|
vue.createVNode(_component_ElIcon, { class: "ele-split-collapse-icon" }, {
|
|
181
181
|
default: vue.withCtx(() => [
|
|
182
|
-
_ctx.vertical ? (vue.openBlock(), vue.createBlock(_component_ArrowUp, {
|
|
182
|
+
_ctx.vertical ? (vue.openBlock(), vue.createBlock(_component_ArrowUp, {
|
|
183
|
+
key: 0,
|
|
184
|
+
style: { "margin-top": "-1.25px" }
|
|
185
|
+
})) : (vue.openBlock(), vue.createBlock(_component_ArrowLeft, {
|
|
186
|
+
key: 1,
|
|
187
|
+
style: { "margin-left": "-1.25px" }
|
|
188
|
+
}))
|
|
183
189
|
]),
|
|
184
190
|
_: 1
|
|
185
191
|
})
|
|
@@ -86,10 +86,14 @@
|
|
|
86
86
|
z-index: 5;
|
|
87
87
|
|
|
88
88
|
.ele-split-collapse-icon {
|
|
89
|
-
font-size:
|
|
89
|
+
font-size: 14px;
|
|
90
90
|
color: elVar('text-color', 'secondary');
|
|
91
91
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
92
92
|
transform: scaleX(1);
|
|
93
|
+
|
|
94
|
+
& > svg {
|
|
95
|
+
stroke-width: 5;
|
|
96
|
+
}
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
&:hover .ele-split-collapse-icon {
|
|
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
29
|
maxTagCount: NumberConstructor; /** 下拉框是否显示 */
|
|
30
30
|
maxTagTextLength: NumberConstructor;
|
|
31
31
|
tagType: {
|
|
32
|
-
type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "" | "
|
|
32
|
+
type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>;
|
|
33
33
|
default: string;
|
|
34
34
|
};
|
|
35
35
|
automaticDropdown: BooleanConstructor;
|
|
@@ -125,7 +125,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
125
125
|
maxTagCount: NumberConstructor; /** 下拉框是否显示 */
|
|
126
126
|
maxTagTextLength: NumberConstructor;
|
|
127
127
|
tagType: {
|
|
128
|
-
type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "" | "
|
|
128
|
+
type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>;
|
|
129
129
|
default: string;
|
|
130
130
|
};
|
|
131
131
|
automaticDropdown: BooleanConstructor;
|
|
@@ -175,7 +175,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
175
175
|
transition: string;
|
|
176
176
|
multiple: boolean;
|
|
177
177
|
responsive: boolean;
|
|
178
|
-
tagType: import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "" | "
|
|
178
|
+
tagType: import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined;
|
|
179
179
|
automaticDropdown: boolean;
|
|
180
180
|
filterable: boolean;
|
|
181
181
|
valueKey: string;
|
|
@@ -46,7 +46,7 @@ export declare const tableSelectProps: {
|
|
|
46
46
|
maxTagTextLength: NumberConstructor;
|
|
47
47
|
/** 多选标签类型 */
|
|
48
48
|
tagType: {
|
|
49
|
-
type: PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "" | "
|
|
49
|
+
type: PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>;
|
|
50
50
|
default: string;
|
|
51
51
|
};
|
|
52
52
|
/** 是否在输入框获得焦点后自动弹出选项菜单 */
|
package/lib/ele-tabs/index.cjs
CHANGED
|
@@ -279,12 +279,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
279
279
|
]),
|
|
280
280
|
_: 2
|
|
281
281
|
}, [
|
|
282
|
+
_ctx.$slots["add-icon"] ? {
|
|
283
|
+
name: "add-icon",
|
|
284
|
+
fn: vue.withCtx(() => [
|
|
285
|
+
vue.renderSlot(_ctx.$slots, "add-icon")
|
|
286
|
+
]),
|
|
287
|
+
key: "0"
|
|
288
|
+
} : void 0,
|
|
282
289
|
_ctx.$slots.addIcon ? {
|
|
283
290
|
name: "addIcon",
|
|
284
291
|
fn: vue.withCtx(() => [
|
|
285
292
|
vue.renderSlot(_ctx.$slots, "addIcon")
|
|
286
293
|
]),
|
|
287
|
-
key: "
|
|
294
|
+
key: "1"
|
|
288
295
|
} : void 0
|
|
289
296
|
]), 1040, ["type", "class", "onUpdate:modelValue", "onTabClick", "onTabChange", "onTabRemove", "onTabAdd", "onEdit", "onContextmenu"]);
|
|
290
297
|
}
|
|
@@ -82,6 +82,11 @@
|
|
|
82
82
|
padding-right: calc(#{$padding} + #{$size} / 2 + #{$padding} / 4);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
.ele-tab-icon {
|
|
86
|
+
font-size: eleVar('tab', 'icon-font-size');
|
|
87
|
+
vertical-align: -2.8px;
|
|
88
|
+
}
|
|
89
|
+
|
|
85
90
|
/* 关闭图标 */
|
|
86
91
|
.el-tabs__nav-wrap .el-tabs__nav .el-tabs__item .is-icon-close {
|
|
87
92
|
margin: 0;
|
|
@@ -190,6 +195,10 @@
|
|
|
190
195
|
padding-right: calc(#{$padding} + #{$size} / 2 + #{$padding} / 4);
|
|
191
196
|
}
|
|
192
197
|
|
|
198
|
+
.ele-tab-icon {
|
|
199
|
+
font-size: eleVar('tab-sm', 'icon-font-size');
|
|
200
|
+
}
|
|
201
|
+
|
|
193
202
|
.el-tabs__nav-wrap .el-tabs__nav .el-tabs__item .is-icon-close {
|
|
194
203
|
width: eleVar('tab-sm', 'close-size');
|
|
195
204
|
height: eleVar('tab-sm', 'close-size');
|
|
@@ -223,6 +232,10 @@
|
|
|
223
232
|
padding-right: calc(#{$padding} + #{$size} / 2 + #{$padding} / 4);
|
|
224
233
|
}
|
|
225
234
|
|
|
235
|
+
.ele-tab-icon {
|
|
236
|
+
font-size: eleVar('tab-lg', 'icon-font-size');
|
|
237
|
+
}
|
|
238
|
+
|
|
226
239
|
.el-tabs__nav-wrap .el-tabs__nav .el-tabs__item .is-icon-close {
|
|
227
240
|
width: eleVar('tab-lg', 'close-size');
|
|
228
241
|
height: eleVar('tab-lg', 'close-size');
|
|
@@ -666,6 +679,11 @@
|
|
|
666
679
|
outline: none;
|
|
667
680
|
}
|
|
668
681
|
|
|
682
|
+
.ele-tab-icon {
|
|
683
|
+
font-size: eleVar('tab', 'icon-font-size');
|
|
684
|
+
vertical-align: -2.8px;
|
|
685
|
+
}
|
|
686
|
+
|
|
669
687
|
/* 下拉菜单 */
|
|
670
688
|
& > .el-dropdown {
|
|
671
689
|
color: inherit;
|
|
@@ -713,6 +731,10 @@
|
|
|
713
731
|
&.is-tab {
|
|
714
732
|
font-size: eleVar('tab-sm', 'font-size');
|
|
715
733
|
}
|
|
734
|
+
|
|
735
|
+
.ele-tab-icon {
|
|
736
|
+
font-size: eleVar('tab-sm', 'icon-font-size');
|
|
737
|
+
}
|
|
716
738
|
}
|
|
717
739
|
|
|
718
740
|
/* 大型尺寸 */
|
|
@@ -725,6 +747,10 @@
|
|
|
725
747
|
&.is-tab {
|
|
726
748
|
font-size: eleVar('tab-lg', 'font-size');
|
|
727
749
|
}
|
|
750
|
+
|
|
751
|
+
.ele-tab-icon {
|
|
752
|
+
font-size: eleVar('tab-lg', 'icon-font-size');
|
|
753
|
+
}
|
|
728
754
|
}
|
|
729
755
|
|
|
730
756
|
/* 简约风格和指示器风格 */
|
|
@@ -28,24 +28,24 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28
28
|
class: "ele-toolbar-title",
|
|
29
29
|
style: vue.normalizeStyle(_ctx.titleStyle)
|
|
30
30
|
}, [
|
|
31
|
-
_ctx.title ? (vue.openBlock(), vue.createBlock(_component_EleText, {
|
|
31
|
+
_ctx.title ? (vue.openBlock(), vue.createBlock(_component_EleText, vue.mergeProps({
|
|
32
32
|
key: 0,
|
|
33
33
|
type: "heading"
|
|
34
|
-
}, {
|
|
34
|
+
}, _ctx.titleProps || {}), {
|
|
35
35
|
default: vue.withCtx(() => [
|
|
36
36
|
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
|
37
37
|
]),
|
|
38
38
|
_: 1
|
|
39
|
-
})) : vue.createCommentVNode("", true),
|
|
40
|
-
_ctx.subtitle ? (vue.openBlock(), vue.createBlock(_component_EleText, {
|
|
39
|
+
}, 16)) : vue.createCommentVNode("", true),
|
|
40
|
+
_ctx.subtitle ? (vue.openBlock(), vue.createBlock(_component_EleText, vue.mergeProps({
|
|
41
41
|
key: 1,
|
|
42
42
|
size: "xs"
|
|
43
|
-
}, {
|
|
43
|
+
}, _ctx.subtitleProps || {}), {
|
|
44
44
|
default: vue.withCtx(() => [
|
|
45
45
|
vue.createTextVNode(vue.toDisplayString(_ctx.subtitle), 1)
|
|
46
46
|
]),
|
|
47
47
|
_: 1
|
|
48
|
-
})) : vue.createCommentVNode("", true)
|
|
48
|
+
}, 16)) : vue.createCommentVNode("", true)
|
|
49
49
|
], 4)) : vue.createCommentVNode("", true),
|
|
50
50
|
vue.createElementVNode("div", {
|
|
51
51
|
class: "ele-toolbar-body",
|
|
@@ -8,6 +8,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
9
9
|
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
10
10
|
toolsStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
11
|
+
titleProps: import("vue").PropType<import("../ele-app/plus").EleTextProps>;
|
|
12
|
+
subtitleProps: import("vue").PropType<import("../ele-app/plus").EleTextProps>;
|
|
11
13
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
14
|
title: StringConstructor;
|
|
13
15
|
subtitle: StringConstructor;
|
|
@@ -18,6 +20,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
20
|
titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
19
21
|
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
20
22
|
toolsStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
23
|
+
titleProps: import("vue").PropType<import("../ele-app/plus").EleTextProps>;
|
|
24
|
+
subtitleProps: import("vue").PropType<import("../ele-app/plus").EleTextProps>;
|
|
21
25
|
}>>, {
|
|
22
26
|
theme: import("./types").ToolbarTheme;
|
|
23
27
|
}, {}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { EleTextProps } from '../ele-app/plus';
|
|
2
3
|
import type { ToolbarTheme } from './types';
|
|
3
4
|
/**
|
|
4
5
|
* 属性
|
|
@@ -19,5 +20,9 @@ export declare const toolbarProps: {
|
|
|
19
20
|
bodyStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
20
21
|
/** 按钮区样式 */
|
|
21
22
|
toolsStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
23
|
+
/** 标题组件属性 */
|
|
24
|
+
titleProps: PropType<EleTextProps>;
|
|
25
|
+
/** 二级标题组件属性 */
|
|
26
|
+
subtitleProps: PropType<EleTextProps>;
|
|
22
27
|
};
|
|
23
28
|
export type ToolbarProps = ExtractPropTypes<typeof toolbarProps>;
|
|
@@ -159,7 +159,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
159
159
|
treeRef.value && treeRef.value.setChecked(item.value, false);
|
|
160
160
|
const keys = treeRef.value && treeRef.value.getCheckedKeys() || [];
|
|
161
161
|
selectedItems.value = getMultipleSelected(keys);
|
|
162
|
-
updateModelValue(
|
|
162
|
+
updateModelValue(
|
|
163
|
+
util$1.getModelValue(keys, selectedItems.value, props2.checkedValueStrategy)
|
|
164
|
+
);
|
|
163
165
|
emit("removeTag", item.value);
|
|
164
166
|
};
|
|
165
167
|
const onSelectClear = () => {
|
|
@@ -234,13 +236,17 @@ const _sfc_main = vue.defineComponent({
|
|
|
234
236
|
}
|
|
235
237
|
const keys = treeRef.value && treeRef.value.getCheckedKeys() || [];
|
|
236
238
|
selectedItems.value = getMultipleSelected(keys);
|
|
237
|
-
updateModelValue(
|
|
239
|
+
updateModelValue(
|
|
240
|
+
util$1.getModelValue(keys, selectedItems.value, props2.checkedValueStrategy)
|
|
241
|
+
);
|
|
238
242
|
}
|
|
239
243
|
};
|
|
240
244
|
const onTreeCheck = () => {
|
|
241
245
|
const keys = treeRef.value && treeRef.value.getCheckedKeys() || [];
|
|
242
246
|
selectedItems.value = getMultipleSelected(keys);
|
|
243
|
-
updateModelValue(
|
|
247
|
+
updateModelValue(
|
|
248
|
+
util$1.getModelValue(keys, selectedItems.value, props2.checkedValueStrategy)
|
|
249
|
+
);
|
|
244
250
|
focusSearchInput();
|
|
245
251
|
};
|
|
246
252
|
const onTreeExpand = () => {
|
|
@@ -252,7 +258,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
252
258
|
vue.watch(
|
|
253
259
|
() => props2.modelValue,
|
|
254
260
|
(modelValue) => {
|
|
255
|
-
|
|
261
|
+
if (!props2.multiple || !props2.checkedValueStrategy) {
|
|
262
|
+
updateSelectedItems(modelValue);
|
|
263
|
+
} else {
|
|
264
|
+
const keys = treeRef.value && treeRef.value.getCheckedKeys() || [];
|
|
265
|
+
updateSelectedItems(keys);
|
|
266
|
+
}
|
|
256
267
|
},
|
|
257
268
|
{ deep: true }
|
|
258
269
|
);
|
|
@@ -283,10 +294,42 @@ const _sfc_main = vue.defineComponent({
|
|
|
283
294
|
}],
|
|
284
295
|
() => {
|
|
285
296
|
if (props2.multiple && !util.isEmptyValue(props2.modelValue) && props2.modelValue.length) {
|
|
286
|
-
|
|
297
|
+
if (!props2.checkedValueStrategy) {
|
|
298
|
+
const values = props2.modelValue;
|
|
299
|
+
selectedItems.value = getMultipleSelected(values);
|
|
300
|
+
updateModelValue(
|
|
301
|
+
util$1.getModelValue(
|
|
302
|
+
values,
|
|
303
|
+
selectedItems.value,
|
|
304
|
+
props2.checkedValueStrategy
|
|
305
|
+
)
|
|
306
|
+
);
|
|
307
|
+
} else {
|
|
308
|
+
const keys = treeRef.value && treeRef.value.getCheckedKeys() || [];
|
|
309
|
+
selectedItems.value = getMultipleSelected(keys);
|
|
310
|
+
updateModelValue(
|
|
311
|
+
util$1.getModelValue(
|
|
312
|
+
keys,
|
|
313
|
+
selectedItems.value,
|
|
314
|
+
props2.checkedValueStrategy
|
|
315
|
+
)
|
|
316
|
+
);
|
|
317
|
+
}
|
|
287
318
|
}
|
|
288
319
|
}
|
|
289
320
|
);
|
|
321
|
+
vue.watch(
|
|
322
|
+
() => props2.checkedValueStrategy,
|
|
323
|
+
() => {
|
|
324
|
+
if (!props2.multiple) {
|
|
325
|
+
return;
|
|
326
|
+
}
|
|
327
|
+
const keys = treeRef.value && treeRef.value.getCheckedKeys() || [];
|
|
328
|
+
updateModelValue(
|
|
329
|
+
util$1.getModelValue(keys, selectedItems.value, props2.checkedValueStrategy)
|
|
330
|
+
);
|
|
331
|
+
}
|
|
332
|
+
);
|
|
290
333
|
vue.watch(
|
|
291
334
|
() => props2.disabled,
|
|
292
335
|
(disabled) => {
|
|
@@ -18,10 +18,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
required: boolean;
|
|
19
19
|
};
|
|
20
20
|
showCheckedStrategy: import("vue").PropType<import("./types").ShowCheckedStrategy>;
|
|
21
|
+
checkedValueStrategy: BooleanConstructor;
|
|
21
22
|
maxTagCount: NumberConstructor;
|
|
22
|
-
maxTagTextLength: NumberConstructor;
|
|
23
|
+
maxTagTextLength: NumberConstructor;
|
|
23
24
|
tagType: {
|
|
24
|
-
type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "" | "
|
|
25
|
+
type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>;
|
|
25
26
|
default: string;
|
|
26
27
|
};
|
|
27
28
|
automaticDropdown: BooleanConstructor;
|
|
@@ -35,6 +36,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
36
|
default: boolean;
|
|
36
37
|
};
|
|
37
38
|
placement: {
|
|
39
|
+
/** 下拉框类名 */
|
|
38
40
|
type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>;
|
|
39
41
|
default: string;
|
|
40
42
|
};
|
|
@@ -42,7 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
44
|
type: StringConstructor;
|
|
43
45
|
default: string;
|
|
44
46
|
};
|
|
45
|
-
popperOptions: import("vue").PropType<Partial<import("element-plus").Options> | undefined>;
|
|
47
|
+
popperOptions: import("vue").PropType<Partial<import("element-plus").Options> | undefined>; /** 树配置选项 */
|
|
46
48
|
popperClass: StringConstructor;
|
|
47
49
|
popperWidth: (StringConstructor | NumberConstructor)[];
|
|
48
50
|
selectStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
@@ -74,7 +76,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
76
|
onTreeCollapse: () => void;
|
|
75
77
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
76
78
|
'update:modelValue': (_value: SelectValue) => boolean;
|
|
77
|
-
change: (_value: SelectValue) => boolean;
|
|
79
|
+
change: (_value: SelectValue) => boolean;
|
|
78
80
|
visibleChange: (_visible: boolean) => boolean;
|
|
79
81
|
removeTag: (_value: SingleValue) => boolean;
|
|
80
82
|
clear: () => boolean;
|
|
@@ -96,10 +98,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
96
98
|
required: boolean;
|
|
97
99
|
};
|
|
98
100
|
showCheckedStrategy: import("vue").PropType<import("./types").ShowCheckedStrategy>;
|
|
101
|
+
checkedValueStrategy: BooleanConstructor;
|
|
99
102
|
maxTagCount: NumberConstructor;
|
|
100
|
-
maxTagTextLength: NumberConstructor;
|
|
103
|
+
maxTagTextLength: NumberConstructor;
|
|
101
104
|
tagType: {
|
|
102
|
-
type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "" | "
|
|
105
|
+
type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>;
|
|
103
106
|
default: string;
|
|
104
107
|
};
|
|
105
108
|
automaticDropdown: BooleanConstructor;
|
|
@@ -113,6 +116,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
113
116
|
default: boolean;
|
|
114
117
|
};
|
|
115
118
|
placement: {
|
|
119
|
+
/** 下拉框类名 */
|
|
116
120
|
type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>;
|
|
117
121
|
default: string;
|
|
118
122
|
};
|
|
@@ -120,7 +124,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
120
124
|
type: StringConstructor;
|
|
121
125
|
default: string;
|
|
122
126
|
};
|
|
123
|
-
popperOptions: import("vue").PropType<Partial<import("element-plus").Options> | undefined>;
|
|
127
|
+
popperOptions: import("vue").PropType<Partial<import("element-plus").Options> | undefined>; /** 树配置选项 */
|
|
124
128
|
popperClass: StringConstructor;
|
|
125
129
|
popperWidth: (StringConstructor | NumberConstructor)[];
|
|
126
130
|
selectStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
@@ -142,8 +146,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
142
146
|
persistent: boolean;
|
|
143
147
|
transition: string;
|
|
144
148
|
multiple: boolean;
|
|
145
|
-
tagType: import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "" | "
|
|
149
|
+
tagType: import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined;
|
|
146
150
|
automaticDropdown: boolean;
|
|
147
151
|
filterable: boolean;
|
|
152
|
+
checkedValueStrategy: boolean;
|
|
148
153
|
}, {}>;
|
|
149
154
|
export default _default;
|
|
@@ -30,13 +30,15 @@ export declare const treeSelectProps: {
|
|
|
30
30
|
};
|
|
31
31
|
/** 多选标签显示策略 */
|
|
32
32
|
showCheckedStrategy: PropType<ShowCheckedStrategy>;
|
|
33
|
+
/** 多选值绑定策略 */
|
|
34
|
+
checkedValueStrategy: BooleanConstructor;
|
|
33
35
|
/** 多选标签最大显示数量 */
|
|
34
36
|
maxTagCount: NumberConstructor;
|
|
35
37
|
/** 多选标签最大显示文本长度 */
|
|
36
38
|
maxTagTextLength: NumberConstructor;
|
|
37
39
|
/** 多选标签类型 */
|
|
38
40
|
tagType: {
|
|
39
|
-
type: PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "" | "
|
|
41
|
+
type: PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>;
|
|
40
42
|
default: string;
|
|
41
43
|
};
|
|
42
44
|
/** 是否在输入框获得焦点后自动弹出选项菜单 */
|
|
@@ -121,8 +121,21 @@ function isCheckAll(data, checkedKeys, valueKey, childrenKey, disabledKey) {
|
|
|
121
121
|
return false;
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
+
function getModelValue(keys, selected, checkedValueStrategy) {
|
|
125
|
+
if (!checkedValueStrategy) {
|
|
126
|
+
return keys;
|
|
127
|
+
}
|
|
128
|
+
const ids = [];
|
|
129
|
+
selected.forEach((d) => {
|
|
130
|
+
if (!d.hide) {
|
|
131
|
+
ids.push(d.value);
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
return ids;
|
|
135
|
+
}
|
|
124
136
|
exports.checkSelectedItems = checkSelectedItems;
|
|
125
137
|
exports.getKeysAndList = getKeysAndList;
|
|
138
|
+
exports.getModelValue = getModelValue;
|
|
126
139
|
exports.getNormalSelectedItems = getNormalSelectedItems;
|
|
127
140
|
exports.getTreeSelectedItems = getTreeSelectedItems;
|
|
128
141
|
exports.isCheckAll = isCheckAll;
|
|
@@ -46,3 +46,10 @@ export declare function checkSelectedItems(selected: SelectedItem[], checkedKeys
|
|
|
46
46
|
* @param disabledKey 禁用键名
|
|
47
47
|
*/
|
|
48
48
|
export declare function isCheckAll(data: TreeData | null | undefined, checkedKeys: MultipleValue | null | undefined, valueKey: string, childrenKey: string, disabledKey: string): any;
|
|
49
|
+
/**
|
|
50
|
+
* 获取选中值
|
|
51
|
+
* @param keys 全部选中节点值
|
|
52
|
+
* @param selected 选中的标签数据
|
|
53
|
+
* @param checkedValueStrategy 多选值绑定策略
|
|
54
|
+
*/
|
|
55
|
+
export declare function getModelValue(keys: MultipleValue, selected: SelectedItem[], checkedValueStrategy?: boolean): MultipleValue;
|