样式调整

This commit is contained in:
GYYM
2024-11-29 13:45:48 +08:00
parent a1d3485ba7
commit b39c076879
17 changed files with 871 additions and 939 deletions

View File

@@ -98,8 +98,18 @@ const init = () => {
chart.value.resize();
}, 0);
};
const reSize = (widthValue: number,heightValue: number,silentValue: boolean) => {
if (chart.value) {
chart.value.resize({
width: widthValue,
height: heightValue,
silent: silentValue,
});
}
};
const resizeCharts = () => {
console.log(chart.value,111111);
if (chart.value) {
chart.value.resize();
}
@@ -128,7 +138,7 @@ watch(
onMounted(() => {
init();
});
defineExpose({ init });
defineExpose({ init,reSize });
</script>
<style lang="scss" scoped>
.pie {