Browse Source

fix(gui-v2): set maskClosable to false

pull/2885/head
Wing-Kam Wong 2 years ago
parent
commit
a3407dda72
  1. 2
      packages/nc-gui-v2/components/dlg/AirtableImport.vue
  2. 2
      packages/nc-gui-v2/components/dlg/QuickImport.vue
  3. 1
      packages/nc-gui-v2/components/dlg/TableCreate.vue
  4. 1
      packages/nc-gui-v2/components/dlg/TableRename.vue

2
packages/nc-gui-v2/components/dlg/AirtableImport.vue

@ -210,7 +210,7 @@ onBeforeUnmount(() => {
</script> </script>
<template> <template>
<a-modal v-model:visible="dialogShow" width="max(30vw, 600px)" @keydown.esc="dialogShow = false"> <a-modal v-model:visible="dialogShow" width="max(30vw, 600px)" :mask-closable="false" @keydown.esc="dialogShow = false">
<template #footer> <template #footer>
<div v-if="step === 1"> <div v-if="step === 1">
<a-button key="back" @click="dialogShow = false">{{ $t('general.cancel') }}</a-button> <a-button key="back" @click="dialogShow = false">{{ $t('general.cancel') }}</a-button>

2
packages/nc-gui-v2/components/dlg/QuickImport.vue

@ -228,7 +228,7 @@ function getAdapter(name: string, val: any) {
</script> </script>
<template> <template>
<a-modal v-model:visible="dialogShow" width="max(60vw, 600px)" @keydown.esc="dialogShow = false"> <a-modal v-model:visible="dialogShow" width="max(60vw, 600px)" :mask-closable="false" @keydown.esc="dialogShow = false">
<a-typography-title class="ml-5 mt-5 mb-5" type="secondary" :level="5">{{ importMeta.header }}</a-typography-title> <a-typography-title class="ml-5 mt-5 mb-5" type="secondary" :level="5">{{ importMeta.header }}</a-typography-title>
<template #footer> <template #footer>
<a-button v-if="templateEditorModal" key="back" @click="templateEditorModal = false">Back</a-button> <a-button v-if="templateEditorModal" key="back" @click="templateEditorModal = false">Back</a-button>

1
packages/nc-gui-v2/components/dlg/TableCreate.vue

@ -76,6 +76,7 @@ onMounted(() => {
<a-modal <a-modal
v-model:visible="dialogShow" v-model:visible="dialogShow"
width="max(30vw, 600px)" width="max(30vw, 600px)"
:mask-closable="false"
@keydown.esc="dialogShow = false" @keydown.esc="dialogShow = false"
@keydown.enter="$emit('create', table)" @keydown.enter="$emit('create', table)"
> >

1
packages/nc-gui-v2/components/dlg/TableRename.vue

@ -95,6 +95,7 @@ const renameTable = async () => {
<a-modal <a-modal
v-model:visible="dialogShow" v-model:visible="dialogShow"
:title="$t('activity.renameTable')" :title="$t('activity.renameTable')"
:mask-closable="false"
@keydown.esc="dialogShow = false" @keydown.esc="dialogShow = false"
@finish="renameTable" @finish="renameTable"
> >

Loading…
Cancel
Save