Skip to content

Commit

Permalink
chore: props update
Browse files Browse the repository at this point in the history
  • Loading branch information
PengYYYYY committed Jun 27, 2022
1 parent 0b63843 commit 73125c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/drawer/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default {
/** 关闭按钮,可以自定义。值为 true 显示默认关闭按钮,值为 false 不显示关闭按钮。值类型为 string 则直接显示值,如:“关闭”。值类型为 TNode,则表示呈现自定义按钮示例 */
closeBtn: {
type: [String, Boolean, Function] as PropType<TdDrawerProps['closeBtn']>,
default: undefined,
},
/** 按下 ESC 时是否触发抽屉关闭事件 */
closeOnEscKeydown: Boolean,
Expand Down Expand Up @@ -52,7 +53,7 @@ export default {
/** 头部内容。值为 true 显示空白头部,值为 false 不显示头部,值类型为 string 则直接显示值,值类型为 TNode 表示自定义头部内容 */
header: {
type: [String, Boolean, Function] as PropType<TdDrawerProps['header']>,
default: true,
default: undefined,
},
/** 展开方式,有两种:直接展示在内容上方 和 推开内容区域 */
mode: {
Expand Down

0 comments on commit 73125c3

Please sign in to comment.