Skip to content

Commit

Permalink
chore: releases v1.0.10 (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolking authored Aug 24, 2024
1 parent cca2761 commit dc97b6c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@element-plus/nuxt",
"version": "1.0.9",
"version": "1.0.10",
"description": "Element Plus module for Nuxt",
"license": "MIT",
"type": "module",
Expand Down
3 changes: 3 additions & 0 deletions playground/components/data-card.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup lang="ts">
const calendar = ref(new Date(2024, 1, 1))
const value = ref(Date.now() + 1000 * 60 * 60 * 7)
const open = ref(false)
const ref1 = ref()
const ref2 = ref()
Expand Down Expand Up @@ -83,6 +84,8 @@ const activities = [
</el-tour>

<el-statistic title="Daily active users" :value="268500" />

<el-countdown title="Start to grab" :value="value" />
</el-space>

<el-progress :percentage="50" />
Expand Down
32 changes: 32 additions & 0 deletions playground/components/other-card.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<script setup lang="ts">
const count = ref(0)
const load = () => {
count.value += 2
}
</script>

<template>
<el-card class="mb-5">
<el-watermark
Expand Down Expand Up @@ -41,6 +48,12 @@
</p>
</div>
</el-scrollbar>

<ul v-infinite-scroll="load" class="infinite-list" style="overflow: auto">
<li v-for="i in count" :key="i" class="infinite-list-item">
{{ i }}
</li>
</ul>
</el-watermark>
</el-card>
</template>
Expand Down Expand Up @@ -78,4 +91,23 @@
background: var(--el-color-danger-light-9);
color: var(--el-color-danger);
}
.infinite-list {
height: 300px;
padding: 0;
margin: 0;
list-style: none;
}
.infinite-list .infinite-list-item {
display: flex;
align-items: center;
justify-content: center;
height: 50px;
background: var(--el-color-primary-light-9);
margin: 10px;
color: var(--el-color-primary);
}
.infinite-list .infinite-list-item + .list-item {
margin-top: 10px;
}
</style>

0 comments on commit dc97b6c

Please sign in to comment.