File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 5
5
ref =" voteItemRef"
6
6
:id =" domId"
7
7
>
8
+ <DivLoading :loading =" isLoading" />
8
9
<!-- 标题 -->
9
10
<h3 class =" text-lg font-bold mb-1" >{{ itemCom.title }}</h3 >
10
11
11
12
<!-- 截止时间 -->
12
13
<div class =" text-sm text-gray-500 mb-2" v-if =" itemCom.endTime" >
13
- 截止时间: {{ formatDate(itemCom.endTime) }}
14
+ 截止时间:
15
+ <ClientOnly
16
+ >{{ formatDate(itemCom.endTime)
17
+ }}<template #fallback >加载中...</template ></ClientOnly
18
+ >
14
19
</div >
15
20
16
21
<!-- 最大选择提示 -->
64
69
<!-- 提交按钮 -->
65
70
<UButton
66
71
block
67
- :loading =" isLoading || isVoting"
72
+ :loading =" isVoting"
68
73
:disabled =" btnDisabled"
69
74
@click =" doVote"
70
75
>{{ btnText }}</UButton
@@ -256,6 +261,10 @@ onUnmounted(() => {
256
261
< style scoped>
257
262
.vote - item- body {
258
263
padding: 0 .68rem 1rem 1rem 1rem ;
264
+ overflow: hidden;
265
+ z- index: 1 ;
266
+ isolation: isolate;
267
+ position: relative;
259
268
}
260
269
.vote - item- option {
261
270
position: relative;
You can’t perform that action at this time.
0 commit comments