-
Notifications
You must be signed in to change notification settings - Fork 1
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
4 changed files
with
77 additions
and
19 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 was deleted.
Oops, something went wrong.
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,17 @@ | ||
import { defineStore } from 'pinia' | ||
|
||
interface MainState { | ||
audio: Array<string> | ||
audioChecked: Array<string> | ||
video: Array<string> | ||
} | ||
|
||
export const useMainStore = defineStore('main', { | ||
state: (): MainState => { | ||
return { | ||
audio: [], | ||
audioChecked: [], | ||
video: [], | ||
} | ||
}, | ||
}) |
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 |
---|---|---|
@@ -1,15 +1,67 @@ | ||
<script lang="ts" setup> | ||
import { ref } from 'vue' | ||
const imageList = ['png', 'jpg', 'jpeg', 'gif', 'svg', 'apng'] | ||
const imageChecked = ref([]) | ||
</script> | ||
|
||
<template> | ||
<div class="about"> | ||
<div class="setting"> | ||
<h1>This is an settings page</h1> | ||
<div class="setting-item support"> | ||
<h2>支持的格式</h2> | ||
<div class="support-item"> | ||
<div class="support-item-header"> | ||
<span>Image-图像</span> | ||
</div> | ||
<div class="support-item-body"> | ||
<el-checkbox-group class="support-item-body-wrap" v-model="imageChecked"> | ||
<template v-for="item in imageList" :key="item"> | ||
<div class="support-item-body-item"> | ||
<el-checkbox :value="item" :label="item" /> | ||
</div> | ||
</template> | ||
</el-checkbox-group> | ||
</div> | ||
<div></div> | ||
<div></div> | ||
</div> | ||
</div> | ||
<div class="setting-item"> | ||
<h2>更新</h2> | ||
<div></div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style> | ||
@media (min-width: 1024px) { | ||
.about { | ||
min-height: 100vh; | ||
display: flex; | ||
align-items: center; | ||
<style lang="scss" scoped> | ||
.setting { | ||
padding: 20px; | ||
} | ||
.support { | ||
&-item { | ||
& + & { | ||
margin-bottom: 24px; | ||
} | ||
&-header { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
border-bottom: 1px solid #ebeef5; | ||
padding: 10px 0; | ||
} | ||
&-body { | ||
padding: 10px 24px; | ||
.support-item-body-wrap { | ||
display: flex; | ||
flex-wrap: wrap; | ||
.support-item-body-item { | ||
flex: 0 0 100px; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
</style> |