Skip to content

Commit

Permalink
+SubEditer 全屏
Browse files Browse the repository at this point in the history
  • Loading branch information
Keywos committed Mar 19, 2024
1 parent 4b9f176 commit c7a15f3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store-front-end",
"version": "2.14.194",
"version": "2.14.195",
"private": true,
"scripts": {
"dev": "vite --host",
Expand Down
18 changes: 15 additions & 3 deletions src/views/SubEditor.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<template>
<div v-if="isDis">
<div class="page-wrapper">
<!-- 基础表单 -->
<div class="form-block-wrapper">
Expand Down Expand Up @@ -128,7 +129,11 @@
"
type="text"
/> -->

<button class="cimg-button" @click="isDis = false">
<img src="" />
全屏编辑
<!-- 测试 后续再改效果 -->
</button>
<div style="margin-left: -10px; margin-right: -16px">
<cmView :isReadOnly="false" id="SubEditer"/>
</div>
Expand Down Expand Up @@ -294,7 +299,14 @@
{{ $t("editorPage.subConfig.btn.save") }}
</nut-button>
</div>

</div>
<div v-else style="width: 100%">
<button class="cimg-button" @click="isDis = true">
<img src="" />
取消全屏
</button>
<cmView :isReadOnly="false" id="SubEditer" />
</div>
<CompareTable
v-if="compareTableIsVisible"
:name="configName"
Expand Down Expand Up @@ -340,7 +352,7 @@ import { useRoute, useRouter } from "vue-router";
import cmView from "@/views/editCode/cmView.vue";
import { useCodeStore } from "@/store/codeStore";
const cmStore = useCodeStore();
const isDis = ref(true)
const { t } = useI18n();
const route = useRoute();
const router = useRouter();
Expand Down

0 comments on commit c7a15f3

Please sign in to comment.