antd-vue-dbthor 1.0.3 → 1.0.4
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/index.type.d.ts +13 -14
- package/dist/components/table/table.vue.d.ts +2 -15
- package/dist/components/table/useDataSource.d.ts +2 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/examples/page/table/index.vue.d.ts +3 -0
- package/dist/lib/index.es.js +1487 -1487
- package/dist/lib/index.es.js.gz +0 -0
- package/dist/lib/index.umd.js +18 -18
- package/dist/lib/index.umd.js.gz +0 -0
- package/package.json +79 -79
|
@@ -46,7 +46,7 @@ export type ciesBtnsVNode = Ref<Partial<{
|
|
|
46
46
|
ImportBtn: VNode | JSX.Element;
|
|
47
47
|
ExportBtn: VNode | JSX.Element;
|
|
48
48
|
}>>;
|
|
49
|
-
export interface TableProps extends Omit<ATableProps, 'columns'> {
|
|
49
|
+
export interface TableProps extends Omit<ATableProps, 'columns' | 'loading'> {
|
|
50
50
|
full?: boolean;
|
|
51
51
|
tableTextConfig?: TableTextConfig;
|
|
52
52
|
/**
|
|
@@ -79,19 +79,19 @@ export interface TableProps extends Omit<ATableProps, 'columns'> {
|
|
|
79
79
|
export: TablePropsApi;
|
|
80
80
|
import: TablePropsApi;
|
|
81
81
|
}>;
|
|
82
|
-
requestParamsFormatter?: RequestParamsFormatter;
|
|
83
|
-
onSourceSuccess?: TableUseDataSourceProps['onSourceSuccess'];
|
|
84
|
-
onSourceError?: TableUseDataSourceProps['onSourceError'];
|
|
85
|
-
onGetRowDetail?: (res: AxiosResponse) => Promise<{
|
|
82
|
+
requestParamsFormatter?: null | RequestParamsFormatter;
|
|
83
|
+
onSourceSuccess?: null | TableUseDataSourceProps['onSourceSuccess'];
|
|
84
|
+
onSourceError?: null | TableUseDataSourceProps['onSourceError'];
|
|
85
|
+
onGetRowDetail?: null | ((res: AxiosResponse) => Promise<{
|
|
86
86
|
[key: string]: any;
|
|
87
|
-
}
|
|
88
|
-
onBeforeCuFormSubmit?: ParamsFormatter;
|
|
89
|
-
onBeforeRowEditBackFill?: TableUseColumnsProps['onBeforeRowEditBackFill'];
|
|
90
|
-
onCuFormSubmitSuccess?: CRUDRequestFinish;
|
|
91
|
-
onCuFormSubmitError?: CRUDRequestFinish;
|
|
92
|
-
onBeforeRowDelete?: ParamsFormatter;
|
|
93
|
-
onRowDeleteSuccess?: CRUDRequestFinish;
|
|
94
|
-
onRowDeleteError?: CRUDRequestFinish;
|
|
87
|
+
}>);
|
|
88
|
+
onBeforeCuFormSubmit?: null | ParamsFormatter;
|
|
89
|
+
onBeforeRowEditBackFill?: null | TableUseColumnsProps['onBeforeRowEditBackFill'];
|
|
90
|
+
onCuFormSubmitSuccess?: null | CRUDRequestFinish;
|
|
91
|
+
onCuFormSubmitError?: null | CRUDRequestFinish;
|
|
92
|
+
onBeforeRowDelete?: null | ParamsFormatter;
|
|
93
|
+
onRowDeleteSuccess?: null | CRUDRequestFinish;
|
|
94
|
+
onRowDeleteError?: null | CRUDRequestFinish;
|
|
95
95
|
fieldsNames?: Partial<{
|
|
96
96
|
page: string;
|
|
97
97
|
pageSize: string;
|
|
@@ -104,7 +104,6 @@ export interface TableProps extends Omit<ATableProps, 'columns'> {
|
|
|
104
104
|
*/
|
|
105
105
|
ownPagin?: boolean;
|
|
106
106
|
ownPaginProps?: Partial<PaginationProps>;
|
|
107
|
-
showOwnPagination?: boolean;
|
|
108
107
|
/**
|
|
109
108
|
* 内置查询表单配置
|
|
110
109
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TableProps, TableSlots
|
|
1
|
+
import { TableProps, TableSlots } from './index.type';
|
|
2
2
|
import { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { TableQueryFormInstance } from './useQueryForm';
|
|
4
4
|
import { ToRawRefs } from '@vue-macros/reactivity-transform/macros';
|
|
@@ -13,20 +13,7 @@ declare const __VLS_component: DefineComponent<TableProps, {
|
|
|
13
13
|
CreateBtn: Ref<() => import("vue/jsx-runtime").JSX.Element, () => import("vue/jsx-runtime").JSX.Element>;
|
|
14
14
|
ImportBtn: Ref<() => import("vue/jsx-runtime").JSX.Element, () => import("vue/jsx-runtime").JSX.Element>;
|
|
15
15
|
ExportBtn: Ref<() => import("vue/jsx-runtime").JSX.Element, () => import("vue/jsx-runtime").JSX.Element>;
|
|
16
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TableProps> & Readonly<{}>, {
|
|
17
|
-
apis: Partial<{
|
|
18
|
-
list: TablePropsApi;
|
|
19
|
-
details: TablePropsApi;
|
|
20
|
-
create: TablePropsApi;
|
|
21
|
-
update: TablePropsApi;
|
|
22
|
-
delete: TablePropsApi;
|
|
23
|
-
export: TablePropsApi;
|
|
24
|
-
import: TablePropsApi;
|
|
25
|
-
}>;
|
|
26
|
-
params: {
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
};
|
|
29
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TableProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
30
17
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
31
18
|
export default _default;
|
|
32
19
|
export declare const __VLS_globalTypesStart: {};
|
|
@@ -15,11 +15,12 @@ export interface TableUseDataSourceProps {
|
|
|
15
15
|
onSourceSuccess: (res: AxiosResponse) => Promise<TableSourceResult>;
|
|
16
16
|
onSourceError: (err: Error) => void;
|
|
17
17
|
emits?: EmitFn;
|
|
18
|
+
dataSource?: any;
|
|
18
19
|
}
|
|
19
20
|
declare const _default: (props: TableUseDataSourceProps) => {
|
|
20
21
|
source: Ref<any[], any[]>;
|
|
21
22
|
loading: Ref<boolean, boolean>;
|
|
22
23
|
total: Ref<number, number>;
|
|
23
|
-
updateSource: () => Promise<
|
|
24
|
+
updateSource: () => Promise<any>;
|
|
24
25
|
};
|
|
25
26
|
export default _default;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
export default _default;
|