antd-vue-dbthor 1.0.0

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.
@@ -0,0 +1,72 @@
1
+ import { ColProps, FlexProps, FormItemProps, FormProps, RowProps } from 'ant-design-vue';
2
+ import { FieldNamesType } from 'ant-design-vue/es/cascader';
3
+ import { Callbacks, RuleError, RuleObject } from 'ant-design-vue/es/form/interface';
4
+ import { Props, ValidateInfo, validateInfos, validateOptions } from 'ant-design-vue/es/form/useForm';
5
+ import { Reactive, Ref, VNode } from 'vue';
6
+ import { ControlMapProps } from './control';
7
+ import { ciesBtnsVNode, OwnBtnProps } from './index.type';
8
+ import { TableUseCUReturnOptions } from './useCU';
9
+ import { ComputedVariable } from '@vue-macros/reactivity-transform/macros';
10
+
11
+ interface DebounceSettings {
12
+ leading?: boolean;
13
+ wait?: number;
14
+ trailing?: boolean;
15
+ }
16
+ type namesType = string | string[];
17
+ export interface FormInstance {
18
+ modelRef: Props | Ref<Props>;
19
+ rulesRef: Props | Ref<Props>;
20
+ initialModel: Props;
21
+ validateInfos: validateInfos;
22
+ resetFields: (newValues?: Props) => void;
23
+ validate: <T = any>(names?: FieldNamesType, option?: validateOptions) => Promise<T>;
24
+ /** This is an internal usage. Do not use in your prod */
25
+ validateField: (name: string, value: any, rules: Record<string, unknown>[], option?: validateOptions) => Promise<RuleError[]>;
26
+ mergeValidateInfo: (items: ValidateInfo | ValidateInfo[]) => ValidateInfo;
27
+ clearValidate: (names?: namesType) => void;
28
+ }
29
+ export interface TableQueryFormInstance extends FormInstance {
30
+ onQueryFormFinish: (vals: any) => void;
31
+ onQueryFormReset: () => void;
32
+ }
33
+ export interface TableQueryFormItemProps<T extends keyof ControlMapProps = keyof ControlMapProps> extends FormItemProps {
34
+ control?: T;
35
+ controlProps?: ControlMapProps[T];
36
+ customControl?: (model: Reactive<any>, name: FormItemProps['name']) => VNode;
37
+ colProps?: ColProps;
38
+ formItemProps?: FormItemProps;
39
+ rules?: RuleObject[];
40
+ }
41
+ export type UseFormOptions = {
42
+ immediate?: boolean;
43
+ deep?: boolean;
44
+ validateOnRuleChange?: boolean;
45
+ debounce?: DebounceSettings;
46
+ onValidate?: Callbacks['onValidate'];
47
+ };
48
+ export interface TableQueryFormProps {
49
+ queryFormItem?: TableQueryFormItemProps[];
50
+ queryFormProps?: FormProps;
51
+ queryFormRowProps?: RowProps;
52
+ queryFormColProps?: ColProps;
53
+ queryFormFlexProps?: FlexProps;
54
+ queryFormSubmitBtn?: boolean | ((form: TableQueryFormInstance) => VNode);
55
+ queryFormSubmitBtnProps?: OwnBtnProps;
56
+ queryFormResetBtn?: boolean | ((form: TableQueryFormInstance) => VNode);
57
+ queryFormResetBtnProps?: OwnBtnProps;
58
+ queryFormSubmitWithReset?: boolean;
59
+ ciesBtnsInQueryForm?: boolean;
60
+ ciesBtnsVNode?: ciesBtnsVNode;
61
+ CreateBtn?: Ref<TableUseCUReturnOptions['CreateBtn']>;
62
+ ImportBtn?: TableUseCUReturnOptions;
63
+ [key: string]: any;
64
+ }
65
+ declare const useQueryForm: (props: TableQueryFormProps) => {
66
+ QueryForm: () => import("vue/jsx-runtime").JSX.Element;
67
+ QueryFormInstance: ComputedVariable<TableQueryFormInstance>;
68
+ queryFormParams: {
69
+ values: any;
70
+ };
71
+ };
72
+ export default useQueryForm;
@@ -0,0 +1,7 @@
1
+ import { TableProps } from '../components';
2
+
3
+ export declare const TableConfig: TableProps;
4
+ declare const GlobalComponentDefalutPropsConfig: {
5
+ Table: TableProps;
6
+ };
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;
@@ -0,0 +1 @@
1
+
@@ -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;
@@ -0,0 +1,3 @@
1
+ import { Router } from 'vue-router';
2
+ declare const router: Router;
3
+ export default router;
@@ -0,0 +1,3 @@
1
+ export * from './main'
2
+ import AntdVueDbthor from './main'
3
+ export default AntdVueDbthor