浏览代码

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

nian 4 周之前
父节点
当前提交
7db39cb69f
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. 2 0
      src/layout/header/action/PreferencesDrawer.vue
  2. 1 0
      src/views/data-show/data-table/index.vue

+ 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,