修复计算错误
This commit is contained in:
parent
97c52eabb2
commit
e9f0be2607
|
@ -542,7 +542,7 @@ export default defineComponent({
|
||||||
const moveHandler_2 = (data: any) => {
|
const moveHandler_2 = (data: any) => {
|
||||||
let x =
|
let x =
|
||||||
config.width / 2 +
|
config.width / 2 +
|
||||||
Math.ceil((data.left - ninepostion.value[1].x) * centor.value.x);
|
Math.ceil((data.left - ninepostion.value[1].x) * Proportion.value.x);
|
||||||
let y =
|
let y =
|
||||||
config.height -
|
config.height -
|
||||||
Math.ceil((data.top - ninepostion.value[1].y) * Proportion.value.y);
|
Math.ceil((data.top - ninepostion.value[1].y) * Proportion.value.y);
|
||||||
|
@ -575,7 +575,7 @@ export default defineComponent({
|
||||||
const moveHandler_5 = (data: any) => {
|
const moveHandler_5 = (data: any) => {
|
||||||
let x =
|
let x =
|
||||||
config.width / 2 +
|
config.width / 2 +
|
||||||
Math.ceil((data.left - ninepostion.value[4].x) * centor.value.x);
|
Math.ceil((data.left - ninepostion.value[4].x) * Proportion.value.x);
|
||||||
let y =
|
let y =
|
||||||
config.height / 2 -
|
config.height / 2 -
|
||||||
Math.ceil((data.top - ninepostion.value[4].y) * Proportion.value.y);
|
Math.ceil((data.top - ninepostion.value[4].y) * Proportion.value.y);
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<q-card class="overflow-hidden" style="max-width: 90vw; height: 90vh">
|
<q-card class="" style="max-width: 90vw">
|
||||||
<q-form>
|
<q-form>
|
||||||
<q-card-section class="q-ma-none q-pa-sm">
|
<q-card-section class="q-ma-none q-pa-sm">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -96,7 +96,12 @@
|
||||||
<q-separator />
|
<q-separator />
|
||||||
|
|
||||||
<q-card-actions align="right">
|
<q-card-actions align="right">
|
||||||
<span>{{$t('Whether to hide the desktop')}}</span><q-checkbox style="justify-content: flex-start;" v-model="hide_desktop_value" @click="send_hide_desktop" />
|
<span>{{ $t("Whether to hide the desktop") }}</span
|
||||||
|
><q-checkbox
|
||||||
|
style="justify-content: flex-start"
|
||||||
|
v-model="hide_desktop_value"
|
||||||
|
@click="send_hide_desktop"
|
||||||
|
/>
|
||||||
<div class="q-space" data-v-39efcd1f=""></div>
|
<div class="q-space" data-v-39efcd1f=""></div>
|
||||||
<q-btn
|
<q-btn
|
||||||
flat
|
flat
|
||||||
|
@ -175,14 +180,14 @@ export default defineComponent({
|
||||||
show_dialog.value = true;
|
show_dialog.value = true;
|
||||||
};
|
};
|
||||||
const send_hide_desktop = () => {
|
const send_hide_desktop = () => {
|
||||||
set?.SetBlendingOption(0,hide_desktop_value.value?1:0)
|
set?.SetBlendingOption(0, hide_desktop_value.value ? 1 : 0);
|
||||||
}
|
};
|
||||||
const config = ref({ col: 0, row: 0 });
|
const config = ref({ col: 0, row: 0 });
|
||||||
const EnableBlending = ref(false);
|
const EnableBlending = ref(false);
|
||||||
let optionsstr = ref();
|
let optionsstr = ref();
|
||||||
optionsstr.value = "FusionLocale";
|
optionsstr.value = "FusionLocale";
|
||||||
const hide_desktop_value=ref(true)
|
const hide_desktop_value = ref(true);
|
||||||
const hide_desktop_id=ref(0)
|
const hide_desktop_id = ref(0);
|
||||||
const options = computed({
|
const options = computed({
|
||||||
get() {
|
get() {
|
||||||
return optionsstr.value;
|
return optionsstr.value;
|
||||||
|
@ -230,8 +235,6 @@ export default defineComponent({
|
||||||
let tmp = JSON.parse(res ? res.config : "");
|
let tmp = JSON.parse(res ? res.config : "");
|
||||||
$store.commit("setEnablefusion", tmp.enable);
|
$store.commit("setEnablefusion", tmp.enable);
|
||||||
$store.commit("setfusion_configuration", res?.config);
|
$store.commit("setfusion_configuration", res?.config);
|
||||||
hide_desktop_id.value=tmp.options[0]
|
|
||||||
hide_desktop_value.value=tmp.options[1]==0?false:true
|
|
||||||
});
|
});
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
};
|
};
|
||||||
|
@ -262,6 +265,13 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
});
|
});
|
||||||
|
onMounted(() => {
|
||||||
|
set?.GetBlendingConfig("").then((res) => {
|
||||||
|
let tmp = JSON.parse(res ? res.config : "");
|
||||||
|
hide_desktop_id.value = tmp.options[0];
|
||||||
|
hide_desktop_value.value = tmp.options[1] == 0 ? false : true;
|
||||||
|
});
|
||||||
|
});
|
||||||
return {
|
return {
|
||||||
send_hide_desktop,
|
send_hide_desktop,
|
||||||
hide_desktop_value,
|
hide_desktop_value,
|
||||||
|
|
Loading…
Reference in New Issue