Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporateCulture-qd
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王立鹏
corporateCulture-qd
Commits
d4aece1f
Commit
d4aece1f
authored
Jan 23, 2026
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 17679】 feat: 优化过渡等
parent
b4a2bffa
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
26 deletions
+33
-26
App.vue
src/App.vue
+1
-1
index.vue
src/components/common/Comment/index.vue
+3
-3
index.vue
src/views/homePage/askTab/index.vue
+23
-5
index.vue
src/views/homePage/index.vue
+4
-2
vite.config.ts
vite.config.ts
+2
-15
No files found.
src/App.vue
View file @
d4aece1f
...
...
@@ -12,11 +12,11 @@ import { initWxConfig } from '@/utils/wxUtil/initWXConfig'
const
locale
=
ref
(
zhCn
)
onMounted
(()
=>
{
console
.
table
(
__CORE_LIB_VERSION__
)
if
(
import
.
meta
.
env
.
MODE
===
'production'
)
{
setTimeout
(()
=>
{
initWxConfig
()
},
3000
)
console
.
table
(
__CORE_LIB_VERSION__
)
}
})
</
script
>
src/components/common/Comment/index.vue
View file @
d4aece1f
...
...
@@ -250,7 +250,7 @@
</div>
</div>
<!-- 展示 回复评论的输入框 -->
<transition
name=
"fade
"
mode=
"in-out
"
>
<transition
name=
"fade
ToComment"
mode=
"out-in
"
>
<div
v-show=
"showCommentBox(item)"
class=
"flex gap-3 mt-4"
>
<img
:src=
"userAvatar"
...
...
@@ -538,12 +538,12 @@ defineExpose({
})
</
script
>
<
style
scoped
lang=
"scss"
>
.fade-enter-from
{
.fade
ToComment
-enter-from
{
opacity
:
0
;
transform
:
translateY
(
-10px
);
}
.fade-enter-active
{
.fade
ToComment
-enter-active
{
transition
:
all
0.5s
ease-out
;
}
</
style
>
src/views/homePage/askTab/index.vue
View file @
d4aece1f
...
...
@@ -164,7 +164,7 @@
</el-button> -->
</div>
</div>
<Transition
name=
"fade"
>
<Transition
name=
"fade
CommentBox"
mode=
"out-in
"
>
<Comment
v-if=
"item.showComment"
:ref=
"(e) => (commentRefList[index] = e as InstanceType<typeof Comment>)"
...
...
@@ -383,14 +383,32 @@ onMounted(() => {
})
</
script
>
<
style
lang=
"scss"
scoped
>
.fade-enter-from
,
.fade-leave-to
{
.fadeCommentBox-enter-from
{
opacity
:
0
;
transform
:
translateY
(
-10px
);
filter
:
blur
(
4px
);
}
.fade-enter-active
,
.fade-leave-active
{
.fadeCommentBox-enter-to
{
opacity
:
1
;
transform
:
translateY
(
0
);
filter
:
blur
(
0
);
}
.fadeCommentBox-leave-from
{
opacity
:
1
;
transform
:
translateY
(
0
);
filter
:
blur
(
0
);
}
.fadeCommentBox-leave-to
{
opacity
:
0
;
transform
:
translateY
(
-10px
);
filter
:
blur
(
4px
);
}
.fadeCommentBox-enter-active
,
.fadeCommentBox-leave-active
{
transition
:
all
0.4s
cubic-bezier
(
0.25
,
0.46
,
0.45
,
0.94
);
}
</
style
>
src/views/homePage/index.vue
View file @
d4aece1f
...
...
@@ -518,13 +518,15 @@ provide(TABS_REF_KEY, tabsRef)
.
fade
-
enter
-
from
,
.
fade
-
leave
-
to
{
opacity
:
0
;
transform
:
translateY
(
10
px
);
transform
:
translateX
(
30
px
);
filter
:
blur
(
4
px
);
}
.
fade
-
enter
-
to
,
.
fade
-
leave
-
from
{
opacity
:
1
;
transform
:
translateY
(
0
);
transform
:
translateX
(
0
);
filter
:
blur
(
0
);
}
.
fade
-
enter
-
active
,
...
...
vite.config.ts
View file @
d4aece1f
...
...
@@ -13,27 +13,14 @@ import pushUpdatePlugin from './src/plugins/pushUpdatePlugin'
import
IconsResolver
from
'unplugin-icons/resolver'
import
Icons
from
'unplugin-icons/vite'
import
path
from
'node:path'
import
fs
from
'node:fs'
// 获取到执行脚本的--参数
const
packageJson
=
JSON
.
parse
(
fs
.
readFileSync
(
path
.
resolve
(
process
.
cwd
(),
'package.json'
),
'utf-8'
),
)
// 核心库版本
const
coreLibVersion
=
{
vue
:
packageJson
.
dependencies
.
vue
,
'vue-router'
:
packageJson
.
dependencies
[
'vue-router'
],
'element-plus'
:
packageJson
.
dependencies
[
'element-plus'
],
pinia
:
packageJson
.
dependencies
.
pinia
,
unocss
:
packageJson
.
devDependencies
.
unocss
,
node
:
process
.
versions
.
node
,
}
import
pkg
from
'./package.json'
// https://vite.dev/config/
export
default
defineConfig
(({
mode
})
=>
{
return
{
define
:
{
__CORE_LIB_VERSION__
:
JSON
.
stringify
(
coreLibVersion
),
__CORE_LIB_VERSION__
:
JSON
.
stringify
(
pkg
.
dependencies
),
},
resolve
:
{
//设置别名
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment