3.0.40 • Published 5 months ago

intact-vue-next v3.0.40

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months 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.40

5 months ago

3.0.35

1 year ago

3.0.38

10 months ago

3.0.39

10 months ago

3.0.36

1 year ago

3.0.37

1 year ago

3.0.34

1 year ago

3.0.33

1 year ago

3.0.32

1 year ago

3.0.31

1 year ago

3.0.30

1 year ago

3.0.29

1 year ago

3.0.27

1 year ago

3.0.28

1 year ago

3.0.26

1 year ago

3.0.25

1 year ago

3.0.24

1 year ago

3.0.23

2 years ago

3.0.21

2 years ago

3.0.22

2 years ago

3.0.20

2 years ago

3.0.19

2 years ago

3.0.18

2 years ago

3.0.17

2 years ago

3.0.16

2 years ago

3.0.14

2 years ago

3.0.15

2 years ago

3.0.13

2 years ago

3.0.9

3 years ago

3.0.12

3 years ago

3.0.10

3 years ago

3.0.11

3 years ago

3.0.8

3 years ago

3.0.7

3 years ago

3.0.6

3 years ago

3.0.5

3 years ago

3.0.4

3 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

3.0.0-beta.23

3 years ago

3.0.0-beta.21

3 years ago

3.0.0-beta.22

3 years ago

3.0.0-beta.19

3 years ago

3.0.0-beta.20

3 years ago

3.0.0-beta.16

4 years ago

3.0.0-beta.17

3 years ago

3.0.0-beta.18

3 years ago

3.0.0-beta.14

4 years ago

3.0.0-beta.15

4 years ago

3.0.0-beta.13

4 years ago

3.0.0-beta.12

4 years ago