Skip to content

Commit

Permalink
fix: 修改样式
Browse files Browse the repository at this point in the history
  • Loading branch information
lovezhangchuangxin committed Nov 17, 2024
1 parent 567054e commit 33d79d8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/game/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ export {}
declare module 'vue' {
export interface GlobalComponents {
ElButton: typeof import('element-plus/es')['ElButton']
ElCard: typeof import('element-plus/es')['ElCard']
ElCol: typeof import('element-plus/es')['ElCol']
ElDialog: typeof import('element-plus/es')['ElDialog']
ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElInput: typeof import('element-plus/es')['ElInput']
ElLink: typeof import('element-plus/es')['ElLink']
ElProgress: typeof import('element-plus/es')['ElProgress']
ElRow: typeof import('element-plus/es')['ElRow']
ElSpace: typeof import('element-plus/es')['ElSpace']
ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTag: typeof import('element-plus/es')['ElTag']
ElText: typeof import('element-plus/es')['ElText']
GameMap: typeof import('./src/components/gameMap/index.vue')['default']
MdViewer: typeof import('./src/components/md-viewer/MdViewer.vue')['default']
Expand Down
2 changes: 1 addition & 1 deletion packages/game/src/components/navbar/NavSide.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ onMounted(() => {
color: #e9e9e9;
font-size: 16px;
overflow-y: auto;
z-index: 1;
z-index: 1000;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
li {
Expand Down
5 changes: 4 additions & 1 deletion packages/game/src/views/planet/PlanetPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ const addIntent = (
const calcCapacityPercentage = (
structure: MetalStorage | EnergyStorage,
): number => {
return (structure.store * 100) / structure.calcCapacity(structure.level)
return +(
(structure.store * 100) /
structure.calcCapacity(structure.level)
).toFixed(2)
}
// 储量进度条颜色
Expand Down

0 comments on commit 33d79d8

Please sign in to comment.