Releases: luwanquan/babel-preset-vca-jsx
Releases · luwanquan/babel-preset-vca-jsx
v0.3.6
v0.3.5
v0.3.4
v0.3.3
fix: Fixed @vue/babel-sugar-v-model@1.1.2 calling this
in setup()
v0.3.2
v0.3.1
v0.3.0
new feat: Support allocating template refs
with JSX
on the render function returned by setup()
e.g.
const Hello = createComponent({
setup() {
const root = ref(null);
watch(() => console.log(root.value)); // <h1>...</h1>
/*
return () => h('h1', {
ref: root
}, 'hello world!');
*/
return () => <h1 ref={root}>hello world!</h1>
}
});
v0.2.0
v0.1.0
fix: Support more situations
No longer limited to
render()
orsetup()
e.g.
hello.js
export default function() {
return <h1>Hello World!</h1>;
}
app.js
import { createComponent } from '@vue/composition-api';
import hello from './hello';
const App = createComponent({
setup() {
return () => <div>{hello()}</div>;
}
});