* perf: 新增会话添加在列表前方

* fix: 路由模式改为 hash 保证兼容性

* perf: 增强移动端体验

* chore: version 2.5.1
This commit is contained in:
Redon
2023-02-21 08:57:54 +08:00
committed by GitHub
parent cb90d81c69
commit 4ab9f709de
9 changed files with 33 additions and 17 deletions

View File

@@ -227,7 +227,7 @@ const buttonDisabled = computed(() => {
const footerClass = computed(() => {
let classes = ['p-4']
if (isMobile.value)
classes = [...classes, 'pl-2', 'pt-2', 'pb-2', 'fixed', 'bottom-0', 'left-0', 'right-0', 'z-30']
classes = ['p-2', 'pr-4', 'fixed', 'bottom-4', 'left-0', 'right-0', 'z-30', 'h-14', 'overflow-hidden']
return classes
})
@@ -242,7 +242,7 @@ onUnmounted(() => {
</script>
<template>
<div class="flex flex-col h-full">
<div class="flex flex-col h-full pt-14 pb-14">
<main class="flex-1 overflow-hidden">
<div ref="scrollRef" class="h-full p-4 overflow-hidden overflow-y-auto" :class="[{ 'p-2': isMobile }]">
<template v-if="!dataSources.length">