|
@@ -21,16 +21,16 @@ const containerRef = ref();
|
|
|
let scale = ref({ scaleX: 1, scaleY: 1 });
|
|
|
provide('containerScale', () => scale.value);
|
|
|
onMounted(() => {
|
|
|
- // autofit.init(
|
|
|
- // {
|
|
|
- // dw: 8960,
|
|
|
- // dh: 2520,
|
|
|
- // el: '#dashboard-container',
|
|
|
- // resize: false,
|
|
|
- // ignore: ['#aMap', '#YztMap']
|
|
|
- // },
|
|
|
- // false
|
|
|
- // );
|
|
|
+ autofit.init(
|
|
|
+ {
|
|
|
+ dw: 8960,
|
|
|
+ dh: 2520,
|
|
|
+ el: '#dashboard-container',
|
|
|
+ resize: false,
|
|
|
+ ignore: ['#aMap', '#YztMap']
|
|
|
+ },
|
|
|
+ false
|
|
|
+ );
|
|
|
scale.value = getTransformScale(containerRef.value);
|
|
|
});
|
|
|
onUnmounted(() => {
|