forked from build-admin/buildadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(baInput):合并 FormItem 的 props 和 props.attr
- Loading branch information
1 parent
a9cdcff
commit a85d7b7
Showing
3 changed files
with
28 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import type { CSSProperties } from 'vue' | ||
import type { FormItemProps } from 'element-plus' | ||
import type { FormItemProps, ElTooltipProps } from 'element-plus' | ||
|
||
export interface FormItemAttr extends Partial<FormItemProps> { | ||
export interface FormItemAttr extends Partial<Writeable<FormItemProps>> { | ||
// 通用属性名称的键入提示 | ||
id?: string | ||
class?: string | ||
style?: CSSProperties | ||
// 块级输入帮助信息 | ||
blockHelp?: string | ||
// 输入提示信息(使用 el-tooltip 渲染) | ||
tip?: string | Partial<ElTooltipProps> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters