AI分析高度设置为300
This commit is contained in:
parent
5ffea31889
commit
3f68c81bf1
@ -7,13 +7,22 @@
|
||||
<span class="text">{{ data.summary }}</span>
|
||||
<span class="meta">
|
||||
置信度 {{ data.confidence }}%
|
||||
<template v-if="data.updatedAt"> · 执行 {{ data.updatedAt }}</template>
|
||||
<template v-if="data.updatedAt">
|
||||
· 执行 {{ data.updatedAt }}</template
|
||||
>
|
||||
</span>
|
||||
</div>
|
||||
<div class="btns">
|
||||
<el-button size="small" :loading="loading" @click="onRefresh">一键获取建议</el-button>
|
||||
<el-button size="small" text type="primary" @click="expanded = !expanded">
|
||||
{{ expanded ? '收起' : '展开' }}
|
||||
<el-button size="small" :loading="loading" @click="onRefresh"
|
||||
>一键获取建议</el-button
|
||||
>
|
||||
<el-button
|
||||
size="small"
|
||||
text
|
||||
type="primary"
|
||||
@click="expanded = !expanded"
|
||||
>
|
||||
{{ expanded ? "收起" : "展开" }}
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
@ -27,24 +36,24 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import type { AiAdvice } from '../../types'
|
||||
import { ref } from "vue";
|
||||
import type { AiAdvice } from "../../types";
|
||||
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
data: AiAdvice
|
||||
loading?: boolean
|
||||
data: AiAdvice;
|
||||
loading?: boolean;
|
||||
}>(),
|
||||
{ loading: false },
|
||||
)
|
||||
);
|
||||
|
||||
const emit = defineEmits<{
|
||||
refresh: []
|
||||
}>()
|
||||
const expanded = ref(false)
|
||||
refresh: [];
|
||||
}>();
|
||||
const expanded = ref(false);
|
||||
|
||||
function onRefresh() {
|
||||
emit('refresh')
|
||||
emit("refresh");
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -55,7 +64,7 @@ function onRefresh() {
|
||||
}
|
||||
|
||||
.ai-drawer.open {
|
||||
min-height: 500px;
|
||||
min-height: 300px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user