党建主题适配

This commit is contained in:
yanran200730
2023-03-10 17:15:31 +08:00
parent e210352339
commit f3570acc61
18 changed files with 215 additions and 79 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div class="AiSummary">
<component :is="type" :data="data" :keys="keys" :value="value" :summaryTitle="summaryTitle"></component>
<component :is="type" :theme="theme" :data="data" :keys="keys" :value="value" :summaryTitle="summaryTitle"></component>
</div>
</template>
@@ -65,6 +65,11 @@
value: {
type: String,
default: 'value'
},
theme: {
type: String,
default: '0'
}
}
}

View File

@@ -1,5 +1,5 @@
<template>
<div class="summary12">
<div class="summary12" :class="'summary12-' + theme">
<div class="summary12-item" v-for="(item, index) in data" :key="index" v-if="index < 4">
<h2>{{ item[keys] }}</h2>
<p>{{ item[value] }}</p>
@@ -25,6 +25,11 @@
value: {
type: String,
default: 'value'
},
theme: {
type: String,
default: '0'
}
},
@@ -72,5 +77,11 @@
text-align: left;
}
}
&.summary12-1 .summary12-item {
p {
color: #FAD88E;
}
}
}
</style>

View File

@@ -1,5 +1,5 @@
<template>
<div class="summary13">
<div class="summary13" :class="'summary13-' + theme">
<div class="summary13-item" v-for="(item, index) in data" :key="index" v-if="index < 4">
<h2>{{ item[keys] }}</h2>
<p>{{ item[value] }}</p>
@@ -25,6 +25,11 @@
value: {
type: String,
default: 'value'
},
theme: {
type: String,
default: '0'
}
},
@@ -98,5 +103,9 @@
content: ' ';
}
}
&.summary13-1 {
}
}
</style>