-
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): 修复t-space在嵌套使用时,使用v-if隐藏会产生冗余空格的问题
- Loading branch information
1 parent
aa94731
commit afe4259
Showing
3 changed files
with
32 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