|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<q-bar class="bg-transparent q-px-md" v-bind="$attrs" style="height: 55px">
|
|
<q-bar class="bg-transparent q-px-md" v-bind="$attrs" style="height: 55px">
|
|
|
<q-icon v-if="icon" :name="icon" />
|
|
<q-icon v-if="icon" :name="icon" />
|
|
|
- <div>{{ title() }}</div>
|
|
|
|
|
|
|
+ <div>{{ title }}</div>
|
|
|
|
|
|
|
|
<q-space />
|
|
<q-space />
|
|
|
|
|
|
|
@@ -19,14 +19,13 @@
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
import { ref, onMounted } from "vue";
|
|
import { ref, onMounted } from "vue";
|
|
|
-import { useI18n } from "vue-i18n";
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits(["maximized", "close"]);
|
|
const emit = defineEmits(["maximized", "close"]);
|
|
|
|
|
|
|
|
const { title, fullscreen, maximizable, icon } = defineProps({
|
|
const { title, fullscreen, maximizable, icon } = defineProps({
|
|
|
title: {
|
|
title: {
|
|
|
- type: Function,
|
|
|
|
|
- default: () => useI18n().t("common.terms.title"),
|
|
|
|
|
|
|
+ type: String,
|
|
|
|
|
+ default: "",
|
|
|
},
|
|
},
|
|
|
fullscreen: {
|
|
fullscreen: {
|
|
|
type: Boolean,
|
|
type: Boolean,
|