Alter: title is not a required prop (#13360)

* Alter: title is not a required prop

* update docs
pull/13369/head
hetech 2018-11-09 12:01:35 +08:00 committed by GitHub
parent 2b7fa617ae
commit d241282a81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 5 deletions

View File

@ -208,7 +208,7 @@ Description includes a message with more detailed information.
### Attributes ### Attributes
| Attribute | Description | Type | Accepted Values | Default | | Attribute | Description | Type | Accepted Values | Default |
|---------- |-------------- |---------- |-------------------------------- |-------- | |---------- |-------------- |---------- |-------------------------------- |-------- |
| **title** | title **REQUIRED** | string | — | — | | title | title | string | — | — |
| type | component type | string | success/warning/info/error | info | | type | component type | string | success/warning/info/error | info |
| description | descriptive text. Can also be passed with the default slot | string | — | — | | description | descriptive text. Can also be passed with the default slot | string | — | — |
| closable | if closable or not | boolean | — | true | | closable | if closable or not | boolean | — | true |

View File

@ -210,7 +210,7 @@ Descripción incluye un mensaje con información más detallada.
### Atributos ### Atributos
| Atributo | Descripción | Tipo | Valores aceptados | Por defecto | | Atributo | Descripción | Tipo | Valores aceptados | Por defecto |
| ----------- | ---------------------------------------- | ------- | -------------------------- | ----------- | | ----------- | ---------------------------------------- | ------- | -------------------------- | ----------- |
| title | título. Requerido | string | — | — | | title | título | string | — | — |
| type | tipo de componente | string | success/warning/info/error | info | | type | tipo de componente | string | success/warning/info/error | info |
| description | texto descriptivo. También puede ser pasado con el slot por defecto | string | — | — | | description | texto descriptivo. También puede ser pasado con el slot por defecto | string | — | — |
| closable | si se puede cerrar o no | boolean | — | true | | closable | si se puede cerrar o no | boolean | — | true |

View File

@ -202,7 +202,7 @@
### Attributes ### Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 | | 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---------- |-------------- |---------- |-------------------------------- |-------- | |---------- |-------------- |---------- |-------------------------------- |-------- |
| **title** | 标题,**必选参数** | string | — | — | | title | 标题 | string | — | — |
| type | 主题 | string | success/warning/info/error | info | | type | 主题 | string | success/warning/info/error | info |
| description | 辅助性文字。也可通过默认 slot 传入 | string | — | — | | description | 辅助性文字。也可通过默认 slot 传入 | string | — | — |
| closable | 是否可关闭 | boolean | — | true | | closable | 是否可关闭 | boolean | — | true |

View File

@ -32,8 +32,7 @@
props: { props: {
title: { title: {
type: String, type: String,
default: '', default: ''
required: true
}, },
description: { description: {
type: String, type: String,