wip: refactor layout

This commit is contained in:
vben
2020-11-23 23:24:13 +08:00
parent 234c1d1fae
commit ba068ba1df
79 changed files with 1393 additions and 1196 deletions

View File

@@ -2,7 +2,7 @@ import { Component } from 'vue';
import type { ComponentType } from './types/index';
/**
* Component list, register here to use it in the form
* Component list, register here to setting it in the form
*/
import {
Input,

View File

@@ -31,7 +31,7 @@ export function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsRef: Ref<
wrapperCol: globWrapperCol,
} = unref(propsRef) as any;
// If labelWidth is set globally, all items use
// If labelWidth is set globally, all items setting
if ((!globalLabelWidth && !labelWidth && !globalLabelCol) || disabledLabelWidth) {
return { labelCol, wrapperCol };
}

View File

@@ -68,7 +68,7 @@ export interface FormItem {
*/
labelAlign?: 'left' | 'right';
/**
* a key of model. In the use of validate and resetFields method, the attribute is required
* a key of model. In the setting of validate and resetFields method, the attribute is required
*/
name?: NamePath;
/**
@@ -76,7 +76,7 @@ export interface FormItem {
*/
rules?: object | object[];
/**
* Whether to automatically associate form fields. In most cases, you can use automatic association.
* Whether to automatically associate form fields. In most cases, you can setting automatic association.
* If the conditions for automatic association are not met, you can manually associate them. See the notes below.
*/
autoLink?: boolean;