Skip to content

Commit a147acd

Browse files
committed
feat(FormItem): 新增表单项属性定义文件
- 新增 form-item-props.ts 文件,定义表单项的属性,包括 help、label、labelAlign、name 和 requiredMark - 更新 form-item.ts 文件,修正 props 导入路径,确保正确引用表单项属性定义
1 parent 1a5fc6d commit a147acd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
55
* */
66

7-
import { TdFormItemProps } from './type';
7+
import { TdFormItemProps } from '../form/type';
88
const props: TdFormItemProps = {
99
/** 表单项说明内容 */
1010
help: {

src/form-item/form-item.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { SuperComponent, wxComponent, RelationsOptions } from '../common/src/index';
22
import config from '../common/config';
3-
import props from '../form/form-item-props';
3+
import props from './form-item-props';
44
import { validate, ValidateStatus } from '../form/form-model';
55

66
const { prefix } = config;

0 commit comments

Comments
 (0)