mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-01 16:21:20 +00:00
refactor: 整理代码格式,统一代码风格
本次提交对多处代码进行格式优化: 1. 合并简化空接口定义,调整多行参数换行格式 2. 移除无用导入和冗余变量 3. 统一字符串引号风格,调整样式属性顺序 4. 修复缩进问题,让代码结构更清晰
This commit is contained in:
@@ -85,7 +85,11 @@
|
||||
</template>
|
||||
|
||||
<!-- 动态插槽支持 -->
|
||||
<template v-for="(slotFn, slotName) in getSlots(item)" :key="slotName" #[slotName]>
|
||||
<template
|
||||
v-for="(slotFn, slotName) in getSlots(item)"
|
||||
:key="slotName"
|
||||
#[slotName]
|
||||
>
|
||||
<component :is="slotFn" />
|
||||
</template>
|
||||
</component>
|
||||
|
||||
@@ -64,7 +64,11 @@
|
||||
批量删除
|
||||
</ElButton>
|
||||
<ElDropdown v-if="permPatch" v-hasPerm="permPatch" trigger="click">
|
||||
<ElButton type="default" :disabled="removeIds.length === 0 || moreDisabled" :loading="moreLoading">
|
||||
<ElButton
|
||||
type="default"
|
||||
:disabled="removeIds.length === 0 || moreDisabled"
|
||||
:loading="moreLoading"
|
||||
>
|
||||
<template #icon>
|
||||
<ArrowDown />
|
||||
</template>
|
||||
@@ -140,5 +144,7 @@ interface Emits {
|
||||
|
||||
defineEmits<Emits>();
|
||||
|
||||
const moreDisabled = computed(() => props.removeIds.length === 0 || props.deleteLoading || props.moreLoading);
|
||||
const moreDisabled = computed(
|
||||
() => props.removeIds.length === 0 || props.deleteLoading || props.moreLoading
|
||||
);
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user