-
-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tab-nav): add prefix and suffix slots
- Loading branch information
Showing
9 changed files
with
135 additions
and
15 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
["basis", "card", "disabled", "icon"] | ||
["basis", "card", "disabled", "icon", "extra"] |
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,23 @@ | ||
<template> | ||
<TabNav> | ||
<template #prefix> | ||
<Button size="small"> | ||
Prefix Extra Action | ||
</Button> | ||
</template> | ||
<TabNavItem label="Tab 1"> | ||
Tab 1 | ||
</TabNavItem> | ||
<TabNavItem label="Tab 2"> | ||
Tab 2 | ||
</TabNavItem> | ||
<TabNavItem label="Tab 3"> | ||
Tab 3 | ||
</TabNavItem> | ||
<template #suffix> | ||
<Button size="small"> | ||
Suffix Extra Action | ||
</Button> | ||
</template> | ||
</TabNav> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<template> | ||
<TabNav> | ||
<template #prefix> | ||
<Button size="small"> | ||
前置操作 | ||
</Button> | ||
</template> | ||
<TabNavItem label="标签页1"> | ||
标签页1 | ||
</TabNavItem> | ||
<TabNavItem label="标签页2"> | ||
标签页2 | ||
</TabNavItem> | ||
<TabNavItem label="标签页3"> | ||
标签页3 | ||
</TabNavItem> | ||
<template #suffix> | ||
<Button size="small"> | ||
后置操作 | ||
</Button> | ||
</template> | ||
</TabNav> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### Extra Content | ||
|
||
You can add extra content to the front and rear respectively via `prefix` and `suffix` slots. |
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,3 @@ | ||
### 附加内容 | ||
|
||
通过 `prefix` 和 `suffix` 插槽可以分别在前后两端添加附加内容。 |
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