mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
cancel no payment
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
<script setup lang="ts">
|
||||
import { Setting_LiveRequest, SongRequestInfo, SongsInfo, UserInfo } from '@/api/api-models';
|
||||
import { SongListConfigType, SongListConfigTypeWithConfig } from '@/data/TemplateTypes';
|
||||
import { TemplateConfig } from '@/data/VTsuruTypes';
|
||||
import { FILE_BASE_URL } from '@/data/constants';
|
||||
|
||||
const props = defineProps<SongListConfigTypeWithConfig<ConfigType>>()
|
||||
defineExpose({ Config, DefaultConfig })
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
export type ConfigType = {
|
||||
background: string[],
|
||||
notice: string,
|
||||
}
|
||||
export const DefaultConfig = {} as ConfigType
|
||||
export const Config: TemplateConfig<ConfigType> = {
|
||||
name: 'Template.SongList.Traditional',
|
||||
items: [
|
||||
{
|
||||
name: '背景',
|
||||
type: 'image',
|
||||
imageLimit: 1,
|
||||
key: 'background',
|
||||
onUploaded: (url, config) => {
|
||||
config.background = url
|
||||
},
|
||||
},
|
||||
{
|
||||
name: '公告',
|
||||
type: 'string',
|
||||
key: 'notice',
|
||||
},
|
||||
],
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div :style="{
|
||||
backgroundImage: `${props.config?.background ? 'url(' + FILE_BASE_URL + props.config?.background[0] + ')' : ''}`,
|
||||
height: '100%', 'max-width': '100%',
|
||||
minHeight: '400px',
|
||||
backgroundSize: 'cover',
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
position: 'relative',
|
||||
}">
|
||||
<div style="{
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
min-height: 400px;
|
||||
backdrop-filter: blur(10px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}">
|
||||
<div style="{
|
||||
border-radius: 20px;
|
||||
border: 3px solid var(--pinky-border-color-dark);
|
||||
height: 50px;
|
||||
width: 400px;
|
||||
}">
|
||||
<div v-for="song in props.data" :key="song.id">
|
||||
{{song.name}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user