antd-vue-dbthor 1.0.2 → 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.
@@ -1,4 +1,5 @@
1
1
  import { default as Table } from './table.vue';
2
2
 
3
3
  export type * from './index.type';
4
+ export type * from './control';
4
5
  export default Table;
@@ -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
  */
@@ -123,7 +122,6 @@ export interface TableProps extends Omit<ATableProps, 'columns'> {
123
122
  * 新增 编辑表单配置
124
123
  */
125
124
  cuFormProps?: TableUseCUFormProps['cuFormProps'];
126
- cuUseFormOptions?: TableUseCUFormProps['cuUseFormOptions'];
127
125
  cuFormRules?: TableUseCUFormProps['cuFormRules'];
128
126
  cuFormModalProps?: TableUseCUFormProps['cuFormModalProps'];
129
127
  cuFormRowProps?: TableUseCUFormProps['cuFormRowProps'];
@@ -1,8 +1,7 @@
1
- import { TableProps, TableSlots, TablePropsApi } from './index.type';
1
+ import { TableProps, TableSlots } from './index.type';
2
2
  import { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- import { TableQueryFormInstance, TableQueryFormProps } from './useQueryForm';
3
+ import { TableQueryFormInstance } from './useQueryForm';
4
4
  import { ToRawRefs } from '@vue-macros/reactivity-transform/macros';
5
- import { TableUseColumnsProps } from './useColumns';
6
5
 
7
6
  declare function __VLS_template(): Readonly<TableSlots> & TableSlots;
8
7
  declare const __VLS_component: DefineComponent<TableProps, {
@@ -14,28 +13,7 @@ declare const __VLS_component: DefineComponent<TableProps, {
14
13
  CreateBtn: Ref<() => import("vue/jsx-runtime").JSX.Element, () => import("vue/jsx-runtime").JSX.Element>;
15
14
  ImportBtn: Ref<() => import("vue/jsx-runtime").JSX.Element, () => import("vue/jsx-runtime").JSX.Element>;
16
15
  ExportBtn: Ref<() => import("vue/jsx-runtime").JSX.Element, () => import("vue/jsx-runtime").JSX.Element>;
17
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TableProps> & Readonly<{}>, {
18
- queryFormSubmitBtn: TableQueryFormProps["queryFormSubmitBtn"];
19
- queryFormResetBtn: TableQueryFormProps["queryFormResetBtn"];
20
- apis: Partial<{
21
- list: TablePropsApi;
22
- details: TablePropsApi;
23
- create: TablePropsApi;
24
- update: TablePropsApi;
25
- delete: TablePropsApi;
26
- export: TablePropsApi;
27
- import: TablePropsApi;
28
- }>;
29
- params: {
30
- [key: string]: any;
31
- };
32
- indexColumn: TableUseColumnsProps["indexColumn"];
33
- controlColumn: TableUseColumnsProps["controlColumn"];
34
- full: boolean;
35
- ownPagin: boolean;
36
- queryForm: boolean;
37
- ciesBtns: boolean;
38
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
16
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TableProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
39
17
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
40
18
  export default _default;
41
19
  export declare const __VLS_globalTypesStart: {};
@@ -3,7 +3,7 @@ import { Reactive, Ref, VNode } from 'vue';
3
3
  import { JSX } from 'vue/jsx-runtime';
4
4
  import { ControlMapProps } from './control';
5
5
  import { ownBtnProps, TableProps, TableTextConfig } from './index.type';
6
- import { FormInstance, UseFormOptions } from './useQueryForm';
6
+ import { FormInstance } from './useQueryForm';
7
7
 
8
8
  export interface TableCUFormInstance extends FormInstance {
9
9
  }
@@ -25,7 +25,6 @@ export interface TableUseCUFormProps {
25
25
  columns?: TableProps['columns'];
26
26
  cuFormProps?: FormProps;
27
27
  cuFormRules?: FormItemProps['rules'];
28
- cuUseFormOptions?: UseFormOptions;
29
28
  cuFormModalProps?: ModalProps;
30
29
  cuFormRowProps?: RowProps;
31
30
  cuFormColProps?: ColProps;
@@ -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<void>;
24
+ updateSource: () => Promise<any>;
24
25
  };
25
26
  export default _default;
@@ -2,6 +2,6 @@ import { TableProps } from '../components';
2
2
 
3
3
  export declare const TableConfig: TableProps;
4
4
  declare const GlobalComponentDefalutPropsConfig: {
5
- Table: TableProps;
5
+ table: TableProps;
6
6
  };
7
7
  export default GlobalComponentDefalutPropsConfig;
@@ -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;