UI样式第一次优化
This commit is contained in:
1 parent
7f7979679f
commit
e1d6de45a3
47 files changed
+316
-201
No files matched your search
@@ -42,7 +42,7 @@ export function useCommon() {
|
||||
* 查找主内容区域并将其滚动位置重置为顶部
|
||||
*/
|
||||
const scrollToTop = () => {
|
||||
const scrollContainer = document.getElementById('app-main')
|
||||
const scrollContainer = document.getElementById('app-content-scroll')
|
||||
if (scrollContainer) {
|
||||
scrollContainer.scrollTop = 0
|
||||
}
|
||||
@@ -53,7 +53,7 @@ export function useCommon() {
|
||||
* 使用 smooth 行为实现平滑滚动效果
|
||||
*/
|
||||
const smoothScrollToTop = () => {
|
||||
const scrollContainer = document.getElementById('app-main')
|
||||
const scrollContainer = document.getElementById('app-content-scroll')
|
||||
if (scrollContainer) {
|
||||
scrollContainer.scrollTo({
|
||||
top: 0,
|
||||
@@ -68,7 +68,7 @@ export function useCommon() {
|
||||
* @param smooth 是否使用平滑滚动
|
||||
*/
|
||||
const scrollTo = (top: number, smooth: boolean = false) => {
|
||||
const scrollContainer = document.getElementById('app-main')
|
||||
const scrollContainer = document.getElementById('app-content-scroll')
|
||||
if (scrollContainer) {
|
||||
scrollContainer.scrollTo({
|
||||
top,
|
||||
|
||||
Reference in new issue
Block a user