const fragment = document.createDocumentFragment();
const app = createApp(MyComponent).mount(fragment);
console.log(app.count);
console.log(app.$data.count);
output: {
filename: 'file-[contenthash].js',
chunkFilename: 'chunk-[contenthash].js',
}
newString(v-for='(item, index) in stringslist.'
:key='item.id'
:info='item'
@delete-string="deleteString(index)"
@change="onChange(index, $event)"
export default {
name: 'modal-hello',
};
<modal-root>
сюда будут рендериться модалки
</modal-root>
mounted() {
this.$modal.open('modal-hello');
}
<md-button class="md-primary">Primary</md-button>
<v-btn small color="primary">Primary</v-btn>
<fish-button type="primary">Primary</fish-button>
<q-btn color="primary" label="Primary" />
<el-button type="primary">Primary</el-button>
<b-button variant="success">Button</b-button>
<Button type="primary">Primary</Button>
<Button primary">Primary</Button>
<md-button class="u-mb20 md-primary">Primary</md-button>
:obj.prop="objOne"
как говорятprops
AppTest.vue
components/
Test-1.vue
Test-2.vue
<div>
<app-test component-name="Test-1" />
</div>
<template>
<div>
<component :is="componentName"></component>
</div>
</template>
<script>
export default {
props: {
componentName: String,
},
created() {
this.$options.components[this.componentName] = () => import(`./components/${this.componentName}.vue`);
}
};
</script>
const component = () => ({
component: import('./Some.vue'),
loading: LoadingComponent,
error: ErrorComponent,
timeout: 3000
});