intact-vue

A compatibility layer for running intact component in vue2.0
5,885 59
Install
npm install intact-vue
Latest Version:3.0.46
Vue:2
Older releases:3
License:MIT
Last Updated:Mar 31, 2026
Links: GitHub  ·  npm
Maintainer: x6doooo

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.

Related Packages

@king-design/vue

King-Design UI components for Vue3.0.

6,340 370
@king-design/vue-legacy

King-Design UI components for Vue2.0.

5,267 370
kpc-vue

KPC components for Vue.

3,020 370
kpc

A component library written in Intact for Intact, Vue, React and Angular

17,602 370
@king-design/intact

A component library written in Intact for Intact, Vue, React and Angular

5,886 370

Version History

Version Released Vue License
3.0.46 ^2.5.0 MIT
3.0.45 ^2.5.0 MIT
3.0.44 ^2.5.0 MIT
3.0.43 ^2.5.0 MIT
3.0.42 ^2.5.0 MIT
Pre-releases (15)
Version Released Vue License
3.0.42-beta.1 ^2.5.0 MIT
3.0.0-beta.23 ^2.5.0 MIT
3.0.0-beta.22 ^2.5.0 MIT
3.0.0-beta.21 ^2.5.0 MIT
3.0.0-beta.20 ^2.5.0 MIT