Skip to content

Commit

Permalink
fix: 修复divider组件切换方向时宽高异常问题
Browse files Browse the repository at this point in the history
  • Loading branch information
qkiroc committed Sep 4, 2023
1 parent 912cb83 commit 3c3bd64
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/amis-editor/src/plugin/Divider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,16 @@ export class DividerPlugin extends BasePlugin {
label: '长度',
name: 'style.width',
placeholder: '100%',
visibleOn: 'direction !== "vertical"'
visibleOn: 'direction !== "vertical"',
clearValueOnHidden: true
}),
getSchemaTpl('theme:select', {
mode: 'horizontal',
label: '长度',
name: 'style.height',
placeholder: 'var(--sizes-base-15)',
visibleOn: 'direction === "vertical"'
visibleOn: 'direction === "vertical"',
clearValueOnHidden: true
}),
getSchemaTpl('theme:select', {
mode: 'horizontal',
Expand Down

0 comments on commit 3c3bd64

Please sign in to comment.