优化财务仪表盘UI与快捷时间筛选
This commit is contained in:
@@ -46,7 +46,10 @@ function updateFilter<K extends keyof HomeFilters>(key: K, value: HomeFilters[K]
|
||||
emit('update:filters', { [key]: value } as Partial<HomeFilters>)
|
||||
}
|
||||
|
||||
function toggleChip(key: 'insurance' | 'stamina' | 'load' | 'loginMethod' | 'region' | 'rank', value: string) {
|
||||
function toggleChip(
|
||||
key: 'insurance' | 'stamina' | 'load' | 'loginMethod' | 'region' | 'rank',
|
||||
value: string
|
||||
) {
|
||||
const current = props.filters[key]
|
||||
const next = current.includes(value)
|
||||
? current.filter(item => item !== value)
|
||||
@@ -56,9 +59,7 @@ function toggleChip(key: 'insurance' | 'stamina' | 'load' | 'loginMethod' | 'reg
|
||||
|
||||
function toggleSkin(name: string) {
|
||||
const current = props.filters.skinNames
|
||||
const next = current.includes(name)
|
||||
? current.filter(item => item !== name)
|
||||
: [...current, name]
|
||||
const next = current.includes(name) ? current.filter(item => item !== name) : [...current, name]
|
||||
updateFilter('skinNames', next)
|
||||
}
|
||||
|
||||
@@ -121,9 +122,7 @@ function toggleAdvanced() {
|
||||
}
|
||||
|
||||
/** 刀皮/红皮作为独立左列字段展示(与全宽皮肤区区分) */
|
||||
const meleeSkinGroup = computed(() =>
|
||||
props.skinFilterGroups.find(group => group.key === 'melee')
|
||||
)
|
||||
const meleeSkinGroup = computed(() => props.skinFilterGroups.find(group => group.key === 'melee'))
|
||||
const redSkinGroup = computed(() =>
|
||||
props.skinFilterGroups.find(group => group.key === 'operatorRed')
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user