style(api): 统一代码格式化规范

- 调整 import 语句格式,统一空格和引号风格
- 修复函数参数跨行时的格式对齐问题
- 清理多余空行和注释中的空白字符
- 统一对象属性结尾逗号的使用规范
- 规范化字符串拼接和模板语法的格式
- 优化长参数列表的换行和缩进格式
This commit is contained in:
2026-01-17 17:04:46 +08:00
parent 836fd4d8d0
commit 4af50e6449
416 changed files with 24611 additions and 22733 deletions

View File

@@ -1,30 +1,27 @@
<!-- 搜索表单 -->
<template>
<a-space :size="10" style="flex-wrap: wrap">
<a-button type="primary" class="ele-btn-icon" @click="add">
<a-button type="primary" class="ele-btn-icon" @click="add">
<template #icon>
<PlusOutlined />
</template>
<span>添加</span>
</a-button>
<a-button
:disabled="selection?.length === 0"
@click="updateBatch"
>
<a-button :disabled="selection?.length === 0" @click="updateBatch">
移动
</a-button>
<!-- <a-tree-select-->
<!-- allow-clear-->
<!-- :tree-data="navigationList"-->
<!-- tree-default-expand-all-->
<!-- style="width: 280px"-->
<!-- :listHeight="700"-->
<!-- placeholder="请选择栏目"-->
<!-- :value="where.categoryId || undefined"-->
<!-- :dropdown-style="{ overflow: 'auto' }"-->
<!-- @update:value="(value?: number) => (where.categoryId = value)"-->
<!-- @change="onCategoryId"-->
<!-- />-->
<!-- <a-tree-select-->
<!-- allow-clear-->
<!-- :tree-data="navigationList"-->
<!-- tree-default-expand-all-->
<!-- style="width: 280px"-->
<!-- :listHeight="700"-->
<!-- placeholder="请选择栏目"-->
<!-- :value="where.categoryId || undefined"-->
<!-- :dropdown-style="{ overflow: 'auto' }"-->
<!-- @update:value="(value?: number) => (where.categoryId = value)"-->
<!-- @change="onCategoryId"-->
<!-- />-->
<a-input-search
allow-clear
placeholder="请输入关键词"
@@ -39,9 +36,9 @@
import { PlusOutlined } from '@ant-design/icons-vue';
import type { GradeParam } from '@/api/user/grade/model';
import { watch } from 'vue';
import {CmsNavigation} from "@/api/cms/cmsNavigation/model";
import useSearch from "@/utils/use-search";
import {CmsLinkParam} from "@/api/cms/cmsLink/model";
import { CmsNavigation } from '@/api/cms/cmsNavigation/model';
import useSearch from '@/utils/use-search';
import { CmsLinkParam } from '@/api/cms/cmsLink/model';
const props = withDefaults(
defineProps<{
@@ -75,7 +72,7 @@
// 批量更新
const updateBatch = () => {
emit('batchMove');
}
};
// 按分类查询
const onCategoryId = (id: number) => {