2019-12-04 02:05:08 +01:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
import { Component, Prop } from 'vue-property-decorator'
|
|
|
|
|
import { GlobalStore, UserStore } from '@store'
|
|
|
|
|
|
|
|
|
|
import VueScrollReveal from 'vue-scroll-reveal'
|
|
|
|
|
import { tools } from '@src/store/Modules/tools'
|
|
|
|
|
import { toolsext } from '@src/store/Modules/toolsext'
|
|
|
|
|
import { Screen } from 'quasar'
|
|
|
|
|
|
|
|
|
|
// Vue.use(VueScrollReveal, {
|
|
|
|
|
// class: 'v-scroll-reveal', // A CSS class applied to elements with the v-scroll-reveal directive; useful for animation overrides.
|
|
|
|
|
// duration: 1200,
|
|
|
|
|
// scale: 0.95,
|
|
|
|
|
// distance: '10px',
|
|
|
|
|
// rotate: {
|
|
|
|
|
// x: 0,
|
|
|
|
|
// y: 0,
|
|
|
|
|
// z: 0
|
|
|
|
|
// }
|
|
|
|
|
// // mobile: true
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
name: 'CTitleBanner'
|
|
|
|
|
})
|
|
|
|
|
export default class CTitleBanner extends Vue {
|
2020-04-07 14:33:56 +02:00
|
|
|
@Prop({ required: true }) public title: string
|
2019-12-04 02:05:08 +01:00
|
|
|
@Prop({ required: false, default: 'bg-primary' }) public bgcolor: string
|
2019-12-27 12:43:42 +01:00
|
|
|
@Prop({ required: false, default: 'text-white' }) public clcolor: string
|
|
|
|
|
@Prop({ required: false, default: '' }) public mystyle: string
|
|
|
|
|
@Prop({ required: false, default: '' }) public myclass: string
|
|
|
|
|
@Prop({ required: false, default: '' }) public myclasstext: string
|
|
|
|
|
@Prop({ required: false, default: '' }) public icon: string
|
|
|
|
|
@Prop({ required: false, default: true }) public visible: boolean
|
2019-12-29 23:29:56 +01:00
|
|
|
@Prop({ required: false, default: false }) public canopen: boolean
|
2020-02-12 20:41:57 +01:00
|
|
|
@Prop({ required: false, default: '' }) public imgpreview: string
|
2019-12-04 02:05:08 +01:00
|
|
|
|
2020-02-07 22:08:01 +01:00
|
|
|
public myvisible: boolean = false
|
2019-12-27 12:43:42 +01:00
|
|
|
|
2020-02-07 22:08:01 +01:00
|
|
|
public created() {
|
2019-12-27 12:43:42 +01:00
|
|
|
this.myvisible = this.visible
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
get iconopen() {
|
|
|
|
|
if (!this.myvisible)
|
|
|
|
|
return 'fas fa-chevron-down q-icon q-expansion-item__toggle-icon q-focusable '
|
|
|
|
|
else
|
|
|
|
|
return 'fas fa-chevron-down q-icon q-expansion-item__toggle-icon q-focusable rotate-180'
|
|
|
|
|
}
|
2020-04-07 14:33:56 +02:00
|
|
|
|
|
|
|
|
public apri() {
|
|
|
|
|
this.myvisible = !this.myvisible
|
|
|
|
|
if (this.myvisible)
|
|
|
|
|
this.$emit('apri')
|
|
|
|
|
}
|
2020-05-11 22:43:54 +02:00
|
|
|
|
|
|
|
|
get getclass(){
|
|
|
|
|
if (this.myvisible)
|
|
|
|
|
return 'isvisibile'
|
|
|
|
|
else
|
|
|
|
|
return 'nonvisibile glossy'
|
|
|
|
|
}
|
2019-12-04 02:05:08 +01:00
|
|
|
}
|