3.0.34 • Published 1 month ago

intact-vue-next v3.0.34

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

intact-vue

A compatibility layer for running Intact component in Vue-Next.

Usage

import {createApp} from 'vue';
import {Component} from 'intact-vue';

class IntactComponent extends Component {
    static template = `
        <button ev-click={this.onClick.bind(this)}>
            click {this.get('value')}
        </button>
    `;

    onClick() {
        this.set('value', this.get('value') + 1);
        this.trigger('click');
    }
}

const container = document.createElement('div');
document.body.appendChild(container);
createApp({
    data: {
        count: 0,
    },
    template: `<div>
        <IntactComponent @click="onClick" v-model="count"/>
        <div>count: {{ count }}</div>
    </div>`,
    methods: {
        onClick() {
            console.log(this.count);
        }
    },
    components: {IntactComponent}
}).mount(container);

webpack

You can use alias config of webpack to replace intact module.

resolve: {
    alias: {
        'intact$': 'intact-vue'
    }
}

Incompatible

  1. .native modifier is not supported. For example:

    // native modifier
    <IntactComponent @click.native="onClick" />
  2. Multiple values style is not supported.

3.0.34

1 month ago

3.0.33

2 months ago

3.0.32

3 months ago

3.0.31

3 months ago

3.0.30

3 months ago

3.0.29

4 months ago

3.0.27

4 months ago

3.0.28

4 months ago

3.0.26

4 months ago

3.0.25

5 months ago

3.0.24

5 months ago

3.0.23

5 months ago

3.0.21

6 months ago

3.0.22

6 months ago

3.0.20

6 months ago

3.0.19

7 months ago

3.0.18

9 months ago

3.0.17

9 months ago

3.0.16

1 year ago

3.0.14

1 year ago

3.0.15

1 year ago

3.0.13

1 year ago

3.0.9

2 years ago

3.0.12

1 year ago

3.0.10

2 years ago

3.0.11

1 year ago

3.0.8

2 years ago

3.0.7

2 years ago

3.0.6

2 years ago

3.0.5

2 years ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

3.0.0-beta.23

2 years ago

3.0.0-beta.21

2 years ago

3.0.0-beta.22

2 years ago

3.0.0-beta.19

2 years ago

3.0.0-beta.20

2 years ago

3.0.0-beta.16

2 years ago

3.0.0-beta.17

2 years ago

3.0.0-beta.18

2 years ago

3.0.0-beta.14

3 years ago

3.0.0-beta.15

3 years ago

3.0.0-beta.13

3 years ago

3.0.0-beta.12

3 years ago