Skip to content

Releases: luwanquan/babel-preset-vca-jsx

v0.3.6

14 Jul 15:52
Compare
Choose a tag to compare

v0.3.5

08 Apr 02:32
Compare
Choose a tag to compare

v0.3.4

13 Dec 07:14
Compare
Choose a tag to compare

adapt: Adapting babel-sugar-setup-ref to boundary processing

Ref will not bind properly when nodes are displayed late.
Here to adapt to this situation by adding nextTick for processing

v0.3.3

12 Dec 18:17
Compare
Choose a tag to compare

fix: Fixed @vue/[email protected] calling this in setup()

v0.3.2

15 Sep 12:17
Compare
Choose a tag to compare

fix: setup() template refs adds the match of ObjectProperty

v0.3.1

15 Sep 12:05
Compare
Choose a tag to compare

fix: TypeError: Property body[1] of BlockStatement expected node to be of a type ["Statement"] but instead got "CallExpression"

v0.3.0

15 Sep 09:49
Compare
Choose a tag to compare

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

10 Sep 11:11
Compare
Choose a tag to compare

new feat: Support setup functional component syntax

e.g.

import { ref } from '@vue/composition-api';

const Hello = (prop, ctx) => {
    const state = ref('Hello World!');
    return () => (
        <h1>{state.value}</h1>
    );
};

v0.1.0

28 Aug 08:03
Compare
Choose a tag to compare

fix: Support more situations

No longer limited to render() or setup()

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>;
  }
});

v0.0.2

28 Aug 04:28
Compare
Choose a tag to compare
docs:update README file