Skip to content
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

fix(split): [split] fix split error apis #2377

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions examples/sites/demos/apis/split.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
'en-US': 'Easy Mode Enables Left/Top Expand Collapse Button'
},
mode: ['pc'],
pcDemo: 'split-threshold'
pcDemo: 'horizontal-collapse'
},
{
name: 'collapse-right-bottom',
Expand All @@ -25,7 +25,7 @@ export default {
'en-US': 'Easy Mode Enables Right/Down Expand Collapse Button'
},
mode: ['pc'],
pcDemo: 'split-threshold'
pcDemo: 'horizontal-collapse'
},
{
mode: []
Expand Down Expand Up @@ -84,7 +84,7 @@ export default {
'en-US': 'Three blocks are configured.'
},
mode: ['pc'],
pcDemo: 'split-threshold'
pcDemo: 'three-areas'
},
{
name: 'border',
Expand Down Expand Up @@ -121,7 +121,7 @@ export default {
'en-US': 'Triggered when the left arrow is folded'
},
mode: ['pc'],
pcDemo: 'moving-event'
pcDemo: 'event-click'
},
{
name: 'moveend',
Expand Down Expand Up @@ -165,7 +165,7 @@ export default {
'en-US': 'Triggered when the right arrow is folded'
},
mode: ['pc'],
pcDemo: 'moving-event'
pcDemo: 'event-click'
}
],
methods: [],
Expand Down
5 changes: 5 additions & 0 deletions packages/theme/src/split/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
border-radius: var(--tv-Split-wrapper-radius-size);
border: 1px solid var(--tv-Split-wrapper-border-color);

// 无边框模式
&.no-border {
border: none;
}

// split嵌套使用内部不需要圆角和边框
& & {
border-radius: 0;
Expand Down
Loading