mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-11 12:57:10 +08:00
refactor: 调整 eslint.config.js,优化代码格式
This commit is contained in:
@@ -33,7 +33,7 @@ defineOptions({ name: 'GiCellAvatar' })
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
avatar: '',
|
||||
name: '',
|
||||
isLink: false // 是否可以点击
|
||||
isLink: false, // 是否可以点击
|
||||
})
|
||||
|
||||
const emit = defineEmits<{
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
defineOptions({ name: 'GiCellGender' })
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
gender: 1
|
||||
gender: 1,
|
||||
})
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
defineOptions({ name: 'GiCellStatus' })
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
status: 1
|
||||
status: 1,
|
||||
})
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -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: '' }
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
defineOptions({ name: 'GiCellTags' })
|
||||
|
||||
withDefaults(defineProps<Props>(), {
|
||||
data: () => []
|
||||
data: () => [],
|
||||
})
|
||||
|
||||
interface Props {
|
||||
|
||||
Reference in New Issue
Block a user