layui/example/docs/zh-CN/components/datePicker.md

31 lines
362 B
Markdown
Raw Normal View History

::: anchor
:::
2021-12-21 00:37:21 +08:00
::: title 基础使用
:::
::: demo
<template>
2022-03-15 22:44:07 +08:00
<lay-date-picker v-model="endTime" frontText="结束时间:"></lay-date-picker>
2021-12-21 00:37:21 +08:00
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
2022-03-15 22:44:07 +08:00
const endTime = ref("2022-03-04 17:35:00");
2021-12-21 00:37:21 +08:00
return {
2022-03-15 22:44:07 +08:00
endTime
2021-12-21 00:37:21 +08:00
}
}
}
</script>
:::
2022-01-12 14:19:06 +08:00
::: previousNext datePicker
:::