-
Notifications
You must be signed in to change notification settings - Fork 834
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tabs): 新增 align 属性,支持标题左对齐布局 (#2809)
close #2471
- Loading branch information
Showing
11 changed files
with
89 additions
and
10 deletions.
There are no files selected for viewing
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
11 changes: 11 additions & 0 deletions
11
packages/nutui-taro-demo/src/nav/pages/tabs/left-align.vue
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,11 @@ | ||
<template> | ||
<nut-tabs v-model="value" align="left"> | ||
<nut-tab-pane title="Tab 1" pane-key="1"> Content 1 </nut-tab-pane> | ||
<nut-tab-pane title="Tab 2" pane-key="2"> Content 2 </nut-tab-pane> | ||
<nut-tab-pane title="Tab 3" pane-key="3"> Content 3 </nut-tab-pane> | ||
</nut-tabs> | ||
</template> | ||
<script setup lang="ts"> | ||
import { ref } from 'vue'; | ||
const value = ref('1'); | ||
</script> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<template> | ||
<nut-tabs v-model="value" align="left"> | ||
<nut-tab-pane title="Tab 1" pane-key="1"> Content 1 </nut-tab-pane> | ||
<nut-tab-pane title="Tab 2" pane-key="2"> Content 2 </nut-tab-pane> | ||
<nut-tab-pane title="Tab 3" pane-key="3"> Content 3 </nut-tab-pane> | ||
</nut-tabs> | ||
</template> | ||
<script setup lang="ts"> | ||
import { ref } from 'vue'; | ||
const value = ref('1'); | ||
</script> |
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
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
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