Skip to content

Commit dc97b6c

Browse files
authored
chore: releases v1.0.10 (#117)
1 parent cca2761 commit dc97b6c

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

playground/components/data-card.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
const calendar = ref(new Date(2024, 1, 1))
3+
const value = ref(Date.now() + 1000 * 60 * 60 * 7)
34
const open = ref(false)
45
const ref1 = ref()
56
const 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" />

playground/components/other-card.vue

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
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
@@ -41,6 +48,12 @@
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>
@@ -78,4 +91,23 @@
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>

0 commit comments

Comments
 (0)