@dazhicheng/ui 1.4.21 → 1.4.23
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/tt-form/src/config.d.ts +2 -2
- package/dist/components/tt-form/src/types.d.ts +5 -5
- package/dist/components/tt-form-item-error-tooltip/index.d.ts +1466 -2
- package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts +734 -2
- package/dist/components/tt-table/src/Table.vue.d.ts +1 -1
- package/dist/components/types.d.ts +19 -0
- package/dist/index.js +4316 -4313
- package/dist/style.css +1 -1
- package/package.json +3 -3
- /package/dist/components/tt-form/src/components/{formActions.vue.d.ts → FormActions.vue.d.ts} +0 -0
- /package/dist/components/tt-form/src/{useForm.vue.d.ts → index.vue.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
|
-
import { BaseFormComponentType, FormCommonConfig,
|
|
2
|
+
import { BaseFormComponentType, FormCommonConfig, TtFormAdapterOptions } from './types';
|
|
3
3
|
export declare const DEFAULT_FORM_COMMON_CONFIG: FormCommonConfig;
|
|
4
4
|
export declare const COMPONENT_MAP: Record<BaseFormComponentType, Component>;
|
|
5
5
|
export declare const COMPONENT_BIND_EVENT_MAP: Partial<Record<BaseFormComponentType, string>>;
|
|
6
|
-
export declare function setupForm<T extends BaseFormComponentType = BaseFormComponentType>(options:
|
|
6
|
+
export declare function setupForm<T extends BaseFormComponentType = BaseFormComponentType>(options: TtFormAdapterOptions<T>): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonProps, CheckboxProps, CheckboxGroupProps, DatePickerProps, InputProps, InputNumberProps, RadioProps,
|
|
1
|
+
import { ButtonProps, CheckboxProps, CheckboxGroupProps, DatePickerProps, InputProps, InputNumberProps, RadioProps, RadioGroupProps, SelectProps, SelectV2Props, SwitchProps, TimePickerDefaultProps, UploadProps } from 'element-plus';
|
|
2
2
|
import { FieldOptions, FormContext, GenericObject } from 'vee-validate';
|
|
3
3
|
import { Component, HtmlHTMLAttributes, MaybeRefOrGetter, Ref } from 'vue';
|
|
4
4
|
import { ZodTypeAny } from 'zod';
|
|
@@ -8,20 +8,20 @@ import { FormApi } from './formApi';
|
|
|
8
8
|
export type FormLayout = "horizontal" | "inline" | "vertical";
|
|
9
9
|
export interface BaseFormComponentMap {
|
|
10
10
|
TtSelect: TtSelectProp;
|
|
11
|
+
ElCheckbox: CheckboxProps;
|
|
11
12
|
ElCheckboxButton: CheckboxProps;
|
|
12
13
|
ElCheckboxGroup: CheckboxGroupProps;
|
|
13
14
|
ElDatePicker: DatePickerProps;
|
|
14
15
|
ElInput: InputProps;
|
|
15
16
|
ElInputNumber: InputNumberProps;
|
|
16
17
|
ElRadio: RadioProps;
|
|
17
|
-
ElRadioButton: RadioButtonProps;
|
|
18
18
|
ElRadioGroup: RadioGroupProps;
|
|
19
|
+
ElSelect: SelectProps;
|
|
20
|
+
ElSelectV2: SelectV2Props;
|
|
19
21
|
ElSwitch: SwitchProps;
|
|
20
22
|
ElTimePicker: TimePickerDefaultProps;
|
|
21
|
-
ElSelectV2: SelectV2Props;
|
|
22
23
|
ElTreeSelect: Record<string, any>;
|
|
23
24
|
ElUpload: UploadProps;
|
|
24
|
-
ElSelect: SelectProps;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* 表单组件类型字符串联合类型
|
|
@@ -359,7 +359,7 @@ export interface TtFormProps<T extends BaseFormComponentType = BaseFormComponent
|
|
|
359
359
|
export type ExtendedFormApi = FormApi & {
|
|
360
360
|
useStore: <T = NoInfer<TtFormProps>>(selector?: (state: NoInfer<TtFormProps>) => T) => Readonly<Ref<T>>;
|
|
361
361
|
};
|
|
362
|
-
export interface
|
|
362
|
+
export interface TtFormAdapterOptions<T extends BaseFormComponentType = BaseFormComponentType> {
|
|
363
363
|
config?: {
|
|
364
364
|
baseModelPropName?: string;
|
|
365
365
|
disabledOnChangeListener?: boolean;
|