File tree Expand file tree Collapse file tree 4 files changed +15
-2
lines changed
Expand file tree Collapse file tree 4 files changed +15
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -4,14 +4,23 @@ import nothingInput from '@/assets/img/nothing-input.png'
44import nothingSelect from ' @/assets/img/nothing-select.png'
55import nothingTable from ' @/assets/img/nothing-table.png'
66import nothingSelectDashboard from ' @/assets/img/none-dashboard.png'
7+ import addComponent from ' @/assets/img/add_component.png'
78import none from ' @/assets/img/none.png'
89import error from ' @/assets/img/error.png'
910import nothingTree from ' @/assets/img/nothing-tree.png'
1011import nothingNone from ' @/assets/img/nothing-none.png'
1112defineProps ({
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
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments