Sfoglia il codice sorgente

feat: 新增快捷键列表关闭功能

奔跑的面条 3 anni fa
parent
commit
dc7e3f5a06

+ 13 - 2
src/views/chart/ContentEdit/components/EditShortcutKey/ShortcutKeyModal.vue

@@ -1,11 +1,22 @@
 <template>
-  <n-modal v-model:show="modelShow" @afterLeave="closeHandle">
+  <n-modal
+    v-model:show="modelShow"
+    :mask-closable="true"
+    @afterLeave="closeHandle"
+  >
     <n-table class="model-content" :bordered="false" :single-line="false">
       <thead>
         <tr>
           <th>功能</th>
           <th>Win 快捷键</th>
-          <th>Mac 快捷键</th>
+          <th>
+            <n-space justify="space-between">
+              <span> Mac 快捷键 </span>
+              <n-icon size="20" class="go-cursor-pointer" @click="closeHandle">
+                <close-icon></close-icon>
+              </n-icon>
+            </n-space>
+          </th>
         </tr>
       </thead>
       <tbody>