fix Registrazione data
fix linkref fix controllo login fix pagination CGridTableRec added CstatusReg e Cstatus
This commit is contained in:
3
src/components/CMyImg/CMyImg.scss
Normal file
3
src/components/CMyImg/CMyImg.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
.climg {
|
||||
border-radius: 5px;
|
||||
}
|
||||
41
src/components/CMyImg/CMyImg.ts
Normal file
41
src/components/CMyImg/CMyImg.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
import Vue from 'vue'
|
||||
import { Component, Prop } from 'vue-property-decorator'
|
||||
import { GlobalStore, UserStore } from '@store'
|
||||
|
||||
import { tools } from '@src/store/Modules/tools'
|
||||
import { toolsext } from '@src/store/Modules/toolsext'
|
||||
|
||||
@Component({
|
||||
name: 'CMyImg'
|
||||
})
|
||||
|
||||
export default class CMyImg extends Vue {
|
||||
@Prop({ required: true, default: '' }) public src: string
|
||||
@Prop({ required: false, default: '' }) public alt: string
|
||||
@Prop({ required: false, default: '' }) public width: string
|
||||
public srcbase: string = ''
|
||||
public mystyle: string = ''
|
||||
|
||||
public mounted() {
|
||||
console.log('mounted')
|
||||
console.log(this.src)
|
||||
|
||||
if (this.width)
|
||||
this.mystyle = 'max-width: ' + this.width + 'px; '
|
||||
else
|
||||
this.mystyle = ''
|
||||
}
|
||||
|
||||
public created() {
|
||||
console.log('created')
|
||||
|
||||
}
|
||||
|
||||
get getalt() {
|
||||
if (this.alt) {
|
||||
return this.alt
|
||||
} else {
|
||||
return tools.getimgFullpathbysize(this.src)
|
||||
}
|
||||
}
|
||||
}
|
||||
12
src/components/CMyImg/CMyImg.vue
Normal file
12
src/components/CMyImg/CMyImg.vue
Normal file
@@ -0,0 +1,12 @@
|
||||
<template>
|
||||
<div v-if="src" class="text-center">
|
||||
<q-img :src="src" class="myimg" :style="mystyle" :alt="getalt">
|
||||
</q-img>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" src="./CMyImg.ts">
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import './CMyImg.scss';
|
||||
</style>
|
||||
1
src/components/CMyImg/index.ts
Normal file
1
src/components/CMyImg/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export {default as CMyImg} from './CMyImg.vue'
|
||||
Reference in New Issue
Block a user