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 11{
22 "name" : " @element-plus/nuxt" ,
3- "version" : " 1.0.9 " ,
3+ "version" : " 1.0.10 " ,
44 "description" : " Element Plus module for Nuxt" ,
55 "license" : " MIT" ,
66 "type" : " module" ,
Original file line number Diff line number Diff line change 11<script setup lang="ts">
22const calendar = ref (new Date (2024 , 1 , 1 ))
3+ const value = ref (Date .now () + 1000 * 60 * 60 * 7 )
34const open = ref (false )
45const ref1 = ref ()
56const ref2 = ref ()
@@ -83,6 +84,8 @@ const activities = [
8384 </el-tour >
8485
8586 <el-statistic title =" Daily active users" :value =" 268500" />
87+
88+ <el-countdown title =" Start to grab" :value =" value" />
8689 </el-space >
8790
8891 <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+
18<template >
29 <el-card class =" mb-5" >
310 <el-watermark
4148 </p >
4249 </div >
4350 </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 >
4457 </el-watermark >
4558 </el-card >
4659</template >
7891 background : var (--el-color-danger-light-9 );
7992 color : var (--el-color-danger );
8093}
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+ }
81113 </style >
You can’t perform that action at this time.
0 commit comments