This commit is contained in:
jxxghp
2024-05-17 07:37:10 +08:00
parent fc877ed836
commit aecf52551b
2 changed files with 3 additions and 5 deletions
+2 -1
View File
@@ -46,8 +46,9 @@ onUnmounted(() => {
<VIcon class="cursor-move">mdi-drag</VIcon> <VIcon class="cursor-move">mdi-drag</VIcon>
</template> </template>
<VCardTitle> <VCardTitle>
{{ props.config?.name + (props.config?.attrs?.subtitle ? ' - ' + props.config.attrs.subtitle : '') }} {{ props.config?.name }}
</VCardTitle> </VCardTitle>
<VCardSubtitle v-if="props.config?.attrs?.subtitle"> {{ props.config?.attrs?.subtitle }}</VCardSubtitle>
</VCardItem> </VCardItem>
<VCardText :class="{ 'p-0': props.config?.attrs.border === false }"> <VCardText :class="{ 'p-0': props.config?.attrs.border === false }">
<DashboardRender v-for="(item, index) in props.config?.elements" :key="index" :config="item" /> <DashboardRender v-for="(item, index) in props.config?.elements" :key="index" :config="item" />
+1 -4
View File
@@ -264,10 +264,7 @@ 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 <VCheckbox v-model="enableConfig[item.id]" :label="item.name" />
v-model="enableConfig[item.id]"
:label="item.name + (item.attrs?.subtitle ? ' - ' + item.attrs.subtitle : '')"
/>
</VCol> </VCol>
</VRow> </VRow>
</VCardText> </VCardText>