浏览代码

fix style不兼容

Michael Wang 3 年之前
父节点
当前提交
c118b29233
共有 1 个文件被更改,包括 12 次插入10 次删除
  1. 12 10
      src/features/OnlinePractice/OnlinePracticeRecordDetail.vue

+ 12 - 10
src/features/OnlinePractice/OnlinePracticeRecordDetail.vue

@@ -99,16 +99,18 @@ onMounted(() => {
     </tbody>
   </n-table>
   <div class="record-detail-action">
-    <n-grid :xGap="20" :cols="2">
-      <n-gi>
-        <n-button type="success" block :loading="loading" @click="toOpenPaper"
-          >展开试卷</n-button
-        >
-      </n-gi>
-      <n-gi>
-        <n-button type="success" block @click="goBack">返回</n-button>
-      </n-gi>
-    </n-grid>
+    <div class="tw-flex">
+      <n-button
+        type="success"
+        class="tw-flex-1"
+        :loading="loading"
+        @click="toOpenPaper"
+      >
+        展开试卷
+      </n-button>
+      <div class="tw-mx-4"></div>
+      <n-button type="success" class="tw-flex-1" @click="goBack">返回</n-button>
+    </div>
   </div>
 
   <ExamPaperPreview