@juzhenfe/page-model 3.19.1 → 3.21.1
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/dist/components/table/components/column-index/index.vue.d.ts +14 -0
- package/dist/components/table/components/virtual-table/index.vue.d.ts +64 -0
- package/dist/components/table/constructor.d.ts +15 -10
- package/dist/components/table/type.d.ts +14 -9
- package/dist/components/table/utils/use-virtual-table-height.d.ts +2 -0
- package/dist/index.es.js +2170 -1497
- package/dist/index.min.css +1 -1
- package/dist/index.umd.js +11 -3
- package/dist/types/common.d.ts +0 -5
- package/package.json +2 -1
- package/dist/components/filter-tools/components/filter-zone/index.vue.d.ts +0 -56
- package/dist/components/filter-tools/constructor.d.ts +0 -66
- package/dist/components/filter-tools/index.vue.d.ts +0 -98
- package/dist/components/filter-tools/utils/filter-transfer.d.ts +0 -10
- package/dist/components/filter-tools/utils/save-filter.d.ts +0 -2
package/dist/types/common.d.ts
CHANGED
|
@@ -46,11 +46,6 @@ declare global {
|
|
|
46
46
|
|
|
47
47
|
type FilterType = 'string' | 'number' | 'date' | 'boolean' | 'select' | 'list'
|
|
48
48
|
|
|
49
|
-
type InnerFilterItem = {
|
|
50
|
-
key: string
|
|
51
|
-
compareFn: (cellValue: string) => boolean
|
|
52
|
-
}
|
|
53
|
-
|
|
54
49
|
namespace PageModel {
|
|
55
50
|
type _ButtonProps = Omit<ButtonProps, 'icon'> & {
|
|
56
51
|
icon: any
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juzhenfe/page-model",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.21.1",
|
|
4
4
|
"types": "dist/main.d.ts",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"keywords": [
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@juzhenfe/page-model": "^3.18.98",
|
|
49
49
|
"clipboard": "2.0.10",
|
|
50
|
+
"el-table-virtual-scroll-next": "^1.0.2",
|
|
50
51
|
"lodash-es": "^4.17.21",
|
|
51
52
|
"sortablejs": "^1.15.0"
|
|
52
53
|
},
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { FilterItemTypeEnum } from "../../constructor";
|
|
2
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
-
manager: {
|
|
4
|
-
type: any;
|
|
5
|
-
required: true;
|
|
6
|
-
};
|
|
7
|
-
filterTools: {
|
|
8
|
-
type: any;
|
|
9
|
-
required: true;
|
|
10
|
-
};
|
|
11
|
-
}, {
|
|
12
|
-
props: any;
|
|
13
|
-
emit: (event: "screen", ...args: any[]) => void;
|
|
14
|
-
filterTools: import("vue").Ref<any>;
|
|
15
|
-
manager: import("vue").Ref<any>;
|
|
16
|
-
BEMSpace: string;
|
|
17
|
-
createBEMName: (name: string) => string;
|
|
18
|
-
filterList: import("vue").ComputedRef<any>;
|
|
19
|
-
filterSourceList: import("vue").ComputedRef<any>;
|
|
20
|
-
filterKeywords: import("vue").Ref<string>;
|
|
21
|
-
inputFilterSourceList: import("vue").ComputedRef<any>;
|
|
22
|
-
handleClickSelect: (index: number) => boolean;
|
|
23
|
-
handleRemoveFilterItem: (index: number) => void;
|
|
24
|
-
handleClear: () => void;
|
|
25
|
-
handleScreen: () => void;
|
|
26
|
-
readonly CirclePlus: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
27
|
-
readonly Select: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
28
|
-
readonly Remove: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
29
|
-
readonly FilterItemTypeEnum: typeof FilterItemTypeEnum;
|
|
30
|
-
readonly compareOptions: {
|
|
31
|
-
string: {
|
|
32
|
-
label: string;
|
|
33
|
-
value: import("../../constructor").FilterMatchModeEnum;
|
|
34
|
-
}[];
|
|
35
|
-
number: {
|
|
36
|
-
label: string;
|
|
37
|
-
value: import("../../constructor").FilterMatchModeEnum;
|
|
38
|
-
}[];
|
|
39
|
-
date: {
|
|
40
|
-
label: string;
|
|
41
|
-
value: import("../../constructor").FilterMatchModeEnum;
|
|
42
|
-
}[];
|
|
43
|
-
};
|
|
44
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "screen"[], "screen", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
|
-
manager: {
|
|
46
|
-
type: any;
|
|
47
|
-
required: true;
|
|
48
|
-
};
|
|
49
|
-
filterTools: {
|
|
50
|
-
type: any;
|
|
51
|
-
required: true;
|
|
52
|
-
};
|
|
53
|
-
}>> & {
|
|
54
|
-
onScreen?: (...args: any[]) => any;
|
|
55
|
-
}, {}, {}>;
|
|
56
|
-
export default _sfc_main;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 筛选工具
|
|
3
|
-
*/
|
|
4
|
-
export declare enum FilterItemTypeEnum {
|
|
5
|
-
文字 = "string",
|
|
6
|
-
数字 = "number",
|
|
7
|
-
日期 = "date"
|
|
8
|
-
}
|
|
9
|
-
export declare enum FilterMatchModeEnum {
|
|
10
|
-
包含 = "match",
|
|
11
|
-
等于 = "eq",
|
|
12
|
-
不等于 = "neq",
|
|
13
|
-
大于 = "gt",
|
|
14
|
-
小于 = "lt",
|
|
15
|
-
大于等于 = "ge",
|
|
16
|
-
小于等于 = "le"
|
|
17
|
-
}
|
|
18
|
-
export type FilterItem = {
|
|
19
|
-
key: string;
|
|
20
|
-
label: string;
|
|
21
|
-
type: FilterType;
|
|
22
|
-
operate: FilterMatchModeEnum;
|
|
23
|
-
value: string | number;
|
|
24
|
-
};
|
|
25
|
-
export declare const compareOptions: {
|
|
26
|
-
string: {
|
|
27
|
-
label: string;
|
|
28
|
-
value: FilterMatchModeEnum;
|
|
29
|
-
}[];
|
|
30
|
-
number: {
|
|
31
|
-
label: string;
|
|
32
|
-
value: FilterMatchModeEnum;
|
|
33
|
-
}[];
|
|
34
|
-
date: {
|
|
35
|
-
label: string;
|
|
36
|
-
value: FilterMatchModeEnum;
|
|
37
|
-
}[];
|
|
38
|
-
};
|
|
39
|
-
declare class FilterTools {
|
|
40
|
-
filterList: FilterItem[];
|
|
41
|
-
constructor();
|
|
42
|
-
init(): void;
|
|
43
|
-
updateFilterList(filters: FilterItem[]): void;
|
|
44
|
-
currentFilterList: InnerFilterItem[];
|
|
45
|
-
updateCurrentFilterList(filters: InnerFilterItem[]): void;
|
|
46
|
-
get validFilterCount(): number;
|
|
47
|
-
/**
|
|
48
|
-
* 添加筛选项
|
|
49
|
-
* @param item
|
|
50
|
-
*/
|
|
51
|
-
addFilterIem(item: FilterItem): void;
|
|
52
|
-
/**
|
|
53
|
-
* 删除筛选项
|
|
54
|
-
* @param index
|
|
55
|
-
*/
|
|
56
|
-
delFilterItem(index: number): void;
|
|
57
|
-
/**
|
|
58
|
-
* 清空筛选项值
|
|
59
|
-
*/
|
|
60
|
-
clearAllValue(): void;
|
|
61
|
-
/**
|
|
62
|
-
* 清空筛选项
|
|
63
|
-
*/
|
|
64
|
-
clear(): void;
|
|
65
|
-
}
|
|
66
|
-
export default FilterTools;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
-
manager: {
|
|
3
|
-
type: any;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
}, {
|
|
7
|
-
emit: (event: "screen", ...args: any[]) => void;
|
|
8
|
-
filterZoneRef: import("vue").Ref<any>;
|
|
9
|
-
popoverVisible: import("vue").Ref<boolean>;
|
|
10
|
-
filterTools: {
|
|
11
|
-
filterList: {
|
|
12
|
-
key: string;
|
|
13
|
-
label: string;
|
|
14
|
-
type: FilterType;
|
|
15
|
-
operate: import("./constructor").FilterMatchModeEnum;
|
|
16
|
-
value: string | number;
|
|
17
|
-
}[];
|
|
18
|
-
init: () => void;
|
|
19
|
-
updateFilterList: (filters: import("./constructor").FilterItem[]) => void;
|
|
20
|
-
currentFilterList: {
|
|
21
|
-
key: string;
|
|
22
|
-
compareFn: (cellValue: string) => boolean;
|
|
23
|
-
}[];
|
|
24
|
-
updateCurrentFilterList: (filters: InnerFilterItem[]) => void;
|
|
25
|
-
readonly validFilterCount: number;
|
|
26
|
-
addFilterIem: (item: import("./constructor").FilterItem) => void;
|
|
27
|
-
delFilterItem: (index: number) => void;
|
|
28
|
-
clearAllValue: () => void;
|
|
29
|
-
clear: () => void;
|
|
30
|
-
};
|
|
31
|
-
show: () => void;
|
|
32
|
-
hide: () => void;
|
|
33
|
-
handleShowFilter: () => void;
|
|
34
|
-
handleDoScreen: (isClose: boolean) => void;
|
|
35
|
-
readonly Filter: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
36
|
-
FilterZone: import("vue").DefineComponent<{
|
|
37
|
-
manager: {
|
|
38
|
-
type: any;
|
|
39
|
-
required: true;
|
|
40
|
-
};
|
|
41
|
-
filterTools: {
|
|
42
|
-
type: any;
|
|
43
|
-
required: true;
|
|
44
|
-
};
|
|
45
|
-
}, {
|
|
46
|
-
props: any;
|
|
47
|
-
emit: (event: "screen", ...args: any[]) => void;
|
|
48
|
-
filterTools: import("vue").Ref<any>;
|
|
49
|
-
manager: import("vue").Ref<any>;
|
|
50
|
-
BEMSpace: string;
|
|
51
|
-
createBEMName: (name: string) => string;
|
|
52
|
-
filterList: import("vue").ComputedRef<any>;
|
|
53
|
-
filterSourceList: import("vue").ComputedRef<any>;
|
|
54
|
-
filterKeywords: import("vue").Ref<string>;
|
|
55
|
-
inputFilterSourceList: import("vue").ComputedRef<any>;
|
|
56
|
-
handleClickSelect: (index: number) => boolean;
|
|
57
|
-
handleRemoveFilterItem: (index: number) => void;
|
|
58
|
-
handleClear: () => void;
|
|
59
|
-
handleScreen: () => void;
|
|
60
|
-
readonly CirclePlus: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
61
|
-
readonly Select: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
62
|
-
readonly Remove: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
63
|
-
readonly FilterItemTypeEnum: typeof import("./constructor").FilterItemTypeEnum;
|
|
64
|
-
readonly compareOptions: {
|
|
65
|
-
string: {
|
|
66
|
-
label: string;
|
|
67
|
-
value: import("./constructor").FilterMatchModeEnum;
|
|
68
|
-
}[];
|
|
69
|
-
number: {
|
|
70
|
-
label: string;
|
|
71
|
-
value: import("./constructor").FilterMatchModeEnum;
|
|
72
|
-
}[];
|
|
73
|
-
date: {
|
|
74
|
-
label: string;
|
|
75
|
-
value: import("./constructor").FilterMatchModeEnum;
|
|
76
|
-
}[];
|
|
77
|
-
};
|
|
78
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "screen"[], "screen", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
79
|
-
manager: {
|
|
80
|
-
type: any;
|
|
81
|
-
required: true;
|
|
82
|
-
};
|
|
83
|
-
filterTools: {
|
|
84
|
-
type: any;
|
|
85
|
-
required: true;
|
|
86
|
-
};
|
|
87
|
-
}>> & {
|
|
88
|
-
onScreen?: (...args: any[]) => any;
|
|
89
|
-
}, {}, {}>;
|
|
90
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "screen"[], "screen", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
91
|
-
manager: {
|
|
92
|
-
type: any;
|
|
93
|
-
required: true;
|
|
94
|
-
};
|
|
95
|
-
}>> & {
|
|
96
|
-
onScreen?: (...args: any[]) => any;
|
|
97
|
-
}, {}, {}>;
|
|
98
|
-
export default _sfc_main;
|