diff --git a/src/components/DynamicForm.vue b/src/components/DynamicForm.vue
index d5ae2b1..973313a 100644
--- a/src/components/DynamicForm.vue
+++ b/src/components/DynamicForm.vue
@@ -3,7 +3,8 @@
import { QueryPostAPI } from '@/api/query';
import { ConfigItemDefinition, TemplateConfigImageItem } from '@/data/VTsuruTypes';
import { FILE_BASE_URL, VTSURU_API_URL } from '@/data/constants';
- import { NButton, NColorPicker, NEmpty, NForm, NFormItem, NGrid, NInput, NInputNumber, NSlider, NUpload, UploadFileInfo, useMessage } from 'naive-ui';
+import { Info24Filled } from '@vicons/fluent';
+ import { NButton, NCheckbox, NColorPicker, NEmpty, NForm, NFormItem, NGrid, NInput, NInputNumber, NSlider, NTooltip, NUpload, UploadFileInfo, useMessage } from 'naive-ui';
import { onMounted, ref } from 'vue';
const message = useMessage();
@@ -117,8 +118,8 @@
+
+
+ 启用
+
+
+
+
+
+ {{ item.description }}
+
+
= TemplateConfigItemWith
export type TemplateConfigNumberArrayItem = TemplateConfigItemWithType & {
type: 'numberArray';
};
+export type TemplateConfigBooleanItem = TemplateConfigItemWithType & {
+ type: 'boolean';
+ description?: string; // 可选的描述
+};
export type TemplateConfigImageItem = TemplateConfigItemWithType & {
type: 'image';
@@ -159,6 +163,7 @@ export type ConfigItemDefinition =
| TemplateConfigImageItem
| TemplateConfigRenderItem // 包含优化后的 render/onUploaded 方法
| TemplateConfigSliderNumberItem
+ | TemplateConfigBooleanItem
| TemplateConfigColorItem;
/**
diff --git a/src/views/view/songListTemplate/TraditionalSongListTemplate.vue b/src/views/view/songListTemplate/TraditionalSongListTemplate.vue
index 66904cb..be63ca2 100644
--- a/src/views/view/songListTemplate/TraditionalSongListTemplate.vue
+++ b/src/views/view/songListTemplate/TraditionalSongListTemplate.vue
@@ -293,6 +293,13 @@ export const Config = defineTemplateConfig([
config.background = url;
},
},
+ {
+ name: '固定歌曲列表高度',
+ type: 'boolean',
+ key: 'fixedHeight',
+ default: true,
+ description: '如果不勾选,歌曲较多时会整个页面滚动, 否则只会滚动歌单部分',
+ },
{
name: '标题',
type: 'string',
@@ -629,15 +636,18 @@ export const Config = defineTemplateConfig([
随机点歌
-
+
@@ -718,7 +728,7 @@ export const Config = defineTemplateConfig([
size="small"
checkable
:checked="selectedTag === tag"
- @checked-change="selectTag(tag)"
+ @update:checked="selectTag(tag)"
>
{{ tag }}
@@ -936,7 +946,7 @@ html.dark .song-list-background-wrapper::before {
z-index: 2; /* Place above the ::before blur layer */
background: transparent !important; /* Ensure no background color obscures the wrapper */
border-radius: inherit; /* Inherit rounding for scrollbar area */
-
+ min-width: 400px;
/* Keep scrollbar styles */
&::-webkit-scrollbar { width: 8px; }
&::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.05); border-radius: 4px; }
@@ -1107,10 +1117,12 @@ html.dark .song-list-container {
border-radius: 8px;
/* Scrollbar styling specific to this inner table scroll if needed */
/* ... */
+
}
.song-list-table {
width: 100%; border-collapse: collapse; font-size: 0.9em;
+ min-width: 600px;
}
.song-list-table thead th {