chore: v1.0.0-beta.4 changelog

This commit is contained in:
Amour1688 2020-07-22 09:23:23 +08:00
parent f481fef240
commit b817fa38af
3 changed files with 18 additions and 16 deletions

View File

@ -1,3 +1,9 @@
## 1.0.0-beta.4
`2020-07-22`
- 🐞Properly force update on forwarded slots [#33](https://github.com/vueComponent/jsx/pull/33)
## 1.0.0-beta.3 ## 1.0.0-beta.3
`2020-07-15` `2020-07-15`

View File

@ -102,8 +102,6 @@ const App = () => (
### 指令 ### 指令
> 建议在 JSX 中使用驼峰 (`vModel`),但是 `v-model` 也能用
v-show v-show
```jsx ```jsx
@ -112,7 +110,7 @@ const App = {
return { visible: true }; return { visible: true };
}, },
render() { render() {
return <input vShow={this.visible} />; return <input v-show={this.visible} />;
}, },
}; };
``` ```
@ -122,15 +120,15 @@ v-model
> 注意:如果想要使用 `arg`, 第二个参数需要为字符串 > 注意:如果想要使用 `arg`, 第二个参数需要为字符串
```jsx ```jsx
<input vModel={val} /> <input v-model={val} />
``` ```
```jsx ```jsx
<input vModel={[val, ['trim']]} /> <input v-model={[val, ['trim']]} />
``` ```
```jsx ```jsx
<A vModel={[val, 'foo', ['bar']]} /> <A v-model={[val, 'foo', ['bar']]} />
``` ```
会变编译成: 会变编译成:
@ -153,7 +151,7 @@ const App = {
setup() { setup() {
return () => ( return () => (
<a <a
vCustom={[val, 'arg', ['a', 'b']]} v-custom={[val, 'arg', ['a', 'b']]}
/> />
); );
}, },
@ -169,7 +167,7 @@ const App = {
a: () => <div>A</div>, a: () => <div>A</div>,
b: () => <span>B</span> b: () => <span>B</span>
}; };
return () => <A vSlots={slots} />; return () => <A v-slots={slots} />;
} }
}; };
``` ```

View File

@ -101,8 +101,6 @@ const App = () => (
### Directives ### Directives
> It is recommended to use camelCase version of it (`vModel`) in JSX, but you can use kebab-case too (`v-model`).
v-show v-show
```jsx ```jsx
@ -111,7 +109,7 @@ const App = {
return { visible: true }; return { visible: true };
}, },
render() { render() {
return <input vShow={this.visible} />; return <input v-show={this.visible} />;
}, },
}; };
``` ```
@ -121,15 +119,15 @@ v-model
> Note: You should pass the second param as string for using `arg`. > Note: You should pass the second param as string for using `arg`.
```jsx ```jsx
<input vModel={val} /> <input v-model={val} />
``` ```
```jsx ```jsx
<input vModel={[val, ['trim']]} /> <input v-model={[val, ['trim']]} />
``` ```
```jsx ```jsx
<A vModel={[val, 'foo', ['bar']]} /> <A v-model={[val, 'foo', ['bar']]} />
``` ```
Will compile to: Will compile to:
@ -152,7 +150,7 @@ const App = {
setup() { setup() {
return () => ( return () => (
<a <a
vCustom={[val, 'arg', ['a', 'b']]} v-custom={[val, 'arg', ['a', 'b']]}
/> />
); );
}, },
@ -168,7 +166,7 @@ const App = {
a: () => <div>A</div>, a: () => <div>A</div>,
b: () => <span>B</span> b: () => <span>B</span>
}; };
return () => <A vSlots={slots} />; return () => <A v-slots={slots} />;
} }
}; };
``` ```