Skip to content

Commit 152c3c6

Browse files
committed
Merge branch 'main' of https://github.com/dataease/SQLBot
2 parents 4d3e08d + 7945a78 commit 152c3c6

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed
10.1 KB
Loading

frontend/src/views/dashboard/canvas/CanvasCore.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ defineExpose({
12061206
<EmptyBackground
12071207
v-if="!canvasComponentData.length && isMainCanvas(canvasId)"
12081208
:description="t('dashboard.add_component_tips')"
1209-
img-type="selectDashboard"
1209+
img-type="addComponent"
12101210
/>
12111211
<template v-if="renderOk">
12121212
<CanvasShape

frontend/src/views/dashboard/common/EmptyBackground.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,23 @@ import nothingInput from '@/assets/img/nothing-input.png'
44
import nothingSelect from '@/assets/img/nothing-select.png'
55
import nothingTable from '@/assets/img/nothing-table.png'
66
import nothingSelectDashboard from '@/assets/img/none-dashboard.png'
7+
import addComponent from '@/assets/img/add_component.png'
78
import none from '@/assets/img/none.png'
89
import error from '@/assets/img/error.png'
910
import nothingTree from '@/assets/img/nothing-tree.png'
1011
import nothingNone from '@/assets/img/nothing-none.png'
1112
defineProps({
1213
imgType: {
1314
type: String as PropType<
14-
'input' | 'select' | 'table' | 'none' | 'noneWhite' | 'tree' | 'error' | 'selectDashboard'
15+
| 'input'
16+
| 'select'
17+
| 'table'
18+
| 'none'
19+
| 'noneWhite'
20+
| 'tree'
21+
| 'error'
22+
| 'selectDashboard'
23+
| 'addComponent'
1524
>,
1625
default: 'table',
1726
},
@@ -33,6 +42,7 @@ const getAssetsFile = {
3342
selectDashboard: nothingSelectDashboard,
3443
error,
3544
none,
45+
addComponent,
3646
}
3747
</script>
3848

frontend/src/views/dashboard/editor/DashboardEditor.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ const emits = defineEmits(['parentAddItemBox'])
140140
width: 100%;
141141
height: 100%;
142142
overflow-y: auto;
143+
:deep(.ed-empty__description) {
144+
width: 240px !important;
145+
}
143146
}
144147
145148
.move-in-active {

0 commit comments

Comments
 (0)