diff --git a/README-zh_CN.md b/README-zh_CN.md index 9d9dd0b..7d378fd 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -119,26 +119,12 @@ const App = { v-model -* 修饰符:使用 (`_`) 代替 (`.`) (`vModel_trim={this.test}`) +> 注意:如果想要使用 `arg`, 第二个参数需要为字符串 ```jsx -export default { - data: () => ({ - test: 'Hello World', - }), - render() { - return ( - <> - - {this.test} - - ) - }, -} + ``` -* 或者使用这种实现 - ```jsx ``` @@ -174,8 +160,6 @@ const App = { } ``` -> 注意:如果想要使用 `arg`, 第二个参数需要为字符串 - ### 插槽 ```jsx diff --git a/README.md b/README.md index b453b47..33bacb4 100644 --- a/README.md +++ b/README.md @@ -120,26 +120,12 @@ const App = { 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 -export default { - data: () => ({ - test: 'Hello World', - }), - render() { - return ( - <> - - {this.test} - - ) - }, -} + ``` -* Or you can use this proposal. - ```jsx ``` @@ -175,8 +161,6 @@ const App = { } ``` -> Note: You should pass the second param as string for using `arg`. - ### Slot ```jsx