增加AI助手
This commit is contained in:
20
components/AiAssist.vue
Normal file
20
components/AiAssist.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<script>
|
||||
export default {
|
||||
name: "AiAssist"
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section class="AiAssist">
|
||||
<img src="https://cdn.cunwuyun.cn/dvcp/dv/aiIcon.png"/>
|
||||
<div class="avatar-text" v-text="'全局AI助手'"/>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.AiAssist {
|
||||
.avatar-text {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -60,6 +60,7 @@
|
||||
<AiDvPartyOrg style="width: 100%; height: 100%;" v-else-if="currentType === 'partyOrg'" :instance="instance"/>
|
||||
<!-- <ai-sprite v-else-if="/building/.test(currentType)" v-bind="data" is3D @init="mods[currentType]"/> -->
|
||||
<ai-dv-plot v-else-if="currentType=='plot'" :options="data.charts" :instance="instance"/>
|
||||
<ai-assist v-else-if="currentType=='aiAssist'"/>
|
||||
</ai-dv-panel>
|
||||
</div>
|
||||
</template>
|
||||
@@ -75,6 +76,7 @@ import AiDvDisplay from "./layout/AiDvDisplay/AiDvDisplay";
|
||||
import AiDvPanel from "./layout/AiDvPanel/AiDvPanel";
|
||||
import AiDvSummary from "./layout/AiDvSummary/AiDvSummary";
|
||||
import AiDvPlot from "./layout/AiDvPlot/AiDvPlot.vue";
|
||||
import AiAssist from "./AiAssist.vue";
|
||||
|
||||
Vue.use(scrollBoard)
|
||||
|
||||
@@ -82,6 +84,7 @@ export default {
|
||||
name: 'AiDvRender',
|
||||
props: ['data', 'index', 'theme', 'instance'],
|
||||
components: {
|
||||
AiAssist,
|
||||
AiDvPlot,
|
||||
// AiSprite,
|
||||
AiDvSummary,
|
||||
|
||||
Reference in New Issue
Block a user