File tree Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @element-plus/nuxt" ,
3
- "version" : " 1.0.9 " ,
3
+ "version" : " 1.0.10 " ,
4
4
"description" : " Element Plus module for Nuxt" ,
5
5
"license" : " MIT" ,
6
6
"type" : " module" ,
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
2
const calendar = ref (new Date (2024 , 1 , 1 ))
3
+ const value = ref (Date .now () + 1000 * 60 * 60 * 7 )
3
4
const open = ref (false )
4
5
const ref1 = ref ()
5
6
const ref2 = ref ()
@@ -83,6 +84,8 @@ const activities = [
83
84
</el-tour >
84
85
85
86
<el-statistic title =" Daily active users" :value =" 268500" />
87
+
88
+ <el-countdown title =" Start to grab" :value =" value" />
86
89
</el-space >
87
90
88
91
<el-progress :percentage =" 50" />
Original file line number Diff line number Diff line change
1
+ <script setup lang="ts">
2
+ const count = ref (0 )
3
+ const load = () => {
4
+ count .value += 2
5
+ }
6
+ </script >
7
+
1
8
<template >
2
9
<el-card class =" mb-5" >
3
10
<el-watermark
41
48
</p >
42
49
</div >
43
50
</el-scrollbar >
51
+
52
+ <ul v-infinite-scroll =" load" class =" infinite-list" style =" overflow : auto " >
53
+ <li v-for =" i in count" :key =" i" class =" infinite-list-item" >
54
+ {{ i }}
55
+ </li >
56
+ </ul >
44
57
</el-watermark >
45
58
</el-card >
46
59
</template >
78
91
background : var (--el-color-danger-light-9 );
79
92
color : var (--el-color-danger );
80
93
}
94
+
95
+ .infinite-list {
96
+ height : 300px ;
97
+ padding : 0 ;
98
+ margin : 0 ;
99
+ list-style : none ;
100
+ }
101
+ .infinite-list .infinite-list-item {
102
+ display : flex ;
103
+ align-items : center ;
104
+ justify-content : center ;
105
+ height : 50px ;
106
+ background : var (--el-color-primary-light-9 );
107
+ margin : 10px ;
108
+ color : var (--el-color-primary );
109
+ }
110
+ .infinite-list .infinite-list-item + .list-item {
111
+ margin-top : 10px ;
112
+ }
81
113
</style >
You can’t perform that action at this time.
0 commit comments