-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(DatePicker): support multiple API (#3407)
* fix(datepicker): 增加多选模式 fix #3341 * refactor(datepicker): 修复props类型告警 * chore: update snapshot and fix type * chore: update snapshot and fix type * chore: fix render * chore: fix type * chore: fix * chore: fix * chore: update snapshot and fix type --------- Co-authored-by: Uyarn <[email protected]>
- Loading branch information
Showing
22 changed files
with
378 additions
and
147 deletions.
There are no files selected for viewing
Submodule _common
updated
16 files
+6 −0 | docs/web/api/anchor.en-US.md | |
+6 −0 | docs/web/api/anchor.md | |
+8 −8 | docs/web/api/chat-ai.md | |
+6 −0 | docs/web/api/date-picker.en-US.md | |
+7 −0 | docs/web/api/date-picker.md | |
+6 −0 | docs/web/api/space.en-US.md | |
+6 −0 | docs/web/api/space.md | |
+6 −0 | docs/web/api/tree.en-US.md | |
+6 −0 | docs/web/api/tree.md | |
+29 −3 | js/date-picker/utils.ts | |
+15 −6 | js/tree-v1/tree-node.ts | |
+14 −7 | js/tree/tree-node.ts | |
+1 −1 | package.json | |
+9 −1 | style/mobile/components/collapse/v2/_index.less | |
+22 −4 | style/web/components/chat/_index.less | |
+264 −18 | test/unit/tree/lazy.test.js |
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
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,16 @@ | ||
<template> | ||
<t-space direction="vertical"> | ||
<t-date-picker v-model="date" placeholder="可清除、可输入的日期选择器" clearable multiple @change="handleChange" /> | ||
</t-space> | ||
</template> | ||
|
||
<script setup> | ||
import { ref } from 'vue'; | ||
const date = ref(['2000-01-04', '2000-01-03', '2000-01-05']); | ||
const handleChange = (value, context) => { | ||
console.log('onChange:', value, context); | ||
console.log('timestamp:', context.dayjsValue.valueOf()); | ||
console.log('YYYYMMDD:', context.dayjsValue.format('YYYYMMDD')); | ||
}; | ||
</script> |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<template> | ||
<t-space direction="vertical"> | ||
<t-date-picker v-model="date" placeholder="支持日期的多选" clearable multiple @change="handleChange" /> | ||
</t-space> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
date: ['2024-01-04'], | ||
}; | ||
}, | ||
methods: { | ||
handleChange(value, context) { | ||
console.log('onChange:', value, context); | ||
console.log('timestamp:', context.dayjsValue.valueOf()); | ||
console.log('YYYYMMDD:', context.dayjsValue.format('YYYYMMDD')); | ||
}, | ||
}, | ||
}; | ||
</script> |
Oops, something went wrong.