Commit ed04f44c63961b7833ce5842e35d9cde5e5f8e76

Authored by fengwotao
1 parent 1dc01d4d

perf(external/Componse): 有优化大标题和小标题拖拽设置宽高

... ... @@ -48,6 +48,11 @@ let newData = ref('2021-2-3 08:00:00')
48 48
49 49 let timer: any = null
50 50
  51 +//修改默认宽高
  52 +props.chartConfig.attr.w=1920
  53 +props.chartConfig.attr.h=180
  54 +
  55 +
51 56 watch(
52 57 () => props.chartConfig.option,
53 58 (newData: any) => {
... ...
... ... @@ -64,6 +64,10 @@ const props = defineProps({
64 64 }
65 65 })
66 66
  67 +//修改默认宽高
  68 +props.chartConfig.attr.w=1920
  69 +props.chartConfig.attr.h=180
  70 +
67 71 const { w, h } = toRefs(props.chartConfig.attr)
68 72
69 73 const { animat, dataset } = toRefs(props.chartConfig.option)
... ...
... ... @@ -108,6 +108,11 @@ const props = defineProps({
108 108 }
109 109 })
110 110
  111 +//修改默认宽高
  112 +props.chartConfig.attr.w=550
  113 +props.chartConfig.attr.h=60
  114 +
  115 +
111 116 const { dataset, attribute } = toRefs(props.chartConfig.option)
112 117
113 118 const { w, h } = toRefs(props.chartConfig.attr)
... ...
... ... @@ -76,7 +76,9 @@ const props = defineProps({
76 76 })
77 77
78 78 const { dataset, attribute } = toRefs(props.chartConfig.option)
79   -
  79 +//修改默认宽高
  80 +props.chartConfig.attr.w=550
  81 +props.chartConfig.attr.h=60
80 82 const { w, h } = toRefs(props.chartConfig.attr)
81 83 </script>
82 84
... ...
... ... @@ -116,6 +116,10 @@ const props = defineProps({
116 116 const { dataset, attribute } = toRefs(props.chartConfig.option)
117 117
118 118 const { w, h } = toRefs(props.chartConfig.attr)
  119 +
  120 +//修改默认宽高
  121 +props.chartConfig.attr.w=550
  122 +props.chartConfig.attr.h=60
119 123 </script>
120 124
121 125 <style lang="scss" scoped>
... ...