Files
myprojplanet_vite/src/components/logo/logo.ts

36 lines
545 B
TypeScript
Raw Normal View History

2021-08-31 18:09:59 +02:00
import {
defineComponent,
} from 'vue'
import { tools } from '@src/store/Modules/tools'
import { useQuasar } from 'quasar'
2025-03-01 14:14:43 +01:00
import { useI18n } from 'vue-i18n'
2021-08-31 18:09:59 +02:00
export default defineComponent({
name: 'Logo',
props: {
mystyle: {
2022-12-17 14:12:04 +01:00
type: String,
2021-08-31 18:09:59 +02:00
required: false,
2022-12-17 14:12:04 +01:00
default: '',
2021-08-31 18:09:59 +02:00
},
},
setup() {
const { t } = useI18n()
2021-08-31 18:09:59 +02:00
function logoimg() {
return `${tools.getimglogo()}`
}
function logoalt() {
2021-08-31 18:09:59 +02:00
return t('ws.sitename')
}
return {
logoimg,
logoalt,
}
},
})