-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:[dateRange,datePicker]支持使用时间区间面板
- Loading branch information
1 parent
917e120
commit 6c94197
Showing
37 changed files
with
826 additions
and
153 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,29 @@ | ||
<template> | ||
<div class="demo-date-panel-wrap"> | ||
<div>{{ value }}</div> | ||
<div class="value">{{ value }}</div> | ||
<tiny-date-panel v-model="value"></tiny-date-panel> | ||
<div class="value1">{{ value1 }}</div> | ||
<tiny-date-range type="daterange" v-model="value1"></tiny-date-range> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { ref } from 'vue' | ||
import { TinyDatePanel } from '@opentiny/vue' | ||
import { TinyDatePanel, TinyDateRange } from '@opentiny/vue' | ||
const value = ref('') | ||
const value = ref('2025-01-15') | ||
const value1 = ref(['2025-01-15', '2025-02-15']) | ||
</script> | ||
|
||
<style scoped lang="less"> | ||
.demo-date-panel-wrap { | ||
width: 560px; | ||
& > * { | ||
margin-top: 12px; | ||
} | ||
.tiny-date-range-picker { | ||
width: 668px; | ||
} | ||
} | ||
</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
Oops, something went wrong.