var t = ` ` export default { data() { return { config: {}, visible: false, resolve: null, }; }, methods: { open(config) { this.config = config; this.visible = true; this.$nextTick(() => { this.$refs.modalAutoFocus.focus(); }); return new Promise((resolve) => { this.resolve = resolve; }); }, close(resolve) { this.visible = false; this.resolve(resolve); }, }, template: t }