Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
076d4303
Commit
076d4303
authored
Dec 20, 2016
by
baiyaaaaa
Committed by
cinwell.li
Dec 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add param to label-content render function
parent
3a774939
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
examples/docs/en-US/tabs.md
examples/docs/en-US/tabs.md
+1
-1
examples/docs/zh-CN/tabs.md
examples/docs/zh-CN/tabs.md
+1
-1
packages/tabs/src/tabs.vue
packages/tabs/src/tabs.vue
+1
-1
No files found.
examples/docs/en-US/tabs.md
View file @
076d4303
...
...
@@ -142,6 +142,6 @@ Border card tabs.
| Attribute | Description | Type | Accepted Values | Default |
|---------- |-------- |---------- |------------- |-------- |
| label | title of the tab | string | — | — |
| label-content | render function for tab title | Function(h) | - | - |
| label-content | render function for tab title | Function(h
, tab:vueInstance
) | - | - |
| disabled | whether Tab is disabled | boolean | - | false |
| name | identifier corresponding to the activeName of Tabs, representing the alias of the tab-pane | string | — | ordinal number of the tab-pane in the sequence, i.e. the first tab-pane is '1' |
examples/docs/zh-CN/tabs.md
View file @
076d4303
...
...
@@ -137,6 +137,6 @@
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---------- |-------- |---------- |------------- |-------- |
| label | 选项卡标题 | string | — | — |
| label-content | 选项卡的标题的渲染 Function | Function(h) | - | - |
| label-content | 选项卡的标题的渲染 Function | Function(h
, tab:vueInstance
) | - | - |
| disabled | 是否禁用 | boolean | - | false |
| name | 与选项卡 activeName 对应的标识符,表示选项卡别名 | string | — | 该选项卡在选项卡列表中的顺序值,如第一个选项卡则为'1' |
packages/tabs/src/tabs.vue
View file @
076d4303
...
...
@@ -119,7 +119,7 @@
refInFor
:
true
,
on
:
{
click
:
(
ev
)
=>
{
handleTabClick
(
tab
,
ev
);
}
}
},
[
tab
.
labelContent
?
tab
.
labelContent
.
call
(
this
.
_renderProxy
,
h
)
:
tab
.
label
,
tab
.
labelContent
?
tab
.
labelContent
.
call
(
this
.
_renderProxy
,
h
,
tab
)
:
tab
.
label
,
tab
.
isClosable
?
btnClose
:
null
,
index
===
0
?
activeBar
:
null
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment