@fmdevui/fm-dev 1.0.76 → 1.0.77
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/component.mjs +7 -2
- package/es/core/ui/components/index.d.ts +807 -2
- package/es/core/ui/components/querycondition/index.vue.d.ts +88 -0
- package/es/core/ui/components/querycondition/moreChoose.vue.d.ts +30 -0
- package/es/core/ui/components/querycondition/renderComp.vue.d.ts +9 -0
- package/es/core/ui/components/querycondition/style/css.d.ts +1 -0
- package/es/core/ui/components/querycondition/style/index.d.ts +1 -0
- package/es/core/ui/components/querycondition/type.d.ts +21 -0
- package/es/core/ui/components/querycondition/useComputed.d.ts +28 -0
- package/es/core/ui/components/selecttable/ClickOutside.d.ts +3 -0
- package/es/core/ui/components/selecttable/index.vue.d.ts +190 -0
- package/es/core/ui/components/selecttable/renderCol.vue.d.ts +21 -0
- package/es/core/ui/components/selecttable/style/css.d.ts +1 -0
- package/es/core/ui/components/selecttable/style/index.d.ts +1 -0
- package/es/core/ui/components/selecttable/type.d.ts +56 -0
- package/es/core/ui/components/selecttable/useVirtualized.d.ts +11 -0
- package/es/index.mjs +1 -1
- package/es/{version.css → make-installer.css} +1 -2
- package/es/packages/core/index.mjs +1 -1
- package/es/packages/core/ui/components/index.mjs +18 -1
- package/es/packages/core/ui/components/querycondition/index.vue.mjs +5 -0
- package/es/packages/core/ui/components/querycondition/index.vue2.mjs +521 -0
- package/es/packages/core/ui/components/querycondition/moreChoose.vue.mjs +5 -0
- package/es/packages/core/ui/components/querycondition/moreChoose.vue2.mjs +237 -0
- package/es/packages/core/ui/components/querycondition/renderComp.vue.mjs +5 -0
- package/es/packages/core/ui/components/querycondition/renderComp.vue2.mjs +23 -0
- package/es/packages/core/ui/components/querycondition/style/css.mjs +1 -0
- package/es/packages/core/ui/components/querycondition/style/index.mjs +1 -0
- package/es/packages/core/ui/components/querycondition/type.mjs +1 -0
- package/es/packages/core/ui/components/querycondition/useComputed.mjs +104 -0
- package/es/packages/core/ui/components/selecttable/ClickOutside.mjs +69 -0
- package/es/packages/core/ui/components/selecttable/index.vue.mjs +5 -0
- package/es/packages/core/ui/components/selecttable/index.vue2.mjs +816 -0
- package/es/packages/core/ui/components/selecttable/renderCol.vue.mjs +5 -0
- package/es/packages/core/ui/components/selecttable/renderCol.vue2.mjs +28 -0
- package/es/packages/core/ui/components/selecttable/style/css.mjs +1 -0
- package/es/packages/core/ui/components/selecttable/style/index.mjs +1 -0
- package/es/packages/core/ui/components/selecttable/type.mjs +1 -0
- package/es/packages/core/ui/components/selecttable/useVirtualized.mjs +67 -0
- package/index.js +1897 -52
- package/index.min.js +30 -29
- package/index.min.mjs +27 -26
- package/index.mjs +1894 -54
- package/lib/component.js +6 -1
- package/lib/core/ui/components/index.d.ts +807 -2
- package/lib/core/ui/components/querycondition/index.vue.d.ts +88 -0
- package/lib/core/ui/components/querycondition/moreChoose.vue.d.ts +30 -0
- package/lib/core/ui/components/querycondition/renderComp.vue.d.ts +9 -0
- package/lib/core/ui/components/querycondition/style/css.d.ts +1 -0
- package/lib/core/ui/components/querycondition/style/index.d.ts +1 -0
- package/lib/core/ui/components/querycondition/type.d.ts +21 -0
- package/lib/core/ui/components/querycondition/useComputed.d.ts +28 -0
- package/lib/core/ui/components/selecttable/ClickOutside.d.ts +3 -0
- package/lib/core/ui/components/selecttable/index.vue.d.ts +190 -0
- package/lib/core/ui/components/selecttable/renderCol.vue.d.ts +21 -0
- package/lib/core/ui/components/selecttable/style/css.d.ts +1 -0
- package/lib/core/ui/components/selecttable/style/index.d.ts +1 -0
- package/lib/core/ui/components/selecttable/type.d.ts +56 -0
- package/lib/core/ui/components/selecttable/useVirtualized.d.ts +11 -0
- package/lib/index.js +5 -0
- package/lib/packages/core/index.js +5 -0
- package/lib/packages/core/ui/components/index.js +22 -0
- package/lib/packages/core/ui/components/querycondition/index.vue.js +9 -0
- package/lib/packages/core/ui/components/querycondition/index.vue2.js +525 -0
- package/lib/packages/core/ui/components/querycondition/moreChoose.vue.js +9 -0
- package/lib/packages/core/ui/components/querycondition/moreChoose.vue2.js +241 -0
- package/lib/packages/core/ui/components/querycondition/renderComp.vue.js +9 -0
- package/lib/packages/core/ui/components/querycondition/renderComp.vue2.js +27 -0
- package/lib/packages/core/ui/components/querycondition/style/css.js +4 -0
- package/lib/packages/core/ui/components/querycondition/style/index.js +4 -0
- package/lib/packages/core/ui/components/querycondition/type.js +2 -0
- package/lib/packages/core/ui/components/querycondition/useComputed.js +106 -0
- package/lib/packages/core/ui/components/selecttable/ClickOutside.js +73 -0
- package/lib/packages/core/ui/components/selecttable/index.vue.js +9 -0
- package/lib/packages/core/ui/components/selecttable/index.vue2.js +820 -0
- package/lib/packages/core/ui/components/selecttable/renderCol.vue.js +9 -0
- package/lib/packages/core/ui/components/selecttable/renderCol.vue2.js +32 -0
- package/lib/packages/core/ui/components/selecttable/style/css.js +4 -0
- package/lib/packages/core/ui/components/selecttable/style/index.js +4 -0
- package/lib/packages/core/ui/components/selecttable/type.js +2 -0
- package/lib/packages/core/ui/components/selecttable/useVirtualized.js +69 -0
- package/package.json +1 -1
- package/theme-chalk/src/query-condition.scss +118 -0
- package/theme-chalk/src/select-table.scss +71 -0
- package/theme-chalk/t-query-condition.css +1 -0
- package/theme-chalk/t-select-table.css +1 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { TQueryConditionProps } from './type';
|
|
2
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare function __VLS_template(): any;
|
|
4
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
5
|
+
declare const __VLS_component: DefineComponent<TQueryConditionProps, {
|
|
6
|
+
queryState: {
|
|
7
|
+
form: any;
|
|
8
|
+
};
|
|
9
|
+
props: Readonly<{}> & {
|
|
10
|
+
readonly opts: Record<string, any>;
|
|
11
|
+
readonly labelWidth: string;
|
|
12
|
+
readonly btnCheckBind: Record<string, any>;
|
|
13
|
+
readonly btnResetBind: Record<string, any>;
|
|
14
|
+
readonly loading: boolean;
|
|
15
|
+
readonly reset: boolean;
|
|
16
|
+
readonly boolEnter: boolean;
|
|
17
|
+
readonly isShowOpen: boolean;
|
|
18
|
+
readonly isExpansion: boolean;
|
|
19
|
+
readonly maxVisibleRows: number;
|
|
20
|
+
readonly packUpTxt: string;
|
|
21
|
+
readonly unfoldTxt: string;
|
|
22
|
+
readonly isFooter: boolean;
|
|
23
|
+
readonly configChangedReset: boolean;
|
|
24
|
+
readonly isShowWidthSize: boolean;
|
|
25
|
+
readonly widthSize: number;
|
|
26
|
+
readonly isDropDownSelectMore: boolean;
|
|
27
|
+
readonly moreCheckList: any[];
|
|
28
|
+
readonly popoverAttrs: Record<string, any>;
|
|
29
|
+
} & {
|
|
30
|
+
readonly reset: boolean;
|
|
31
|
+
readonly loading: boolean;
|
|
32
|
+
readonly boolEnter: boolean;
|
|
33
|
+
readonly isShowOpen: boolean;
|
|
34
|
+
readonly isExpansion: boolean;
|
|
35
|
+
readonly isFooter: boolean;
|
|
36
|
+
readonly configChangedReset: boolean;
|
|
37
|
+
readonly isShowWidthSize: boolean;
|
|
38
|
+
readonly isDropDownSelectMore: boolean;
|
|
39
|
+
};
|
|
40
|
+
colLength: Ref<number, number>;
|
|
41
|
+
resetData: () => void;
|
|
42
|
+
resetHandle: () => void;
|
|
43
|
+
checkHandle: (flagText?: any) => void;
|
|
44
|
+
handleEvent: ({ isChange, type, val }: {
|
|
45
|
+
isChange?: boolean;
|
|
46
|
+
type: string;
|
|
47
|
+
val: any;
|
|
48
|
+
}, dataIndex?: string) => void;
|
|
49
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
50
|
+
reset: (...args: any[]) => void;
|
|
51
|
+
submit: (...args: any[]) => void;
|
|
52
|
+
getCheckList: (...args: any[]) => void;
|
|
53
|
+
handleEvent: (...args: any[]) => void;
|
|
54
|
+
getRefs: (...args: any[]) => void;
|
|
55
|
+
}, string, PublicProps, Readonly<TQueryConditionProps> & Readonly<{
|
|
56
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
onGetCheckList?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
onHandleEvent?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
onGetRefs?: ((...args: any[]) => any) | undefined;
|
|
61
|
+
}>, {
|
|
62
|
+
reset: boolean;
|
|
63
|
+
loading: boolean;
|
|
64
|
+
moreCheckList: any[];
|
|
65
|
+
opts: Record<string, any>;
|
|
66
|
+
labelWidth: string;
|
|
67
|
+
btnCheckBind: Record<string, any>;
|
|
68
|
+
btnResetBind: Record<string, any>;
|
|
69
|
+
boolEnter: boolean;
|
|
70
|
+
isShowOpen: boolean;
|
|
71
|
+
isExpansion: boolean;
|
|
72
|
+
maxVisibleRows: number;
|
|
73
|
+
packUpTxt: string;
|
|
74
|
+
unfoldTxt: string;
|
|
75
|
+
isFooter: boolean;
|
|
76
|
+
configChangedReset: boolean;
|
|
77
|
+
isShowWidthSize: boolean;
|
|
78
|
+
widthSize: number;
|
|
79
|
+
isDropDownSelectMore: boolean;
|
|
80
|
+
popoverAttrs: Record<string, any>;
|
|
81
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
82
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
83
|
+
export default _default;
|
|
84
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
85
|
+
new (): {
|
|
86
|
+
$slots: S;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
moreCheckList: {
|
|
4
|
+
type: ArrayConstructor;
|
|
5
|
+
default: () => never[];
|
|
6
|
+
};
|
|
7
|
+
popoverAttrsBind: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default: () => {};
|
|
10
|
+
};
|
|
11
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
12
|
+
getCheckList: (...args: any[]) => void;
|
|
13
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
14
|
+
moreCheckList: {
|
|
15
|
+
type: ArrayConstructor;
|
|
16
|
+
default: () => never[];
|
|
17
|
+
};
|
|
18
|
+
popoverAttrsBind: {
|
|
19
|
+
type: ObjectConstructor;
|
|
20
|
+
default: () => {};
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{
|
|
23
|
+
onGetCheckList?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
moreCheckList: unknown[];
|
|
26
|
+
popoverAttrsBind: Record<string, any>;
|
|
27
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
28
|
+
popover: unknown;
|
|
29
|
+
}, any>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
render: FunctionConstructor;
|
|
4
|
+
form: ObjectConstructor;
|
|
5
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
6
|
+
render: FunctionConstructor;
|
|
7
|
+
form: ObjectConstructor;
|
|
8
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "fm-dev/theme-chalk/query-condition.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "fm-dev/theme-chalk/src/query-condition.scss";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface TQueryConditionProps {
|
|
2
|
+
opts?: Record<string, any>;
|
|
3
|
+
labelWidth?: string;
|
|
4
|
+
btnCheckBind?: Record<string, any>;
|
|
5
|
+
btnResetBind?: Record<string, any>;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
reset?: boolean;
|
|
8
|
+
boolEnter?: boolean;
|
|
9
|
+
isShowOpen?: boolean;
|
|
10
|
+
isExpansion?: boolean;
|
|
11
|
+
maxVisibleRows?: number;
|
|
12
|
+
packUpTxt?: string;
|
|
13
|
+
unfoldTxt?: string;
|
|
14
|
+
isFooter?: boolean;
|
|
15
|
+
configChangedReset?: boolean;
|
|
16
|
+
isShowWidthSize?: boolean;
|
|
17
|
+
widthSize?: number;
|
|
18
|
+
isDropDownSelectMore?: boolean;
|
|
19
|
+
moreCheckList?: any[];
|
|
20
|
+
popoverAttrs?: Record<string, any>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
export declare function useComputed(): {
|
|
3
|
+
compChildName: ComputedRef<(opt: any) => "el-checkbox" | "el-option" | "el-radio" | undefined>;
|
|
4
|
+
selectListType: ComputedRef<(opt: any) => any>;
|
|
5
|
+
compChildLabel: ComputedRef<(opt: {
|
|
6
|
+
type: any;
|
|
7
|
+
arrLabel: any;
|
|
8
|
+
}, value: {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
value: any;
|
|
11
|
+
}) => any>;
|
|
12
|
+
compChildValue: ComputedRef<(opt: {
|
|
13
|
+
type: any;
|
|
14
|
+
arrKey: any;
|
|
15
|
+
}, value: {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
value: any;
|
|
18
|
+
}, key: any) => any>;
|
|
19
|
+
compChildShowLabel: ComputedRef<(opt: {
|
|
20
|
+
type: any;
|
|
21
|
+
arrLabel: any;
|
|
22
|
+
}, value: {
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
label: any;
|
|
25
|
+
}) => any>;
|
|
26
|
+
getPlaceholder: (row: any) => any;
|
|
27
|
+
getColLength: () => number;
|
|
28
|
+
};
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { TSelectTableProps } from './type';
|
|
2
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
export type Emits = {
|
|
4
|
+
(event: "page-change", val: any): void;
|
|
5
|
+
(event: "selectionChange", val: any[], ids: any[]): void;
|
|
6
|
+
(event: "radioChange", row: any, value: any): void;
|
|
7
|
+
(event: "update:inputValue", val: string): void;
|
|
8
|
+
(event: "input-focus"): void;
|
|
9
|
+
(event: "input-blur"): void;
|
|
10
|
+
(event: "input-clear"): void;
|
|
11
|
+
(event: "input-click"): void;
|
|
12
|
+
};
|
|
13
|
+
declare function __VLS_template(): any;
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: DefineComponent<TSelectTableProps, {
|
|
16
|
+
focus: () => void;
|
|
17
|
+
blur: () => void;
|
|
18
|
+
clear: () => void;
|
|
19
|
+
props: Readonly<{
|
|
20
|
+
value: any;
|
|
21
|
+
}> & {
|
|
22
|
+
readonly modelValue: any;
|
|
23
|
+
readonly inputValue: any;
|
|
24
|
+
readonly defaultSelectVal: any[];
|
|
25
|
+
readonly radioSelectValLabel: string;
|
|
26
|
+
readonly table: {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
data: any[];
|
|
29
|
+
currentPage: number;
|
|
30
|
+
pageSize: number;
|
|
31
|
+
total: number;
|
|
32
|
+
};
|
|
33
|
+
readonly keywords: {
|
|
34
|
+
value: any;
|
|
35
|
+
label: string;
|
|
36
|
+
};
|
|
37
|
+
readonly columns: any[];
|
|
38
|
+
readonly multiple: boolean;
|
|
39
|
+
readonly filterable: boolean;
|
|
40
|
+
readonly remote: boolean;
|
|
41
|
+
readonly remoteMethod: Function | undefined;
|
|
42
|
+
readonly filterMethod: Function | undefined;
|
|
43
|
+
readonly isShowInput: boolean;
|
|
44
|
+
readonly inputAttr: Record<string, any>;
|
|
45
|
+
readonly inputWidth: number;
|
|
46
|
+
readonly selectWidth: number;
|
|
47
|
+
readonly tableWidth: number;
|
|
48
|
+
readonly isShowQuery: boolean;
|
|
49
|
+
readonly isShowBlurBtn: boolean;
|
|
50
|
+
readonly btnBind: Record<string, any>;
|
|
51
|
+
readonly align: "left" | "right" | "center";
|
|
52
|
+
readonly reserveSelection: boolean;
|
|
53
|
+
readonly selectable: Function | undefined;
|
|
54
|
+
readonly multipleFixed: string | boolean;
|
|
55
|
+
readonly radioTxt: string;
|
|
56
|
+
readonly radioFixed: string | boolean;
|
|
57
|
+
readonly tableSize: "" | "default" | "small" | "large";
|
|
58
|
+
readonly border: boolean;
|
|
59
|
+
readonly isShowFirstColumn: boolean;
|
|
60
|
+
readonly useVirtual: boolean;
|
|
61
|
+
readonly virtualShowSize: number;
|
|
62
|
+
readonly isShowPagination: boolean;
|
|
63
|
+
readonly paginationSize: "" | "default" | "small" | "large";
|
|
64
|
+
readonly selfExpanded: boolean;
|
|
65
|
+
readonly isClearQuery: boolean;
|
|
66
|
+
readonly isRadioEchoLabel: boolean;
|
|
67
|
+
readonly defaultValIsOpenRadioChange: boolean;
|
|
68
|
+
readonly radioSameIsCancel: boolean;
|
|
69
|
+
readonly rowClickRadio: boolean;
|
|
70
|
+
readonly isKeyup: boolean;
|
|
71
|
+
readonly isExpanded: boolean;
|
|
72
|
+
readonly multipleDisableDelete: boolean;
|
|
73
|
+
readonly tableLoading: boolean;
|
|
74
|
+
readonly loadingTxt: string;
|
|
75
|
+
} & {
|
|
76
|
+
readonly modelValue: boolean | undefined;
|
|
77
|
+
readonly value: boolean;
|
|
78
|
+
readonly border: boolean;
|
|
79
|
+
readonly inputValue: boolean | undefined;
|
|
80
|
+
readonly multiple: boolean;
|
|
81
|
+
readonly filterable: boolean;
|
|
82
|
+
readonly remote: boolean;
|
|
83
|
+
readonly isShowInput: boolean;
|
|
84
|
+
readonly isShowQuery: boolean;
|
|
85
|
+
readonly isShowBlurBtn: boolean;
|
|
86
|
+
readonly reserveSelection: boolean;
|
|
87
|
+
readonly isShowFirstColumn: boolean;
|
|
88
|
+
readonly useVirtual: boolean;
|
|
89
|
+
readonly isShowPagination: boolean;
|
|
90
|
+
readonly selfExpanded: boolean;
|
|
91
|
+
readonly isClearQuery: boolean;
|
|
92
|
+
readonly isRadioEchoLabel: boolean;
|
|
93
|
+
readonly defaultValIsOpenRadioChange: boolean;
|
|
94
|
+
readonly radioSameIsCancel: boolean;
|
|
95
|
+
readonly rowClickRadio: boolean;
|
|
96
|
+
readonly isKeyup: boolean;
|
|
97
|
+
readonly isExpanded: boolean;
|
|
98
|
+
readonly multipleDisableDelete: boolean;
|
|
99
|
+
readonly tableLoading: boolean;
|
|
100
|
+
};
|
|
101
|
+
state: {
|
|
102
|
+
defaultSelectValue: any[];
|
|
103
|
+
tableData: any[];
|
|
104
|
+
defaultValue: any;
|
|
105
|
+
ids: any[];
|
|
106
|
+
tabularMap: any;
|
|
107
|
+
};
|
|
108
|
+
tQueryConditionRef: Ref<any, any>;
|
|
109
|
+
selectRef: Ref<any, any>;
|
|
110
|
+
selectTable: Ref<any, any>;
|
|
111
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
112
|
+
"page-change": (val: any) => any;
|
|
113
|
+
selectionChange: (val: any[], ids: any[]) => any;
|
|
114
|
+
radioChange: (row: any, value: any) => any;
|
|
115
|
+
"update:inputValue": (val: string) => any;
|
|
116
|
+
"input-focus": () => any;
|
|
117
|
+
"input-blur": () => any;
|
|
118
|
+
"input-clear": () => any;
|
|
119
|
+
"input-click": () => any;
|
|
120
|
+
}, string, PublicProps, Readonly<TSelectTableProps> & Readonly<{
|
|
121
|
+
"onPage-change"?: ((val: any) => any) | undefined;
|
|
122
|
+
onSelectionChange?: ((val: any[], ids: any[]) => any) | undefined;
|
|
123
|
+
onRadioChange?: ((row: any, value: any) => any) | undefined;
|
|
124
|
+
"onUpdate:inputValue"?: ((val: string) => any) | undefined;
|
|
125
|
+
"onInput-focus"?: (() => any) | undefined;
|
|
126
|
+
"onInput-blur"?: (() => any) | undefined;
|
|
127
|
+
"onInput-clear"?: (() => any) | undefined;
|
|
128
|
+
"onInput-click"?: (() => any) | undefined;
|
|
129
|
+
}>, {
|
|
130
|
+
table: {
|
|
131
|
+
data: any[];
|
|
132
|
+
currentPage: number;
|
|
133
|
+
pageSize: number;
|
|
134
|
+
total: number;
|
|
135
|
+
[key: string]: any;
|
|
136
|
+
};
|
|
137
|
+
modelValue: any;
|
|
138
|
+
inputWidth: number;
|
|
139
|
+
border: boolean;
|
|
140
|
+
inputValue: any;
|
|
141
|
+
defaultSelectVal: any[];
|
|
142
|
+
radioSelectValLabel: string;
|
|
143
|
+
keywords: {
|
|
144
|
+
value: any;
|
|
145
|
+
label: string;
|
|
146
|
+
};
|
|
147
|
+
columns: any[];
|
|
148
|
+
multiple: boolean;
|
|
149
|
+
filterable: boolean;
|
|
150
|
+
remote: boolean;
|
|
151
|
+
remoteMethod: Function;
|
|
152
|
+
filterMethod: Function;
|
|
153
|
+
isShowInput: boolean;
|
|
154
|
+
inputAttr: Record<string, any>;
|
|
155
|
+
selectWidth: number;
|
|
156
|
+
tableWidth: number;
|
|
157
|
+
isShowQuery: boolean;
|
|
158
|
+
isShowBlurBtn: boolean;
|
|
159
|
+
btnBind: Record<string, any>;
|
|
160
|
+
align: "left" | "center" | "right";
|
|
161
|
+
reserveSelection: boolean;
|
|
162
|
+
selectable: Function;
|
|
163
|
+
multipleFixed: string | boolean;
|
|
164
|
+
radioTxt: string;
|
|
165
|
+
radioFixed: string | boolean;
|
|
166
|
+
tableSize: "" | "large" | "default" | "small";
|
|
167
|
+
isShowFirstColumn: boolean;
|
|
168
|
+
useVirtual: boolean;
|
|
169
|
+
virtualShowSize: number;
|
|
170
|
+
isShowPagination: boolean;
|
|
171
|
+
paginationSize: "" | "large" | "default" | "small";
|
|
172
|
+
selfExpanded: boolean;
|
|
173
|
+
isClearQuery: boolean;
|
|
174
|
+
isRadioEchoLabel: boolean;
|
|
175
|
+
defaultValIsOpenRadioChange: boolean;
|
|
176
|
+
radioSameIsCancel: boolean;
|
|
177
|
+
rowClickRadio: boolean;
|
|
178
|
+
isKeyup: boolean;
|
|
179
|
+
isExpanded: boolean;
|
|
180
|
+
multipleDisableDelete: boolean;
|
|
181
|
+
tableLoading: boolean;
|
|
182
|
+
loadingTxt: string;
|
|
183
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, any, any>;
|
|
184
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
185
|
+
export default _default;
|
|
186
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
187
|
+
new (): {
|
|
188
|
+
$slots: S;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
row: ObjectConstructor;
|
|
4
|
+
render: FunctionConstructor;
|
|
5
|
+
index: NumberConstructor;
|
|
6
|
+
column: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: null;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
11
|
+
row: ObjectConstructor;
|
|
12
|
+
render: FunctionConstructor;
|
|
13
|
+
index: NumberConstructor;
|
|
14
|
+
column: {
|
|
15
|
+
type: ObjectConstructor;
|
|
16
|
+
default: null;
|
|
17
|
+
};
|
|
18
|
+
}>> & Readonly<{}>, {
|
|
19
|
+
column: Record<string, any>;
|
|
20
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "fm-dev/theme-chalk/t-select-table.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "fm-dev/theme-chalk/src/select-table.scss";
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export interface TSelectTableProps {
|
|
2
|
+
modelValue?: any;
|
|
3
|
+
inputValue?: any;
|
|
4
|
+
defaultSelectVal?: any[];
|
|
5
|
+
radioSelectValLabel?: string;
|
|
6
|
+
table: {
|
|
7
|
+
data: any[];
|
|
8
|
+
currentPage: number;
|
|
9
|
+
pageSize: number;
|
|
10
|
+
total: number;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
keywords?: {
|
|
14
|
+
value: any;
|
|
15
|
+
label: string;
|
|
16
|
+
};
|
|
17
|
+
value?: any;
|
|
18
|
+
columns: any[];
|
|
19
|
+
multiple?: boolean;
|
|
20
|
+
filterable?: boolean;
|
|
21
|
+
remote?: boolean;
|
|
22
|
+
remoteMethod?: Function;
|
|
23
|
+
filterMethod?: Function;
|
|
24
|
+
isShowInput?: boolean;
|
|
25
|
+
inputAttr?: Record<string, any>;
|
|
26
|
+
inputWidth?: number;
|
|
27
|
+
selectWidth?: number;
|
|
28
|
+
tableWidth?: number;
|
|
29
|
+
isShowQuery?: boolean;
|
|
30
|
+
isShowBlurBtn?: boolean;
|
|
31
|
+
btnBind?: Record<string, any>;
|
|
32
|
+
align?: "left" | "center" | "right";
|
|
33
|
+
reserveSelection?: boolean;
|
|
34
|
+
selectable?: Function;
|
|
35
|
+
multipleFixed?: string | boolean;
|
|
36
|
+
radioTxt?: string;
|
|
37
|
+
radioFixed?: string | boolean;
|
|
38
|
+
tableSize?: "" | "large" | "default" | "small";
|
|
39
|
+
border?: boolean;
|
|
40
|
+
isShowFirstColumn?: boolean;
|
|
41
|
+
useVirtual?: boolean;
|
|
42
|
+
virtualShowSize?: number;
|
|
43
|
+
isShowPagination?: boolean;
|
|
44
|
+
paginationSize?: "" | "large" | "default" | "small";
|
|
45
|
+
selfExpanded?: boolean;
|
|
46
|
+
isClearQuery?: boolean;
|
|
47
|
+
isRadioEchoLabel?: boolean;
|
|
48
|
+
defaultValIsOpenRadioChange?: boolean;
|
|
49
|
+
radioSameIsCancel?: boolean;
|
|
50
|
+
rowClickRadio?: boolean;
|
|
51
|
+
isKeyup?: boolean;
|
|
52
|
+
isExpanded?: boolean;
|
|
53
|
+
multipleDisableDelete?: boolean;
|
|
54
|
+
tableLoading?: boolean;
|
|
55
|
+
loadingTxt?: string;
|
|
56
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export declare function useVirtualized(): {
|
|
3
|
+
scrollContainerEl: Ref<any, any>;
|
|
4
|
+
updateRenderedItemCache: (index: number) => void;
|
|
5
|
+
updateOffset: (offset: number) => void;
|
|
6
|
+
getDom: (props: {
|
|
7
|
+
multiple: boolean;
|
|
8
|
+
}) => void;
|
|
9
|
+
getItemHeightFromCache: (index: number | string) => any;
|
|
10
|
+
saveDATA: Ref<any[], any[]>;
|
|
11
|
+
};
|
package/lib/index.js
CHANGED
|
@@ -51,7 +51,12 @@ exports.setIntroduction = setIconfont.default;
|
|
|
51
51
|
exports.version = version.version;
|
|
52
52
|
exports.FmAutocomplete = index$1.FmAutocomplete;
|
|
53
53
|
exports.FmDragImg = index$1.FmDragImg;
|
|
54
|
+
exports.FmMoreChoose = index$1.FmMoreChoose;
|
|
54
55
|
exports.FmNoticeBar = index$1.FmNoticeBar;
|
|
56
|
+
exports.FmQueryCondition = index$1.FmQueryCondition;
|
|
57
|
+
exports.FmRenderCol = index$1.FmRenderCol;
|
|
58
|
+
exports.FmRenderComp = index$1.FmRenderComp;
|
|
59
|
+
exports.FmSelectTable = index$1.FmSelectTable;
|
|
55
60
|
exports.FmTransfer = index$1.FmTransfer;
|
|
56
61
|
exports.FmTree = index$1.FmTree;
|
|
57
62
|
exports.Fmdatepicker = index$1.Fmdatepicker;
|
|
@@ -43,7 +43,12 @@ var index$f = require('./utils/const/index.js');
|
|
|
43
43
|
|
|
44
44
|
exports.FmAutocomplete = index.FmAutocomplete;
|
|
45
45
|
exports.FmDragImg = index.FmDragImg;
|
|
46
|
+
exports.FmMoreChoose = index.FmMoreChoose;
|
|
46
47
|
exports.FmNoticeBar = index.FmNoticeBar;
|
|
48
|
+
exports.FmQueryCondition = index.FmQueryCondition;
|
|
49
|
+
exports.FmRenderCol = index.FmRenderCol;
|
|
50
|
+
exports.FmRenderComp = index.FmRenderComp;
|
|
51
|
+
exports.FmSelectTable = index.FmSelectTable;
|
|
47
52
|
exports.FmTransfer = index.FmTransfer;
|
|
48
53
|
exports.FmTree = index.FmTree;
|
|
49
54
|
exports.Fmdatepicker = index.Fmdatepicker;
|
|
@@ -8,6 +8,13 @@ require('./fmautocomplete/index.vue.js');
|
|
|
8
8
|
require('./inputdropdown/index.vue.js');
|
|
9
9
|
require('./fmtree/index.vue.js');
|
|
10
10
|
require('./datepicker/index.vue.js');
|
|
11
|
+
require('./querycondition/index.vue.js');
|
|
12
|
+
require('./querycondition/moreChoose.vue.js');
|
|
13
|
+
require('./querycondition/renderComp.vue.js');
|
|
14
|
+
require('./selecttable/index.vue.js');
|
|
15
|
+
require('./selecttable/renderCol.vue.js');
|
|
16
|
+
require('./selecttable/type.js');
|
|
17
|
+
require('./selecttable/ClickOutside.js');
|
|
11
18
|
var index = require('./svgIcon/index.js');
|
|
12
19
|
var index_vue_vue_type_script_setup_true_lang = require('./transfer/index.vue2.js');
|
|
13
20
|
var index_vue_vue_type_script_setup_true_lang$1 = require('./noticeBar/index.vue2.js');
|
|
@@ -16,6 +23,11 @@ var index_vue_vue_type_script_setup_true_lang$3 = require('./fmautocomplete/inde
|
|
|
16
23
|
var index_vue_vue_type_script_setup_true_lang$4 = require('./inputdropdown/index.vue2.js');
|
|
17
24
|
var index_vue_vue_type_script_setup_true_lang$5 = require('./datepicker/index.vue2.js');
|
|
18
25
|
var index_vue_vue_type_script_setup_true_lang$6 = require('./fmtree/index.vue2.js');
|
|
26
|
+
var index_vue_vue_type_script_setup_true_lang$7 = require('./querycondition/index.vue2.js');
|
|
27
|
+
var moreChoose_vue_vue_type_script_setup_true_lang = require('./querycondition/moreChoose.vue2.js');
|
|
28
|
+
var renderComp_vue_vue_type_script_setup_true_lang = require('./querycondition/renderComp.vue2.js');
|
|
29
|
+
var index_vue_vue_type_script_setup_true_lang$8 = require('./selecttable/index.vue2.js');
|
|
30
|
+
var renderCol_vue_vue_type_script_setup_true_lang = require('./selecttable/renderCol.vue2.js');
|
|
19
31
|
|
|
20
32
|
const FmTransfer = index_vue_vue_type_script_setup_true_lang.default;
|
|
21
33
|
const FmNoticeBar = index_vue_vue_type_script_setup_true_lang$1.default;
|
|
@@ -25,11 +37,21 @@ const FmAutocomplete = index_vue_vue_type_script_setup_true_lang$3.default;
|
|
|
25
37
|
const Fminputdropdown = index_vue_vue_type_script_setup_true_lang$4.default;
|
|
26
38
|
const Fmdatepicker = index_vue_vue_type_script_setup_true_lang$5.default;
|
|
27
39
|
const FmTree = index_vue_vue_type_script_setup_true_lang$6.default;
|
|
40
|
+
const FmQueryCondition = index_vue_vue_type_script_setup_true_lang$7.default;
|
|
41
|
+
const FmMoreChoose = moreChoose_vue_vue_type_script_setup_true_lang.default;
|
|
42
|
+
const FmRenderComp = renderComp_vue_vue_type_script_setup_true_lang.default;
|
|
43
|
+
const FmSelectTable = index_vue_vue_type_script_setup_true_lang$8.default;
|
|
44
|
+
const FmRenderCol = renderCol_vue_vue_type_script_setup_true_lang.default;
|
|
28
45
|
|
|
29
46
|
exports.elSvg = index.elSvg;
|
|
30
47
|
exports.FmAutocomplete = FmAutocomplete;
|
|
31
48
|
exports.FmDragImg = FmDragImg;
|
|
49
|
+
exports.FmMoreChoose = FmMoreChoose;
|
|
32
50
|
exports.FmNoticeBar = FmNoticeBar;
|
|
51
|
+
exports.FmQueryCondition = FmQueryCondition;
|
|
52
|
+
exports.FmRenderCol = FmRenderCol;
|
|
53
|
+
exports.FmRenderComp = FmRenderComp;
|
|
54
|
+
exports.FmSelectTable = FmSelectTable;
|
|
33
55
|
exports.FmTransfer = FmTransfer;
|
|
34
56
|
exports.FmTree = FmTree;
|
|
35
57
|
exports.Fmdatepicker = Fmdatepicker;
|