import {ref} from "vue";
|
|
/**
|
* 机房容器信息
|
*/
|
const homeContentModule = ()=> {
|
const homeContentDom = ref(null);
|
const cWidth = ref(0);
|
const cHeight = ref(0);
|
const dWidth = ref(2500);
|
const dHeight = ref(1389);
|
/**
|
* 设置容器的大小
|
*/
|
const setContainerSize = ()=>{
|
cWidth.value = homeContentDom.value.offsetWidth;
|
cHeight.value = homeContentDom.value.offsetHeight;
|
}
|
|
return {homeContentDom, cWidth, cHeight, dWidth, dHeight, setContainerSize};
|
}
|
|
export default homeContentModule;
|