ele-admin-plus 1.1.3 → 1.1.4-beta.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/ele-alert/index.d.ts +10 -10
- package/es/ele-alert/props.d.ts +6 -6
- package/es/ele-app/style/message.scss +1 -0
- package/es/ele-app/style/overwrite.scss +84 -3
- package/es/ele-app/types/index.d.ts +7 -6
- package/es/ele-avatar-group/index.d.ts +7 -8
- package/es/ele-avatar-group/props.d.ts +3 -4
- package/es/ele-basic-select/style/index.scss +4 -6
- package/es/ele-bottom-bar/index.d.ts +4 -4
- package/es/ele-bottom-bar/props.d.ts +2 -3
- package/es/ele-card/index.d.ts +6 -6
- package/es/ele-card/props.d.ts +3 -4
- package/es/ele-check-card/components/card-item.d.ts +2 -3
- package/es/ele-check-card/index.d.ts +4 -4
- package/es/ele-check-card/props.d.ts +3 -3
- package/es/ele-config-provider/receiver.d.ts +1 -1
- package/es/ele-config-provider/receiver.js +29 -29
- package/es/ele-copyable/index.d.ts +8 -8
- package/es/ele-copyable/index.js +5 -4
- package/es/ele-copyable/props.d.ts +5 -5
- package/es/ele-copyable/style/index.scss +4 -0
- package/es/ele-count-up/index.d.ts +2 -2
- package/es/ele-count-up/index.js +2 -1
- package/es/ele-count-up/props.d.ts +1 -1
- package/es/ele-cropper/index.js +2 -2
- package/es/ele-dashboard/index.d.ts +1 -2
- package/es/ele-drawer/index.d.ts +16 -10
- package/es/ele-drawer/props.d.ts +7 -6
- package/es/ele-dropdown/index.d.ts +2 -2
- package/es/ele-dropdown/props.d.ts +1 -2
- package/es/ele-edit-tag/index.d.ts +4 -4
- package/es/ele-edit-tag/props.d.ts +2 -3
- package/es/ele-ellipsis/index.d.ts +4 -5
- package/es/ele-ellipsis/props.d.ts +1 -1
- package/es/ele-ellipsis/style/index.scss +4 -0
- package/es/ele-file-list/index.d.ts +2 -7
- package/es/ele-file-list/index.js +2 -2
- package/es/ele-file-list/types/index.d.ts +0 -4
- package/es/ele-icon-select/components/icon-grid.d.ts +5 -5
- package/es/ele-icon-select/components/icon-popper.d.ts +15 -15
- package/es/ele-icon-select/index.d.ts +15 -16
- package/es/ele-icon-select/props.d.ts +8 -8
- package/es/ele-loading/index.d.ts +26 -1
- package/es/ele-loading/index.js +53 -11
- package/es/ele-loading/props.d.ts +11 -1
- package/es/ele-loading/props.js +16 -1
- package/es/ele-loading/style/css-var.scss +7 -0
- package/es/ele-loading/style/index.js +1 -0
- package/es/ele-loading/style/index.scss +90 -0
- package/es/ele-loading/types/index.d.ts +17 -0
- package/es/ele-map-picker/components/map-view.d.ts +2 -2
- package/es/ele-map-picker/index.d.ts +2 -2
- package/es/ele-map-picker/props.d.ts +3 -3
- package/es/ele-menus/index.d.ts +2 -0
- package/es/ele-menus/index.js +11 -5
- package/es/ele-menus/props.d.ts +10 -0
- package/es/ele-menus/props.js +7 -1
- package/es/ele-menus/style/index.scss +18 -18
- package/es/ele-menus/types/index.d.ts +4 -0
- package/es/ele-menus/util.d.ts +4 -3
- package/es/ele-menus/util.js +23 -12
- package/es/ele-modal/index.d.ts +19 -13
- package/es/ele-modal/props.d.ts +8 -7
- package/es/ele-modal/types/index.d.ts +9 -0
- package/es/ele-modal/util.js +45 -32
- package/es/ele-pagination/index.d.ts +1 -1
- package/es/ele-popconfirm/index.d.ts +10 -10
- package/es/ele-popconfirm/index.js +8 -2
- package/es/ele-popconfirm/props.d.ts +6 -6
- package/es/ele-popover/index.d.ts +6 -6
- package/es/ele-popover/props.d.ts +3 -4
- package/es/ele-printer/index.d.ts +7 -6
- package/es/ele-printer/index.js +11 -4
- package/es/ele-printer/props.d.ts +3 -4
- package/es/ele-pro-layout/components/pro-header.d.ts +7 -2
- package/es/ele-pro-layout/components/pro-header.js +15 -5
- package/es/ele-pro-layout/components/pro-iframe.js +10 -7
- package/es/ele-pro-layout/components/pro-sidebar.d.ts +7 -2
- package/es/ele-pro-layout/components/pro-sidebar.js +14 -5
- package/es/ele-pro-layout/components/pro-sidebox.d.ts +11 -4
- package/es/ele-pro-layout/components/pro-sidebox.js +16 -5
- package/es/ele-pro-layout/components/tab-dropdown.js +1 -4
- package/es/ele-pro-layout/index.d.ts +17 -3
- package/es/ele-pro-layout/index.js +208 -105
- package/es/ele-pro-layout/props.d.ts +6 -1
- package/es/ele-pro-layout/props.js +10 -0
- package/es/ele-pro-layout/style/collapse.scss +9 -10
- package/es/ele-pro-layout/style/index.js +0 -1
- package/es/ele-pro-layout/style/layout-mobile.scss +1 -0
- package/es/ele-pro-layout/types/index.d.ts +9 -0
- package/es/ele-pro-layout/util.d.ts +4 -2
- package/es/ele-pro-layout/util.js +20 -17
- package/es/ele-pro-table/components/table-view.d.ts +9 -3
- package/es/ele-pro-table/components/table-view.js +27 -24
- package/es/ele-pro-table/components/tool-column.d.ts +2 -1
- package/es/ele-pro-table/components/tool-column.js +26 -18
- package/es/ele-pro-table/index.d.ts +46 -25
- package/es/ele-pro-table/index.js +182 -196
- package/es/ele-pro-table/props.d.ts +27 -15
- package/es/ele-pro-table/props.js +15 -3
- package/es/ele-pro-table/style/index.js +1 -1
- package/es/ele-pro-table/style/index.scss +64 -8
- package/es/ele-pro-table/types/index.d.ts +39 -5
- package/es/ele-pro-table/util.d.ts +84 -49
- package/es/ele-pro-table/util.js +193 -78
- package/es/ele-qr-code/index.d.ts +3 -3
- package/es/ele-qr-code/props.d.ts +1 -2
- package/es/ele-qr-code-svg/index.d.ts +3 -3
- package/es/ele-split-panel/index.d.ts +6 -6
- package/es/ele-split-panel/props.d.ts +3 -4
- package/es/ele-table/style/index.scss +1 -0
- package/es/ele-tabs/index.js +4 -3
- package/es/ele-tabs/types/index.d.ts +3 -0
- package/es/ele-text/index.d.ts +3 -3
- package/es/ele-text/props.d.ts +2 -2
- package/es/ele-toolbar/index.d.ts +6 -6
- package/es/ele-toolbar/props.d.ts +3 -4
- package/es/ele-tooltip/index.d.ts +3 -3
- package/es/ele-tooltip/props.d.ts +1 -2
- package/es/ele-tour/index.d.ts +2 -3
- package/es/ele-tour/style/index.scss +1 -1
- package/es/ele-tour/util.js +3 -3
- package/es/ele-upload-list/index.d.ts +8 -7
- package/es/ele-upload-list/index.js +18 -11
- package/es/ele-upload-list/props.d.ts +4 -4
- package/es/ele-upload-list/props.js +1 -1
- package/es/ele-watermark/index.d.ts +16 -8
- package/es/ele-watermark/index.js +18 -12
- package/es/ele-watermark/props.d.ts +3 -1
- package/es/ele-watermark/props.js +5 -1
- package/es/ele-watermark/util.js +1 -1
- package/es/ele-xg-player/index.js +1 -0
- package/es/style/index.scss +1 -0
- package/es/style/nprogress.scss +2 -2
- package/es/style/themes/default.scss +36 -12
- package/es/style/themes/rounded.scss +4 -2
- package/es/style/themes/theme-util.scss +2 -0
- package/es/utils/core.d.ts +1 -1
- package/es/utils/core.js +17 -15
- package/es/utils/resolvers.js +2 -2
- package/lib/ele-alert/index.d.ts +10 -10
- package/lib/ele-alert/props.d.ts +6 -6
- package/lib/ele-app/style/message.scss +1 -0
- package/lib/ele-app/style/overwrite.scss +84 -3
- package/lib/ele-app/types/index.d.ts +7 -6
- package/lib/ele-avatar-group/index.d.ts +7 -8
- package/lib/ele-avatar-group/props.d.ts +3 -4
- package/lib/ele-basic-select/style/index.scss +4 -6
- package/lib/ele-bottom-bar/index.d.ts +4 -4
- package/lib/ele-bottom-bar/props.d.ts +2 -3
- package/lib/ele-card/index.d.ts +6 -6
- package/lib/ele-card/props.d.ts +3 -4
- package/lib/ele-check-card/components/card-item.d.ts +2 -3
- package/lib/ele-check-card/index.d.ts +4 -4
- package/lib/ele-check-card/props.d.ts +3 -3
- package/lib/ele-config-provider/receiver.d.ts +1 -1
- package/lib/ele-config-provider/receiver.js +2 -2
- package/lib/ele-copyable/index.d.ts +8 -8
- package/lib/ele-copyable/index.js +4 -3
- package/lib/ele-copyable/props.d.ts +5 -5
- package/lib/ele-copyable/style/index.scss +4 -0
- package/lib/ele-count-up/index.d.ts +2 -2
- package/lib/ele-count-up/index.js +2 -1
- package/lib/ele-count-up/props.d.ts +1 -1
- package/lib/ele-cropper/index.js +2 -2
- package/lib/ele-dashboard/index.d.ts +1 -2
- package/lib/ele-drawer/index.d.ts +16 -10
- package/lib/ele-drawer/props.d.ts +7 -6
- package/lib/ele-dropdown/index.d.ts +2 -2
- package/lib/ele-dropdown/props.d.ts +1 -2
- package/lib/ele-edit-tag/index.d.ts +4 -4
- package/lib/ele-edit-tag/props.d.ts +2 -3
- package/lib/ele-ellipsis/index.d.ts +4 -5
- package/lib/ele-ellipsis/props.d.ts +1 -1
- package/lib/ele-ellipsis/style/index.scss +4 -0
- package/lib/ele-file-list/index.d.ts +2 -7
- package/lib/ele-file-list/index.js +2 -2
- package/lib/ele-file-list/types/index.d.ts +0 -4
- package/lib/ele-icon-select/components/icon-grid.d.ts +5 -5
- package/lib/ele-icon-select/components/icon-popper.d.ts +15 -15
- package/lib/ele-icon-select/index.d.ts +15 -16
- package/lib/ele-icon-select/props.d.ts +8 -8
- package/lib/ele-loading/index.d.ts +26 -1
- package/lib/ele-loading/index.js +52 -10
- package/lib/ele-loading/props.d.ts +11 -1
- package/lib/ele-loading/props.js +16 -1
- package/lib/ele-loading/style/css-var.scss +7 -0
- package/lib/ele-loading/style/index.js +1 -0
- package/lib/ele-loading/style/index.scss +90 -0
- package/lib/ele-loading/types/index.d.ts +17 -0
- package/lib/ele-map-picker/components/map-view.d.ts +2 -2
- package/lib/ele-map-picker/index.d.ts +2 -2
- package/lib/ele-map-picker/props.d.ts +3 -3
- package/lib/ele-menus/index.d.ts +2 -0
- package/lib/ele-menus/index.js +9 -3
- package/lib/ele-menus/props.d.ts +10 -0
- package/lib/ele-menus/props.js +6 -0
- package/lib/ele-menus/style/index.scss +18 -18
- package/lib/ele-menus/types/index.d.ts +4 -0
- package/lib/ele-menus/util.d.ts +4 -3
- package/lib/ele-menus/util.js +23 -12
- package/lib/ele-modal/index.d.ts +19 -13
- package/lib/ele-modal/props.d.ts +8 -7
- package/lib/ele-modal/types/index.d.ts +9 -0
- package/lib/ele-modal/util.js +45 -32
- package/lib/ele-pagination/index.d.ts +1 -1
- package/lib/ele-popconfirm/index.d.ts +10 -10
- package/lib/ele-popconfirm/index.js +8 -2
- package/lib/ele-popconfirm/props.d.ts +6 -6
- package/lib/ele-popover/index.d.ts +6 -6
- package/lib/ele-popover/props.d.ts +3 -4
- package/lib/ele-printer/index.d.ts +7 -6
- package/lib/ele-printer/index.js +10 -3
- package/lib/ele-printer/props.d.ts +3 -4
- package/lib/ele-pro-layout/components/pro-header.d.ts +7 -2
- package/lib/ele-pro-layout/components/pro-header.js +15 -5
- package/lib/ele-pro-layout/components/pro-iframe.js +10 -7
- package/lib/ele-pro-layout/components/pro-sidebar.d.ts +7 -2
- package/lib/ele-pro-layout/components/pro-sidebar.js +14 -5
- package/lib/ele-pro-layout/components/pro-sidebox.d.ts +11 -4
- package/lib/ele-pro-layout/components/pro-sidebox.js +16 -5
- package/lib/ele-pro-layout/components/tab-dropdown.js +1 -4
- package/lib/ele-pro-layout/index.d.ts +17 -3
- package/lib/ele-pro-layout/index.js +205 -102
- package/lib/ele-pro-layout/props.d.ts +6 -1
- package/lib/ele-pro-layout/props.js +10 -0
- package/lib/ele-pro-layout/style/collapse.scss +9 -10
- package/lib/ele-pro-layout/style/index.js +0 -1
- package/lib/ele-pro-layout/style/layout-mobile.scss +1 -0
- package/lib/ele-pro-layout/types/index.d.ts +9 -0
- package/lib/ele-pro-layout/util.d.ts +4 -2
- package/lib/ele-pro-layout/util.js +19 -16
- package/lib/ele-pro-table/components/table-view.d.ts +9 -3
- package/lib/ele-pro-table/components/table-view.js +25 -22
- package/lib/ele-pro-table/components/tool-column.d.ts +2 -1
- package/lib/ele-pro-table/components/tool-column.js +25 -17
- package/lib/ele-pro-table/index.d.ts +46 -25
- package/lib/ele-pro-table/index.js +180 -194
- package/lib/ele-pro-table/props.d.ts +27 -15
- package/lib/ele-pro-table/props.js +15 -3
- package/lib/ele-pro-table/style/index.js +1 -1
- package/lib/ele-pro-table/style/index.scss +64 -8
- package/lib/ele-pro-table/types/index.d.ts +39 -5
- package/lib/ele-pro-table/util.d.ts +84 -49
- package/lib/ele-pro-table/util.js +192 -77
- package/lib/ele-qr-code/index.d.ts +3 -3
- package/lib/ele-qr-code/props.d.ts +1 -2
- package/lib/ele-qr-code-svg/index.d.ts +3 -3
- package/lib/ele-split-panel/index.d.ts +6 -6
- package/lib/ele-split-panel/props.d.ts +3 -4
- package/lib/ele-table/style/index.scss +1 -0
- package/lib/ele-tabs/index.js +4 -3
- package/lib/ele-tabs/types/index.d.ts +3 -0
- package/lib/ele-text/index.d.ts +3 -3
- package/lib/ele-text/props.d.ts +2 -2
- package/lib/ele-toolbar/index.d.ts +6 -6
- package/lib/ele-toolbar/props.d.ts +3 -4
- package/lib/ele-tooltip/index.d.ts +3 -3
- package/lib/ele-tooltip/props.d.ts +1 -2
- package/lib/ele-tour/index.d.ts +2 -3
- package/lib/ele-tour/style/index.scss +1 -1
- package/lib/ele-tour/util.js +3 -3
- package/lib/ele-upload-list/index.d.ts +8 -7
- package/lib/ele-upload-list/index.js +17 -10
- package/lib/ele-upload-list/props.d.ts +4 -4
- package/lib/ele-upload-list/props.js +1 -1
- package/lib/ele-watermark/index.d.ts +16 -8
- package/lib/ele-watermark/index.js +17 -11
- package/lib/ele-watermark/props.d.ts +3 -1
- package/lib/ele-watermark/props.js +5 -1
- package/lib/ele-watermark/util.js +1 -1
- package/lib/ele-xg-player/index.js +1 -0
- package/lib/style/index.scss +1 -0
- package/lib/style/nprogress.scss +2 -2
- package/lib/style/themes/default.scss +36 -12
- package/lib/style/themes/rounded.scss +4 -2
- package/lib/style/themes/theme-util.scss +2 -0
- package/lib/utils/core.d.ts +1 -1
- package/lib/utils/core.js +17 -15
- package/lib/utils/resolvers.js +2 -2
- package/package.json +25 -23
- package/typings/global.d.ts +52 -52
- package/es/ele-alert/types/index.d.ts +0 -0
- package/lib/ele-alert/types/index.d.ts +0 -0
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const vue = require("vue");
|
|
3
4
|
const core = require("../utils/core");
|
|
5
|
+
function mergeProps(props, globalProps) {
|
|
6
|
+
if (props == null) {
|
|
7
|
+
return globalProps ?? true;
|
|
8
|
+
}
|
|
9
|
+
if (!props) {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
if (!globalProps || typeof globalProps !== "object") {
|
|
13
|
+
return props;
|
|
14
|
+
}
|
|
15
|
+
if (typeof props !== "object") {
|
|
16
|
+
return globalProps;
|
|
17
|
+
}
|
|
18
|
+
return { ...globalProps, ...props };
|
|
19
|
+
}
|
|
20
|
+
function getValue(data, field) {
|
|
21
|
+
if (typeof field === "function") {
|
|
22
|
+
return field(data);
|
|
23
|
+
}
|
|
24
|
+
if (!field) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
let value = data;
|
|
28
|
+
field.split(".").forEach((f) => {
|
|
29
|
+
value = value ? value[f] : null;
|
|
30
|
+
});
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
4
33
|
function getTablePage(pagination, globalPagination) {
|
|
5
34
|
const props = getPaginationProps(void 0, pagination, globalPagination);
|
|
6
35
|
return (props == null ? void 0 : props.currentPage) ?? 1;
|
|
@@ -26,21 +55,6 @@ function getPaginationProps(size, pagination, globalPagination, pageProps) {
|
|
|
26
55
|
}
|
|
27
56
|
return Object.assign(defaultProps, core.omit(props, ["autoAmend"]), pageProps);
|
|
28
57
|
}
|
|
29
|
-
function mergeProps(props, globalProps) {
|
|
30
|
-
if (props == null) {
|
|
31
|
-
return globalProps ?? true;
|
|
32
|
-
}
|
|
33
|
-
if (!props) {
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
if (!globalProps || typeof globalProps !== "object") {
|
|
37
|
-
return props;
|
|
38
|
-
}
|
|
39
|
-
if (typeof props !== "object") {
|
|
40
|
-
return globalProps;
|
|
41
|
-
}
|
|
42
|
-
return { ...globalProps, ...props };
|
|
43
|
-
}
|
|
44
58
|
function isAutoAmend(pagination, globalPagination) {
|
|
45
59
|
const props = mergeProps(pagination, globalPagination);
|
|
46
60
|
if (!props) {
|
|
@@ -51,6 +65,18 @@ function isAutoAmend(pagination, globalPagination) {
|
|
|
51
65
|
}
|
|
52
66
|
return props === true;
|
|
53
67
|
}
|
|
68
|
+
function getTableSize(cacheKey, size, globalSize) {
|
|
69
|
+
return getCacheSize(cacheKey) ?? size ?? globalSize ?? "default";
|
|
70
|
+
}
|
|
71
|
+
function getDefaultFilter(columns) {
|
|
72
|
+
const filter = {};
|
|
73
|
+
core.eachTree(columns, (d) => {
|
|
74
|
+
if (typeof d.columnKey === "string" && d.columnKey.length && d.filteredValue) {
|
|
75
|
+
filter[d.columnKey] = d.filteredValue;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
return filter;
|
|
79
|
+
}
|
|
54
80
|
function getRequestName(globalRequest, request) {
|
|
55
81
|
const defaultRequest = {
|
|
56
82
|
sortName: "sort",
|
|
@@ -67,22 +93,6 @@ function getResponseName(globalResponse, response) {
|
|
|
67
93
|
};
|
|
68
94
|
return Object.assign(defaultResponse, globalResponse, response);
|
|
69
95
|
}
|
|
70
|
-
function getTableSize(cacheKey, size, globalSize) {
|
|
71
|
-
return getCacheSize(cacheKey) ?? size ?? globalSize ?? "default";
|
|
72
|
-
}
|
|
73
|
-
function getValue(data, field) {
|
|
74
|
-
if (typeof field === "function") {
|
|
75
|
-
return field(data);
|
|
76
|
-
}
|
|
77
|
-
if (!field) {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
let value = data;
|
|
81
|
-
field.split(".").forEach((f) => {
|
|
82
|
-
value = value ? value[f] : null;
|
|
83
|
-
});
|
|
84
|
-
return value;
|
|
85
|
-
}
|
|
86
96
|
function getOrderItems(sorter) {
|
|
87
97
|
var _a, _b;
|
|
88
98
|
const orders = [];
|
|
@@ -106,6 +116,71 @@ function getOrderItems(sorter) {
|
|
|
106
116
|
}
|
|
107
117
|
return orders;
|
|
108
118
|
}
|
|
119
|
+
function getRequestOrders(sorter, request, globalRequest) {
|
|
120
|
+
const orders = {};
|
|
121
|
+
const { sortName, orderName, ascValue, descValue } = getRequestName(
|
|
122
|
+
globalRequest,
|
|
123
|
+
request
|
|
124
|
+
);
|
|
125
|
+
if (!sortName || !orderName) {
|
|
126
|
+
return orders;
|
|
127
|
+
}
|
|
128
|
+
const items = getOrderItems(sorter);
|
|
129
|
+
if (items.length === 1) {
|
|
130
|
+
orders[sortName] = items[0].field;
|
|
131
|
+
orders[orderName] = items[0].descend ? descValue : ascValue;
|
|
132
|
+
} else if (items.length) {
|
|
133
|
+
orders[sortName] = items.map((d) => [d.field, d.descend ? descValue : ascValue].join(" ")).join(",");
|
|
134
|
+
}
|
|
135
|
+
return orders;
|
|
136
|
+
}
|
|
137
|
+
function getRequestFilters(filter) {
|
|
138
|
+
const filters = {};
|
|
139
|
+
if (filter) {
|
|
140
|
+
Object.keys(filter).forEach((key) => {
|
|
141
|
+
const value = filter[key];
|
|
142
|
+
if (value == null) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
if (typeof value === "string") {
|
|
146
|
+
if (value) {
|
|
147
|
+
filters[key] = value;
|
|
148
|
+
}
|
|
149
|
+
} else if (Array.isArray(value)) {
|
|
150
|
+
if (value.length) {
|
|
151
|
+
filters[key] = value.join(",");
|
|
152
|
+
}
|
|
153
|
+
} else {
|
|
154
|
+
filters[key] = value;
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
return filters;
|
|
159
|
+
}
|
|
160
|
+
function getResponseResult(data, response, globalResponse, lazy, treeOpt) {
|
|
161
|
+
if (!data || Array.isArray(data)) {
|
|
162
|
+
return { data: getResponseData(data, lazy, treeOpt) };
|
|
163
|
+
}
|
|
164
|
+
const { dataName, countName } = getResponseName(globalResponse, response);
|
|
165
|
+
if (!dataName) {
|
|
166
|
+
return {};
|
|
167
|
+
}
|
|
168
|
+
return {
|
|
169
|
+
data: getResponseData(getValue(data, dataName), lazy, treeOpt),
|
|
170
|
+
total: (countName ? getValue(data, countName) : void 0) ?? 0
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
function getResponseData(data, lazy, treeProps) {
|
|
174
|
+
if (!data || !lazy) {
|
|
175
|
+
return data;
|
|
176
|
+
}
|
|
177
|
+
const name = (treeProps == null ? void 0 : treeProps.hasChildren) ?? "hasChildren";
|
|
178
|
+
return data.map((d) => {
|
|
179
|
+
const temp = { ...d };
|
|
180
|
+
temp[name] = temp[name] ?? true;
|
|
181
|
+
return temp;
|
|
182
|
+
});
|
|
183
|
+
}
|
|
109
184
|
function reloadData(datasource, sorter, page, limit) {
|
|
110
185
|
const data = sortData(datasource, sorter);
|
|
111
186
|
const total = data.length;
|
|
@@ -140,30 +215,6 @@ function sortData(datasource, sorter) {
|
|
|
140
215
|
});
|
|
141
216
|
return data;
|
|
142
217
|
}
|
|
143
|
-
function getRequestFilters(filter) {
|
|
144
|
-
const filters = {};
|
|
145
|
-
Object.keys(filter).forEach((key) => {
|
|
146
|
-
const value = filter[key];
|
|
147
|
-
if (value == null) {
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
if (typeof value === "string") {
|
|
151
|
-
if (value) {
|
|
152
|
-
filters[key] = value;
|
|
153
|
-
}
|
|
154
|
-
} else if (Array.isArray(value)) {
|
|
155
|
-
if (value.length) {
|
|
156
|
-
filters[key] = value.join(",");
|
|
157
|
-
}
|
|
158
|
-
} else {
|
|
159
|
-
filters[key] = value;
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
return filters;
|
|
163
|
-
}
|
|
164
|
-
function selectionIsChange(rows, selections) {
|
|
165
|
-
return rows !== selections && (selections == null || rows.length !== selections.length || rows.some((t) => !(selections && selections.includes(t))));
|
|
166
|
-
}
|
|
167
218
|
function getColId(column) {
|
|
168
219
|
return column ? column.columnKey || column.prop : void 0;
|
|
169
220
|
}
|
|
@@ -201,12 +252,12 @@ function getCheckedColumns(columns, cols, checkedIds, sortable) {
|
|
|
201
252
|
if (colId == null) {
|
|
202
253
|
return;
|
|
203
254
|
}
|
|
204
|
-
const temp = cols.find((c) => c.
|
|
255
|
+
const temp = cols.find((c) => c.uid === colId);
|
|
205
256
|
if (temp && !checkedIds.includes(colId)) {
|
|
206
257
|
return;
|
|
207
258
|
}
|
|
208
259
|
const fixed = (temp == null ? void 0 : temp.fixed) ?? d.fixed;
|
|
209
|
-
const
|
|
260
|
+
const uid = core.uuid(8);
|
|
210
261
|
if (d.children) {
|
|
211
262
|
const children = getCheckedColumns(
|
|
212
263
|
d.children,
|
|
@@ -215,10 +266,10 @@ function getCheckedColumns(columns, cols, checkedIds, sortable) {
|
|
|
215
266
|
sortable
|
|
216
267
|
);
|
|
217
268
|
if (children.length) {
|
|
218
|
-
data.push({ ...d, fixed,
|
|
269
|
+
data.push({ ...d, fixed, uid, children });
|
|
219
270
|
}
|
|
220
271
|
} else {
|
|
221
|
-
data.push({ ...d, fixed,
|
|
272
|
+
data.push({ ...d, fixed, uid });
|
|
222
273
|
}
|
|
223
274
|
});
|
|
224
275
|
if (!sortable || !data.length) {
|
|
@@ -228,15 +279,15 @@ function getCheckedColumns(columns, cols, checkedIds, sortable) {
|
|
|
228
279
|
var _a, _b;
|
|
229
280
|
const aColId = getColId(a);
|
|
230
281
|
const bColId = getColId(b);
|
|
231
|
-
let ai = cols.findIndex((c) => c.
|
|
232
|
-
let bi = cols.findIndex((c) => c.
|
|
282
|
+
let ai = cols.findIndex((c) => c.uid === aColId);
|
|
283
|
+
let bi = cols.findIndex((c) => c.uid === bColId);
|
|
233
284
|
if (ai === -1 && ((_a = a.children) == null ? void 0 : _a.length)) {
|
|
234
285
|
const colId = getColId(a.children[0]);
|
|
235
|
-
ai = cols.findIndex((c) => c.
|
|
286
|
+
ai = cols.findIndex((c) => c.uid === colId);
|
|
236
287
|
}
|
|
237
288
|
if (bi === -1 && ((_b = b.children) == null ? void 0 : _b.length)) {
|
|
238
289
|
const colId = getColId(b.children[0]);
|
|
239
|
-
bi = cols.findIndex((c) => c.
|
|
290
|
+
bi = cols.findIndex((c) => c.uid === colId);
|
|
240
291
|
}
|
|
241
292
|
if (ai === -1 && a.hideInSetting && a.fixed === "right") {
|
|
242
293
|
ai = cols.length;
|
|
@@ -270,7 +321,7 @@ function getSettingCols(columns, untitledText, cacheKey) {
|
|
|
270
321
|
const colId = getColId(d);
|
|
271
322
|
if (colId && !((_a = d.children) == null ? void 0 : _a.length) && !d.hideInSetting && !(d.type && hideTypes.includes(d.type))) {
|
|
272
323
|
data.push({
|
|
273
|
-
|
|
324
|
+
uid: colId,
|
|
274
325
|
prop: d.prop,
|
|
275
326
|
columnKey: d.columnKey,
|
|
276
327
|
label: d.label || untitledText,
|
|
@@ -279,14 +330,35 @@ function getSettingCols(columns, untitledText, cacheKey) {
|
|
|
279
330
|
});
|
|
280
331
|
}
|
|
281
332
|
});
|
|
282
|
-
|
|
333
|
+
return getColsResult(data);
|
|
334
|
+
}
|
|
335
|
+
function getColsResult(cols) {
|
|
336
|
+
const ids = cols.filter((d) => d.checked).map((d) => d.uid);
|
|
283
337
|
return {
|
|
284
|
-
data,
|
|
285
|
-
checkedIds,
|
|
286
|
-
isChecked:
|
|
287
|
-
isIndeterminate:
|
|
338
|
+
data: sortCols(cols),
|
|
339
|
+
checkedIds: ids,
|
|
340
|
+
isChecked: cols.length > 0 && cols.length === ids.length,
|
|
341
|
+
isIndeterminate: ids.length !== 0 && cols.length !== ids.length
|
|
288
342
|
};
|
|
289
343
|
}
|
|
344
|
+
function sortCols(cols) {
|
|
345
|
+
cols.sort((a, b) => {
|
|
346
|
+
let ai = cols.indexOf(a);
|
|
347
|
+
let bi = cols.indexOf(b);
|
|
348
|
+
if (a.fixed === true || a.fixed === "left") {
|
|
349
|
+
ai -= cols.length;
|
|
350
|
+
} else if (a.fixed === "right") {
|
|
351
|
+
ai += cols.length;
|
|
352
|
+
}
|
|
353
|
+
if (b.fixed === true || b.fixed === "left") {
|
|
354
|
+
bi -= cols.length;
|
|
355
|
+
} else if (b.fixed === "right") {
|
|
356
|
+
bi += cols.length;
|
|
357
|
+
}
|
|
358
|
+
return ai - bi;
|
|
359
|
+
});
|
|
360
|
+
return cols;
|
|
361
|
+
}
|
|
290
362
|
function getCacheCols(cacheKey) {
|
|
291
363
|
if (!cacheKey) {
|
|
292
364
|
return;
|
|
@@ -300,14 +372,14 @@ function getCacheCols(cacheKey) {
|
|
|
300
372
|
if (!Array.isArray(data)) {
|
|
301
373
|
return;
|
|
302
374
|
}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
375
|
+
data.forEach((d) => {
|
|
376
|
+
if (d.uid == null && d.id != null) {
|
|
377
|
+
d.uid = d.id;
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
return getColsResult(data);
|
|
381
|
+
} catch (e) {
|
|
382
|
+
console.error(e);
|
|
311
383
|
}
|
|
312
384
|
}
|
|
313
385
|
function getColsCacheKey(cacheKey) {
|
|
@@ -324,6 +396,9 @@ function getCacheSize(cacheKey) {
|
|
|
324
396
|
}
|
|
325
397
|
}
|
|
326
398
|
}
|
|
399
|
+
function selectionIsChange(rows, selections) {
|
|
400
|
+
return rows !== selections && (selections == null || rows.length !== selections.length || rows.some((t) => !(selections && selections.includes(t))));
|
|
401
|
+
}
|
|
327
402
|
function isDisableRow(row, index, columns) {
|
|
328
403
|
let disabled = false;
|
|
329
404
|
core.eachTree(columns, (col) => {
|
|
@@ -334,6 +409,38 @@ function isDisableRow(row, index, columns) {
|
|
|
334
409
|
});
|
|
335
410
|
return disabled;
|
|
336
411
|
}
|
|
412
|
+
function getTableFilter(tableRef) {
|
|
413
|
+
var _a, _b;
|
|
414
|
+
const states = (_b = (_a = vue.unref(tableRef)) == null ? void 0 : _a.store) == null ? void 0 : _b.states;
|
|
415
|
+
const columns = vue.unref(states == null ? void 0 : states.columns);
|
|
416
|
+
const filters = vue.unref(states == null ? void 0 : states.filters);
|
|
417
|
+
if (!filters || !columns) {
|
|
418
|
+
return;
|
|
419
|
+
}
|
|
420
|
+
const keys = Object.keys(filters);
|
|
421
|
+
const filter = {};
|
|
422
|
+
columns.forEach((col) => {
|
|
423
|
+
if (keys.includes(col.id)) {
|
|
424
|
+
filter[col.columnKey || col.id] = filters[col.id];
|
|
425
|
+
}
|
|
426
|
+
});
|
|
427
|
+
return filter;
|
|
428
|
+
}
|
|
429
|
+
function getTableState(cols, data) {
|
|
430
|
+
const { sorter, filter } = data;
|
|
431
|
+
const filterKeys = filter == null ? [] : Object.keys(filter);
|
|
432
|
+
const hasSorter = sorter != null && sorter.prop != null && sorter.prop != "";
|
|
433
|
+
let hasSortCol = false;
|
|
434
|
+
const result = core.mapTree(cols, (col) => {
|
|
435
|
+
if (hasSorter && col.prop === sorter.prop) {
|
|
436
|
+
hasSortCol = true;
|
|
437
|
+
}
|
|
438
|
+
const t = col.columnKey && filterKeys.includes(col.columnKey);
|
|
439
|
+
const filteredValue = t ? filter[col.columnKey] : [];
|
|
440
|
+
return { ...col, filteredValue };
|
|
441
|
+
});
|
|
442
|
+
return { cols: result, sorter: hasSorter && hasSortCol ? sorter : void 0 };
|
|
443
|
+
}
|
|
337
444
|
function useTableMethods(getIns) {
|
|
338
445
|
return {
|
|
339
446
|
clearSelection: () => {
|
|
@@ -455,24 +562,32 @@ exports.getCacheSize = getCacheSize;
|
|
|
455
562
|
exports.getCheckedColumns = getCheckedColumns;
|
|
456
563
|
exports.getColId = getColId;
|
|
457
564
|
exports.getColsCacheKey = getColsCacheKey;
|
|
565
|
+
exports.getColsResult = getColsResult;
|
|
566
|
+
exports.getDefaultFilter = getDefaultFilter;
|
|
458
567
|
exports.getInitCacheColumns = getInitCacheColumns;
|
|
459
568
|
exports.getInitColumns = getInitColumns;
|
|
460
569
|
exports.getOrderItems = getOrderItems;
|
|
461
570
|
exports.getPaginationProps = getPaginationProps;
|
|
462
571
|
exports.getRequestFilters = getRequestFilters;
|
|
463
572
|
exports.getRequestName = getRequestName;
|
|
573
|
+
exports.getRequestOrders = getRequestOrders;
|
|
574
|
+
exports.getResponseData = getResponseData;
|
|
464
575
|
exports.getResponseName = getResponseName;
|
|
576
|
+
exports.getResponseResult = getResponseResult;
|
|
465
577
|
exports.getSettingCols = getSettingCols;
|
|
466
578
|
exports.getSizeCacheKey = getSizeCacheKey;
|
|
579
|
+
exports.getTableFilter = getTableFilter;
|
|
467
580
|
exports.getTableLimit = getTableLimit;
|
|
468
581
|
exports.getTablePage = getTablePage;
|
|
469
582
|
exports.getTableSize = getTableSize;
|
|
583
|
+
exports.getTableState = getTableState;
|
|
470
584
|
exports.getValue = getValue;
|
|
471
585
|
exports.isAutoAmend = isAutoAmend;
|
|
472
586
|
exports.isDisableRow = isDisableRow;
|
|
473
587
|
exports.mergeProps = mergeProps;
|
|
474
588
|
exports.reloadData = reloadData;
|
|
475
589
|
exports.selectionIsChange = selectionIsChange;
|
|
590
|
+
exports.sortCols = sortCols;
|
|
476
591
|
exports.sortData = sortData;
|
|
477
592
|
exports.useTableEvents = useTableEvents;
|
|
478
593
|
exports.useTableMethods = useTableMethods;
|
|
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
default: number;
|
|
23
23
|
};
|
|
24
24
|
imageSettings: import("vue").PropType<import("./types").ImageSettings>;
|
|
25
|
-
customStyle: import("vue").PropType<import("
|
|
25
|
+
customStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
26
26
|
}, {
|
|
27
27
|
canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
|
|
28
28
|
imageRef: import("vue").Ref<HTMLImageElement | null>;
|
|
@@ -54,14 +54,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
54
|
default: number;
|
|
55
55
|
};
|
|
56
56
|
imageSettings: import("vue").PropType<import("./types").ImageSettings>;
|
|
57
|
-
customStyle: import("vue").PropType<import("
|
|
57
|
+
customStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
58
58
|
}>> & {
|
|
59
59
|
onDone?: (() => any) | undefined;
|
|
60
60
|
}, {
|
|
61
61
|
size: number;
|
|
62
|
+
margin: number;
|
|
62
63
|
level: import("./types").Level;
|
|
63
64
|
bgColor: string;
|
|
64
65
|
fgColor: string;
|
|
65
|
-
margin: number;
|
|
66
66
|
}, {}>;
|
|
67
67
|
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
-
import type { StyleValue } from '../ele-app/types';
|
|
3
2
|
import type { Level, ImageSettings } from './types';
|
|
4
3
|
/**
|
|
5
4
|
* 属性
|
|
@@ -27,7 +26,7 @@ export declare const qrCodeProps: {
|
|
|
27
26
|
default: number;
|
|
28
27
|
};
|
|
29
28
|
imageSettings: PropType<ImageSettings>;
|
|
30
|
-
customStyle: PropType<
|
|
29
|
+
customStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
31
30
|
};
|
|
32
31
|
export type QrCodeProps = ExtractPropTypes<typeof qrCodeProps>;
|
|
33
32
|
/**
|
|
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
default: number;
|
|
22
22
|
};
|
|
23
23
|
imageSettings: import("vue").PropType<import("../ele-qr-code/types").ImageSettings>;
|
|
24
|
-
customStyle: import("vue").PropType<import("
|
|
24
|
+
customStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
25
25
|
}, {
|
|
26
26
|
viewBox: import("vue").Ref<string>;
|
|
27
27
|
path: import("vue").Ref<string>;
|
|
@@ -57,14 +57,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
57
|
default: number;
|
|
58
58
|
};
|
|
59
59
|
imageSettings: import("vue").PropType<import("../ele-qr-code/types").ImageSettings>;
|
|
60
|
-
customStyle: import("vue").PropType<import("
|
|
60
|
+
customStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
61
61
|
}>> & {
|
|
62
62
|
onDone?: (() => any) | undefined;
|
|
63
63
|
}, {
|
|
64
64
|
size: number;
|
|
65
|
+
margin: number;
|
|
65
66
|
level: import("../ele-qr-code/types").Level;
|
|
66
67
|
bgColor: string;
|
|
67
68
|
fgColor: string;
|
|
68
|
-
margin: number;
|
|
69
69
|
}, {}>;
|
|
70
70
|
export default _default;
|
|
@@ -3,10 +3,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
minSize: NumberConstructor;
|
|
4
4
|
maxSize: NumberConstructor;
|
|
5
5
|
space: StringConstructor;
|
|
6
|
-
customStyle: import("vue").PropType<import("
|
|
7
|
-
bodyStyle: import("vue").PropType<import("
|
|
6
|
+
customStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
7
|
+
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
8
8
|
allowCollapse: BooleanConstructor;
|
|
9
|
-
collapseStyle: import("vue").PropType<import("
|
|
9
|
+
collapseStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
10
10
|
collapse: BooleanConstructor;
|
|
11
11
|
vertical: BooleanConstructor;
|
|
12
12
|
reverse: BooleanConstructor;
|
|
@@ -33,10 +33,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
33
|
minSize: NumberConstructor;
|
|
34
34
|
maxSize: NumberConstructor;
|
|
35
35
|
space: StringConstructor;
|
|
36
|
-
customStyle: import("vue").PropType<import("
|
|
37
|
-
bodyStyle: import("vue").PropType<import("
|
|
36
|
+
customStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
37
|
+
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
38
38
|
allowCollapse: BooleanConstructor;
|
|
39
|
-
collapseStyle: import("vue").PropType<import("
|
|
39
|
+
collapseStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
40
40
|
collapse: BooleanConstructor;
|
|
41
41
|
vertical: BooleanConstructor;
|
|
42
42
|
reverse: BooleanConstructor;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
-
import type { StyleValue } from '../ele-app/types';
|
|
3
2
|
/**
|
|
4
3
|
* 属性
|
|
5
4
|
*/
|
|
@@ -8,10 +7,10 @@ export declare const splitPanelProps: {
|
|
|
8
7
|
minSize: NumberConstructor;
|
|
9
8
|
maxSize: NumberConstructor;
|
|
10
9
|
space: StringConstructor;
|
|
11
|
-
customStyle: PropType<
|
|
12
|
-
bodyStyle: PropType<
|
|
10
|
+
customStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
11
|
+
bodyStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
13
12
|
allowCollapse: BooleanConstructor;
|
|
14
|
-
collapseStyle: PropType<
|
|
13
|
+
collapseStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
15
14
|
collapse: BooleanConstructor;
|
|
16
15
|
vertical: BooleanConstructor;
|
|
17
16
|
reverse: BooleanConstructor;
|
package/lib/ele-tabs/index.js
CHANGED
|
@@ -106,6 +106,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
106
106
|
};
|
|
107
107
|
const unbindDragSort = () => {
|
|
108
108
|
current.sortIns && current.sortIns.destroy();
|
|
109
|
+
current.sortIns = null;
|
|
109
110
|
};
|
|
110
111
|
const onContextmenu = (e) => {
|
|
111
112
|
const el = e.target;
|
|
@@ -232,7 +233,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
232
233
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.items, (item, index2) => {
|
|
233
234
|
return vue.openBlock(), vue.createBlock(_component_ElTabPane, vue.mergeProps({
|
|
234
235
|
key: index2 + "-" + item.name
|
|
235
|
-
}, _ctx.omit(item, ["meta"])), vue.createSlots({
|
|
236
|
+
}, _ctx.omit(item, ["slot", "meta"])), vue.createSlots({
|
|
236
237
|
label: vue.withCtx(() => [
|
|
237
238
|
vue.createVNode(_component_TabTitle, {
|
|
238
239
|
ref_for: true,
|
|
@@ -266,10 +267,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
266
267
|
]),
|
|
267
268
|
_: 2
|
|
268
269
|
}, [
|
|
269
|
-
item.name && _ctx.$slots[item.name] ? {
|
|
270
|
+
item.name && _ctx.$slots[item.slot || item.name] ? {
|
|
270
271
|
name: "default",
|
|
271
272
|
fn: vue.withCtx(() => [
|
|
272
|
-
vue.renderSlot(_ctx.$slots, item.name, { item })
|
|
273
|
+
vue.renderSlot(_ctx.$slots, item.slot || item.name, { item })
|
|
273
274
|
]),
|
|
274
275
|
key: "0"
|
|
275
276
|
} : void 0
|
package/lib/ele-text/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
italic: BooleanConstructor;
|
|
12
12
|
icon: import("vue").PropType<import("./types").TextIcon>;
|
|
13
13
|
iconProps: import("vue").PropType<import("../ele-app/types").ElIconProps>;
|
|
14
|
-
iconStyle: import("vue").PropType<import("
|
|
14
|
+
iconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
15
15
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
16
|
tag: {
|
|
17
17
|
type: StringConstructor;
|
|
@@ -25,11 +25,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
italic: BooleanConstructor;
|
|
26
26
|
icon: import("vue").PropType<import("./types").TextIcon>;
|
|
27
27
|
iconProps: import("vue").PropType<import("../ele-app/types").ElIconProps>;
|
|
28
|
-
iconStyle: import("vue").PropType<import("
|
|
28
|
+
iconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
29
29
|
}>>, {
|
|
30
30
|
tag: string;
|
|
31
|
-
deleted: boolean;
|
|
32
31
|
underline: boolean;
|
|
32
|
+
deleted: boolean;
|
|
33
33
|
strong: boolean;
|
|
34
34
|
italic: boolean;
|
|
35
35
|
}, {}>;
|
package/lib/ele-text/props.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ElIconProps } from '../ele-app/types';
|
|
3
3
|
import type { TextType, TextSize, TextIcon } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* 属性
|
|
@@ -17,7 +17,7 @@ export declare const textProps: {
|
|
|
17
17
|
italic: BooleanConstructor;
|
|
18
18
|
icon: PropType<TextIcon>;
|
|
19
19
|
iconProps: PropType<ElIconProps>;
|
|
20
|
-
iconStyle: PropType<
|
|
20
|
+
iconStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
21
21
|
};
|
|
22
22
|
export type TextProps = ExtractPropTypes<typeof textProps>;
|
|
23
23
|
export type TextPropKeys = Array<keyof typeof textProps>;
|
|
@@ -5,9 +5,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
type: import("vue").PropType<import("./types").ToolbarTheme>;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
|
-
titleStyle: import("vue").PropType<import("
|
|
9
|
-
bodyStyle: import("vue").PropType<import("
|
|
10
|
-
toolsStyle: import("vue").PropType<import("
|
|
8
|
+
titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
9
|
+
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
10
|
+
toolsStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
11
11
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
12
|
title: StringConstructor;
|
|
13
13
|
subtitle: StringConstructor;
|
|
@@ -15,9 +15,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
type: import("vue").PropType<import("./types").ToolbarTheme>;
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
|
-
titleStyle: import("vue").PropType<import("
|
|
19
|
-
bodyStyle: import("vue").PropType<import("
|
|
20
|
-
toolsStyle: import("vue").PropType<import("
|
|
18
|
+
titleStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
19
|
+
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
20
|
+
toolsStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
21
21
|
}>>, {
|
|
22
22
|
theme: import("./types").ToolbarTheme;
|
|
23
23
|
}, {}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
-
import type { StyleValue } from '../ele-app/types';
|
|
3
2
|
import type { ToolbarTheme } from './types';
|
|
4
3
|
/**
|
|
5
4
|
* 属性
|
|
@@ -11,8 +10,8 @@ export declare const toolbarProps: {
|
|
|
11
10
|
type: PropType<ToolbarTheme>;
|
|
12
11
|
default: string;
|
|
13
12
|
};
|
|
14
|
-
titleStyle: PropType<
|
|
15
|
-
bodyStyle: PropType<
|
|
16
|
-
toolsStyle: PropType<
|
|
13
|
+
titleStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
14
|
+
bodyStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
15
|
+
toolsStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
17
16
|
};
|
|
18
17
|
export type ToolbarProps = ExtractPropTypes<typeof toolbarProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ElTooltipProps, ElTooltipInstance, ElPopperInstance } from '../ele-app/types';
|
|
2
2
|
import type { TooltipEmits } from './props';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
|
-
bodyStyle: import("vue").PropType<
|
|
4
|
+
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
5
5
|
bg: StringConstructor;
|
|
6
6
|
arrowBg: StringConstructor;
|
|
7
7
|
keepAlive: BooleanConstructor;
|
|
@@ -130,7 +130,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
130
130
|
onPopOpen: (e: any) => void;
|
|
131
131
|
onPopClose: (e: any) => void;
|
|
132
132
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, TooltipEmits, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
133
|
-
bodyStyle: import("vue").PropType<
|
|
133
|
+
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
134
134
|
bg: StringConstructor;
|
|
135
135
|
arrowBg: StringConstructor;
|
|
136
136
|
keepAlive: BooleanConstructor;
|