-
Notifications
You must be signed in to change notification settings - Fork 491
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(time-picker): props.presets预设快捷时间选择 (#3665)
* feat(time-picker): props.presets实现 * fix: 类型错误 * fix: presets ts类型 * fix: ts类型报错 * docs: 预设快捷时间选择示例 * feat: 代码调整 * feat: 代码调整 * feat: 代码调整 * feat: 代码调整 * feat: 代码调整
- Loading branch information
1 parent
0055e2b
commit 9d1c104
Showing
11 changed files
with
278 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<template> | ||
<t-space direction="vertical"> | ||
<t-time-picker v-model="time1" class="demos" :presets="{ 上午十一点: '11:00:00' }" /> | ||
<t-time-range-picker | ||
v-model="time2" | ||
class="demos" | ||
clearable | ||
format="HH:mm:ss" | ||
allow-input | ||
:presets="{ 下午: ['13:00:00', '18:00:00'] }" | ||
/> | ||
</t-space> | ||
</template> | ||
|
||
<script setup> | ||
import { ref } from 'vue'; | ||
const time1 = ref('20:22'); | ||
const time2 = ref(['00:00:00', '23:59:59']); | ||
</script> | ||
|
||
<style scoped> | ||
.demos { | ||
margin-top: 20px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.