refactor(card): some default value to undefined

This commit is contained in:
07akioni 2020-10-23 14:03:05 +08:00
parent ed46f687b6
commit 0b5598a091
3 changed files with 11 additions and 11 deletions

View File

@ -17,13 +17,13 @@ closable
|-|-|-|-|
|bordered|`boolean`|`true`||
|closable|`boolean`|`false`||
|content-style|`Object \| string`|`null`||
|header-style|`Object \| string`|`null`||
|content-style|`Object \| string`|`undefined`||
|header-style|`Object \| string`|`undefined`||
|segmented|`boolean \| { [part in 'content' \| 'footer' \| 'action']?: boolean \| 'soft' \| 'hard' }`|`false`||
|size|`'small' \| 'medium' \| 'large' \| 'huge'`|`'medium'`||
|themed-style|`{ [themeName: string]: Object } \| null`|`null`||
|themed-style|`{ [themeName: string]: Object }`|`undefined`||
|theme|`'light' \| 'dark' \| null \| string`|`null`||
|title|`string`|`null`||
|title|`string`|`undefined`||
|on-close|`() => any`|`undefined`||
## Slots

View File

@ -17,13 +17,13 @@ closable
|-|-|-|-|
|bordered|`boolean`|`true`||
|closable|`boolean`|`false`||
|content-style|`Object \| string`|`null`||
|header-style|`Object \| string`|`null`||
|content-style|`Object \| string`|`undefined`||
|header-style|`Object \| string`|`undefined`||
|segmented|`boolean \| { [part in 'content' \| 'footer' \| 'action']?: boolean \| 'soft' \| 'hard' }`|`false`||
|size|`'small' \| 'medium' \| 'large' \| 'huge'`|`'medium'`||
|themed-style|`{ [themeName: string]: Object } \| null`|`null`||
|themed-style|`{ [themeName: string]: Object }`|`undefined`||
|theme|`'light' \| 'dark' \| null \| string`|`null`||
|title|`string`|`null`||
|title|`string`|`undefined`||
|on-close|`() => any`|`undefined`|点击卡片关闭图标时的回调|
## Slots

View File

@ -70,15 +70,15 @@ export default {
props: {
title: {
type: String,
default: null
default: undefined
},
contentStyle: {
type: [Object, String],
default: null
default: undefined
},
headerStyle: {
type: [Object, String],
default: null
default: undefined
},
segmented: {
type: [Boolean, Object],