Chore: update docs for Input and Quickstart (#10106)

pull/10109/head
杨奕 2018-03-10 20:43:18 +08:00 committed by GitHub
parent f234b161df
commit acfbf610d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 45 deletions

View File

@ -644,8 +644,8 @@ Search data from server-side.
| ----| ----| ----| ---- | ----- | | ----| ----| ----| ---- | ----- |
|type| type of input | string | text / textarea | text | |type| type of input | string | text / textarea | text |
|value| binding value | string / number| — | — | |value| binding value | string / number| — | — |
|maxlength| maximum Input text length| number| — | — | |maxlength| same as `maxlength` in native input | number| — | — |
|minlength| minimum Input text length| number | — | — | |minlength| same as `minlength` in native input | number | — | — |
|placeholder| placeholder of Input| string | — | — | |placeholder| placeholder of Input| string | — | — |
| clearable | whether to show clear button | boolean | — | false | | clearable | whether to show clear button | boolean | — | false |
|disabled | whether Input is disabled | boolean | — | false | |disabled | whether Input is disabled | boolean | — | false |

View File

@ -253,19 +253,7 @@ With the above config, the default size of all components that have size attribu
### Start coding ### Start coding
Now you have implemented Vue and Element to your project, and it's time to write your code. Start development mode: Now you have implemented Vue and Element to your project, and it's time to write your code. Please refer to each component's documentation to learn how to use them.
```bash
npm run dev
```
Build:
```bash
npm run build
```
Please refer to each component's documentation to learn how to use them.
### Use Nuxt.js ### Use Nuxt.js

View File

@ -624,8 +624,8 @@ Búsqueda de datos desde el servidor.
| ------------- | ---------------------------------------- | ---------------- | -------------------------------- | ----------- | | ------------- | ---------------------------------------- | ---------------- | -------------------------------- | ----------- |
| type | tipo de input | string | text / textarea | text | | type | tipo de input | string | text / textarea | text |
| value | valor enlazado | string / number | — | — | | value | valor enlazado | string / number | — | — |
| maxlength | el maximo para el largo del texto | number | — | — | | maxlength | igual que `maxlength` en el input nativo | number | — | — |
| minlength | el mínimo para el largo del texto | number | — | — | | minlength | igual que `minlength` en el input nativo | number | — | — |
| placeholder | placeholder del Input | string | — | — | | placeholder | placeholder del Input | string | — | — |
| disabled | si esta deshabilitado | boolean | — | false | | disabled | si esta deshabilitado | boolean | — | false |
| size | tamaño del input, esto no funciona cuando `type` no es textarea | string | medium / small / mini | — | | size | tamaño del input, esto no funciona cuando `type` no es textarea | string | medium / small / mini | — |

View File

@ -252,19 +252,7 @@ Con la anterior configuración, el tamaño por defecto de todos los componentes
### Empiece ya! ### Empiece ya!
Ahora ha incorporado Vue y Element a su proyecto y es el momento para comenzar a programar. Inicie el modo de desarrollo: Ahora ha incorporado Vue y Element a su proyecto y es el momento para comenzar a programar. Por favor, refiérase a la documentación de cada componente para aprender cómo usarlos.
```bash
npm run dev
```
Build:
```bash
npm run build
```
Por favor, refiérase a la documentación de cada componente para aprender cómo usarlos.
### Use Nuxt.js ### Use Nuxt.js

View File

@ -800,8 +800,8 @@ export default {
|------------- |---------------- |---------------- |---------------------- |-------- | |------------- |---------------- |---------------- |---------------------- |-------- |
| type | 类型 | string | text / textarea | text | | type | 类型 | string | text / textarea | text |
| value | 绑定值 | string / number | — | — | | value | 绑定值 | string / number | — | — |
| maxlength | 最大输入长度 | number | — | — | | maxlength | 原生属性,最大输入长度 | number | — | — |
| minlength | 最小输入长度 | number | — | — | | minlength | 原生属性,最小输入长度 | number | — | — |
| placeholder | 输入框占位文本 | string | — | — | | placeholder | 输入框占位文本 | string | — | — |
| clearable | 是否可清空 | boolean | — | false | | clearable | 是否可清空 | boolean | — | false |
| disabled | 禁用 | boolean | — | false | | disabled | 禁用 | boolean | — | false |

View File

@ -253,19 +253,7 @@ Vue.use(Button);
### 开始使用 ### 开始使用
至此,一个基于 Vue 和 Element 的开发环境已经搭建完毕,现在就可以编写代码了。启动开发模式: 至此,一个基于 Vue 和 Element 的开发环境已经搭建完毕,现在就可以编写代码了。各个组件的使用方法请参阅它们各自的文档。
```bash
npm run dev
```
编译:
```bash
npm run build
```
各个组件的使用方法请参阅它们各自的文档。
### 使用 Nuxt.js ### 使用 Nuxt.js