优化
This commit is contained in:
@@ -44,7 +44,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="header-right">
|
<div class="header-right" v-if="!!unitName">
|
||||||
<a-dropdown :trigger="['click']">
|
<a-dropdown :trigger="['click']">
|
||||||
<a class="user-dropdown">
|
<a class="user-dropdown">
|
||||||
<span class="username" :title="unitName">{{ unitName }}</span>
|
<span class="username" :title="unitName">{{ unitName }}</span>
|
||||||
@@ -182,7 +182,7 @@ watch(
|
|||||||
const unitName = computed(() => {
|
const unitName = computed(() => {
|
||||||
const info = userStore.userInfo;
|
const info = userStore.userInfo;
|
||||||
if (!info) return "";
|
if (!info) return "";
|
||||||
return [info?.name, info?.username].filter(Boolean).join(" ");
|
return info?.nickname || info?.username || "更多";
|
||||||
});
|
});
|
||||||
|
|
||||||
// 切换侧边栏状态
|
// 切换侧边栏状态
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
<!-- ── 表单 ── -->
|
<!-- ── 表单 ── -->
|
||||||
<IViewTabPane key="form" tab="表单 IViewForm">
|
<IViewTabPane key="form" tab="表单 IViewForm">
|
||||||
<div v-if="activeSection === 'form'" class="demo-section">
|
<div v-if="activeSection === 'form'" class="demo-section">
|
||||||
<DemoDoc title="IViewForm" :docs="docForm" />
|
<SimpleDoc title="IViewForm" :docs="docForm" />
|
||||||
<div class="demo-live">
|
<div class="demo-live">
|
||||||
<IViewForm ref="formRef" v-model="formData" :config="formConfig" :read-only="formReadOnly" />
|
<IViewForm ref="formRef" v-model="formData" :config="formConfig" :read-only="formReadOnly" />
|
||||||
<div class="demo-actions">
|
<div class="demo-actions">
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
<!-- ── 列表 ── -->
|
<!-- ── 列表 ── -->
|
||||||
<IViewTabPane key="list" tab="列表 IViewTable">
|
<IViewTabPane key="list" tab="列表 IViewTable">
|
||||||
<div v-if="activeSection === 'list'" class="demo-section">
|
<div v-if="activeSection === 'list'" class="demo-section">
|
||||||
<DemoDoc title="IViewFilter + IViewTable" :docs="docList" />
|
<SimpleDoc title="IViewFilter + IViewTable" :docs="docList" />
|
||||||
<div class="demo-live">
|
<div class="demo-live">
|
||||||
<IViewFilter v-model="filterParams" :config="filterConfig" @search="handleFilterSearch"
|
<IViewFilter v-model="filterParams" :config="filterConfig" @search="handleFilterSearch"
|
||||||
@reset="handleFilterReset" />
|
@reset="handleFilterReset" />
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
<!-- ── 详情 ── -->
|
<!-- ── 详情 ── -->
|
||||||
<IViewTabPane key="detail" tab="详情 IViewDescriptions">
|
<IViewTabPane key="detail" tab="详情 IViewDescriptions">
|
||||||
<div v-if="activeSection === 'detail'" class="demo-section">
|
<div v-if="activeSection === 'detail'" class="demo-section">
|
||||||
<DemoDoc title="IViewDescriptions" :docs="docDetail" />
|
<SimpleDoc title="IViewDescriptions" :docs="docDetail" />
|
||||||
<div class="demo-live">
|
<div class="demo-live">
|
||||||
<IViewDescriptions :record-data="detailRecord" :columns-list="detailColumns" :column-size="2"
|
<IViewDescriptions :record-data="detailRecord" :columns-list="detailColumns" :column-size="2"
|
||||||
:hidden-label="false">
|
:hidden-label="false">
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
<!-- ── 整页布局 ── -->
|
<!-- ── 整页布局 ── -->
|
||||||
<IViewTabPane key="layout" tab="页面 ILayoutPage">
|
<IViewTabPane key="layout" tab="页面 ILayoutPage">
|
||||||
<div v-if="activeSection === 'layout'" class="demo-section">
|
<div v-if="activeSection === 'layout'" class="demo-section">
|
||||||
<DemoDoc title="ILayoutPage" :docs="docLayout" />
|
<SimpleDoc title="ILayoutPage" :docs="docLayout" />
|
||||||
<div class="demo-live">
|
<div class="demo-live">
|
||||||
<a-alert type="warning" show-icon message="ILayoutPage 需配置真实 API,完整可运行示例请参考「系统设置 → 管理员账号」页面。"
|
<a-alert type="warning" show-icon message="ILayoutPage 需配置真实 API,完整可运行示例请参考「系统设置 → 管理员账号」页面。"
|
||||||
style="margin-bottom: 16px" />
|
style="margin-bottom: 16px" />
|
||||||
@@ -115,7 +115,7 @@
|
|||||||
<!-- ── 通用组件 ── -->
|
<!-- ── 通用组件 ── -->
|
||||||
<IViewTabPane key="common" tab="通用组件">
|
<IViewTabPane key="common" tab="通用组件">
|
||||||
<div v-if="activeSection === 'common'" class="demo-section">
|
<div v-if="activeSection === 'common'" class="demo-section">
|
||||||
<DemoDoc title="IViewConfirm / IViewDrawer / IViewTabs" :docs="docCommon" />
|
<SimpleDoc title="IViewConfirm / IViewDrawer / IViewTabs" :docs="docCommon" />
|
||||||
<div class="demo-live">
|
<div class="demo-live">
|
||||||
<h4 class="demo-subtitle">IViewConfirm — 确认操作</h4>
|
<h4 class="demo-subtitle">IViewConfirm — 确认操作</h4>
|
||||||
<div class="demo-actions">
|
<div class="demo-actions">
|
||||||
@@ -164,7 +164,7 @@ import IViewTable from "@/iview/IViewTable.vue";
|
|||||||
import IViewDescriptions from "@/iview/IViewDescriptions.vue";
|
import IViewDescriptions from "@/iview/IViewDescriptions.vue";
|
||||||
import IViewConfirm from "@/iview/IViewConfirm.vue";
|
import IViewConfirm from "@/iview/IViewConfirm.vue";
|
||||||
import IViewDrawer from "@/iview/IViewDrawer.vue";
|
import IViewDrawer from "@/iview/IViewDrawer.vue";
|
||||||
import DemoDoc from "./DemoDoc.vue";
|
import SimpleDoc from "./SimpleDoc.vue";
|
||||||
import { showSuccessTips, showErrorTips } from "@/iview/utils/messageTips";
|
import { showSuccessTips, showErrorTips } from "@/iview/utils/messageTips";
|
||||||
|
|
||||||
const activeSection = ref("overview");
|
const activeSection = ref("overview");
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
</a-button>
|
</a-button>
|
||||||
<a-button type="default" @click="clearTask" :loading="clearTaskLoading">
|
<a-button type="default" @click="clearTask" :loading="clearTaskLoading">
|
||||||
<template #icon><delete-outlined /></template>
|
<template #icon><delete-outlined /></template>
|
||||||
清除任务
|
清空任务
|
||||||
</a-button>
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user