Skip to content
Snippets Groups Projects

refactor: convert all components to composition API

Merged Amtul Noor requested to merge vue2tovue3 into develop
1 file
+ 4
15
Compare changes
  • Side-by-side
  • Inline
+ 4
15
@@ -9,24 +9,13 @@ import './css/style.scss';
window.Tido = function Tido(config = {}) {
this.config = { ...config };
const instance = this;
this.app = createApp({
render() {
return h(App);
},
data() {
return {
config: instance.config,
};
},
provide() {
return {
config: this.config,
}
this.app = createApp({
setup() {
return () => h(App);
},
});
this.app.provide('config', this.config);
this.app.use(createStore());
this.app.use(i18n);
Loading