PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
import { defineComponent, ref, computed, PropType, toRef, reactive, watch } from 'vue'
|
||||
import { IOperators, ISize } from 'model'
|
||||
import type { PropType } from 'vue';
|
||||
import { defineComponent, ref, computed, toRef, reactive, watch } from 'vue'
|
||||
import type { ISize } from 'model';
|
||||
import { IOperators } from 'model'
|
||||
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { useQuasar } from 'quasar'
|
||||
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { tools } from '@tools'
|
||||
|
||||
import { CMySlider } from '@src/components/CMySlider'
|
||||
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
import { shared_consts } from '@src/common/shared_vuejs'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CMySize',
|
||||
@@ -63,8 +65,8 @@ export default defineComponent({
|
||||
emit('update:modelValue', { ...internalModel, width: value });
|
||||
|
||||
if (keepRatio.value && changeratio) {
|
||||
let ris = tools.getValueAndSuffix(value)
|
||||
let myheight = ris.value * ( 1 / ratio.value)
|
||||
const ris = tools.getValueAndSuffix(value)
|
||||
const myheight = ris.value * (1 / ratio.value)
|
||||
modifValueHeight(myheight + ris.suffix, false)
|
||||
}
|
||||
}
|
||||
@@ -73,9 +75,9 @@ export default defineComponent({
|
||||
emit('update:modelValue', { ...internalModel, height: value });
|
||||
|
||||
if (keepRatio.value && changeratio) {
|
||||
let ris = tools.getValueAndSuffix(value)
|
||||
let mywidth = ris.value * (ratio.value)
|
||||
modifValueWidth(mywidth+ ris.suffix, false)
|
||||
const ris = tools.getValueAndSuffix(value)
|
||||
const mywidth = ris.value * (ratio.value)
|
||||
modifValueWidth(mywidth + ris.suffix, false)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user