docs: update README

This commit is contained in:
Amour1688
2020-07-15 09:22:27 +08:00
parent b95986ee90
commit 53d1c0f83d
2 changed files with 4 additions and 36 deletions

View File

@ -119,26 +119,12 @@ const App = {
v-model v-model
* 修饰符:使用 (`_`) 代替 (`.`) (`vModel_trim={this.test}`) > 注意:如果想要使用 `arg`, 第二个参数需要为字符串
```jsx ```jsx
export default { <input vModel={val} />
data: () => ({
test: 'Hello World',
}),
render() {
return (
<>
<input type="text" vModel_trim={this.test} />
{this.test}
</>
)
},
}
``` ```
* 或者使用这种实现
```jsx ```jsx
<input vModel={[val, ['trim']]} /> <input vModel={[val, ['trim']]} />
``` ```
@ -174,8 +160,6 @@ const App = {
} }
``` ```
> 注意:如果想要使用 `arg`, 第二个参数需要为字符串
### 插槽 ### 插槽
```jsx ```jsx

View File

@ -120,26 +120,12 @@ const App = {
v-model v-model
* You can use underscore (`_`) instead of dot (`.`) for modifiers (`vModel_trim={this.test}`) > Note: You should pass the second param as string for using `arg`.
```jsx ```jsx
export default { <input vModel={val} />
data: () => ({
test: 'Hello World',
}),
render() {
return (
<>
<input type="text" vModel_trim={this.test} />
{this.test}
</>
)
},
}
``` ```
* Or you can use this proposal.
```jsx ```jsx
<input vModel={[val, ['trim']]} /> <input vModel={[val, ['trim']]} />
``` ```
@ -175,8 +161,6 @@ const App = {
} }
``` ```
> Note: You should pass the second param as string for using `arg`.
### Slot ### Slot
```jsx ```jsx