| 123456789101112131415161718192021222324252627282930 |
- <template>
- <ui-editor-head class="header">
- <div class="main">
- <span class="title"> </span>
- </div>
- <div class="control">
- <template v-if="isEdit">
- <ui-button width="105px" @click="leave">{{ $t("sys.quit") }}</ui-button>
- <ui-button width="105px" type="primary" class="save" v-if="isOld" @click="save">
- {{ $t("sys.save") }}
- </ui-button>
- </template>
- </div>
- </ui-editor-head>
- </template>
- <script setup lang="ts">
- import { computed, watchEffect } from "vue";
- import { isEdit, title, isOld, leave, save } from "@/store";
- const props = defineProps<{ title?: string }>();
- const sysTitle = computed(() => props.title || title.value);
- watchEffect(() => (document.title = sysTitle.value));
- </script>
- <style lang="sass" scoped>
- @import './style.scss'
- </style>
|