Skip to content

Commit 85c3564

Browse files
committed
feat: dashboard
1 parent 9daeba9 commit 85c3564

File tree

3 files changed

+97
-98
lines changed

3 files changed

+97
-98
lines changed

frontend/components.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ declare module 'vue' {
1212
ElButton: typeof import('element-plus/es')['ElButton']
1313
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
1414
ElDialog: typeof import('element-plus/es')['ElDialog']
15+
ElDrawer: typeof import('element-plus/es')['ElDrawer']
1516
ElDropdown: typeof import('element-plus/es')['ElDropdown']
1617
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
1718
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
@@ -23,10 +24,12 @@ declare module 'vue' {
2324
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
2425
ElOption: typeof import('element-plus/es')['ElOption']
2526
ElPagination: typeof import('element-plus/es')['ElPagination']
27+
ElRow: typeof import('element-plus/es')['ElRow']
2628
ElSelect: typeof import('element-plus/es')['ElSelect']
2729
ElSlider: typeof import('element-plus/es')['ElSlider']
2830
ElTable: typeof import('element-plus/es')['ElTable']
2931
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
32+
ElTableV2: typeof import('element-plus/es')['ElTableV2']
3033
ElTabPane: typeof import('element-plus/es')['ElTabPane']
3134
ElTabs: typeof import('element-plus/es')['ElTabs']
3235
ElTooltip: typeof import('element-plus/es')['ElTooltip']

frontend/src/views/dashboard/PreviewDashboard.vue

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@ const baseWidth = ref(0)
66
const baseHeight = ref(0)
77
const baseMarginLeft = ref(0)
88
const baseMarginTop = ref(0)
9-
const componentData = [
9+
const componentData = ref([
1010
{
1111
id: 4,
1212
x: 1,
1313
y: 1,
14-
sizex: 2,
15-
sizey: 2,
16-
_dragId:0
14+
sizeX: 2,
15+
sizeY: 2,
16+
_dragId: 0
1717
},
1818
{
1919
id: 10,
2020
x: 2,
2121
y: 1,
22-
sizex: 2,
23-
sizey: 2,
24-
_dragId:1
22+
sizeX: 2,
23+
sizeY: 2,
24+
_dragId: 1
2525
},
2626
{
2727
id: 7,
2828
x: 1,
2929
y: 2,
30-
sizex: 2,
31-
sizey: 3,
32-
_dragId:2
30+
sizeX: 2,
31+
sizeY: 3,
32+
_dragId: 2
3333
}
34-
]
34+
])
3535
3636
onMounted(() => {
3737
const screenWidth = window.innerWidth
@@ -40,7 +40,6 @@ onMounted(() => {
4040
baseHeight.value = 100 * (screenHeight / 638)
4141
baseMarginLeft.value = 20 * (screenWidth / 1366)
4242
baseMarginTop.value = 20 * (screenHeight / 638)
43-
4443
nextTick(() => {
4544
if (cyGridster.value) {
4645
// @ts-ignore

0 commit comments

Comments
 (0)