fix(admin): 管理控制台界面使用element plus
This commit is contained in:
1 parent
6c47d0639c
commit
cdc8610ec1
45 files changed
+6258
-4639
No files matched your search
@@ -1,490 +1,276 @@
|
||||
/**
|
||||
|
||||
* features/admin/modules/questions/QuestionsPage.vue
|
||||
|
||||
* 常用问题管理:Tab「常用问题」+「热点发现」(离线聚合候选)。
|
||||
|
||||
* 依赖:useQuestionsAdmin、HotFaqCandidatesPanel、QuestionFormModal。
|
||||
|
||||
* 逻辑:路由 /admin/questions;热点候选晋升后写入 QuickQuestion 并由 Phase 1 FAQ 在线命中。
|
||||
|
||||
* 用途:常用问题管理页。一张卡片里放标题、添加按钮、页签、筛选和表格。
|
||||
* 依赖:AdminListPage、AdminListTabs、useQuestionsAdmin、useElementProvider、element-plus、QuestionFormModal、HotFaqCandidatesPanel。
|
||||
* 逻辑:路由 /admin/questions。骨架用 AdminListPage,页签用 AdminListTabs。
|
||||
* 筛选、表格留在本页;热点候选由页签内容区的面板自己渲染。删除在 composable 里用 Element 确认框。
|
||||
*/
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
import { onMounted, ref } from 'vue';
|
||||
|
||||
import { computed, onMounted, ref } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
|
||||
import { Edit, Plus, Trash2, Zap } from 'lucide-vue-next';
|
||||
|
||||
import DeleteConfirmDialog from '@/shared/components/DeleteConfirmDialog.vue';
|
||||
|
||||
import { Plus } from '@element-plus/icons-vue';
|
||||
import {
|
||||
ElButton,
|
||||
ElCheckbox,
|
||||
ElConfigProvider,
|
||||
ElInput,
|
||||
ElLoading,
|
||||
ElOption,
|
||||
ElSelect,
|
||||
ElTable,
|
||||
ElTableColumn,
|
||||
ElTag,
|
||||
} from 'element-plus';
|
||||
import 'element-plus/dist/index.css';
|
||||
import 'element-plus/theme-chalk/dark/css-vars.css';
|
||||
import '@/features/admin/styles/element-trial.css';
|
||||
import AdminListPage from '@/features/admin/components/AdminListPage.vue';
|
||||
import AdminListTabs from '@/features/admin/components/AdminListTabs.vue';
|
||||
import { useElementProvider } from '@/features/admin/composables/useElementProvider';
|
||||
import type { AdminQuickQuestionRow } from '@/features/admin/types/question.types';
|
||||
import HotFaqCandidatesPanel from './components/HotFaqCandidatesPanel.vue';
|
||||
|
||||
import QuestionFormModal from './components/QuestionFormModal.vue';
|
||||
|
||||
import { useQuestionsAdmin } from './composables/useQuestionsAdmin';
|
||||
|
||||
|
||||
const vLoading = ElLoading.directive;
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const { elementLocale } = useElementProvider();
|
||||
const activeTab = ref<'manual' | 'hot'>('manual');
|
||||
|
||||
|
||||
|
||||
const {
|
||||
|
||||
filteredQuestions,
|
||||
|
||||
agents,
|
||||
|
||||
form,
|
||||
|
||||
isLoading,
|
||||
|
||||
isSaving,
|
||||
|
||||
showFormModal,
|
||||
|
||||
showDeleteConfirmDialog,
|
||||
|
||||
deleteConfirmMessage,
|
||||
|
||||
filterAgentId,
|
||||
|
||||
filterCacheOnly,
|
||||
|
||||
filterStaleOnly,
|
||||
|
||||
staleCount,
|
||||
|
||||
searchKeyword,
|
||||
|
||||
loadAll,
|
||||
|
||||
openCreateModal,
|
||||
|
||||
openEditModal,
|
||||
|
||||
closeFormModal,
|
||||
|
||||
saveQuestion,
|
||||
|
||||
saveReviewQuestion,
|
||||
|
||||
deleteQuestion,
|
||||
|
||||
closeDeleteConfirm,
|
||||
|
||||
confirmDelete,
|
||||
|
||||
truncateQuestionPreview,
|
||||
|
||||
truncateAnswerPreview,
|
||||
|
||||
} = useQuestionsAdmin();
|
||||
|
||||
/**
|
||||
* 常用问题和热点发现两个页签。待审数量大于 0 时显示在第一个页签上。
|
||||
*/
|
||||
const questionTabs = computed(() => [
|
||||
{
|
||||
name: 'manual',
|
||||
label: t('admin.question.tabs.manual'),
|
||||
badge: staleCount.value > 0 ? staleCount.value : undefined,
|
||||
},
|
||||
{
|
||||
name: 'hot',
|
||||
label: t('admin.question.tabs.hotDiscovery'),
|
||||
},
|
||||
]);
|
||||
|
||||
/**
|
||||
* 只接受本页的两个页签名,避免公共页签回传任意字符串。
|
||||
* @param name - AdminListTabs 当前选中的 name
|
||||
*/
|
||||
function onQuestionTabChange(name: string): void {
|
||||
if (name === 'manual' || name === 'hot') activeTab.value = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 应用筛选。清空时写回空字符串,表示全部应用。
|
||||
* @param value - 选中的应用 id;清空为 undefined
|
||||
*/
|
||||
function onAgentFilterChange(value: number | undefined): void {
|
||||
filterAgentId.value = value ?? '';
|
||||
}
|
||||
|
||||
/**
|
||||
* 打开编辑弹窗。表格插槽行类型较宽,这里收成常用问题行。
|
||||
* @param row - 当前表格行
|
||||
*/
|
||||
function editQuestion(row: AdminQuickQuestionRow): void {
|
||||
openEditModal(row);
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
void loadAll();
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<template>
|
||||
|
||||
<section class="admin-table-section animate-fade-in-up">
|
||||
|
||||
<div class="admin-table-header admin-table-header--stacked mb-4">
|
||||
|
||||
<div>
|
||||
|
||||
<ElConfigProvider :locale="elementLocale">
|
||||
<AdminListPage>
|
||||
<template #title>
|
||||
<h2 class="section-title">{{ t('admin.question.title') }}</h2>
|
||||
|
||||
<p class="section-desc mt-1">{{ t('admin.question.subtitle') }}</p>
|
||||
|
||||
</div>
|
||||
|
||||
<button
|
||||
|
||||
v-if="activeTab === 'manual'"
|
||||
|
||||
type="button"
|
||||
|
||||
class="flex items-center gap-2 px-4 py-2 bg-brand-600 text-white rounded-xl hover:bg-brand-700 transition-all shadow-lg shadow-brand-200 active:scale-95 text-sm font-medium"
|
||||
|
||||
@click="openCreateModal"
|
||||
|
||||
>
|
||||
|
||||
<Plus class="w-4 h-4" />
|
||||
|
||||
<span>{{ t('admin.question.add') }}</span>
|
||||
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="mb-6 flex gap-1 border-b border-default">
|
||||
|
||||
<button
|
||||
|
||||
type="button"
|
||||
|
||||
class="px-4 py-2.5 text-sm font-medium border-b-2 -mb-px transition-colors"
|
||||
|
||||
:class="activeTab === 'manual' ? 'border-brand-600 text-brand-600' : 'border-transparent text-muted hover:text-secondary'"
|
||||
|
||||
@click="activeTab = 'manual'"
|
||||
|
||||
>
|
||||
|
||||
{{ t('admin.question.tabs.manual') }}
|
||||
|
||||
<span
|
||||
v-if="staleCount > 0"
|
||||
class="ml-1.5 inline-flex min-w-[1.25rem] items-center justify-center rounded-full bg-amber-100 px-1.5 py-0.5 text-[10px] font-semibold text-amber-800"
|
||||
</template>
|
||||
<template #actions>
|
||||
<ElButton
|
||||
v-if="activeTab === 'manual'"
|
||||
type="primary"
|
||||
:icon="Plus"
|
||||
@click="openCreateModal"
|
||||
>
|
||||
{{ staleCount }}
|
||||
{{ t('admin.question.add') }}
|
||||
</ElButton>
|
||||
</template>
|
||||
<template #tabs>
|
||||
<AdminListTabs :model-value="activeTab" :items="questionTabs" @update:model-value="onQuestionTabChange" />
|
||||
</template>
|
||||
<template v-if="activeTab === 'manual'" #filters>
|
||||
<ElInput
|
||||
v-model="searchKeyword"
|
||||
clearable
|
||||
class="question-filter-search"
|
||||
:placeholder="t('admin.question.filters.search')"
|
||||
/>
|
||||
<ElSelect
|
||||
:model-value="filterAgentId === '' ? undefined : filterAgentId"
|
||||
class="question-filter-agent"
|
||||
clearable
|
||||
:placeholder="t('admin.question.filters.allAgents')"
|
||||
@update:model-value="onAgentFilterChange"
|
||||
>
|
||||
<ElOption
|
||||
v-for="agent in agents"
|
||||
:key="agent.id"
|
||||
:label="agent.name"
|
||||
:value="agent.id"
|
||||
/>
|
||||
</ElSelect>
|
||||
<ElCheckbox v-model="filterCacheOnly">{{ t('admin.question.filters.cacheOnly') }}</ElCheckbox>
|
||||
<ElCheckbox v-model="filterStaleOnly">{{ t('admin.question.filters.staleOnly') }}</ElCheckbox>
|
||||
<span class="question-filter-count">
|
||||
{{ t('admin.question.filters.resultCount', { count: filteredQuestions.length }) }}
|
||||
</span>
|
||||
|
||||
</button>
|
||||
|
||||
<button
|
||||
|
||||
type="button"
|
||||
|
||||
class="px-4 py-2.5 text-sm font-medium border-b-2 -mb-px transition-colors"
|
||||
|
||||
:class="activeTab === 'hot' ? 'border-brand-600 text-brand-600' : 'border-transparent text-muted hover:text-secondary'"
|
||||
|
||||
@click="activeTab = 'hot'"
|
||||
|
||||
>
|
||||
|
||||
{{ t('admin.question.tabs.hotDiscovery') }}
|
||||
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<HotFaqCandidatesPanel v-if="activeTab === 'hot'" />
|
||||
|
||||
|
||||
|
||||
<template v-else>
|
||||
|
||||
<div v-if="isLoading" class="flex items-center justify-center py-20">
|
||||
|
||||
<div class="animate-spin rounded-full h-10 w-10 border-b-2 border-brand-600" />
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<template v-else>
|
||||
|
||||
<div class="mb-4 flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between">
|
||||
|
||||
<div class="flex flex-1 flex-wrap items-center gap-3">
|
||||
|
||||
<input
|
||||
|
||||
v-model="searchKeyword"
|
||||
|
||||
type="search"
|
||||
|
||||
class="input-field text-sm w-full max-w-xs"
|
||||
|
||||
:placeholder="t('admin.question.filters.search')"
|
||||
|
||||
/>
|
||||
|
||||
<select v-model="filterAgentId" class="input-field text-sm w-full max-w-[200px]">
|
||||
|
||||
<option value="">{{ t('admin.question.filters.allAgents') }}</option>
|
||||
|
||||
<option v-for="agent in agents" :key="agent.id" :value="agent.id">
|
||||
|
||||
{{ agent.name }}
|
||||
|
||||
</option>
|
||||
|
||||
</select>
|
||||
|
||||
<label class="inline-flex items-center gap-2 text-sm text-secondary whitespace-nowrap">
|
||||
|
||||
<input v-model="filterCacheOnly" type="checkbox" class="accent-brand-600" />
|
||||
|
||||
<span>{{ t('admin.question.filters.cacheOnly') }}</span>
|
||||
|
||||
</label>
|
||||
|
||||
<label class="inline-flex items-center gap-2 text-sm text-secondary whitespace-nowrap">
|
||||
|
||||
<input v-model="filterStaleOnly" type="checkbox" class="accent-brand-600" />
|
||||
|
||||
<span>{{ t('admin.question.filters.staleOnly') }}</span>
|
||||
|
||||
</label>
|
||||
|
||||
</div>
|
||||
|
||||
<p class="text-xs text-muted">
|
||||
|
||||
{{ t('admin.question.filters.resultCount', { count: filteredQuestions.length }) }}
|
||||
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="admin-table-wrap">
|
||||
|
||||
<table class="admin-table">
|
||||
|
||||
<thead>
|
||||
|
||||
<tr>
|
||||
|
||||
<th class="px-6 py-4 text-left text-xs">{{ t('admin.question.headers.title') }}</th>
|
||||
|
||||
<th class="px-6 py-4 text-left text-xs">{{ t('admin.question.headers.agent') }}</th>
|
||||
|
||||
<th class="px-6 py-4 text-left text-xs">{{ t('admin.question.headers.content') }}</th>
|
||||
|
||||
<th class="px-6 py-4 text-left text-xs">{{ t('admin.question.headers.answer') }}</th>
|
||||
|
||||
<th class="px-6 py-4 text-left text-xs w-28">{{ t('admin.question.headers.cache') }}</th>
|
||||
|
||||
<th class="px-6 py-4 text-left text-xs w-20">{{ t('admin.question.headers.hits') }}</th>
|
||||
|
||||
<th class="px-6 py-4 text-left text-xs w-16">{{ t('admin.question.headers.order') }}</th>
|
||||
|
||||
<th class="px-6 py-4 text-right text-xs w-28">{{ t('admin.question.headers.actions') }}</th>
|
||||
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr v-if="filteredQuestions.length === 0">
|
||||
|
||||
<td colspan="8" class="px-6 admin-table-empty">{{ t('admin.question.noData') }}</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr v-for="q in filteredQuestions" :key="q.id" class="group">
|
||||
|
||||
<td class="px-6 py-4">
|
||||
|
||||
<div class="flex items-center gap-2">
|
||||
|
||||
<div class="font-medium text-primary text-sm">{{ q.title }}</div>
|
||||
|
||||
<span
|
||||
|
||||
v-if="q.stale_at"
|
||||
|
||||
class="inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium bg-amber-50 text-amber-800 border border-amber-100"
|
||||
|
||||
>
|
||||
|
||||
{{ t('admin.question.badges.stale') }}
|
||||
|
||||
</span>
|
||||
|
||||
<span
|
||||
|
||||
v-if="!q.is_enabled"
|
||||
|
||||
class="inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium bg-surface-soft text-muted border border-default"
|
||||
|
||||
>
|
||||
|
||||
{{ t('admin.question.badges.disabled') }}
|
||||
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
</td>
|
||||
|
||||
<td class="px-6 py-4">
|
||||
|
||||
<span
|
||||
|
||||
class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-50 text-blue-700 border border-blue-100"
|
||||
|
||||
>
|
||||
|
||||
{{ q.agent_name || 'Unknown' }}
|
||||
|
||||
</span>
|
||||
|
||||
</td>
|
||||
|
||||
<td class="px-6 py-4">
|
||||
|
||||
<p class="text-sm text-secondary truncate max-w-[180px]" :title="q.question">
|
||||
|
||||
{{ truncateQuestionPreview(q.question) }}
|
||||
|
||||
</p>
|
||||
|
||||
</td>
|
||||
|
||||
<td class="px-6 py-4">
|
||||
|
||||
<p
|
||||
|
||||
v-if="q.cache_enabled && q.answer"
|
||||
|
||||
class="text-sm text-secondary truncate max-w-[160px]"
|
||||
|
||||
:title="q.answer"
|
||||
|
||||
>
|
||||
|
||||
{{ truncateAnswerPreview(q.answer) }}
|
||||
|
||||
</p>
|
||||
|
||||
<span v-else class="text-xs text-muted">—</span>
|
||||
|
||||
</td>
|
||||
|
||||
<td class="px-6 py-4">
|
||||
|
||||
<span
|
||||
|
||||
v-if="q.cache_enabled"
|
||||
|
||||
class="inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium bg-emerald-50 text-emerald-700 border border-emerald-100"
|
||||
|
||||
>
|
||||
|
||||
<Zap class="w-3 h-3" />
|
||||
|
||||
{{ t('admin.question.badges.cacheOn') }}
|
||||
|
||||
</span>
|
||||
|
||||
<span
|
||||
|
||||
v-else
|
||||
|
||||
class="inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium bg-surface-soft text-muted border border-default"
|
||||
|
||||
>
|
||||
|
||||
{{ t('admin.question.badges.cacheOff') }}
|
||||
|
||||
</span>
|
||||
|
||||
</td>
|
||||
|
||||
<td class="px-6 py-4 text-sm text-muted tabular-nums">{{ q.hit_count || 0 }}</td>
|
||||
|
||||
<td class="px-6 py-4 text-sm text-muted tabular-nums">{{ q.sort_order }}</td>
|
||||
|
||||
<td class="px-6 py-4">
|
||||
|
||||
<div class="flex justify-end gap-1">
|
||||
|
||||
<button
|
||||
|
||||
type="button"
|
||||
|
||||
class="p-1.5 text-indigo-600 hover:bg-indigo-50 rounded-lg transition-colors"
|
||||
|
||||
@click="openEditModal(q)"
|
||||
|
||||
>
|
||||
|
||||
<Edit class="w-4 h-4" />
|
||||
|
||||
</button>
|
||||
|
||||
<button
|
||||
|
||||
type="button"
|
||||
|
||||
class="p-1.5 text-red-600 hover:bg-red-50 rounded-lg transition-colors"
|
||||
|
||||
@click="deleteQuestion(q.id)"
|
||||
|
||||
>
|
||||
|
||||
<Trash2 class="w-4 h-4" />
|
||||
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<ElTable
|
||||
v-if="activeTab === 'manual'"
|
||||
v-loading="isLoading"
|
||||
class="hx-admin-table"
|
||||
:data="filteredQuestions"
|
||||
row-key="id"
|
||||
:empty-text="t('admin.question.noData')"
|
||||
>
|
||||
<ElTableColumn :label="t('admin.question.headers.title')" min-width="200">
|
||||
<template #default="{ row }">
|
||||
<div class="question-title">
|
||||
<span>{{ (row as AdminQuickQuestionRow).title }}</span>
|
||||
<ElTag v-if="(row as AdminQuickQuestionRow).stale_at" type="warning" effect="light">
|
||||
{{ t('admin.question.badges.stale') }}
|
||||
</ElTag>
|
||||
<ElTag v-if="!(row as AdminQuickQuestionRow).is_enabled" type="info" effect="light">
|
||||
{{ t('admin.question.badges.disabled') }}
|
||||
</ElTag>
|
||||
</div>
|
||||
</template>
|
||||
</ElTableColumn>
|
||||
<ElTableColumn :label="t('admin.question.headers.agent')" min-width="140">
|
||||
<template #default="{ row }">
|
||||
<ElTag effect="light">{{ (row as AdminQuickQuestionRow).agent_name || 'Unknown' }}</ElTag>
|
||||
</template>
|
||||
</ElTableColumn>
|
||||
<ElTableColumn :label="t('admin.question.headers.content')" min-width="180">
|
||||
<template #default="{ row }">
|
||||
<span class="question-ellipsis" :title="(row as AdminQuickQuestionRow).question">
|
||||
{{ truncateQuestionPreview((row as AdminQuickQuestionRow).question) }}
|
||||
</span>
|
||||
</template>
|
||||
</ElTableColumn>
|
||||
<ElTableColumn :label="t('admin.question.headers.answer')" min-width="160">
|
||||
<template #default="{ row }">
|
||||
<span
|
||||
v-if="(row as AdminQuickQuestionRow).cache_enabled && (row as AdminQuickQuestionRow).answer"
|
||||
class="question-ellipsis"
|
||||
:title="(row as AdminQuickQuestionRow).answer || ''"
|
||||
>
|
||||
{{ truncateAnswerPreview((row as AdminQuickQuestionRow).answer || '') }}
|
||||
</span>
|
||||
<span v-else>—</span>
|
||||
</template>
|
||||
</ElTableColumn>
|
||||
<ElTableColumn :label="t('admin.question.headers.cache')" width="120">
|
||||
<template #default="{ row }">
|
||||
<ElTag
|
||||
:type="(row as AdminQuickQuestionRow).cache_enabled ? 'success' : 'info'"
|
||||
effect="light"
|
||||
>
|
||||
{{
|
||||
(row as AdminQuickQuestionRow).cache_enabled
|
||||
? t('admin.question.badges.cacheOn')
|
||||
: t('admin.question.badges.cacheOff')
|
||||
}}
|
||||
</ElTag>
|
||||
</template>
|
||||
</ElTableColumn>
|
||||
<ElTableColumn :label="t('admin.question.headers.hits')" width="88">
|
||||
<template #default="{ row }">{{ (row as AdminQuickQuestionRow).hit_count || 0 }}</template>
|
||||
</ElTableColumn>
|
||||
<ElTableColumn :label="t('admin.question.headers.order')" width="88">
|
||||
<template #default="{ row }">{{ (row as AdminQuickQuestionRow).sort_order }}</template>
|
||||
</ElTableColumn>
|
||||
<ElTableColumn :label="t('admin.question.headers.actions')" width="140" align="right">
|
||||
<template #default="{ row }">
|
||||
<ElButton link type="primary" @click="editQuestion(row as AdminQuickQuestionRow)">
|
||||
{{ t('admin.question.actions.edit') }}
|
||||
</ElButton>
|
||||
<ElButton link type="danger" @click="deleteQuestion((row as AdminQuickQuestionRow).id)">
|
||||
{{ t('admin.question.actions.delete') }}
|
||||
</ElButton>
|
||||
</template>
|
||||
</ElTableColumn>
|
||||
</ElTable>
|
||||
|
||||
<HotFaqCandidatesPanel v-if="activeTab === 'hot'" />
|
||||
</AdminListPage>
|
||||
|
||||
<QuestionFormModal
|
||||
|
||||
:visible="showFormModal"
|
||||
|
||||
:form="form"
|
||||
|
||||
:agents="agents"
|
||||
|
||||
:is-saving="isSaving"
|
||||
|
||||
@close="closeFormModal"
|
||||
|
||||
@save="saveQuestion"
|
||||
|
||||
@review="saveReviewQuestion"
|
||||
|
||||
/>
|
||||
|
||||
|
||||
|
||||
<DeleteConfirmDialog
|
||||
|
||||
v-model="showDeleteConfirmDialog"
|
||||
|
||||
:message="deleteConfirmMessage"
|
||||
|
||||
@cancel="closeDeleteConfirm"
|
||||
|
||||
@confirm="confirmDelete"
|
||||
|
||||
/>
|
||||
|
||||
</template>
|
||||
|
||||
</section>
|
||||
|
||||
</ElConfigProvider>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
:deep(.question-filter-search) {
|
||||
width: 16rem;
|
||||
}
|
||||
|
||||
:deep(.question-filter-agent) {
|
||||
width: 11rem;
|
||||
}
|
||||
|
||||
.question-filter-count {
|
||||
margin-left: auto;
|
||||
color: var(--el-text-color-secondary);
|
||||
font-size: var(--el-font-size-small);
|
||||
}
|
||||
|
||||
.question-title {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.question-ellipsis {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user