Commit ed04f44c63961b7833ce5842e35d9cde5e5f8e76
1 parent
1dc01d4d
perf(external/Componse): 有优化大标题和小标题拖拽设置宽高
Showing
5 changed files
with
21 additions
and
1 deletions
@@ -48,6 +48,11 @@ let newData = ref('2021-2-3 08:00:00') | @@ -48,6 +48,11 @@ let newData = ref('2021-2-3 08:00:00') | ||
48 | 48 | ||
49 | let timer: any = null | 49 | let timer: any = null |
50 | 50 | ||
51 | +//修改默认宽高 | ||
52 | +props.chartConfig.attr.w=1920 | ||
53 | +props.chartConfig.attr.h=180 | ||
54 | + | ||
55 | + | ||
51 | watch( | 56 | watch( |
52 | () => props.chartConfig.option, | 57 | () => props.chartConfig.option, |
53 | (newData: any) => { | 58 | (newData: any) => { |
@@ -64,6 +64,10 @@ const props = defineProps({ | @@ -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 | const { w, h } = toRefs(props.chartConfig.attr) | 71 | const { w, h } = toRefs(props.chartConfig.attr) |
68 | 72 | ||
69 | const { animat, dataset } = toRefs(props.chartConfig.option) | 73 | const { animat, dataset } = toRefs(props.chartConfig.option) |
@@ -108,6 +108,11 @@ const props = defineProps({ | @@ -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 | const { dataset, attribute } = toRefs(props.chartConfig.option) | 116 | const { dataset, attribute } = toRefs(props.chartConfig.option) |
112 | 117 | ||
113 | const { w, h } = toRefs(props.chartConfig.attr) | 118 | const { w, h } = toRefs(props.chartConfig.attr) |
@@ -76,7 +76,9 @@ const props = defineProps({ | @@ -76,7 +76,9 @@ const props = defineProps({ | ||
76 | }) | 76 | }) |
77 | 77 | ||
78 | const { dataset, attribute } = toRefs(props.chartConfig.option) | 78 | const { dataset, attribute } = toRefs(props.chartConfig.option) |
79 | - | 79 | +//修改默认宽高 |
80 | +props.chartConfig.attr.w=550 | ||
81 | +props.chartConfig.attr.h=60 | ||
80 | const { w, h } = toRefs(props.chartConfig.attr) | 82 | const { w, h } = toRefs(props.chartConfig.attr) |
81 | </script> | 83 | </script> |
82 | 84 |
@@ -116,6 +116,10 @@ const props = defineProps({ | @@ -116,6 +116,10 @@ const props = defineProps({ | ||
116 | const { dataset, attribute } = toRefs(props.chartConfig.option) | 116 | const { dataset, attribute } = toRefs(props.chartConfig.option) |
117 | 117 | ||
118 | const { w, h } = toRefs(props.chartConfig.attr) | 118 | const { w, h } = toRefs(props.chartConfig.attr) |
119 | + | ||
120 | +//修改默认宽高 | ||
121 | +props.chartConfig.attr.w=550 | ||
122 | +props.chartConfig.attr.h=60 | ||
119 | </script> | 123 | </script> |
120 | 124 | ||
121 | <style lang="scss" scoped> | 125 | <style lang="scss" scoped> |