intact-vue
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
-
.nativemodifier is not supported. For example:// native modifier <IntactComponent @click.native="onClick" /> -
Multiple values style is not supported.
Related Packages
@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 | |
| 3.0.41 | ^2.5.0 | MIT | |
| 3.0.40 | ^2.5.0 | MIT | |
| 3.0.39 | ^2.5.0 | MIT | |
| 3.0.38 | ^2.5.0 | MIT | |
| 3.0.37 | ^2.5.0 | MIT | |
| 3.0.36 | ^2.5.0 | MIT | |
| 3.0.35 | ^2.5.0 | MIT | |
| 3.0.34 | ^2.5.0 | MIT | |
| 3.0.33 | ^2.5.0 | MIT | |
| 3.0.32 | ^2.5.0 | MIT | |
| 3.0.31 | ^2.5.0 | MIT | |
| 3.0.30 | ^2.5.0 | MIT | |
| 3.0.29 | ^2.5.0 | MIT | |
| 3.0.28 | ^2.5.0 | MIT | |
| 3.0.27 | ^2.5.0 | MIT | |
| 3.0.26 | ^2.5.0 | MIT | |
| 3.0.25 | ^2.5.0 | MIT | |
| 3.0.24 | ^2.5.0 | MIT | |
| 3.0.23 | ^2.5.0 | MIT | |
| 3.0.22 | ^2.5.0 | MIT | |
| 3.0.21 | ^2.5.0 | MIT | |
| 3.0.20 | ^2.5.0 | MIT | |
| 3.0.19 | ^2.5.0 | MIT | |
| 3.0.18 | ^2.5.0 | MIT | |
| 3.0.17 | ^2.5.0 | MIT |
Showing the latest 30 of 129. See every release on npm
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 | |
| 3.0.0-beta.19 | ^2.5.0 | MIT | |
| 3.0.0-beta.18 | ^2.5.0 | MIT | |
| 3.0.0-beta.17 | ^2.5.0 | MIT | |
| 3.0.0-beta.16 | ^2.5.0 | MIT | |
| 0.2.5-0 | ^2.5.9 | MIT | |
| 0.1.2-2 | ^2.5.9 | MIT | |
| 0.1.2-1 | ^2.5.9 | MIT | |
| 0.1.2-0 | ^2.5.9 | MIT | |
| 0.0.3-0 | ^2.5.9 | MIT | |
| 0.0.2-0 | ^2.5.9 | MIT |