fix: remove moment in demo

This commit is contained in:
Justineo
2021-11-20 14:17:59 +08:00
committed by GU Yiling
parent 6fd9a5a4f4
commit 2241c6f26d
2 changed files with 5 additions and 10 deletions

View File

@@ -36,7 +36,6 @@
</template>
<script>
import moment from 'moment'
import { Form, Field, Button, Select, DatePicker, SearchBox } from 'veui'
export default {
@@ -49,6 +48,9 @@ export default {
'veui-search-box': SearchBox
},
data () {
const start = new Date()
const end = new Date(start.getFullYear(), start.getMonth() + 1, 0)
return {
statusOptions: [
{
@@ -71,12 +73,7 @@ export default {
formData: {
statusSelected: 1,
query: '',
range: [
moment().toDate(),
moment()
.add(3, 'month')
.toDate()
]
range: [start, end]
}
}
}