antd-vue-dbthor 1.0.3 → 1.0.5

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,4 @@
1
- import { CheckboxGroupProps, CheckboxProps, DatePickerProps, InputNumberProps, InputProps, RadioGroupProps, RadioProps, SelectProps } from 'ant-design-vue';
1
+ import { CheckboxGroupProps, CheckboxProps, DatePickerProps, InputNumberProps, InputProps, RadioGroupProps, RadioProps, SelectProps, TextAreaProps } from 'ant-design-vue';
2
2
  import { RangePickerProps } from 'ant-design-vue/es/date-picker';
3
3
 
4
4
  export declare enum ControlMapType {
@@ -10,7 +10,8 @@ export declare enum ControlMapType {
10
10
  Checkbox = "Checkbox",
11
11
  CheckboxGroup = "CheckboxGroup",
12
12
  Radio = "Radio",
13
- RadioGroup = "RadioGroup"
13
+ RadioGroup = "RadioGroup",
14
+ TextArea = "TextArea"
14
15
  }
15
16
  export interface ControlMapProps {
16
17
  Input: InputProps;
@@ -22,6 +23,7 @@ export interface ControlMapProps {
22
23
  CheckboxGroup: CheckboxGroupProps;
23
24
  Radio: RadioProps;
24
25
  RadioGroup: RadioGroupProps;
26
+ TextArea: TextAreaProps;
25
27
  }
26
28
  declare const Control: ({ type, ...props }: any) => import("vue/jsx-runtime").JSX.Element;
27
29
  export default Control;
@@ -1,5 +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
+ export * from './control';
5
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
  */
@@ -1,4 +1,4 @@
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
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<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;