Skip to content

Commit bdb7f7e

Browse files
committed
machine-setup: add seat setting
1 parent 12bd411 commit bdb7f7e

File tree

1 file changed

+21
-1
lines changed
  • packages/machine-setup/frontend/src

1 file changed

+21
-1
lines changed

packages/machine-setup/frontend/src/App.vue

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,29 @@
11
<template>
2-
<h1>@Hydro/XCPC-TOOLS Setup-Tool</h1>
2+
<n-config-provider :theme="osTheme === 'dark' ? darkTheme : undefined">
3+
<n-grid x-gap="12" :cols="2">
4+
<n-gi>
5+
<n-card bordered shadow="always" title="@Hydro/XCPC-TOOLS Setup Tool" />
6+
<n-card bordered shadow="always">
7+
<n-input placeholder="请输入座位号"type="text" size="large" style="width: 100%; margin-bottom: .5em;" />
8+
<n-space x-gap="12" :cols="2" style="width: 100%;">
9+
<n-button type="primary" style="width: 100%;">保存</n-button>
10+
<n-button type="info" style="width: 100%;">放大显示</n-button>
11+
</n-space>
12+
</n-card>
13+
</n-gi>
14+
<n-gi>
15+
<n-card bordered shadow="always" title="System Info" ></n-card>
16+
</n-gi>
17+
</n-grid>
18+
</n-config-provider>
319
</template>
420

521
<script setup lang="ts">
22+
import {
23+
NGrid, NGi, darkTheme, NConfigProvider, useOsTheme, NButton, NCard,
24+
} from 'naive-ui';
625
26+
const osTheme = useOsTheme();
727
</script>
828

929
<style scoped>

0 commit comments

Comments
 (0)