Files
salvato.newfreeplanet/src/components/CCurrencyValue/CCurrencyValue.ts

105 lines
1.8 KiB
TypeScript
Raw Normal View History

2022-09-12 18:36:54 +02:00
import { defineComponent, onMounted, PropType, ref, watch } from 'vue'
import { tools } from '@src/store/Modules/tools'
import { date, useQuasar } from 'quasar'
import { useI18n } from '@/boot/i18n'
import { costanti } from '@costanti'
2022-09-12 18:36:54 +02:00
export default defineComponent({
name: 'CCurrencyValue',
components: { },
emits: ['changedParamValue' ],
2022-09-12 18:36:54 +02:00
props: {
modelValue: {
type: [String, Number],
required: false,
default: '',
},
2022-11-06 13:38:38 +01:00
small: {
type: Boolean,
default: false,
},
2022-09-12 18:36:54 +02:00
label: {
type: String,
required: false,
default: '',
},
tips: {
type: String,
required: false,
default: '',
},
strfido: {
type: String,
required: false,
default: '',
},
2022-09-12 18:36:54 +02:00
readonly: {
type: Boolean,
required: false,
default: false,
},
symbol: {
type: String,
required: true,
},
color: {
type: String,
required: false,
default: '',
},
color_border: {
type: String,
required: false,
default: '',
},
2022-09-12 18:36:54 +02:00
icon: {
type: String,
required: false,
default: '',
},
valueextra: {
type: String,
required: false,
default: '',
},
paramTypeAccount: {
type: Number,
required: false,
default: 0,
},
myrecparam: {
type: Object,
required: false,
default: null,
},
admin: {
type: Boolean,
required: false,
default: false,
},
2022-09-12 18:36:54 +02:00
},
setup(props, { emit }) {
const $q = useQuasar()
const { t } = useI18n()
const showingtooltip = ref(false)
const showinghouse = ref(false)
2022-09-12 18:36:54 +02:00
function created() {
// created
}
onMounted(created)
return {
showingtooltip,
showinghouse,
2022-09-12 18:36:54 +02:00
t,
tools,
costanti,
2022-09-12 18:36:54 +02:00
}
},
})