mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-18 12:34:25 +08:00
refactor(card): some default value to undefined
This commit is contained in:
parent
ed46f687b6
commit
0b5598a091
@ -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
|
||||
|
@ -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
|
||||
|
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user