@aoao-y33/ui 0.0.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/README.md +811 -0
- package/dist/button/components/button/button.vue.d.ts +22 -0
- package/dist/button/components/button/button.vue.d.ts.map +1 -0
- package/dist/button/components/button/index.d.ts +3 -0
- package/dist/button/components/button/index.d.ts.map +1 -0
- package/dist/button/components/button/props.d.ts +21 -0
- package/dist/button/components/button/props.d.ts.map +1 -0
- package/dist/button/components/fields/index.d.ts +2 -0
- package/dist/button/components/fields/index.d.ts.map +1 -0
- package/dist/button/hoc/index.d.ts +2 -0
- package/dist/button/hoc/index.d.ts.map +1 -0
- package/dist/button/hoc/useButton.d.ts +19 -0
- package/dist/button/hoc/useButton.d.ts.map +1 -0
- package/dist/button/index.d.ts +5 -0
- package/dist/button/index.d.ts.map +1 -0
- package/dist/button/utils/index.d.ts +4 -0
- package/dist/button/utils/index.d.ts.map +1 -0
- package/dist/common/index.d.ts +2 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/utils/iconUtils.d.ts +2 -0
- package/dist/common/utils/iconUtils.d.ts.map +1 -0
- package/dist/common/utils/index.d.ts +2 -0
- package/dist/common/utils/index.d.ts.map +1 -0
- package/dist/form/components/fields/index.d.ts +2 -0
- package/dist/form/components/fields/index.d.ts.map +1 -0
- package/dist/form/components/form/form.vue.d.ts +42 -0
- package/dist/form/components/form/form.vue.d.ts.map +1 -0
- package/dist/form/components/form/index.d.ts +90 -0
- package/dist/form/components/form/index.d.ts.map +1 -0
- package/dist/form/components/form/props.d.ts +21 -0
- package/dist/form/components/form/props.d.ts.map +1 -0
- package/dist/form/components/form-item/form-item.vue.d.ts +19 -0
- package/dist/form/components/form-item/form-item.vue.d.ts.map +1 -0
- package/dist/form/components/form-item/index.d.ts +31 -0
- package/dist/form/components/form-item/index.d.ts.map +1 -0
- package/dist/form/components/form-item/props.d.ts +14 -0
- package/dist/form/components/form-item/props.d.ts.map +1 -0
- package/dist/form/hoc/index.d.ts +4 -0
- package/dist/form/hoc/index.d.ts.map +1 -0
- package/dist/form/hoc/useForm.d.ts +13 -0
- package/dist/form/hoc/useForm.d.ts.map +1 -0
- package/dist/form/hoc/useFormExpose.d.ts +24 -0
- package/dist/form/hoc/useFormExpose.d.ts.map +1 -0
- package/dist/form/hoc/useFormFetch.d.ts +25 -0
- package/dist/form/hoc/useFormFetch.d.ts.map +1 -0
- package/dist/form/index.d.ts +6 -0
- package/dist/form/index.d.ts.map +1 -0
- package/dist/form/utils/index.d.ts +9 -0
- package/dist/form/utils/index.d.ts.map +1 -0
- package/dist/global.d.ts +33 -0
- package/dist/global.d.ts.map +1 -0
- package/dist/index.css +3 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +38948 -0
- package/dist/layout/components/fields/basic/basic.vue.d.ts +20 -0
- package/dist/layout/components/fields/basic/basic.vue.d.ts.map +1 -0
- package/dist/layout/components/fields/index.d.ts +2 -0
- package/dist/layout/components/fields/index.d.ts.map +1 -0
- package/dist/layout/components/fields/side/side.vue.d.ts +20 -0
- package/dist/layout/components/fields/side/side.vue.d.ts.map +1 -0
- package/dist/layout/components/fields/top/top.vue.d.ts +18 -0
- package/dist/layout/components/fields/top/top.vue.d.ts.map +1 -0
- package/dist/layout/components/layout/index.d.ts +22 -0
- package/dist/layout/components/layout/index.d.ts.map +1 -0
- package/dist/layout/components/layout/layout.vue.d.ts +15 -0
- package/dist/layout/components/layout/layout.vue.d.ts.map +1 -0
- package/dist/layout/components/layout/props.d.ts +4 -0
- package/dist/layout/components/layout/props.d.ts.map +1 -0
- package/dist/layout/hoc/index.d.ts +2 -0
- package/dist/layout/hoc/index.d.ts.map +1 -0
- package/dist/layout/hoc/useLayout.d.ts +12 -0
- package/dist/layout/hoc/useLayout.d.ts.map +1 -0
- package/dist/layout/index.d.ts +5 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/layout/utils/index.d.ts +4 -0
- package/dist/layout/utils/index.d.ts.map +1 -0
- package/dist/modal/components/form-modal/form-modal.vue.d.ts +46 -0
- package/dist/modal/components/form-modal/form-modal.vue.d.ts.map +1 -0
- package/dist/modal/components/form-modal/index.d.ts +101 -0
- package/dist/modal/components/form-modal/index.d.ts.map +1 -0
- package/dist/modal/components/form-modal/props.d.ts +19 -0
- package/dist/modal/components/form-modal/props.d.ts.map +1 -0
- package/dist/modal/components/modal/index.d.ts +53 -0
- package/dist/modal/components/modal/index.d.ts.map +1 -0
- package/dist/modal/components/modal/modal.vue.d.ts +29 -0
- package/dist/modal/components/modal/modal.vue.d.ts.map +1 -0
- package/dist/modal/components/modal/props.d.ts +24 -0
- package/dist/modal/components/modal/props.d.ts.map +1 -0
- package/dist/modal/hoc/index.d.ts +4 -0
- package/dist/modal/hoc/index.d.ts.map +1 -0
- package/dist/modal/hoc/useFormModal.d.ts +13 -0
- package/dist/modal/hoc/useFormModal.d.ts.map +1 -0
- package/dist/modal/hoc/useModal.d.ts +12 -0
- package/dist/modal/hoc/useModal.d.ts.map +1 -0
- package/dist/modal/hoc/useModalExpose.d.ts +8 -0
- package/dist/modal/hoc/useModalExpose.d.ts.map +1 -0
- package/dist/modal/index.d.ts +4 -0
- package/dist/modal/index.d.ts.map +1 -0
- package/dist/table/components/fields/action-column/action-column.vue.d.ts +6 -0
- package/dist/table/components/fields/action-column/action-column.vue.d.ts.map +1 -0
- package/dist/table/components/fields/action-column/props.d.ts +8 -0
- package/dist/table/components/fields/action-column/props.d.ts.map +1 -0
- package/dist/table/components/fields/index.d.ts +2 -0
- package/dist/table/components/fields/index.d.ts.map +1 -0
- package/dist/table/components/table/index.d.ts +58 -0
- package/dist/table/components/table/index.d.ts.map +1 -0
- package/dist/table/components/table/props.d.ts +43 -0
- package/dist/table/components/table/props.d.ts.map +1 -0
- package/dist/table/components/table/table.vue.d.ts +33 -0
- package/dist/table/components/table/table.vue.d.ts.map +1 -0
- package/dist/table/components/table-column/index.d.ts +6 -0
- package/dist/table/components/table-column/index.d.ts.map +1 -0
- package/dist/table/components/table-column/props.d.ts +6 -0
- package/dist/table/components/table-column/props.d.ts.map +1 -0
- package/dist/table/components/table-column/table-column.vue.d.ts +6 -0
- package/dist/table/components/table-column/table-column.vue.d.ts.map +1 -0
- package/dist/table/components/table-page/index.d.ts +12 -0
- package/dist/table/components/table-page/index.d.ts.map +1 -0
- package/dist/table/components/table-page/props.d.ts +13 -0
- package/dist/table/components/table-page/props.d.ts.map +1 -0
- package/dist/table/components/table-page/table-page.vue.d.ts +11 -0
- package/dist/table/components/table-page/table-page.vue.d.ts.map +1 -0
- package/dist/table/components/table-select/index.d.ts +73 -0
- package/dist/table/components/table-select/index.d.ts.map +1 -0
- package/dist/table/components/table-select/props.d.ts +21 -0
- package/dist/table/components/table-select/props.d.ts.map +1 -0
- package/dist/table/components/table-select/table-select.vue.d.ts +36 -0
- package/dist/table/components/table-select/table-select.vue.d.ts.map +1 -0
- package/dist/table/hoc/index.d.ts +3 -0
- package/dist/table/hoc/index.d.ts.map +1 -0
- package/dist/table/hoc/useTable.d.ts +33 -0
- package/dist/table/hoc/useTable.d.ts.map +1 -0
- package/dist/table/hoc/useTableExpose.d.ts +7 -0
- package/dist/table/hoc/useTableExpose.d.ts.map +1 -0
- package/dist/table/index.d.ts +8 -0
- package/dist/table/index.d.ts.map +1 -0
- package/dist/table/utils/index.d.ts +4 -0
- package/dist/table/utils/index.d.ts.map +1 -0
- package/package.json +42 -0
- package/src/button/components/button/button.vue +64 -0
- package/src/button/components/button/index.ts +2 -0
- package/src/button/components/button/props.ts +75 -0
- package/src/button/components/fields/index.ts +6 -0
- package/src/button/hoc/index.ts +1 -0
- package/src/button/hoc/useButton.ts +27 -0
- package/src/button/index.ts +4 -0
- package/src/button/utils/index.ts +32 -0
- package/src/common/index.ts +1 -0
- package/src/common/utils/iconUtils.ts +21 -0
- package/src/common/utils/index.ts +1 -0
- package/src/form/components/fields/index.ts +35 -0
- package/src/form/components/form/form.vue +130 -0
- package/src/form/components/form/index.ts +6 -0
- package/src/form/components/form/props.ts +73 -0
- package/src/form/components/form-item/form-item.vue +90 -0
- package/src/form/components/form-item/index.ts +6 -0
- package/src/form/components/form-item/props.ts +50 -0
- package/src/form/hoc/index.ts +3 -0
- package/src/form/hoc/useForm.ts +106 -0
- package/src/form/hoc/useFormExpose.ts +97 -0
- package/src/form/hoc/useFormFetch.ts +103 -0
- package/src/form/index.ts +5 -0
- package/src/form/utils/index.ts +149 -0
- package/src/global.ts +40 -0
- package/src/index.ts +37 -0
- package/src/layout/components/fields/basic/basic.vue +18 -0
- package/src/layout/components/fields/index.ts +10 -0
- package/src/layout/components/fields/side/side.vue +26 -0
- package/src/layout/components/fields/top/top.vue +13 -0
- package/src/layout/components/layout/index.ts +6 -0
- package/src/layout/components/layout/layout.vue +19 -0
- package/src/layout/components/layout/props.ts +3 -0
- package/src/layout/hoc/index.ts +1 -0
- package/src/layout/hoc/useLayout.ts +32 -0
- package/src/layout/index.ts +4 -0
- package/src/layout/utils/index.ts +31 -0
- package/src/modal/components/form-modal/form-modal.vue +158 -0
- package/src/modal/components/form-modal/index.ts +5 -0
- package/src/modal/components/form-modal/props.ts +61 -0
- package/src/modal/components/modal/index.ts +6 -0
- package/src/modal/components/modal/modal.vue +127 -0
- package/src/modal/components/modal/props.ts +78 -0
- package/src/modal/hoc/index.ts +3 -0
- package/src/modal/hoc/useFormModal.ts +140 -0
- package/src/modal/hoc/useModal.ts +151 -0
- package/src/modal/hoc/useModalExpose.ts +52 -0
- package/src/modal/index.ts +3 -0
- package/src/style/index.css +21 -0
- package/src/table/components/fields/action-column/action-column.vue +34 -0
- package/src/table/components/fields/action-column/props.ts +8 -0
- package/src/table/components/fields/index.ts +6 -0
- package/src/table/components/table/index.ts +6 -0
- package/src/table/components/table/props.ts +148 -0
- package/src/table/components/table/table.vue +77 -0
- package/src/table/components/table-column/index.ts +6 -0
- package/src/table/components/table-column/props.ts +26 -0
- package/src/table/components/table-column/table-column.vue +31 -0
- package/src/table/components/table-page/index.ts +6 -0
- package/src/table/components/table-page/props.ts +48 -0
- package/src/table/components/table-page/table-page.vue +51 -0
- package/src/table/components/table-select/index.ts +6 -0
- package/src/table/components/table-select/props.ts +79 -0
- package/src/table/components/table-select/table-select.vue +70 -0
- package/src/table/hoc/index.ts +2 -0
- package/src/table/hoc/useTable.ts +206 -0
- package/src/table/hoc/useTableExpose.ts +46 -0
- package/src/table/index.ts +7 -0
- package/src/table/utils/index.ts +37 -0
- package/tsconfig.json +30 -0
- package/vite.config.ts +49 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { default as table } from './table.vue';
|
|
2
|
+
export declare const AxTable: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./props').AxTableProps<any>> & Readonly<{}>, {
|
|
4
|
+
setConfig: import('@aoao-y33/hooks').StateApi<import('@aoao-y33/hooks').FetchOptions<any, any[] | import('./props').PageData<any>>>;
|
|
5
|
+
setApi: import('@aoao-y33/hooks').StateApi<import('@aoao-y33/hooks').RequestFetch<any, any[] | import('./props').PageData<any>>>;
|
|
6
|
+
load: (params?: any) => Promise<any>;
|
|
7
|
+
getConfig: () => import('@aoao-y33/hooks').FetchOptions<any, any[] | import('./props').PageData<any>>;
|
|
8
|
+
get: () => any;
|
|
9
|
+
getReady: () => boolean;
|
|
10
|
+
setParams: (data: any, load?: boolean) => void;
|
|
11
|
+
reload: () => void;
|
|
12
|
+
getElTable: () => import('element-plus').TableInstance;
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
14
|
+
P: {};
|
|
15
|
+
B: {};
|
|
16
|
+
D: {};
|
|
17
|
+
C: {};
|
|
18
|
+
M: {};
|
|
19
|
+
Defaults: {};
|
|
20
|
+
}, Readonly<import('./props').AxTableProps<any>> & Readonly<{}>, {
|
|
21
|
+
setConfig: import('@aoao-y33/hooks').StateApi<import('@aoao-y33/hooks').FetchOptions<any, any[] | import('./props').PageData<any>>>;
|
|
22
|
+
setApi: import('@aoao-y33/hooks').StateApi<import('@aoao-y33/hooks').RequestFetch<any, any[] | import('./props').PageData<any>>>;
|
|
23
|
+
load: (params?: any) => Promise<any>;
|
|
24
|
+
getConfig: () => import('@aoao-y33/hooks').FetchOptions<any, any[] | import('./props').PageData<any>>;
|
|
25
|
+
get: () => any;
|
|
26
|
+
getReady: () => boolean;
|
|
27
|
+
setParams: (data: any, load?: boolean) => void;
|
|
28
|
+
reload: () => void;
|
|
29
|
+
getElTable: () => import('element-plus').TableInstance;
|
|
30
|
+
}, {}, {}, {}, {}>;
|
|
31
|
+
__isFragment?: never;
|
|
32
|
+
__isTeleport?: never;
|
|
33
|
+
__isSuspense?: never;
|
|
34
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./props').AxTableProps<any>> & Readonly<{}>, {
|
|
35
|
+
setConfig: import('@aoao-y33/hooks').StateApi<import('@aoao-y33/hooks').FetchOptions<any, any[] | import('./props').PageData<any>>>;
|
|
36
|
+
setApi: import('@aoao-y33/hooks').StateApi<import('@aoao-y33/hooks').RequestFetch<any, any[] | import('./props').PageData<any>>>;
|
|
37
|
+
load: (params?: any) => Promise<any>;
|
|
38
|
+
getConfig: () => import('@aoao-y33/hooks').FetchOptions<any, any[] | import('./props').PageData<any>>;
|
|
39
|
+
get: () => any;
|
|
40
|
+
getReady: () => boolean;
|
|
41
|
+
setParams: (data: any, load?: boolean) => void;
|
|
42
|
+
reload: () => void;
|
|
43
|
+
getElTable: () => import('element-plus').TableInstance;
|
|
44
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
45
|
+
$slots: {
|
|
46
|
+
search?: (props: {}) => any;
|
|
47
|
+
} & {
|
|
48
|
+
tool?: (props: {}) => any;
|
|
49
|
+
} & {
|
|
50
|
+
default?: (props: {}) => any;
|
|
51
|
+
} & {
|
|
52
|
+
footer?: (props: {}) => any;
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
export type AxTableInstance = InstanceType<typeof table>;
|
|
56
|
+
export default AxTable;
|
|
57
|
+
export * from './props';
|
|
58
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/table/components/table/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,aAAa,CAAC;AAEhC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAQ,CAAC;AAC7B,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,KAAK,CAAC,CAAC;AACzD,eAAe,OAAO,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { TableProps } from 'element-plus';
|
|
2
|
+
import { FetchOptions, FieldsConfig, RequestFetch } from '@aoao-y33/hooks';
|
|
3
|
+
import { AxTableColumnsProps, AxTablePageOptions, AxTableSelectOptions } from '../..';
|
|
4
|
+
import { AxButtonOptions } from '../../../button';
|
|
5
|
+
export interface PageData<T> {
|
|
6
|
+
total: number;
|
|
7
|
+
list: T[];
|
|
8
|
+
currentPage: number;
|
|
9
|
+
currentSize: number;
|
|
10
|
+
}
|
|
11
|
+
export interface AxTableProps<T extends Record<string, any> = any> extends Partial<TableProps<T>> {
|
|
12
|
+
data?: T[];
|
|
13
|
+
api?: RequestFetch<any, T[] | PageData<T>>;
|
|
14
|
+
apiConfig?: FetchOptions<any, T[] | PageData<T>>;
|
|
15
|
+
}
|
|
16
|
+
export interface AxTableEmits<T extends Record<string, any> = any> {
|
|
17
|
+
onScroll?: ((...args: T[]) => any) | undefined;
|
|
18
|
+
onSelect?: ((...args: T[]) => any) | undefined;
|
|
19
|
+
"onExpand-change"?: ((...args: T[]) => any) | undefined;
|
|
20
|
+
"onCurrent-change"?: ((...args: T[]) => any) | undefined;
|
|
21
|
+
"onSelect-all"?: ((...args: T[]) => any) | undefined;
|
|
22
|
+
"onSelection-change"?: ((...args: T[]) => any) | undefined;
|
|
23
|
+
"onCell-mouse-enter"?: ((...args: T[]) => any) | undefined;
|
|
24
|
+
"onCell-mouse-leave"?: ((...args: T[]) => any) | undefined;
|
|
25
|
+
"onCell-contextmenu"?: ((...args: T[]) => any) | undefined;
|
|
26
|
+
"onCell-click"?: ((...args: T[]) => any) | undefined;
|
|
27
|
+
"onCell-dblclick"?: ((...args: T[]) => any) | undefined;
|
|
28
|
+
"onRow-click"?: ((...args: T[]) => any) | undefined;
|
|
29
|
+
"onRow-contextmenu"?: ((...args: T[]) => any) | undefined;
|
|
30
|
+
"onRow-dblclick"?: ((...args: T[]) => any) | undefined;
|
|
31
|
+
"onHeader-click"?: ((...args: T[]) => any) | undefined;
|
|
32
|
+
"onHeader-contextmenu"?: ((...args: T[]) => any) | undefined;
|
|
33
|
+
"onSort-change"?: ((...args: T[]) => any) | undefined;
|
|
34
|
+
"onFilter-change"?: ((...args: T[]) => any) | undefined;
|
|
35
|
+
"onHeader-dragend"?: ((...args: T[]) => any) | undefined;
|
|
36
|
+
}
|
|
37
|
+
export interface AxTableOptions<T extends Record<string, any> = any, R extends Record<string, any> = any> extends AxTableProps<T>, AxTableEmits<T>, AxTableEmits<T> {
|
|
38
|
+
columnConfig?: FieldsConfig<AxTableColumnsProps>;
|
|
39
|
+
pageConfig?: AxTablePageOptions;
|
|
40
|
+
toolConfig?: FieldsConfig<AxButtonOptions>;
|
|
41
|
+
searchConfig?: AxTableSelectOptions<R>;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../src/table/components/table/props.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { TableInstance } from 'element-plus';
|
|
2
|
+
import { AxTableProps } from './props';
|
|
3
|
+
type __VLS_Props = AxTableProps;
|
|
4
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_13: {}, __VLS_15: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
search?: (props: typeof __VLS_1) => any;
|
|
7
|
+
} & {
|
|
8
|
+
tool?: (props: typeof __VLS_3) => any;
|
|
9
|
+
} & {
|
|
10
|
+
default?: (props: typeof __VLS_13) => any;
|
|
11
|
+
} & {
|
|
12
|
+
footer?: (props: typeof __VLS_15) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
15
|
+
setConfig: import('@aoao-y33/hooks').StateApi<import('@aoao-y33/hooks').FetchOptions<any, any[] | import('./props').PageData<any>>>;
|
|
16
|
+
setApi: import('@aoao-y33/hooks').StateApi<import('@aoao-y33/hooks').RequestFetch<any, any[] | import('./props').PageData<any>>>;
|
|
17
|
+
load: (params?: any) => Promise<any>;
|
|
18
|
+
getConfig: () => import('@aoao-y33/hooks').FetchOptions<any, any[] | import('./props').PageData<any>>;
|
|
19
|
+
get: () => any;
|
|
20
|
+
getReady: () => boolean;
|
|
21
|
+
setParams: (data: any, load?: boolean) => void;
|
|
22
|
+
reload: () => void;
|
|
23
|
+
getElTable: () => TableInstance;
|
|
24
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=table.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.vue.d.ts","sourceRoot":"","sources":["../../../../src/table/components/table/table.vue"],"names":[],"mappings":"AAwBA;AA+EA,OAAO,EAAoB,KAAK,aAAa,EAAC,MAAM,cAAc,CAAC;AAGnE,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,SAAS,CAAC;AAI1C,KAAK,WAAW,GAAG,YAAY,CAAC;AA4JhC,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAsB,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACzG,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACzC;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAO/C,QAAA,MAAM,UAAU;;;;;;;;;sBA5IW,aAAa;oPA+ItC,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as tableColumn } from './table-column.vue';
|
|
2
|
+
export declare const AxTableColumn: import('vue').DefineComponent<import('./props').AxTableColumnsProps<any>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./props').AxTableColumnsProps<any>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export type AxTableColumnInstance = InstanceType<typeof tableColumn>;
|
|
4
|
+
export default AxTableColumn;
|
|
5
|
+
export * from './props';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/table/components/table-column/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAE7C,eAAO,MAAM,aAAa,gWAAc,CAAC;AACzC,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;AACrE,eAAe,aAAa,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../src/table/components/table-column/props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAEjD,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAE,GAAG,CAAE,SAAQ,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;IACvG,IAAI,CAAC,EAAC,MAAM,CAAC;IACb,cAAc,CAAC,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CACtC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AxTableColumnsProps } from './props';
|
|
2
|
+
type __VLS_Props = AxTableColumnsProps;
|
|
3
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
4
|
+
declare const _default: typeof __VLS_export;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=table-column.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-column.vue.d.ts","sourceRoot":"","sources":["../../../../src/table/components/table-column/table-column.vue"],"names":[],"mappings":"AAOA;AAkCA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAQjD,KAAK,WAAW,GAAG,mBAAmB,CAAC;AAwEvC,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as page } from './table-page.vue';
|
|
2
|
+
export declare const AxTablePage: import('vue').DefineComponent<import('./props').AxTablePageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
"change-page": (data: number) => any;
|
|
4
|
+
"change-size": (data: number) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<import('./props').AxTablePageProps> & Readonly<{
|
|
6
|
+
"onChange-page"?: ((data: number) => any) | undefined;
|
|
7
|
+
"onChange-size"?: ((data: number) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default AxTablePage;
|
|
10
|
+
export type AxTablePageInstance = InstanceType<typeof page>;
|
|
11
|
+
export * from './props';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/table/components/table-page/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,kBAAkB,CAAC;AAEpC,eAAO,MAAM,WAAW;;;;;;kFAAO,CAAC;AAChC,eAAe,WAAW,CAAC;AAC3B,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC;AAC5D,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PaginationProps } from 'element-plus';
|
|
2
|
+
import { EmitsToEventProps } from '@aoao-y33/utils';
|
|
3
|
+
export interface AxTablePageProps extends Partial<PaginationProps> {
|
|
4
|
+
paramNo?: string;
|
|
5
|
+
paramSize?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface AxTablePageEmits {
|
|
8
|
+
'change-page': [data: number];
|
|
9
|
+
'change-size': [data: number];
|
|
10
|
+
}
|
|
11
|
+
export interface AxTablePageOptions extends AxTablePageProps, Partial<EmitsToEventProps<AxTablePageEmits>> {
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../src/table/components/table-page/props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAEvD,MAAM,WAAW,gBAAiB,SAAQ,OAAO,CAAC,eAAe,CAAC;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC7B,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;IAC7B,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;CAChC;AAED,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB,EAAE,OAAO,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;CACzG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AxTablePageProps } from './props';
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<AxTablePageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
"change-page": (data: number) => any;
|
|
4
|
+
"change-size": (data: number) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<AxTablePageProps> & Readonly<{
|
|
6
|
+
"onChange-page"?: ((data: number) => any) | undefined;
|
|
7
|
+
"onChange-size"?: ((data: number) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=table-page.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-page.vue.d.ts","sourceRoot":"","sources":["../../../../src/table/components/table-page/table-page.vue"],"names":[],"mappings":"AAMA;AAqDA,OAAO,KAAK,EAAmB,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAuFhE,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { default as tableSelect } from './table-select.vue';
|
|
2
|
+
export * from './props';
|
|
3
|
+
export declare const AxTableSelect: {
|
|
4
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./props').AxTableSelectProps> & Readonly<{
|
|
5
|
+
onSearch?: ((data: any) => any) | undefined;
|
|
6
|
+
onChange?: ((data: any) => any) | undefined;
|
|
7
|
+
onReset?: (() => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
getElForm: () => import('element-plus').FormInstance;
|
|
10
|
+
getValues: () => Record<string, any>;
|
|
11
|
+
getValue: (field: string) => any;
|
|
12
|
+
getFields: () => string[];
|
|
13
|
+
getDefaultValues: () => Partial<Record<string, any>>;
|
|
14
|
+
setValues: (values: Partial<Record<string, any>>) => void;
|
|
15
|
+
resetValues: () => void;
|
|
16
|
+
clearValues: () => void;
|
|
17
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
search: (data: any) => any;
|
|
19
|
+
change: (data: any) => any;
|
|
20
|
+
reset: () => any;
|
|
21
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
22
|
+
P: {};
|
|
23
|
+
B: {};
|
|
24
|
+
D: {};
|
|
25
|
+
C: {};
|
|
26
|
+
M: {};
|
|
27
|
+
Defaults: {};
|
|
28
|
+
}, Readonly<import('./props').AxTableSelectProps> & Readonly<{
|
|
29
|
+
onSearch?: ((data: any) => any) | undefined;
|
|
30
|
+
onChange?: ((data: any) => any) | undefined;
|
|
31
|
+
onReset?: (() => any) | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
getElForm: () => import('element-plus').FormInstance;
|
|
34
|
+
getValues: () => Record<string, any>;
|
|
35
|
+
getValue: (field: string) => any;
|
|
36
|
+
getFields: () => string[];
|
|
37
|
+
getDefaultValues: () => Partial<Record<string, any>>;
|
|
38
|
+
setValues: (values: Partial<Record<string, any>>) => void;
|
|
39
|
+
resetValues: () => void;
|
|
40
|
+
clearValues: () => void;
|
|
41
|
+
}, {}, {}, {}, {}>;
|
|
42
|
+
__isFragment?: never;
|
|
43
|
+
__isTeleport?: never;
|
|
44
|
+
__isSuspense?: never;
|
|
45
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./props').AxTableSelectProps> & Readonly<{
|
|
46
|
+
onSearch?: ((data: any) => any) | undefined;
|
|
47
|
+
onChange?: ((data: any) => any) | undefined;
|
|
48
|
+
onReset?: (() => any) | undefined;
|
|
49
|
+
}>, {
|
|
50
|
+
getElForm: () => import('element-plus').FormInstance;
|
|
51
|
+
getValues: () => Record<string, any>;
|
|
52
|
+
getValue: (field: string) => any;
|
|
53
|
+
getFields: () => string[];
|
|
54
|
+
getDefaultValues: () => Partial<Record<string, any>>;
|
|
55
|
+
setValues: (values: Partial<Record<string, any>>) => void;
|
|
56
|
+
resetValues: () => void;
|
|
57
|
+
clearValues: () => void;
|
|
58
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
59
|
+
search: (data: any) => any;
|
|
60
|
+
change: (data: any) => any;
|
|
61
|
+
reset: () => any;
|
|
62
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
63
|
+
$slots: {
|
|
64
|
+
default?: (props: {}) => any;
|
|
65
|
+
} & {
|
|
66
|
+
expand?: (props: {}) => any;
|
|
67
|
+
} & {
|
|
68
|
+
button?: (props: {}) => any;
|
|
69
|
+
};
|
|
70
|
+
});
|
|
71
|
+
export type AxTableSelectInstance = InstanceType<typeof tableSelect>;
|
|
72
|
+
export default AxTableSelect;
|
|
73
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/table/components/table-select/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAE7C,cAAc,SAAS,CAAC;AACxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAc,CAAC;AACzC,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;AACrE,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AxFormItemOptions, AxFormProps } from '../../../form';
|
|
2
|
+
import { AxButtonOptions, AxButtonProps } from '../../../button';
|
|
3
|
+
import { FieldsConfig } from '@aoao-y33/hooks';
|
|
4
|
+
import { EmitsToEventProps } from '@aoao-y33/utils';
|
|
5
|
+
import { Component } from 'vue';
|
|
6
|
+
export interface AxTableSelectProps extends Omit<AxFormProps, 'api' | 'apiConfig'> {
|
|
7
|
+
resetButton?: AxButtonProps;
|
|
8
|
+
isRest?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface AxTableSelectEmits<T extends Record<string, any> = any> {
|
|
11
|
+
search: [data: T];
|
|
12
|
+
reset: [];
|
|
13
|
+
change: [data: T];
|
|
14
|
+
}
|
|
15
|
+
export interface AxTableSelectOptions<T extends Record<string, any> = any> extends AxTableSelectProps, Partial<EmitsToEventProps<AxTableSelectEmits<T>>> {
|
|
16
|
+
fieldConfig?: FieldsConfig<AxFormItemOptions>;
|
|
17
|
+
buttonConfig?: FieldsConfig<AxButtonOptions>;
|
|
18
|
+
expandSlot?: Component;
|
|
19
|
+
over?: number;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../src/table/components/table-select/props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAE,WAAW,EAAC,MAAM,QAAQ,CAAC;AAC3D,OAAO,KAAK,EAAC,eAAe,EAAE,aAAa,EAAC,MAAM,UAAU,CAAC;AAC7D,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAC;AAEnC,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,WAAW,EAAE,KAAK,GAAG,WAAW,CAAC;IAC9E,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG;IACnE,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;IACjB,KAAK,EAAE,EAAE,CAAA;IACT,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;CACpB;AAED,MAAM,WAAW,oBAAoB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,CACrE,SAAQ,kBAAkB,EAAE,OAAO,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7E,WAAW,CAAC,EAAE,YAAY,CAAC,iBAAiB,CAAC,CAAA;IAC7C,YAAY,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAA;IAC5C,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { AxTableSelectProps } from './props';
|
|
2
|
+
declare var __VLS_11: {}, __VLS_13: {}, __VLS_23: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_11) => any;
|
|
5
|
+
} & {
|
|
6
|
+
expand?: (props: typeof __VLS_13) => any;
|
|
7
|
+
} & {
|
|
8
|
+
button?: (props: typeof __VLS_23) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<AxTableSelectProps, {
|
|
11
|
+
getElForm: () => import('element-plus').FormInstance;
|
|
12
|
+
getValues: () => Record<string, any>;
|
|
13
|
+
getValue: (field: string) => any;
|
|
14
|
+
getFields: () => string[];
|
|
15
|
+
getDefaultValues: () => Partial<Record<string, any>>;
|
|
16
|
+
setValues: (values: Partial<Record<string, any>>) => void;
|
|
17
|
+
resetValues: () => void;
|
|
18
|
+
clearValues: () => void;
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
search: (data: any) => any;
|
|
21
|
+
change: (data: any) => any;
|
|
22
|
+
reset: () => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<AxTableSelectProps> & Readonly<{
|
|
24
|
+
onSearch?: ((data: any) => any) | undefined;
|
|
25
|
+
onChange?: ((data: any) => any) | undefined;
|
|
26
|
+
onReset?: (() => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=table-select.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-select.vue.d.ts","sourceRoot":"","sources":["../../../../src/table/components/table-select/table-select.vue"],"names":[],"mappings":"AAaA;AAwEA,OAAO,KAAK,EAAC,kBAAkB,EAAqB,MAAM,SAAS,CAAC;AAgJpE,QAAA,IAAuB,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACvF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAO/C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;kFAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/table/hoc/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AxTableOptions } from '..';
|
|
2
|
+
import { AxFormItemOptions } from '../../form';
|
|
3
|
+
import { AxButtonOptions } from '../../button';
|
|
4
|
+
export declare function useTable<T extends Record<string, any>, R extends Record<string, any> = any>(options?: AxTableOptions<T, R>): readonly [import('vue').DefineComponent<{}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
7
|
+
readonly getElTable: () => import('element-plus').TableInstance;
|
|
8
|
+
readonly setConfig: (config: import('@aoao-y33/hooks').FetchOptions<T, R>) => void;
|
|
9
|
+
readonly setApi: (api: import('@aoao-y33/hooks').RequestFetch<T, R>) => void;
|
|
10
|
+
readonly load: (params?: T | undefined) => Promise<any>;
|
|
11
|
+
readonly getConfig: () => import('@aoao-y33/hooks').FetchOptions<any, any>;
|
|
12
|
+
readonly get: () => any;
|
|
13
|
+
readonly getReady: () => boolean;
|
|
14
|
+
readonly setParams: (data: T, load?: boolean) => void;
|
|
15
|
+
readonly reload: () => void;
|
|
16
|
+
readonly setTable: import('@aoao-y33/hooks').StateApi<import('lodash').Omit<AxTableOptions<T, R>, "columnConfig" | "pageConfig" | "toolConfig" | "searchConfig">>;
|
|
17
|
+
readonly setPage: import('@aoao-y33/hooks').StateApi<import('..').AxTablePageOptions | null>;
|
|
18
|
+
readonly setSearch: import('@aoao-y33/hooks').StateApi<import('lodash').Omit<import('..').AxTableSelectOptions<R>, "buttonConfig" | "fieldConfig" | "expandSlot">>;
|
|
19
|
+
readonly toolsApi: import('@aoao-y33/hooks').FieldsApi<AxButtonOptions<any, import('element-plus').ButtonProps>>;
|
|
20
|
+
readonly searchApi: {
|
|
21
|
+
getElForm: () => import('element-plus').FormInstance;
|
|
22
|
+
getValues: () => R;
|
|
23
|
+
getValue: (field: keyof R) => R[keyof R];
|
|
24
|
+
getFields: () => (keyof R)[];
|
|
25
|
+
getDefaultValues: () => Partial<R>;
|
|
26
|
+
setValues: (values: Partial<R>) => void;
|
|
27
|
+
resetValues: () => void;
|
|
28
|
+
clearValues: () => void;
|
|
29
|
+
};
|
|
30
|
+
readonly buttonsApi: import('@aoao-y33/hooks').FieldsApi<AxButtonOptions<any, import('element-plus').ButtonProps>>;
|
|
31
|
+
readonly fieldsApi: import('@aoao-y33/hooks').FieldsApi<AxFormItemOptions>;
|
|
32
|
+
}];
|
|
33
|
+
//# sourceMappingURL=useTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTable.d.ts","sourceRoot":"","sources":["../../../src/table/hoc/useTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,KAAK,cAAc,EAEtB,MAAM,SAAS,CAAC;AAIjB,OAAO,EAAa,KAAK,iBAAiB,EAA8B,MAAM,QAAQ,CAAC;AACvF,OAAO,EAAW,KAAK,eAAe,EAAC,MAAM,UAAU,CAAC;AAExD,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqG9H"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { AxTableInstance } from '..';
|
|
3
|
+
export type TableApi = ReturnType<typeof useTableExpose>;
|
|
4
|
+
export declare function useTableExpose(table: Ref<AxTableInstance>): {
|
|
5
|
+
getElTable: () => import('element-plus').TableInstance;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=useTableExpose.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTableExpose.d.ts","sourceRoot":"","sources":["../../../src/table/hoc/useTableExpose.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;AAExD,wBAAgB,cAAc,CAAC,KAAK,EAAE,GAAG,CAAC,eAAe,CAAC;;EAQzD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './components/fields';
|
|
2
|
+
export * from './components/table';
|
|
3
|
+
export * from './components/table-column';
|
|
4
|
+
export * from './components/table-page';
|
|
5
|
+
export * from './components/table-select';
|
|
6
|
+
export * from './hoc';
|
|
7
|
+
export * from './utils';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/table/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/table/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAC;AAEnC,eAAO,MAAM,iBAAiB,EAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAI,CAAC;AAE5D,eAAO,MAAM,mBAAmB,GAAE,MAAK,MAAM,EAAC,WAAU,SAAS,SAMhE,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aoao-y33/ui",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "elementPlus二次封装组件",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./dist/index.css": {
|
|
15
|
+
"import": "./dist/index.css"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"sideEffects": [
|
|
19
|
+
"*.css",
|
|
20
|
+
"*.less",
|
|
21
|
+
"*.scss"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "vue-tsc && vite build",
|
|
25
|
+
"ins": "pnpm install",
|
|
26
|
+
"pub": "npm publish --access public"
|
|
27
|
+
},
|
|
28
|
+
"keywords": [],
|
|
29
|
+
"author": "",
|
|
30
|
+
"license": "ISC",
|
|
31
|
+
"packageManager": "pnpm@10.32.1",
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@aoao-y33/hooks": "workspace:*",
|
|
34
|
+
"@aoao-y33/utils": "workspace:*",
|
|
35
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
36
|
+
"element-plus": "^2.14.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"sass": "^1.100.0",
|
|
40
|
+
"vue-component-type-helpers": "^3.3.0"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {buttonFields} from "@/button/utils";
|
|
3
|
+
import type {AxButtonProps, AxButtonEmits} from "./props";
|
|
4
|
+
import {computed, inject, useSlots} from "vue";
|
|
5
|
+
import {getIcons} from "@/common";
|
|
6
|
+
defineOptions({name: 'AxButton'})
|
|
7
|
+
const {
|
|
8
|
+
type = 'default',
|
|
9
|
+
text = '',
|
|
10
|
+
className = '',
|
|
11
|
+
disabled = false,
|
|
12
|
+
hidden = false,
|
|
13
|
+
icon='',
|
|
14
|
+
isMl=true,
|
|
15
|
+
componentProps = {}
|
|
16
|
+
} = defineProps<AxButtonProps>()
|
|
17
|
+
const emits = defineEmits<AxButtonEmits>()
|
|
18
|
+
const slots = useSlots();
|
|
19
|
+
const clickData = inject('clickData', null);
|
|
20
|
+
const ButtonField = computed(() => {
|
|
21
|
+
return buttonFields[type]
|
|
22
|
+
})
|
|
23
|
+
const onClick = (e: Event) => {
|
|
24
|
+
emits('click', clickData ? clickData : e)
|
|
25
|
+
}
|
|
26
|
+
const onDblClick = (e: Event) => {
|
|
27
|
+
emits('dblClick', clickData ? clickData : e)
|
|
28
|
+
}
|
|
29
|
+
const getDisabled = () => {
|
|
30
|
+
if (typeof disabled === "function") {
|
|
31
|
+
return disabled(clickData)
|
|
32
|
+
}
|
|
33
|
+
return disabled
|
|
34
|
+
}
|
|
35
|
+
const getHidden = () => {
|
|
36
|
+
if (typeof hidden === "function") {
|
|
37
|
+
return hidden(clickData)
|
|
38
|
+
}
|
|
39
|
+
return hidden
|
|
40
|
+
}
|
|
41
|
+
const Icon = computed(()=>{
|
|
42
|
+
if(typeof icon === 'string'){
|
|
43
|
+
return getIcons(icon)
|
|
44
|
+
}
|
|
45
|
+
return icon||null;
|
|
46
|
+
})
|
|
47
|
+
</script>
|
|
48
|
+
<template>
|
|
49
|
+
<ButtonField v-bind="componentProps"
|
|
50
|
+
@click="onClick"
|
|
51
|
+
@dblclick="onDblClick"
|
|
52
|
+
:class="[className,{'ml-0!':!isMl}]"
|
|
53
|
+
:disabled="getDisabled()"
|
|
54
|
+
v-if="!getHidden()"
|
|
55
|
+
:icon="Icon"
|
|
56
|
+
>
|
|
57
|
+
<template v-if="!slots.default">
|
|
58
|
+
<span>{{ text }}</span>
|
|
59
|
+
</template>
|
|
60
|
+
<template v-else>
|
|
61
|
+
<slot></slot>
|
|
62
|
+
</template>
|
|
63
|
+
</ButtonField>
|
|
64
|
+
</template>
|