提交
This commit is contained in:
1 parent
683f14828f
commit
fdf7d391a6
40 files changed
+6242
-19470
No files matched your search
@@ -7,7 +7,8 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Icon } from '@iconify/vue'
|
||||
// 使用 offline 构建,避免缺失图标时回退请求 api.unisvg.com
|
||||
import { Icon } from '@iconify/vue/offline'
|
||||
import { resolveEpIcon } from '@/utils/ui/ep-icon-map'
|
||||
|
||||
defineOptions({ name: 'ArtSvgIcon', inheritAttrs: false })
|
||||
|
||||
+2
-2
@@ -66,12 +66,12 @@ export function useSettingsConfig() {
|
||||
{
|
||||
value: ContainerWidthEnum.FULL,
|
||||
label: t('setting.container.list[0]'),
|
||||
icon: 'icon-park-outline:auto-width'
|
||||
icon: 'ri:fullscreen-line'
|
||||
},
|
||||
{
|
||||
value: ContainerWidthEnum.BOXED,
|
||||
label: t('setting.container.list[1]'),
|
||||
icon: 'ix:width'
|
||||
icon: 'ri:aspect-ratio-line'
|
||||
}
|
||||
])
|
||||
|
||||
|
||||
@@ -468,7 +468,10 @@
|
||||
const wrap = scrollRef.value
|
||||
const ul = tabsRef.value
|
||||
if (!wrap || !ul) return false
|
||||
return ul.scrollWidth > wrap.clientWidth + 1
|
||||
// 布局未完成时 clientWidth 可能为 0,勿当作溢出(否则会误淘汰全部可关闭标签)
|
||||
const wrapWidth = wrap.clientWidth
|
||||
if (wrapWidth <= 0) return false
|
||||
return ul.scrollWidth > wrapWidth + 1
|
||||
}
|
||||
|
||||
// 生命周期
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
}>(),
|
||||
{
|
||||
ariaLabel: '日期快捷筛选',
|
||||
variant: 'select'
|
||||
variant: 'pills'
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user