style(@vben/web-antd): lint 自动格式化修正

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
lzh
2026-03-18 15:22:29 +08:00
parent bdb06e761a
commit 60f4912401
5 changed files with 37 additions and 31 deletions

View File

@@ -62,11 +62,7 @@ async function handelUpload({
{{ profile.nickname || profile.username }}
</h3>
<div class="mt-1 flex flex-wrap justify-center gap-1">
<Tag
v-for="role in profile.roles"
:key="role.id"
color="blue"
>
<Tag v-for="role in profile.roles" :key="role.id" color="blue">
{{ role.name }}
</Tag>
</div>
@@ -86,7 +82,10 @@ async function handelUpload({
<div class="profile-item">
<div class="profile-item-label">
<IconifyIcon icon="ant-design:phone-outlined" class="mr-2 text-base" />
<IconifyIcon
icon="ant-design:phone-outlined"
class="mr-2 text-base"
/>
<span>手机号码</span>
</div>
<span class="profile-item-value">{{ profile.mobile || '-' }}</span>
@@ -140,7 +139,10 @@ async function handelUpload({
<div class="profile-item">
<div class="profile-item-label">
<IconifyIcon icon="ant-design:login-outlined" class="mr-2 text-base" />
<IconifyIcon
icon="ant-design:login-outlined"
class="mr-2 text-base"
/>
<span>登录时间</span>
</div>
<span class="profile-item-value">
@@ -157,11 +159,11 @@ async function handelUpload({
align-items: center;
justify-content: space-between;
padding: 8px 4px;
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
border-bottom: 1px solid rgb(0 0 0 / 6%);
}
.dark .profile-item {
border-bottom-color: rgba(255, 255, 255, 0.08);
border-bottom-color: rgb(255 255 255 / 8%);
}
.profile-item:last-child {
@@ -171,20 +173,20 @@ async function handelUpload({
.profile-item-label {
display: flex;
align-items: center;
color: rgba(0, 0, 0, 0.65);
font-size: 14px;
color: rgb(0 0 0 / 65%);
}
.dark .profile-item-label {
color: rgba(255, 255, 255, 0.65);
color: rgb(255 255 255 / 65%);
}
.profile-item-value {
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
color: rgb(0 0 0 / 85%);
}
.dark .profile-item-value {
color: rgba(255, 255, 255, 0.85);
color: rgb(255 255 255 / 85%);
}
</style>

View File

@@ -29,10 +29,10 @@ const route = useRoute();
const bindList = ref<SystemSocialUserApi.SocialUser[]>([]);
/** 暂不支持钉钉和企业微信,后续开放时移除此过滤 */
const HIDDEN_SOCIAL_TYPES = [
const HIDDEN_SOCIAL_TYPES = new Set([
SystemUserSocialTypeEnum.DINGTALK.type,
SystemUserSocialTypeEnum.WECHAT_ENTERPRISE.type,
];
]);
interface SocialBindItem {
title: string;
@@ -44,7 +44,7 @@ interface SocialBindItem {
const allBindList = computed<SocialBindItem[]>(() => {
return Object.values(SystemUserSocialTypeEnum)
.filter((social) => !HIDDEN_SOCIAL_TYPES.includes(social.type))
.filter((social) => !HIDDEN_SOCIAL_TYPES.has(social.type))
.map((social) => {
const socialUser = bindList.value.find(
(item) => item.type === social.type,
@@ -137,9 +137,7 @@ onMounted(async () => {
<!-- 平台名称 + 状态 -->
<div class="flex min-w-0 flex-1 flex-col gap-0.5">
<div class="flex items-center gap-2">
<span
class="text-sm font-medium text-black/85 dark:text-white/85"
>
<span class="text-sm font-medium text-black/85 dark:text-white/85">
{{ getDictLabel(DICT_TYPE.SYSTEM_SOCIAL_TYPE, item.type) }}
</span>
<Tag

View File

@@ -93,10 +93,7 @@ async function handleSubmit() {
<span class="cf-info-value">{{ modalData.orderCode }}</span>
</div>
<div v-if="modalData.title" class="cf-info-row">
<IconifyIcon
icon="solar:notes-bold-duotone"
class="cf-info-icon"
/>
<IconifyIcon icon="solar:notes-bold-duotone" class="cf-info-icon" />
<span class="cf-info-label">工单标题</span>
<span class="cf-info-value cf-info-desc">{{ modalData.title }}</span>
</div>

View File

@@ -6,7 +6,14 @@ import { onUnmounted, ref, watch } from 'vue';
import { useVbenModal } from '@vben/common-ui';
import { IconifyIcon } from '@vben/icons';
import { Avatar, Empty, Input, message, Pagination, Spin } from 'ant-design-vue';
import {
Avatar,
Empty,
Input,
message,
Pagination,
Spin,
} from 'ant-design-vue';
import { assignOrder } from '#/api/ops/order-center';
import { getUserPage } from '#/api/system/user';
@@ -127,7 +134,10 @@ async function handleSubmit() {
<!-- 工单信息 -->
<div class="sa-order-info">
<div class="sa-info-row">
<IconifyIcon icon="solar:document-text-bold-duotone" class="sa-info-icon" />
<IconifyIcon
icon="solar:document-text-bold-duotone"
class="sa-info-icon"
/>
<span class="sa-info-label">工单编号</span>
<span class="sa-info-value">{{ modalData.orderCode }}</span>
</div>
@@ -139,7 +149,9 @@ async function handleSubmit() {
<div v-if="modalData.description" class="sa-info-row">
<IconifyIcon icon="solar:notes-bold-duotone" class="sa-info-icon" />
<span class="sa-info-label">描述</span>
<span class="sa-info-value sa-info-desc">{{ modalData.description }}</span>
<span class="sa-info-value sa-info-desc">{{
modalData.description
}}</span>
</div>
</div>
@@ -305,8 +317,8 @@ async function handleSubmit() {
flex: 1;
min-width: 0;
overflow: hidden;
font-size: 13px;
text-overflow: ellipsis;
font-size: 13px;
white-space: nowrap;
}

View File

@@ -103,10 +103,7 @@ async function handleSubmit() {
<span class="uf-info-value">{{ modalData.orderCode }}</span>
</div>
<div class="uf-info-row">
<IconifyIcon
icon="solar:ranking-bold-duotone"
class="uf-info-icon"
/>
<IconifyIcon icon="solar:ranking-bold-duotone" class="uf-info-icon" />
<span class="uf-info-label">优先级变更</span>
<span class="uf-info-value uf-priority">
<span class="uf-priority-from">