refactor: 调整 eslint.config.js,优化代码格式

This commit is contained in:
2024-10-28 21:20:08 +08:00
parent 0e8fe5ff1f
commit 9e5dff144b
176 changed files with 5956 additions and 5624 deletions

View File

@@ -33,7 +33,7 @@ defineOptions({ name: 'GiCellAvatar' })
const props = withDefaults(defineProps<Props>(), {
avatar: '',
name: '',
isLink: false // 是否可以点击
isLink: false, // 是否可以点击
})
const emit = defineEmits<{

View File

@@ -16,7 +16,7 @@
defineOptions({ name: 'GiCellGender' })
const props = withDefaults(defineProps<Props>(), {
gender: 1
gender: 1,
})
interface Props {

View File

@@ -13,7 +13,7 @@
defineOptions({ name: 'GiCellStatus' })
const props = withDefaults(defineProps<Props>(), {
status: 1
status: 1,
})
interface Props {

View File

@@ -17,15 +17,15 @@ defineOptions({ name: 'GiCellTag' })
const props = withDefaults(defineProps<Partial<GiCellTagType>>(), {
dict: [{
label: '',
value: ''
value: '',
}],
value: ''
value: '',
})
const dictItem = computed((): LabelValueState => {
try {
return props.dict.find(
(d) => d.value === String(props.value) || d.value === Number(props.value)
(d) => d.value === String(props.value) || d.value === Number(props.value),
) || { label: '', value: '' }
} catch (error) {
return { label: '', value: '' }

View File

@@ -22,7 +22,7 @@
defineOptions({ name: 'GiCellTags' })
withDefaults(defineProps<Props>(), {
data: () => []
data: () => [],
})
interface Props {