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

67 lines
819 B
Markdown
Raw Normal View History

::: anchor
:::
2022-03-17 00:04:27 +08:00
::: title 基本介绍
:::
::: describe 高级 Web 日历组件,完全开源无偿且颜值与功能兼备,足以应对日期相关的各种业务场景。
:::
2021-12-21 00:37:21 +08:00
::: title 基础使用
:::
::: demo
<template>
2022-03-17 00:04:27 +08:00
<lay-date-picker v-model="endTime"></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
2022-03-20 14:54:36 +08:00
::: title 日期时间
:::
::: demo
<template>
<lay-date-picker type="datetime" v-model="endTime"></lay-date-picker>
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
const endTime = ref("2022-03-04 17:35:00");
return {
endTime
}
}
}
</script>
:::
2022-03-18 14:48:38 +08:00
::: comment
:::
::: previousNext transfer
2022-01-12 14:19:06 +08:00
:::