-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
79 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<template> | ||
<div class="setting-main-container" ref="containerRef"> | ||
<div class="setting-main-container-header"> | ||
<h3>检查更新</h3> | ||
</div> | ||
|
||
<div class="setting-main-container-content"> | ||
<n-card class="setting-section"> | ||
<SettingItem title="最新版本" :value="latestVersion"> | ||
<template #action> | ||
<button class="btn btn-default" @click="checkLatestVersion">检查新版本</button> | ||
</template> | ||
</SettingItem> | ||
|
||
</n-card> | ||
</div> | ||
</div> | ||
</template> | ||
<script lang="ts" setup> | ||
import { NCard, NAffix, NTag } from 'naive-ui'; | ||
import { ref,onMounted } from 'vue'; | ||
import SettingItem from "@/components/setting/SettingItem.vue"; | ||
const containerRef = ref<any>(); | ||
const latestVersion = ref("3.0.1-alpha"); | ||
function checkLatestVersion() { | ||
} | ||
onMounted(()=>{ | ||
}) | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@import '@/style/variables.scss'; | ||
@import '@/style/photon/photon.scss'; | ||
.setting-main-container { | ||
height: 100%; | ||
width: 100%; | ||
overflow-y: auto; | ||
margin: 0; | ||
padding: 0; | ||
.setting-main-container-header { | ||
display: flex; | ||
z-index: 99; | ||
background: #fff; | ||
padding-left: 10px; | ||
} | ||
.setting-main-container-content { | ||
padding: 10px; | ||
.setting-section{ | ||
margin: 6px auto; | ||
} | ||
} | ||
} | ||
</style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters