feat(calendar): add content slot to render schedule - #3493
Open
Juzisuan965 wants to merge 1 commit into
Open
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
Author
|
@oljc review下不? |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Types of changes
Background and context
Calendar组件如果通过default插槽来实现日程(比如国定假日、节气、备注)的展示,会失去默认的日期点击事件。#3464
Solution
新增
content插槽,实现日程展示,保留默认的日期展示与点击事件。How is the change tested?
人工测试来保证新增的slot正常工作,不影响其他内容。
Changelog
Calendarcontent插槽contentslotChecklist:
npm run test)featurebranch and othersshould be submitted to
mainbranch)Other information
这个PR能够让
Calendar提供类似日程的功能,而保留默认的日期展示、事件点击,便于开发者使用