Skip to content

Commit

Permalink
fix(dialog): add missing null type (#4439)
Browse files Browse the repository at this point in the history
* fix(dialog): add missing null type

closed #4400

* fix(dialog): add missing null type
  • Loading branch information
chouchouji authored Jul 30, 2024
1 parent b9d2a90 commit bbb87a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dialog/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
},
/** 取消按钮,可自定义。值为 null 则不显示取消按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 TNode 自定义按钮时,需自行控制取消事件 */
cancelBtn: {
type: [String, Object, Function] as PropType<TdDialogProps['cancelBtn']>,
type: [String, Object, Function, null] as PropType<TdDialogProps['cancelBtn']>,
},
/** 关闭按钮,可以自定义。值为 true 显示默认关闭按钮,值为 false 不显示关闭按钮。值类型为 string 则直接显示值,如:“关闭”。值类型为 TNode,则表示呈现自定义按钮示例 */
closeBtn: {
Expand All @@ -37,7 +37,7 @@ export default {
},
/** 确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 TNode 自定义按钮时,需自行控制确认事件 */
confirmBtn: {
type: [String, Object, Function] as PropType<TdDialogProps['confirmBtn']>,
type: [String, Object, Function, null] as PropType<TdDialogProps['confirmBtn']>,
},
/** 确认按钮加载状态 */
confirmLoading: {
Expand Down

0 comments on commit bbb87a7

Please sign in to comment.