Skip to content

Commit

Permalink
test(calendar): refactor demo to show selected date in UTC, ensure co…
Browse files Browse the repository at this point in the history
…nsistent snapshot
  • Loading branch information
Summer-Shen committed Feb 14, 2024
1 parent 6678afb commit f6084c4
Show file tree
Hide file tree
Showing 2 changed files with 346 additions and 336 deletions.
13 changes: 7 additions & 6 deletions packages/web-vue/components/calendar/__demo__/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ Display and select calendars
---
```vue

<template>
<a-calendar v-model="value" />
select: {{value}}
<a-space direction="vertical" fill>
<a-calendar v-model="value" />
<div>Selected date in UTC: {{ value.toISOString() }}</div>
</a-space>
</template>

<script>
Expand All @@ -31,9 +32,9 @@ export default {
const value = ref(new Date('2023-01-01'));

return {
value
}
value,
};
},
}
};
</script>
```
Loading

0 comments on commit f6084c4

Please sign in to comment.