-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
refactor:collapse #6266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tangjinzhou
merged 6 commits into
vueComponent:feat-v4
from
shifeng1993:feat-v4-refactor-collapse
Feb 15, 2023
Merged
refactor:collapse #6266
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8702650
refactor:collapse
shifeng1993 adf7771
merge v4 branch & fix theme interface conflict
shifeng1993 defd58d
fix collapse props version
shifeng1993 7ac323e
merge feat-v4
shifeng1993 cd4941b
docs:update & refactor: collapse type & fix collapsible
shifeng1993 0291255
merge featv4 & fix conflict
shifeng1993 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<docs> | ||
--- | ||
order: 7 | ||
title: | ||
zh-CN: 可折叠触发区域 | ||
en-US: Collapsible | ||
--- | ||
|
||
## zh-CN | ||
|
||
通过 `collapsible` 属性,可以设置面板的可折叠触发区域。 | ||
|
||
## en-US | ||
|
||
Specify the trigger area of collapsible by `collapsible`. | ||
|
||
</docs> | ||
|
||
<template> | ||
<a-space direction="vertical"> | ||
<a-collapse collapsible="header" v-model:activeKey="activeKey"> | ||
<a-collapse-panel header="This panel can only be collapsed by clicking text" key="1"> | ||
<p>{{ text }}</p> | ||
</a-collapse-panel> | ||
</a-collapse> | ||
<a-collapse collapsible="icon" v-model:activeKey="activeKey"> | ||
<a-collapse-panel header="This panel can only be collapsed by clicking icon" key="1"> | ||
<p>{{ text }}</p> | ||
</a-collapse-panel> | ||
</a-collapse> | ||
<a-collapse collapsible="disabled"> | ||
<a-collapse-panel header="This panel can't be collapsed" key="1"> | ||
<p>{{ text }}</p> | ||
</a-collapse-panel> | ||
</a-collapse> | ||
</a-space> | ||
</template> | ||
<script lang="ts"> | ||
import { defineComponent, ref } from 'vue'; | ||
export default defineComponent({ | ||
setup() { | ||
const activeKey = ref(['1']); | ||
const text = `A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world.`; | ||
return { | ||
activeKey, | ||
text, | ||
}; | ||
}, | ||
}); | ||
</script> | ||
<style> | ||
.ant-space { | ||
width: 100%; | ||
} | ||
</style> |
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.