Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ddf50bd4
authored
Mar 05, 2026
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:左边布局
1 parent
50bd8b19
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
apps/uniappX/uniapp-x-tape/components/HomeFrame/LeftSide.uvue
apps/uniappX/uniapp-x-tape/composables/db/Sqlite.uts
apps/uniappX/uniapp-x-tape/components/HomeFrame/LeftSide.uvue
View file @
ddf50bd
<template>
<template>
<view class="left-side left-side-pad">
<view class="left-side left-side-pad">
<image class="left-side-bg-img"
<image class="left-side-bg-img"
src="/static/images/home/left-bg.png
"
mode="aspectFill
"
mode="aspectFill
" />
src="/static/images/home/left-bg.png
" />
<view class="user-box user-box-clickable" @click="jumpPersonCenter">
<view class="user-box user-box-clickable" @click="jumpPersonCenter">
<view class="user-info">
<view class="user-info">
<view class="user-avatar"></view>
<view class="user-avatar"></view>
...
@@ -328,9 +328,9 @@ function jumpPersonCenter(): void {
...
@@ -328,9 +328,9 @@ function jumpPersonCenter(): void {
flex-direction: column;
flex-direction: column;
justify-content: center;
justify-content: center;
position: absolute;
position: absolute;
top: 50%;
//
top: 50%;
left: 0;
left: 0;
transform: translateY(-50%);
//
transform: translateY(-50%);
padding: 8px 0; /* toRpx(16) / 2 */
padding: 8px 0; /* toRpx(16) / 2 */
padding-left: 16px; /* toRpx(32) / 2 */
padding-left: 16px; /* toRpx(32) / 2 */
}
}
...
...
apps/uniappX/uniapp-x-tape/composables/db/Sqlite.uts
View file @
ddf50bd
...
@@ -5,14 +5,22 @@ import {
...
@@ -5,14 +5,22 @@ import {
isOpenDatabase,
isOpenDatabase,
openDatabase,
openDatabase,
selectSql,
selectSql,
SqliteFail,
SQLiteSuccess,
SqlOperationOptions
SqlOperationOptions
} from "@/uni_modules/lime-sqlite";
} from "@/uni_modules/lime-sqlite";
import { PathUtils } from "../../utils/path-utils.uts";
import { PathUtils } from "../../utils/path-utils.uts";
import TaskQueue from "../../utils/task-queue.uts";
import TaskQueue from "../../utils/task-queue.uts";
// 说明:
// - SQLiteSuccess 类型在 App 端由 lime-sqlite 提供(仅 interface,运行时代码未导出)
// - Web 端模块不会实际导出该类型,直接 import 会导致运行时错误
// - 这里在业务侧声明一个结构兼容的类型,避免跨端编译/运行时报错
type SQLiteSuccess = {
data: any[] | null;
result: any[] | null;
errMsg?: string;
};
export default class SQLite {
export default class SQLite {
static _queues = new Map<string, TaskQueue>();
static _queues = new Map<string, TaskQueue>();
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment