@wx-design/components 1.2.2 → 1.3.0-alpha.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/es/core/ConfigProvider/index.d.ts +6 -0
- package/es/core/Table/components/FilterTagsDisplay/index.vue.d.ts +59 -0
- package/es/core/Table/components/HeaderRender/index.d.ts +5 -3
- package/es/core/Table/index.d.ts +2 -1
- package/es/index.mjs +21881 -19128
- package/es/locales/lang/bn.d.ts +6 -0
- package/es/locales/lang/en.d.ts +6 -0
- package/es/locales/lang/vi.d.ts +6 -0
- package/es/locales/lang/zh-cn.d.ts +6 -0
- package/es/locales/useLocale.d.ts +6 -0
- package/es/style.css +1 -1
- package/lib/core/ConfigProvider/index.d.ts +6 -0
- package/lib/core/Table/components/FilterTagsDisplay/index.vue.d.ts +59 -0
- package/lib/core/Table/components/HeaderRender/index.d.ts +5 -3
- package/lib/core/Table/index.d.ts +2 -1
- package/lib/index.js +7 -7
- package/lib/locales/lang/bn.d.ts +6 -0
- package/lib/locales/lang/en.d.ts +6 -0
- package/lib/locales/lang/vi.d.ts +6 -0
- package/lib/locales/lang/zh-cn.d.ts +6 -0
- package/lib/locales/useLocale.d.ts +6 -0
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/types/table/table.d.ts +6 -0
|
@@ -20,6 +20,12 @@ export declare const useConfigProvide: () => {
|
|
|
20
20
|
filter: string;
|
|
21
21
|
reset: string;
|
|
22
22
|
};
|
|
23
|
+
filterTags: {
|
|
24
|
+
label: string;
|
|
25
|
+
clearAll: string;
|
|
26
|
+
booleanTrue: string;
|
|
27
|
+
booleanFalse: string;
|
|
28
|
+
};
|
|
23
29
|
loadingText: string;
|
|
24
30
|
emptyText: string;
|
|
25
31
|
total: string;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import type { SabColumnProps } from '../../../../types/table';
|
|
3
|
+
export interface FilterTag {
|
|
4
|
+
field: string;
|
|
5
|
+
label: string;
|
|
6
|
+
value: any;
|
|
7
|
+
displayValue: string;
|
|
8
|
+
column: SabColumnProps;
|
|
9
|
+
type?: 'success' | 'info' | 'warning' | 'danger';
|
|
10
|
+
effect?: 'light' | 'dark' | 'plain';
|
|
11
|
+
}
|
|
12
|
+
interface FilterTagsDisplayProps {
|
|
13
|
+
headerFilterModel: Record<string, any>;
|
|
14
|
+
columns: SabColumnProps[];
|
|
15
|
+
showFilterTags?: boolean;
|
|
16
|
+
customTagRender?: (tag: FilterTag) => VNode;
|
|
17
|
+
customClearAllRender?: () => VNode;
|
|
18
|
+
tagType?: 'success' | 'info' | 'warning' | 'danger';
|
|
19
|
+
tagEffect?: 'light' | 'dark' | 'plain';
|
|
20
|
+
}
|
|
21
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FilterTagsDisplayProps>, {
|
|
22
|
+
showFilterTags: boolean;
|
|
23
|
+
tagType: string;
|
|
24
|
+
tagEffect: string;
|
|
25
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
"clear-filter": (field: string) => void;
|
|
27
|
+
"update:headerFilterModel": (value: Record<string, any>) => void;
|
|
28
|
+
"clear-all-filters": () => void;
|
|
29
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FilterTagsDisplayProps>, {
|
|
30
|
+
showFilterTags: boolean;
|
|
31
|
+
tagType: string;
|
|
32
|
+
tagEffect: string;
|
|
33
|
+
}>>> & {
|
|
34
|
+
"onClear-filter"?: ((field: string) => any) | undefined;
|
|
35
|
+
"onUpdate:headerFilterModel"?: ((value: Record<string, any>) => any) | undefined;
|
|
36
|
+
"onClear-all-filters"?: (() => any) | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
tagType: "success" | "info" | "warning" | "danger";
|
|
39
|
+
showFilterTags: boolean;
|
|
40
|
+
tagEffect: "light" | "dark" | "plain";
|
|
41
|
+
}, {}>;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
44
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
45
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
46
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
47
|
+
} : {
|
|
48
|
+
type: import('vue').PropType<T[K]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
type __VLS_WithDefaults<P, D> = {
|
|
53
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
54
|
+
default: D[K];
|
|
55
|
+
}> : P[K];
|
|
56
|
+
};
|
|
57
|
+
type __VLS_Prettify<T> = {
|
|
58
|
+
[K in keyof T]: T[K];
|
|
59
|
+
} & {};
|
|
@@ -4,14 +4,16 @@ import type { SabColumnProps } from "../../../../types/table";
|
|
|
4
4
|
declare const HeaderRender: import("vue").DefineComponent<{
|
|
5
5
|
column: PropType<SabColumnProps>;
|
|
6
6
|
headerFilterModel: ObjectConstructor;
|
|
7
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
7
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:headerFilterModel"[], "update:headerFilterModel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
8
|
column: PropType<SabColumnProps>;
|
|
9
9
|
headerFilterModel: ObjectConstructor;
|
|
10
|
-
}
|
|
10
|
+
}>> & {
|
|
11
|
+
"onUpdate:headerFilterModel"?: ((...args: any[]) => any) | undefined;
|
|
12
|
+
}, {}, {}>;
|
|
11
13
|
export default HeaderRender;
|
|
12
14
|
export declare const useHedaerFilerConfig: (params: {
|
|
13
15
|
column: SabColumnProps;
|
|
14
|
-
headerFilterModel: any
|
|
16
|
+
headerFilterModel: Ref<Record<string, any>>;
|
|
15
17
|
xTable: Ref<VxeTableInstance>;
|
|
16
18
|
onFilter(params: VxeTableDefines.FilterCheckedParams): any;
|
|
17
19
|
}) => {
|