ele-admin-plus 1.1.5-beta.1 → 1.1.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/ele-alert/props.d.ts +1 -1
- package/es/ele-alert/props.js +1 -1
- package/es/ele-app/index.d.ts +1 -1
- package/es/ele-app/style/overwrite.scss +11 -2
- package/es/ele-app/types/components.d.ts +32 -0
- package/es/ele-app/types/index.d.ts +3 -3
- package/es/ele-basic-select/index.d.ts +6 -5
- package/es/ele-basic-select/index.js +1 -0
- package/es/ele-card/index.d.ts +2 -0
- package/es/ele-card/index.js +2 -1
- package/es/ele-card/props.d.ts +2 -0
- package/es/ele-card/props.js +2 -0
- package/es/ele-config-provider/receiver.js +1 -1
- package/es/ele-data-table/index.d.ts +6 -6
- package/es/ele-data-table/props.d.ts +5 -5
- package/es/ele-data-table/util.d.ts +6 -99
- package/es/ele-data-table/util.js +10 -0
- package/es/ele-menus/style/index.scss +1 -0
- package/es/ele-popconfirm/index.d.ts +39 -122
- package/es/ele-popconfirm/props.d.ts +11 -53
- package/es/ele-popover/index.d.ts +39 -122
- package/es/ele-popover/props.d.ts +11 -53
- package/es/ele-pro-table/index.d.ts +9 -9
- package/es/ele-pro-table/index.js +1 -5
- package/es/ele-pro-table/props.d.ts +3 -3
- package/es/ele-pro-table/util.js +7 -9
- package/es/ele-tabs/index.d.ts +5 -4
- package/es/ele-tabs/style/index.scss +48 -7
- package/es/ele-tooltip/index.d.ts +37 -121
- package/es/ele-tooltip/props.d.ts +14 -56
- package/es/ele-tooltip/props.js +8 -1
- package/es/ele-virtual-table/components/body-cell.d.ts +2 -2
- package/es/ele-virtual-table/components/body-row.d.ts +2 -2
- package/es/ele-virtual-table/components/cell-filter.d.ts +2 -1
- package/es/ele-virtual-table/components/cell-filter.js +3 -1
- package/es/ele-virtual-table/props.d.ts +3 -3
- package/es/ele-virtual-table/util.js +14 -4
- package/es/style/themes/dark.scss +5 -1
- package/es/style/themes/default.scss +5 -2
- package/es/style/themes/rounded.scss +3 -4
- package/es/utils/theme-util.js +1 -1
- package/lib/ele-alert/props.d.ts +1 -1
- package/lib/ele-alert/props.js +1 -1
- package/lib/ele-app/index.d.ts +1 -1
- package/lib/ele-app/style/overwrite.scss +11 -2
- package/lib/ele-app/types/components.d.ts +32 -0
- package/lib/ele-app/types/index.d.ts +3 -3
- package/lib/ele-basic-select/index.d.ts +6 -5
- package/lib/ele-basic-select/index.js +1 -0
- package/lib/ele-card/index.d.ts +2 -0
- package/lib/ele-card/index.js +2 -1
- package/lib/ele-card/props.d.ts +2 -0
- package/lib/ele-card/props.js +2 -0
- package/lib/ele-config-provider/receiver.js +1 -1
- package/lib/ele-data-table/index.d.ts +6 -6
- package/lib/ele-data-table/props.d.ts +5 -5
- package/lib/ele-data-table/util.d.ts +6 -99
- package/lib/ele-data-table/util.js +10 -0
- package/lib/ele-menus/style/index.scss +1 -0
- package/lib/ele-popconfirm/index.d.ts +39 -122
- package/lib/ele-popconfirm/props.d.ts +11 -53
- package/lib/ele-popover/index.d.ts +39 -122
- package/lib/ele-popover/props.d.ts +11 -53
- package/lib/ele-pro-table/index.d.ts +9 -9
- package/lib/ele-pro-table/index.js +0 -4
- package/lib/ele-pro-table/props.d.ts +3 -3
- package/lib/ele-pro-table/util.js +7 -9
- package/lib/ele-tabs/index.d.ts +5 -4
- package/lib/ele-tabs/style/index.scss +48 -7
- package/lib/ele-tooltip/index.d.ts +37 -121
- package/lib/ele-tooltip/props.d.ts +14 -56
- package/lib/ele-tooltip/props.js +8 -1
- package/lib/ele-virtual-table/components/body-cell.d.ts +2 -2
- package/lib/ele-virtual-table/components/body-row.d.ts +2 -2
- package/lib/ele-virtual-table/components/cell-filter.d.ts +2 -1
- package/lib/ele-virtual-table/components/cell-filter.js +2 -0
- package/lib/ele-virtual-table/props.d.ts +3 -3
- package/lib/ele-virtual-table/util.js +13 -3
- package/lib/style/themes/dark.scss +5 -1
- package/lib/style/themes/default.scss +5 -2
- package/lib/style/themes/rounded.scss +3 -4
- package/lib/utils/theme-util.js +1 -1
- package/package.json +1 -1
package/es/ele-alert/props.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export declare const alertProps: {
|
|
|
37
37
|
titleStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
38
38
|
/** 描述样式 */
|
|
39
39
|
descriptionStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
40
|
-
/**
|
|
40
|
+
/** 过渡动画名称 */
|
|
41
41
|
transitionName: {
|
|
42
42
|
type: StringConstructor;
|
|
43
43
|
default: string;
|
package/es/ele-alert/props.js
CHANGED
package/es/ele-app/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { ComponentProps } from './types';
|
|
1
|
+
export type { ComponentProps } from './types/components';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
@@ -243,11 +243,20 @@
|
|
|
243
243
|
z-index: 0;
|
|
244
244
|
|
|
245
245
|
& > .el-tree-node__expand-icon {
|
|
246
|
-
width:
|
|
246
|
+
width: auto;
|
|
247
247
|
height: eleVar('select', 'item-height');
|
|
248
248
|
box-sizing: border-box;
|
|
249
|
-
padding: 0;
|
|
249
|
+
padding: 0 4px 0 10px;
|
|
250
|
+
transform: none;
|
|
250
251
|
margin: 0;
|
|
252
|
+
|
|
253
|
+
& > svg {
|
|
254
|
+
transition: transform 0.3s;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
&.expanded > svg {
|
|
258
|
+
transform: rotate(90deg);
|
|
259
|
+
}
|
|
251
260
|
}
|
|
252
261
|
|
|
253
262
|
.el-select-dropdown__item {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ComponentProps } from '../../ele-app/types';
|
|
2
|
+
import type { TooltipProps } from '../../ele-tooltip/props';
|
|
3
|
+
import type EleTooltip from "../../ele-tooltip/index";
|
|
4
|
+
import type { PopoverProps } from '../../ele-popover/props';
|
|
5
|
+
import type ElePopover from "../ele-popover/index";
|
|
6
|
+
import type EleText from "../../ele-text/index";
|
|
7
|
+
import type { DropdownProps } from '../../ele-dropdown/props';
|
|
8
|
+
import type EleDropdown from "../../ele-dropdown/index";
|
|
9
|
+
import type EleTabs from "../../ele-tabs/index";
|
|
10
|
+
import type EleProTable from "../ele-pro-table/index";
|
|
11
|
+
import type EleBasicSelect from "../ele-basic-select/index";
|
|
12
|
+
import type EleDataTable from '../../ele-data-table/index';
|
|
13
|
+
import type EleVirtualTable from "../../ele-virtual-table/index";
|
|
14
|
+
export type { ComponentProps };
|
|
15
|
+
/**
|
|
16
|
+
* 组件属性
|
|
17
|
+
*/
|
|
18
|
+
export type EleDropdownProps = ComponentProps<DropdownProps>;
|
|
19
|
+
export type ElePopoverProps = Partial<PopoverProps>;
|
|
20
|
+
export type EleTooltipProps = Partial<TooltipProps>;
|
|
21
|
+
/**
|
|
22
|
+
* 组件实例
|
|
23
|
+
*/
|
|
24
|
+
export type EleBasicSelectInstance = InstanceType<typeof EleBasicSelect> | null;
|
|
25
|
+
export type EleDataTableInstance = InstanceType<typeof EleDataTable>;
|
|
26
|
+
export type EleDropdownInstance = InstanceType<typeof EleDropdown> | null;
|
|
27
|
+
export type ElePopoverInstance = InstanceType<typeof ElePopover> | null;
|
|
28
|
+
export type EleProTableInstance = InstanceType<typeof EleProTable> | null;
|
|
29
|
+
export type EleTabsInstance = InstanceType<typeof EleTabs> | null;
|
|
30
|
+
export type EleTextInstance = InstanceType<typeof EleText> | null;
|
|
31
|
+
export type EleTooltipInstance = InstanceType<typeof EleTooltip> | null;
|
|
32
|
+
export type EleVirtualTableInstance = InstanceType<typeof EleVirtualTable>;
|
|
@@ -44,10 +44,10 @@ export type ElDropdownProps = ComponentProps<ExtractPropTypes<typeof dropdownPro
|
|
|
44
44
|
export type ElDropdownItemProps = ComponentProps<ExtractPropTypes<typeof dropdownItemProps>>;
|
|
45
45
|
export type ElInputProps = ComponentProps<InputProps>;
|
|
46
46
|
export type ElTagProps = ComponentProps<TagProps>;
|
|
47
|
-
export type ElPopoverProps = ComponentProps<PopoverProps>;
|
|
48
47
|
export type ElAvatarProps = ComponentProps<AvatarProps>;
|
|
49
|
-
export type ElTooltipProps =
|
|
50
|
-
export type
|
|
48
|
+
export type ElTooltipProps = Partial<TooltipProps>;
|
|
49
|
+
export type ElPopoverProps = Partial<PopoverProps>;
|
|
50
|
+
export type ElPopconfirmProps = Partial<PopconfirmProps>;
|
|
51
51
|
export type ElAlertProps = ComponentProps<AlertProps>;
|
|
52
52
|
export type ElButtonProps = ComponentProps<ButtonProps>;
|
|
53
53
|
export type ElCardProps = ComponentProps<CardProps>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { EleTooltipInstance } from '../ele-app/types/components';
|
|
1
2
|
import type { SelectedItem } from './types';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<{
|
|
3
4
|
value: import("vue").PropType<import("./types").SelectValue>;
|
|
@@ -15,14 +16,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
16
|
visible: BooleanConstructor;
|
|
16
17
|
teleported: BooleanConstructor;
|
|
17
18
|
persistent: BooleanConstructor;
|
|
18
|
-
automaticDropdown: BooleanConstructor;
|
|
19
|
+
automaticDropdown: BooleanConstructor; /** 是否未选中 */
|
|
19
20
|
tagType: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown> | undefined>;
|
|
20
21
|
placement: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>;
|
|
21
22
|
popperWidth: (StringConstructor | NumberConstructor)[];
|
|
22
23
|
popperOptions: import("vue").PropType<Partial<import("element-plus").Options> | undefined>;
|
|
23
24
|
popperClass: StringConstructor;
|
|
24
25
|
}, {
|
|
25
|
-
tooltipRef: EleTooltipInstance
|
|
26
|
+
tooltipRef: import("vue").Ref<EleTooltipInstance>;
|
|
26
27
|
isDisabled: import("vue").ComputedRef<boolean>;
|
|
27
28
|
closeEnable: import("vue").ComputedRef<boolean>;
|
|
28
29
|
inputPlaceholder: import("vue").ComputedRef<string | undefined>;
|
|
@@ -57,24 +58,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
58
|
visible: BooleanConstructor;
|
|
58
59
|
teleported: BooleanConstructor;
|
|
59
60
|
persistent: BooleanConstructor;
|
|
60
|
-
automaticDropdown: BooleanConstructor;
|
|
61
|
+
automaticDropdown: BooleanConstructor; /** 是否未选中 */
|
|
61
62
|
tagType: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "danger", unknown> | undefined>;
|
|
62
63
|
placement: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined>;
|
|
63
64
|
popperWidth: (StringConstructor | NumberConstructor)[];
|
|
64
65
|
popperOptions: import("vue").PropType<Partial<import("element-plus").Options> | undefined>;
|
|
65
66
|
popperClass: StringConstructor;
|
|
66
67
|
}>> & {
|
|
67
|
-
"onUpdate:visible"?: ((_visible: boolean) => any) | undefined;
|
|
68
68
|
onFocus?: ((_e: FocusEvent) => any) | undefined;
|
|
69
69
|
onBlur?: ((_e: FocusEvent) => any) | undefined;
|
|
70
|
+
"onUpdate:visible"?: ((_visible: boolean) => any) | undefined;
|
|
70
71
|
onClear?: (() => any) | undefined;
|
|
71
72
|
onRemoveTag?: ((_item: SelectedItem) => any) | undefined;
|
|
72
73
|
}, {
|
|
73
74
|
disabled: boolean;
|
|
74
75
|
teleported: boolean;
|
|
75
76
|
clearable: boolean;
|
|
76
|
-
visible: boolean;
|
|
77
77
|
persistent: boolean;
|
|
78
|
+
visible: boolean;
|
|
78
79
|
multiple: boolean;
|
|
79
80
|
automaticDropdown: boolean;
|
|
80
81
|
}, {}>;
|
|
@@ -140,6 +140,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
140
140
|
popperClass: _ctx.popperClass,
|
|
141
141
|
popperOptions: _ctx.popperOptions,
|
|
142
142
|
gpuAcceleration: false,
|
|
143
|
+
persistent: true,
|
|
143
144
|
effect: "light",
|
|
144
145
|
isPopover: true,
|
|
145
146
|
"onUpdate:visible": _ctx.updateVisible
|
package/es/ele-card/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
header: StringConstructor;
|
|
3
3
|
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
4
|
+
bodyClass: StringConstructor;
|
|
4
5
|
shadow: {
|
|
5
6
|
type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "hover" | "always" | "never", unknown> | undefined>;
|
|
6
7
|
default: string;
|
|
@@ -12,6 +13,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
13
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
14
|
header: StringConstructor;
|
|
14
15
|
bodyStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
16
|
+
bodyClass: StringConstructor;
|
|
15
17
|
shadow: {
|
|
16
18
|
type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "hover" | "always" | "never", unknown> | undefined>;
|
|
17
19
|
default: string;
|
package/es/ele-card/index.js
CHANGED
|
@@ -17,6 +17,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17
17
|
const _component_ElCard = resolveComponent("ElCard");
|
|
18
18
|
return openBlock(), createBlock(_component_ElCard, {
|
|
19
19
|
bodyStyle: _ctx.bodyStyle,
|
|
20
|
+
bodyClass: _ctx.bodyClass,
|
|
20
21
|
shadow: _ctx.shadow,
|
|
21
22
|
class: normalizeClass([
|
|
22
23
|
"ele-card",
|
|
@@ -49,7 +50,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
49
50
|
]),
|
|
50
51
|
key: "0"
|
|
51
52
|
} : void 0
|
|
52
|
-
]), 1032, ["bodyStyle", "shadow", "class"]);
|
|
53
|
+
]), 1032, ["bodyStyle", "bodyClass", "shadow", "class"]);
|
|
53
54
|
}
|
|
54
55
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
55
56
|
export {
|
package/es/ele-card/props.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export declare const cardProps: {
|
|
|
7
7
|
header: StringConstructor;
|
|
8
8
|
/** 主体样式 */
|
|
9
9
|
bodyStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
10
|
+
/** 主体类名 */
|
|
11
|
+
bodyClass: StringConstructor;
|
|
10
12
|
/** 阴影 */
|
|
11
13
|
shadow: {
|
|
12
14
|
type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "hover" | "always" | "never", unknown> | undefined>;
|
package/es/ele-card/props.js
CHANGED
|
@@ -2,7 +2,7 @@ import { inject as L, computed as v, ref as P, watch as R, unref as T } from "vu
|
|
|
2
2
|
import { PROVIDE_KEY as I, LAYOUT_KEY as N } from "./props";
|
|
3
3
|
import { LAYOUT_KEY as W } from "./props";
|
|
4
4
|
import _ from "../lang/zh_CN";
|
|
5
|
-
const K = "EleAdminPlus \u4E3A\u5546\u4E1A\u4EA7\u54C1\u9700\u8981\u6388\u6743\u4F7F\u7528, \u8BF7\u524D\u5F80\u5B98\u7F51 www.eleadmin.com \u8D2D\u4E70\u6388\u6743", U = "BAFEDIHGLKJONMRQPUTSXWVaZYdcbgfejihmlkponsrqvutyxw10z432765+98/C", $ =
|
|
5
|
+
const K = "EleAdminPlus \u4E3A\u5546\u4E1A\u4EA7\u54C1\u9700\u8981\u6388\u6743\u4F7F\u7528, \u8BF7\u524D\u5F80\u5B98\u7F51 www.eleadmin.com \u8D2D\u4E70\u6388\u6743", U = "BAFEDIHGLKJONMRQPUTSXWVaZYdcbgfejihmlkponsrqvutyxw10z432765+98/C", $ = 1698336417, x = "1.1";
|
|
6
6
|
function B() {
|
|
7
7
|
return L(I, {});
|
|
8
8
|
}
|
|
@@ -41,7 +41,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
41
|
__epPropKey: true;
|
|
42
42
|
};
|
|
43
43
|
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
44
|
-
width: (StringConstructor | NumberConstructor)[];
|
|
45
44
|
fit: {
|
|
46
45
|
type: BooleanConstructor;
|
|
47
46
|
default: boolean;
|
|
@@ -50,6 +49,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
49
|
type: StringConstructor;
|
|
51
50
|
default: string;
|
|
52
51
|
};
|
|
52
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
53
53
|
lazy: BooleanConstructor;
|
|
54
54
|
rowKey: import("vue").PropType<string | ((row: any) => string) | undefined>;
|
|
55
55
|
data: {
|
|
@@ -61,7 +61,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
61
|
type: BooleanConstructor;
|
|
62
62
|
default: boolean;
|
|
63
63
|
};
|
|
64
|
-
showOverflowTooltip: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
64
|
+
showOverflowTooltip: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
65
65
|
showHeader: {
|
|
66
66
|
type: BooleanConstructor;
|
|
67
67
|
default: boolean;
|
|
@@ -84,7 +84,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
84
|
defaultExpandAll: BooleanConstructor;
|
|
85
85
|
defaultSort: import("vue").PropType<import("element-plus/es/components/table/src/table/defaults").Sort | undefined>;
|
|
86
86
|
tooltipEffect: StringConstructor;
|
|
87
|
-
tooltipOptions: import("vue").PropType<Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
87
|
+
tooltipOptions: import("vue").PropType<Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
88
88
|
spanMethod: import("vue").PropType<((data: {
|
|
89
89
|
row: any;
|
|
90
90
|
rowIndex: number;
|
|
@@ -196,7 +196,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
196
196
|
__epPropKey: true;
|
|
197
197
|
};
|
|
198
198
|
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
199
|
-
width: (StringConstructor | NumberConstructor)[];
|
|
200
199
|
fit: {
|
|
201
200
|
type: BooleanConstructor;
|
|
202
201
|
default: boolean;
|
|
@@ -205,6 +204,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
205
204
|
type: StringConstructor;
|
|
206
205
|
default: string;
|
|
207
206
|
};
|
|
207
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
208
208
|
lazy: BooleanConstructor;
|
|
209
209
|
rowKey: import("vue").PropType<string | ((row: any) => string) | undefined>;
|
|
210
210
|
data: {
|
|
@@ -216,7 +216,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
216
216
|
type: BooleanConstructor;
|
|
217
217
|
default: boolean;
|
|
218
218
|
};
|
|
219
|
-
showOverflowTooltip: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
219
|
+
showOverflowTooltip: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
220
220
|
showHeader: {
|
|
221
221
|
type: BooleanConstructor;
|
|
222
222
|
default: boolean;
|
|
@@ -239,7 +239,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
239
239
|
defaultExpandAll: BooleanConstructor;
|
|
240
240
|
defaultSort: import("vue").PropType<import("element-plus/es/components/table/src/table/defaults").Sort | undefined>;
|
|
241
241
|
tooltipEffect: StringConstructor;
|
|
242
|
-
tooltipOptions: import("vue").PropType<Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
242
|
+
tooltipOptions: import("vue").PropType<Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
243
243
|
spanMethod: import("vue").PropType<((data: {
|
|
244
244
|
row: any;
|
|
245
245
|
rowIndex: number;
|
|
@@ -43,7 +43,7 @@ declare const normalizeProps: Omit<{
|
|
|
43
43
|
defaultExpandAll: BooleanConstructor;
|
|
44
44
|
defaultSort: PropType<import("element-plus/es/components/table/src/table/defaults").Sort | undefined>;
|
|
45
45
|
tooltipEffect: StringConstructor;
|
|
46
|
-
tooltipOptions: PropType<Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
46
|
+
tooltipOptions: PropType<Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
47
47
|
spanMethod: PropType<((data: {
|
|
48
48
|
row: any;
|
|
49
49
|
rowIndex: number;
|
|
@@ -90,7 +90,7 @@ declare const normalizeProps: Omit<{
|
|
|
90
90
|
default: boolean;
|
|
91
91
|
};
|
|
92
92
|
flexible: BooleanConstructor;
|
|
93
|
-
showOverflowTooltip: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
93
|
+
showOverflowTooltip: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
94
94
|
}, "style">;
|
|
95
95
|
/**
|
|
96
96
|
* 属性
|
|
@@ -144,7 +144,6 @@ export declare const dataTableProps: {
|
|
|
144
144
|
__epPropKey: true;
|
|
145
145
|
};
|
|
146
146
|
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
147
|
-
width: (StringConstructor | NumberConstructor)[];
|
|
148
147
|
fit: {
|
|
149
148
|
type: BooleanConstructor;
|
|
150
149
|
default: boolean;
|
|
@@ -153,6 +152,7 @@ export declare const dataTableProps: {
|
|
|
153
152
|
type: StringConstructor;
|
|
154
153
|
default: string;
|
|
155
154
|
};
|
|
155
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
156
156
|
lazy: BooleanConstructor;
|
|
157
157
|
rowKey: PropType<string | ((row: any) => string) | undefined>;
|
|
158
158
|
data: {
|
|
@@ -164,7 +164,7 @@ export declare const dataTableProps: {
|
|
|
164
164
|
type: BooleanConstructor;
|
|
165
165
|
default: boolean;
|
|
166
166
|
};
|
|
167
|
-
showOverflowTooltip: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
167
|
+
showOverflowTooltip: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
168
168
|
showHeader: {
|
|
169
169
|
type: BooleanConstructor;
|
|
170
170
|
default: boolean;
|
|
@@ -187,7 +187,7 @@ export declare const dataTableProps: {
|
|
|
187
187
|
defaultExpandAll: BooleanConstructor;
|
|
188
188
|
defaultSort: PropType<import("element-plus/es/components/table/src/table/defaults").Sort | undefined>;
|
|
189
189
|
tooltipEffect: StringConstructor;
|
|
190
|
-
tooltipOptions: PropType<Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "
|
|
190
|
+
tooltipOptions: PropType<Partial<Pick<import("element-plus").ElTooltipProps, "offset" | "effect" | "placement" | "popperOptions" | "popperClass" | "showArrow" | "enterable" | "showAfter" | "hideAfter">> | undefined>;
|
|
191
191
|
spanMethod: PropType<((data: {
|
|
192
192
|
row: any;
|
|
193
193
|
rowIndex: number;
|
|
@@ -50,105 +50,7 @@ export declare function mergeTooltipProps(props?: ShowOverflowTooltip, globalPro
|
|
|
50
50
|
* @param tooltipEffect 溢出提示组件主题
|
|
51
51
|
* @param tooltipOptions 溢出提示组件配置
|
|
52
52
|
*/
|
|
53
|
-
export declare function getGlobalTooltipProps(showOverflowTooltip?: ShowOverflowTooltip, tooltipEffect?: TooltipEffect, tooltipOptions?: TooltipOptions):
|
|
54
|
-
offset?: number | undefined;
|
|
55
|
-
effect: string | undefined;
|
|
56
|
-
placement?: import("element-plus/es/utils").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined;
|
|
57
|
-
popperOptions?: Partial<import("element-plus").Options> | undefined;
|
|
58
|
-
popperClass?: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | {
|
|
59
|
-
[x: string]: boolean;
|
|
60
|
-
} | (string | {
|
|
61
|
-
[x: string]: boolean;
|
|
62
|
-
} | (string | {
|
|
63
|
-
[x: string]: boolean;
|
|
64
|
-
} | (string | {
|
|
65
|
-
[x: string]: boolean;
|
|
66
|
-
} | (string | {
|
|
67
|
-
[x: string]: boolean;
|
|
68
|
-
} | (string | {
|
|
69
|
-
[x: string]: boolean;
|
|
70
|
-
} | (string | {
|
|
71
|
-
[x: string]: boolean;
|
|
72
|
-
} | (string | {
|
|
73
|
-
[x: string]: boolean;
|
|
74
|
-
} | (string | {
|
|
75
|
-
[x: string]: boolean;
|
|
76
|
-
} | (string | {
|
|
77
|
-
[x: string]: boolean;
|
|
78
|
-
} | (string | any[] | {
|
|
79
|
-
[x: string]: boolean;
|
|
80
|
-
})[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
81
|
-
[x: string]: boolean;
|
|
82
|
-
} | (string | {
|
|
83
|
-
[x: string]: boolean;
|
|
84
|
-
} | (string | {
|
|
85
|
-
[x: string]: boolean;
|
|
86
|
-
} | (string | {
|
|
87
|
-
[x: string]: boolean;
|
|
88
|
-
} | (string | {
|
|
89
|
-
[x: string]: boolean;
|
|
90
|
-
} | (string | {
|
|
91
|
-
[x: string]: boolean;
|
|
92
|
-
} | (string | {
|
|
93
|
-
[x: string]: boolean;
|
|
94
|
-
} | (string | {
|
|
95
|
-
[x: string]: boolean;
|
|
96
|
-
} | (string | {
|
|
97
|
-
[x: string]: boolean;
|
|
98
|
-
} | (string | {
|
|
99
|
-
[x: string]: boolean;
|
|
100
|
-
} | (string | any[] | {
|
|
101
|
-
[x: string]: boolean;
|
|
102
|
-
})[])[])[])[])[])[])[])[])[])[]) | ((new (...args: any[]) => string | {
|
|
103
|
-
[x: string]: boolean;
|
|
104
|
-
} | (string | {
|
|
105
|
-
[x: string]: boolean;
|
|
106
|
-
} | (string | {
|
|
107
|
-
[x: string]: boolean;
|
|
108
|
-
} | (string | {
|
|
109
|
-
[x: string]: boolean;
|
|
110
|
-
} | (string | {
|
|
111
|
-
[x: string]: boolean;
|
|
112
|
-
} | (string | {
|
|
113
|
-
[x: string]: boolean;
|
|
114
|
-
} | (string | {
|
|
115
|
-
[x: string]: boolean;
|
|
116
|
-
} | (string | {
|
|
117
|
-
[x: string]: boolean;
|
|
118
|
-
} | (string | {
|
|
119
|
-
[x: string]: boolean;
|
|
120
|
-
} | (string | {
|
|
121
|
-
[x: string]: boolean;
|
|
122
|
-
} | (string | any[] | {
|
|
123
|
-
[x: string]: boolean;
|
|
124
|
-
})[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
125
|
-
[x: string]: boolean;
|
|
126
|
-
} | (string | {
|
|
127
|
-
[x: string]: boolean;
|
|
128
|
-
} | (string | {
|
|
129
|
-
[x: string]: boolean;
|
|
130
|
-
} | (string | {
|
|
131
|
-
[x: string]: boolean;
|
|
132
|
-
} | (string | {
|
|
133
|
-
[x: string]: boolean;
|
|
134
|
-
} | (string | {
|
|
135
|
-
[x: string]: boolean;
|
|
136
|
-
} | (string | {
|
|
137
|
-
[x: string]: boolean;
|
|
138
|
-
} | (string | {
|
|
139
|
-
[x: string]: boolean;
|
|
140
|
-
} | (string | {
|
|
141
|
-
[x: string]: boolean;
|
|
142
|
-
} | (string | {
|
|
143
|
-
[x: string]: boolean;
|
|
144
|
-
} | (string | any[] | {
|
|
145
|
-
[x: string]: boolean;
|
|
146
|
-
})[])[])[])[])[])[])[])[])[])[]))[], unknown, unknown> | undefined;
|
|
147
|
-
enterable?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
148
|
-
showAfter?: number | undefined;
|
|
149
|
-
hideAfter?: number | undefined;
|
|
150
|
-
showArrow?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
151
|
-
};
|
|
53
|
+
export declare function getGlobalTooltipProps(showOverflowTooltip?: ShowOverflowTooltip, tooltipEffect?: TooltipEffect, tooltipOptions?: TooltipOptions): ShowOverflowTooltip;
|
|
152
54
|
/**
|
|
153
55
|
* 获取单元格提示组件属性
|
|
154
56
|
* @param props 单元格提示组件属性
|
|
@@ -219,6 +121,11 @@ export declare function isDisableRow(row: DataItem, index: number, columns?: Col
|
|
|
219
121
|
* @param columns 列配置
|
|
220
122
|
*/
|
|
221
123
|
export declare function isReserveSelected(columns?: Columns): boolean;
|
|
124
|
+
/**
|
|
125
|
+
* 用于根据列的固定值排序
|
|
126
|
+
* @param fixed 固定值
|
|
127
|
+
*/
|
|
128
|
+
export declare function getColFixedNumber(fixed?: boolean | string): 0 | 1 | 2;
|
|
222
129
|
/**
|
|
223
130
|
* 表格状态数据
|
|
224
131
|
*/
|
|
@@ -228,6 +228,15 @@ function isReserveSelected(columns) {
|
|
|
228
228
|
});
|
|
229
229
|
return isReserve;
|
|
230
230
|
}
|
|
231
|
+
function getColFixedNumber(fixed) {
|
|
232
|
+
if (fixed === true || fixed === "left") {
|
|
233
|
+
return 0;
|
|
234
|
+
}
|
|
235
|
+
if (fixed === "right") {
|
|
236
|
+
return 2;
|
|
237
|
+
}
|
|
238
|
+
return 1;
|
|
239
|
+
}
|
|
231
240
|
function useState(defaultSort) {
|
|
232
241
|
const state = { sorter: defaultSort };
|
|
233
242
|
const getSorter = () => {
|
|
@@ -395,6 +404,7 @@ function useEmits(emit) {
|
|
|
395
404
|
}
|
|
396
405
|
export {
|
|
397
406
|
getBodyRowClass,
|
|
407
|
+
getColFixedNumber,
|
|
398
408
|
getCols,
|
|
399
409
|
getEmptyProps,
|
|
400
410
|
getEmptySlot,
|