This commit is contained in:
@@ -28,11 +28,14 @@ const compiledMarkdown = computed(() => {
|
||||
});
|
||||
|
||||
function mountComponents() {
|
||||
const nodes = document.querySelectorAll('.vue-component');
|
||||
|
||||
nodes.forEach(el => {
|
||||
const app = createApp(GetWidget(el.dataset.component), { content: el.dataset.content });
|
||||
app.mount(el);
|
||||
// Should no need more
|
||||
const widget_types = ['display', 'inline'];
|
||||
widget_types.forEach((widget_type) => {
|
||||
const nodes = document.querySelectorAll('.vue-component-' + widget_type);
|
||||
nodes.forEach(el => {
|
||||
const app = createApp(GetWidget(widget_type, el.dataset.component), { content: el.dataset.content });
|
||||
app.mount(el);
|
||||
});
|
||||
});
|
||||
}
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user