mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Doc] fix field wrong spelling (#1141)
This commit is contained in:
parent
cb992ce979
commit
dd5d54ba0f
@ -618,7 +618,7 @@
|
||||
**Bug Fixes**
|
||||
|
||||
* fix Popup overlayClass type [\#374](https://github.com/youzan/vant/pull/374) [@chenjiahan](https://github.com/chenjiahan)
|
||||
* fix Filed number type value filter [\#386](https://github.com/youzan/vant/pull/386) [@chenjiahan](https://github.com/chenjiahan)
|
||||
* fix Field number type value filter [\#386](https://github.com/youzan/vant/pull/386) [@chenjiahan](https://github.com/chenjiahan)
|
||||
* fix Icon 'new' display [\#381](https://github.com/youzan/vant/pull/381) ([@pangxie1991](https://github.com/pangxie1991))
|
||||
* fix Sku button border radius [\#378](https://github.com/youzan/vant/pull/378) [@chenjiahan](https://github.com/chenjiahan)
|
||||
* fix Radio & Checkbox disabled color [\#383](https://github.com/youzan/vant/pull/383) [@chenjiahan](https://github.com/chenjiahan)
|
||||
@ -882,7 +882,7 @@
|
||||
**Bug Fixes**
|
||||
|
||||
* fix AddressEdit name key [\#187](https://github.com/youzan/vant/pull/187) [@chenjiahan](https://github.com/chenjiahan)
|
||||
* fix Filed textarea wrong height when display none [\#188](https://github.com/youzan/vant/pull/188) [@chenjiahan](https://github.com/chenjiahan)
|
||||
* fix Field textarea wrong height when display none [\#188](https://github.com/youzan/vant/pull/188) [@chenjiahan](https://github.com/chenjiahan)
|
||||
* fix compile error in windows [\#185](https://github.com/youzan/vant/pull/182) [@pangxie1991](https://github.com/pangxie1991)
|
||||
|
||||
### [0.9.10](https://github.com/youzan/vant/tree/v0.9.10)
|
||||
|
@ -612,11 +612,11 @@
|
||||
**Bug Fixes**
|
||||
|
||||
* 修复 Popup overlayClass 类型错误 [\#374](https://github.com/youzan/vant/pull/374) [@chenjiahan](https://github.com/chenjiahan)
|
||||
* 修复 Filed number 类型输入值过滤 [\#386](https://github.com/youzan/vant/pull/386) [@chenjiahan](https://github.com/chenjiahan)
|
||||
* 修复 Field number 类型输入值过滤 [\#386](https://github.com/youzan/vant/pull/386) [@chenjiahan](https://github.com/chenjiahan)
|
||||
* 修复 Icon 'new' 显示问题 [\#381](https://github.com/youzan/vant/pull/381) [@pangxie1991](https://github.com/pangxie1991)
|
||||
* 修复 Sku 按钮圆角问题 [\#378](https://github.com/youzan/vant/pull/378) [@chenjiahan](https://github.com/chenjiahan)
|
||||
* 修复 Radio & Checkbox 禁用态样式 [\#383](https://github.com/youzan/vant/pull/383) [@chenjiahan](https://github.com/chenjiahan)
|
||||
* 修复 Filed disabled 在安卓下的显示问题 [\#388](https://github.com/youzan/vant/pull/388) [@chenjiahan](https://github.com/chenjiahan)
|
||||
* 修复 Field disabled 在安卓下的显示问题 [\#388](https://github.com/youzan/vant/pull/388) [@chenjiahan](https://github.com/chenjiahan)
|
||||
|
||||
### [0.11.5](https://github.com/youzan/vant/tree/v0.11.5)
|
||||
|
||||
@ -877,7 +877,7 @@
|
||||
**Bug Fixes**
|
||||
|
||||
* 修正 AddressEdit 组件姓名字段的键名为 name [\#187](https://github.com/youzan/vant/pull/187) [@chenjiahan](https://github.com/chenjiahan)
|
||||
* 修复 Filed type 为 textarea 且 display none 时高度计算错误的问题 [\#188](https://github.com/youzan/vant/pull/188) [@chenjiahan](https://github.com/chenjiahan)
|
||||
* 修复 Field type 为 textarea 且 display none 时高度计算错误的问题 [\#188](https://github.com/youzan/vant/pull/188) [@chenjiahan](https://github.com/chenjiahan)
|
||||
* 修复 windows 下项目编译失败的问题 [\#185](https://github.com/youzan/vant/pull/182) [@pangxie1991](https://github.com/pangxie1991)
|
||||
|
||||
### [0.9.10](https://github.com/youzan/vant/tree/v0.9.10)
|
||||
@ -1127,7 +1127,7 @@
|
||||
|
||||
**Improvements**
|
||||
|
||||
* Filed 组件:支持 time 类型 [\#43](https://github.com/youzan/vant/pull/43) [@cookfront](https://github.com/cookfront)
|
||||
* Field 组件:支持 time 类型 [\#43](https://github.com/youzan/vant/pull/43) [@cookfront](https://github.com/cookfront)
|
||||
|
||||
**Bug Fixes**
|
||||
|
||||
|
@ -77,7 +77,7 @@ export default {
|
||||
| Event | Description | Arguments |
|
||||
|-----------|-----------|-----------|
|
||||
| save | Triggered when click save button | content:form content |
|
||||
| focus | Triggered when focus field | key: filed name |
|
||||
| focus | Triggered when focus field | key: field name |
|
||||
| delete | Triggered when confirm delete | content:form content |
|
||||
| cancel-delete | Triggered when cancel delete | content:form content |
|
||||
| select-search | Triggered when select search result | value: search content |
|
||||
|
@ -264,9 +264,9 @@ test('show search result', done => {
|
||||
}
|
||||
});
|
||||
|
||||
const filed = wrapper.findAll('.van-field__control').at(2);
|
||||
const input = filed.element;
|
||||
filed.trigger('focus');
|
||||
const field = wrapper.findAll('.van-field__control').at(2);
|
||||
const input = field.element;
|
||||
field.trigger('focus');
|
||||
|
||||
const items = wrapper.findAll('.van-icon-location');
|
||||
items.at(0).element.parentNode.click();
|
||||
@ -276,7 +276,7 @@ test('show search result', done => {
|
||||
items.at(2).element.parentNode.click();
|
||||
expect(input.value).toEqual('address2');
|
||||
|
||||
filed.trigger('blur');
|
||||
field.trigger('blur');
|
||||
setTimeout(() => {
|
||||
done();
|
||||
}, 150);
|
||||
|
@ -10,7 +10,7 @@ Vue.use(Field);
|
||||
### Usage
|
||||
|
||||
#### Basic Usage
|
||||
The value of filed is bound with v-model.
|
||||
The value of field is bound with v-model.
|
||||
|
||||
```html
|
||||
<van-cell-group>
|
||||
@ -19,7 +19,7 @@ The value of filed is bound with v-model.
|
||||
```
|
||||
|
||||
#### Custom type
|
||||
Use `type` prop to custom diffrent type fileds.
|
||||
Use `type` prop to custom diffrent type fields.
|
||||
|
||||
```html
|
||||
<van-cell-group>
|
||||
@ -75,7 +75,7 @@ Use `error` or `error-message` to show error info
|
||||
```
|
||||
|
||||
#### Auto resize
|
||||
Textarea Filed can be auto resize when has `autosize` prop
|
||||
Textarea Field can be auto resize when has `autosize` prop
|
||||
|
||||
```html
|
||||
<van-cell-group>
|
||||
@ -109,12 +109,12 @@ Use button slot to insert button
|
||||
```
|
||||
|
||||
### API
|
||||
Filed support all native properties of input tag,such as `maxlength`、`placeholder`、`readonly`、`autofocus`
|
||||
Field support all native properties of input tag,such as `maxlength`、`placeholder`、`readonly`、`autofocus`
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| value | Filed value | `String` | - |
|
||||
| label | Filed label | `String` | - |
|
||||
| value | Field value | `String` | - |
|
||||
| label | Field label | `String` | - |
|
||||
| type | Input type | `String` | `text` |
|
||||
| disabled | Disable field | `Boolean` | `false` |
|
||||
| error | Whether to show error info | `Boolean` | `false` |
|
||||
@ -124,11 +124,11 @@ Filed support all native properties of input tag,such as `maxlength`、`placeh
|
||||
| left-icon | Left side icon name | `String` | - |
|
||||
|
||||
### Event
|
||||
Filed support all native events of input tag,such as `focus`、`blur`、`keypress`
|
||||
Field support all native events of input tag,such as `focus`、`blur`、`keypress`
|
||||
|
||||
| Event | Description | Parameters |
|
||||
|-----------|-----------|-----------|
|
||||
| click-icon | Triggered when click the icon of filed | - |
|
||||
| click-icon | Triggered when click the icon of Field | - |
|
||||
|
||||
### Slot
|
||||
|
||||
|
@ -111,7 +111,7 @@ Vue.use(Field);
|
||||
```
|
||||
|
||||
### API
|
||||
Filed 默认支持 Input 标签所有的原生属性,比如 `maxlength`、`placeholder`、`readonly`、`autofocus` 等
|
||||
Field 默认支持 Input 标签所有的原生属性,比如 `maxlength`、`placeholder`、`readonly`、`autofocus` 等
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
@ -126,7 +126,7 @@ Filed 默认支持 Input 标签所有的原生属性,比如 `maxlength`、`pla
|
||||
| left-icon | 输入框左侧图标 (可选值见 Icon 组件) | `String` | - |
|
||||
|
||||
### Event
|
||||
Filed 默认支持 Input 标签所有的原生事件,如 `focus`、`blur`、`keypress` 等
|
||||
Field 默认支持 Input 标签所有的原生事件,如 `focus`、`blur`、`keypress` 等
|
||||
|
||||
| 事件 | 说明 | 回调参数 |
|
||||
|-----------|-----------|-----------|
|
||||
|
Loading…
x
Reference in New Issue
Block a user