Commit 4e19ca283af6613264f0ee76d3324a9964de0452
1 parent
376b1b07
perf: visual board set widget component not auto inherit attrs
Showing
9 changed files
with
41 additions
and
1 deletions
1 | +<script lang="ts"> | ||
2 | + export default { | ||
3 | + inheritAttrs: false, | ||
4 | + }; | ||
5 | +</script> | ||
1 | <script lang="ts" setup> | 6 | <script lang="ts" setup> |
2 | import { computed } from '@vue/reactivity'; | 7 | import { computed } from '@vue/reactivity'; |
3 | import { DEFAULT_RADIO_RECORD, fontSize, RadioRecord } from '../../detail/config/util'; | 8 | import { DEFAULT_RADIO_RECORD, fontSize, RadioRecord } from '../../detail/config/util'; |
1 | +<script lang="ts"> | ||
2 | + export default { | ||
3 | + inheritAttrs: false, | ||
4 | + }; | ||
5 | +</script> | ||
1 | <script lang="ts" setup> | 6 | <script lang="ts" setup> |
2 | import type { ECharts, EChartsOption } from 'echarts'; | 7 | import type { ECharts, EChartsOption } from 'echarts'; |
3 | import { PropType, watch } from 'vue'; | 8 | import { PropType, watch } from 'vue'; |
1 | +<script lang="ts"> | ||
2 | + export default { | ||
3 | + inheritAttrs: false, | ||
4 | + }; | ||
5 | +</script> | ||
1 | <script lang="ts" setup> | 6 | <script lang="ts" setup> |
2 | import { computed, onMounted, onUnmounted, ref, unref } from 'vue'; | 7 | import { computed, onMounted, onUnmounted, ref, unref } from 'vue'; |
3 | import { Space, Tooltip } from 'ant-design-vue'; | 8 | import { Space, Tooltip } from 'ant-design-vue'; |
1 | +<script lang="ts"> | ||
2 | + export default { | ||
3 | + inheritAttrs: false, | ||
4 | + }; | ||
5 | +</script> | ||
1 | <script lang="ts" setup> | 6 | <script lang="ts" setup> |
2 | import { nextTick, onMounted, ref, unref } from 'vue'; | 7 | import { nextTick, onMounted, ref, unref } from 'vue'; |
3 | import { useScript } from '/@/hooks/web/useScript'; | 8 | import { useScript } from '/@/hooks/web/useScript'; |
1 | +<script lang="ts"> | ||
2 | + export default { | ||
3 | + inheritAttrs: false, | ||
4 | + }; | ||
5 | +</script> | ||
1 | <script lang="ts" setup> | 6 | <script lang="ts" setup> |
2 | import { computed, ref, watch } from 'vue'; | 7 | import { computed, ref, watch } from 'vue'; |
3 | import { Tooltip, Image as AntImage } from 'ant-design-vue'; | 8 | import { Tooltip, Image as AntImage } from 'ant-design-vue'; |
1 | +<script lang="ts"> | ||
2 | + export default { | ||
3 | + inheritAttrs: false, | ||
4 | + }; | ||
5 | +</script> | ||
1 | <script lang="ts" setup> | 6 | <script lang="ts" setup> |
2 | import { computed } from 'vue'; | 7 | import { computed } from 'vue'; |
3 | import { Statistic, Tooltip } from 'ant-design-vue'; | 8 | import { Statistic, Tooltip } from 'ant-design-vue'; |
@@ -71,7 +71,7 @@ | @@ -71,7 +71,7 @@ | ||
71 | resetForm(); | 71 | resetForm(); |
72 | } catch (error: unknown) { | 72 | } catch (error: unknown) { |
73 | if (unref(activeKey) !== 'basicConfig') activeKey.value = 'basicConfig'; | 73 | if (unref(activeKey) !== 'basicConfig') activeKey.value = 'basicConfig'; |
74 | - throw error; | 74 | + window.console.error(error); |
75 | } | 75 | } |
76 | }; | 76 | }; |
77 | 77 |