File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const props = defineProps({
20
20
type: Object as PropType <EChartsOption >,
21
21
required: true
22
22
},
23
- width: propTypes .oneOfType ([Number , String ]).def (' ' ),
23
+ width: propTypes .oneOfType ([Number , String ]).def (' 100% ' ),
24
24
height: propTypes .oneOfType ([Number , String ]).def (' 500px' )
25
25
})
26
26
@@ -86,7 +86,9 @@ const contentResizeHandler = async (e: TransitionEvent) => {
86
86
}
87
87
88
88
onMounted (() => {
89
- initChart ()
89
+ setTimeout (() => {
90
+ initChart ()
91
+ }, 0 )
90
92
91
93
window .addEventListener (' resize' , resizeHandler )
92
94
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { Form, FormSchema } from '@/components/Form'
7
7
import { useValidator } from ' @/hooks/web/useValidator'
8
8
import { getDictOneApi } from ' @/api/common'
9
9
import { useForm } from ' @/hooks/web/useForm'
10
+ import Echart from ' ./Echart.vue'
10
11
11
12
const { required } = useValidator ()
12
13
@@ -113,7 +114,7 @@ const formSubmit = async () => {
113
114
</BaseButton >
114
115
115
116
<Dialog v-model =" dialogVisible" :title =" t('dialogDemo.dialog')" >
116
- <div v-for = " v in 10000 " :key = " v " >{{ v }}</ div >
117
+ <Echart / >
117
118
<template #footer >
118
119
<BaseButton @click =" dialogVisible = false" >{{ t('dialogDemo.close') }}</BaseButton >
119
120
</template >
You can’t perform that action at this time.
0 commit comments