Explorar el Código

fix: disable autoFocus for modal dialogs in PreferencesDrawer and data-table components

nian hace 4 semanas
padre
commit
7db39cb69f

+ 2 - 0
src/layout/header/action/PreferencesDrawer.vue

@@ -73,6 +73,7 @@ const colorSwatches = [
 
 const showWatermarkModal = () => {
   modal.create({
+    autoFocus: false,
     title: '修改水印信息',
     preset: 'dialog',
     content: () =>
@@ -98,6 +99,7 @@ const showWatermarkModal = () => {
 
 const showNoiseModal = () => {
   modal.create({
+    autoFocus: false,
     title: '修改磨砂细腻度',
     preset: 'dialog',
     content: () => h(NoiseModal),

+ 1 - 0
src/views/data-show/data-table/index.vue

@@ -393,6 +393,7 @@ function createOrEditData(data?: UserInfo) {
   }
 
   const m = modal.create({
+    autoFocus: false,
     title,
     preset: 'card',
     draggable: true,