mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-04 23:18:44 +08:00
插件仪表板支持自定义子标题
This commit is contained in:
@@ -46,7 +46,7 @@ onUnmounted(() => {
|
|||||||
<VIcon class="cursor-move">mdi-drag</VIcon>
|
<VIcon class="cursor-move">mdi-drag</VIcon>
|
||||||
</template>
|
</template>
|
||||||
<VCardTitle>
|
<VCardTitle>
|
||||||
{{ props.config?.name }}
|
{{ props.config?.name + (props.config?.attrs?.subtitle ? ' - ' + props.config.attrs.subtitle : '') }}
|
||||||
</VCardTitle>
|
</VCardTitle>
|
||||||
</VCardItem>
|
</VCardItem>
|
||||||
<VCardText :class="{ 'p-0': props.config?.attrs.border === false }">
|
<VCardText :class="{ 'p-0': props.config?.attrs.border === false }">
|
||||||
|
|||||||
@@ -268,7 +268,10 @@ onBeforeMount(async () => {
|
|||||||
<VCardText>
|
<VCardText>
|
||||||
<VRow>
|
<VRow>
|
||||||
<VCol v-for="item in dashboardConfigs" :key="item.id" cols="6" md="4" sm="4">
|
<VCol v-for="item in dashboardConfigs" :key="item.id" cols="6" md="4" sm="4">
|
||||||
<VCheckbox v-model="enableConfig[item.id]" :label="item.name" />
|
<VCheckbox
|
||||||
|
v-model="enableConfig[item.id]"
|
||||||
|
:label="item.name + (item.attrs?.subtitle ? ' - ' + item.attrs.subtitle : '')"
|
||||||
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
</VRow>
|
</VRow>
|
||||||
</VCardText>
|
</VCardText>
|
||||||
|
|||||||
Reference in New Issue
Block a user