sito Terra Della Visione...3
Pagina Operatori
This commit is contained in:
@@ -2,6 +2,7 @@ import { defineComponent, ref } from 'vue'
|
||||
|
||||
import { CCardDiscipline } from '../CCardDiscipline'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CCardCarousel',
|
||||
@@ -11,15 +12,26 @@ export default defineComponent({
|
||||
type: Array,
|
||||
required: true,
|
||||
},
|
||||
directory: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: '',
|
||||
}
|
||||
},
|
||||
setup() {
|
||||
setup(props, { emit }) {
|
||||
|
||||
const globalStore = useGlobalStore()
|
||||
const slidedisc = ref(0)
|
||||
|
||||
function getimgdisc(disc: any) {
|
||||
return props.directory + tools.getimgev(disc)
|
||||
}
|
||||
|
||||
return {
|
||||
slidedisc,
|
||||
globalStore,
|
||||
tools,
|
||||
getimgdisc,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user