【发布时间】:2021-03-05 13:41:52
【问题描述】:
我是 quasar 框架的新手。
我创建了一个组件并使用了它的模态弹出窗口。我关注了this
对话框正在使用下面打开。
methods: {
openStoreModal(store:Store) {
this.$q.dialog({
component: StoreComponent,
parent: this,
title: store.name,
store: store,
});
}
}
自定义对话框组件的 HTML。
HTML
<template>
<q-dialog
ref="dialog"
@hide="onDialogHide"
>
<q-card
class="q-dialog-plugin"
style="width: 700px; max-width: 80vw;"
>
在自定义对话框组件内部
methods: {
show() {
this.$refs.dialog.show();
},
hide() {
this.$refs.dialog.hide();
},
onDialogHide() {
this.$emit('hide');
},
onCloseClick() {
this.hide();
}
}
我在构建时遇到此错误。
我在这里错过了什么?
【问题讨论】:
标签: vue.js quasar-framework quasar