-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(space): fix redundant space render when using v-if (#4663)
* fix(space): 修复t-space在嵌套使用时,使用v-if隐藏会产生冗余空格的问题 * chore: update snapshot --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
aa94731
commit 9611e6b
Showing
5 changed files
with
226 additions
and
12 deletions.
There are no files selected for viewing
Submodule _common
updated
5 files
+6 −0 | docs/web/api/space.en-US.md | |
+6 −0 | docs/web/api/space.md | |
+1 −1 | js/tree/tree-store.ts | |
+63 −58 | style/mobile/components/button/v2/_index.less | |
+3 −3 | style/mobile/components/button/v2/_var.less |
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,18 @@ | ||
<template> | ||
<t-space direction="vertical"> | ||
<t-button>Button</t-button> | ||
<t-button>Button</t-button> | ||
<t-button>Button</t-button> | ||
<t-space> | ||
<template v-if="true"> | ||
<t-button>Button</t-button> | ||
<t-button>Button</t-button> | ||
<t-button v-if="false">Button</t-button> | ||
<t-button>Button</t-button> | ||
<!-- <t-button v-if="false">Button</t-button> --> | ||
<t-button v-if="true">Button</t-button> | ||
</template> | ||
<t-button>Button</t-button> | ||
</t-space> | ||
</t-space> | ||
</template> |
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