Sign in
简柏林
/
thingskit-front
·
Commits
GitLab
Go to dashboard
Project
Activity
Files
Commits
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Network
Download as
Email Patches
Plain Diff
Browse Files
Commit
4e19ca283af6613264f0ee76d3324a9964de0452
Authored by
ww
2022-10-19 15:19:56 +0800
1 parent
376b1b07
perf: visual board set widget component not auto inherit attrs
Inline
Side-by-side
Showing
9 changed files
with
41 additions
and
1 deletions
src/views/visual/board/components/ControlComponent/SlidingSwitch.vue
src/views/visual/board/components/ControlComponent/SwitchWithIcon.vue
src/views/visual/board/components/ControlComponent/ToggleSwitch.vue
src/views/visual/board/components/InstrumentComponent/DashBoardComponent.vue
src/views/visual/board/components/InstrumentComponent/DigitalDashBoard.vue
src/views/visual/board/components/MapComponent/MapComponent.vue
src/views/visual/board/components/PictureComponent/PictureComponent.vue
src/views/visual/board/components/TextComponent/TextComponent.vue
src/views/visual/board/detail/components/DataBindModal.vue
src/views/visual/board/components/ControlComponent/SlidingSwitch.vue
View file @
4e19ca2
1
+
<script lang="ts">
2
+
export default {
3
+
inheritAttrs: false,
4
+
};
5
+
</script>
1
6
<script lang="ts" setup>
2
7
import { ControlComponentValue } from './control.config';
3
8
...
...
src/views/visual/board/components/ControlComponent/SwitchWithIcon.vue
View file @
4e19ca2
1
+
<script lang="ts">
2
+
export default {
3
+
inheritAttrs: false,
4
+
};
5
+
</script>
1
6
<script lang="ts" setup>
2
7
import { Switch } from 'ant-design-vue';
3
8
import { computed } from 'vue';
...
...
src/views/visual/board/components/ControlComponent/ToggleSwitch.vue
View file @
4e19ca2
1
+
<script lang="ts">
2
+
export default {
3
+
inheritAttrs: false,
4
+
};
5
+
</script>
1
6
<script lang="ts" setup>
2
7
import { computed } from '@vue/reactivity';
3
8
import { DEFAULT_RADIO_RECORD, fontSize, RadioRecord } from '../../detail/config/util';
...
...
src/views/visual/board/components/InstrumentComponent/DashBoardComponent.vue
View file @
4e19ca2
1
+
<script lang="ts">
2
+
export default {
3
+
inheritAttrs: false,
4
+
};
5
+
</script>
1
6
<script lang="ts" setup>
2
7
import type { ECharts, EChartsOption } from 'echarts';
3
8
import { PropType, watch } from 'vue';
...
...
src/views/visual/board/components/InstrumentComponent/DigitalDashBoard.vue
View file @
4e19ca2
1
+
<script lang="ts">
2
+
export default {
3
+
inheritAttrs: false,
4
+
};
5
+
</script>
1
6
<script lang="ts" setup>
2
7
import { computed, onMounted, onUnmounted, ref, unref } from 'vue';
3
8
import { Space, Tooltip } from 'ant-design-vue';
...
...
src/views/visual/board/components/MapComponent/MapComponent.vue
View file @
4e19ca2
1
+
<script lang="ts">
2
+
export default {
3
+
inheritAttrs: false,
4
+
};
5
+
</script>
1
6
<script lang="ts" setup>
2
7
import { nextTick, onMounted, ref, unref } from 'vue';
3
8
import { useScript } from '/@/hooks/web/useScript';
...
...
src/views/visual/board/components/PictureComponent/PictureComponent.vue
View file @
4e19ca2
1
+
<script lang="ts">
2
+
export default {
3
+
inheritAttrs: false,
4
+
};
5
+
</script>
1
6
<script lang="ts" setup>
2
7
import { computed, ref, watch } from 'vue';
3
8
import { Tooltip, Image as AntImage } from 'ant-design-vue';
...
...
src/views/visual/board/components/TextComponent/TextComponent.vue
View file @
4e19ca2
1
+
<script lang="ts">
2
+
export default {
3
+
inheritAttrs: false,
4
+
};
5
+
</script>
1
6
<script lang="ts" setup>
2
7
import { computed } from 'vue';
3
8
import { Statistic, Tooltip } from 'ant-design-vue';
...
...
src/views/visual/board/detail/components/DataBindModal.vue
View file @
4e19ca2
...
...
@@ -71,7 +71,7 @@
71
71
resetForm();
72
72
} catch (error: unknown) {
73
73
if (unref(activeKey) !== 'basicConfig') activeKey.value = 'basicConfig';
74
-
throw error
;
74
+
window.console.error(error)
;
75
75
}
76
76
};
77
77
...
...