refactor: #7090 for DynamicDialog
parent
08cc312f62
commit
b70064cb0c
|
@ -13,7 +13,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { UniqueComponentId } from '@primevue/core/utils';
|
|
||||||
import Dialog from 'primevue/dialog';
|
import Dialog from 'primevue/dialog';
|
||||||
import DynamicDialogEventBus from 'primevue/dynamicdialogeventbus';
|
import DynamicDialogEventBus from 'primevue/dynamicdialogeventbus';
|
||||||
import BaseDynamicDialog from './BaseDynamicDialog.vue';
|
import BaseDynamicDialog from './BaseDynamicDialog.vue';
|
||||||
|
@ -32,7 +31,7 @@ export default {
|
||||||
currentInstance: null,
|
currentInstance: null,
|
||||||
mounted() {
|
mounted() {
|
||||||
this.openListener = ({ instance }) => {
|
this.openListener = ({ instance }) => {
|
||||||
const key = UniqueComponentId() + '_dynamic_dialog';
|
const key = this.$attrSelector + '_dynamic_dialog';
|
||||||
|
|
||||||
instance.visible = true;
|
instance.visible = true;
|
||||||
instance.key = key;
|
instance.key = key;
|
||||||
|
|
Loading…
Reference in New Issue