Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
npm
/
glsx-components
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a625d99f
authored
Aug 09, 2022
by
陈婉清
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'chenwq_tab' into 'dev_v1.0.0'
tab修改 See merge request
!2
2 parents
5863cb47
7af6c7f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
src/App.vue
src/packages/GLTabs/src/index.vue
src/App.vue
View file @
a625d99
...
@@ -1010,10 +1010,8 @@ export default {
...
@@ -1010,10 +1010,8 @@ export default {
this
.
tabPaneList
=
[]
this
.
tabPaneList
=
[]
for
(
let
i
=
0
;
i
<
6
;
i
++
)
{
for
(
let
i
=
0
;
i
<
6
;
i
++
)
{
this
.
tabPaneList
.
push
({
this
.
tabPaneList
.
push
({
attrs
:
{
label
:
'tab'
+
i
,
label
:
'tab'
+
i
,
name
:
'tab'
+
i
name
:
'tab'
+
i
}
})
})
}
}
},
},
...
...
src/packages/GLTabs/src/index.vue
View file @
a625d99
<
template
>
<
template
>
<div
class=
"gl-tab"
>
<div
class=
"gl-tab"
>
<el-tabs
ref=
"tab"
v-bind=
"$attrs"
v-on=
"$listeners"
>
<el-tabs
ref=
"tab"
v-bind=
"$attrs"
v-on=
"$listeners"
>
<el-tab-pane
v-for=
"(item, index) in tabPaneList"
:key=
"index"
v-bind=
"item
.attrs
"
v-on=
"item.listeners"
>
<el-tab-pane
v-for=
"(item, index) in tabPaneList"
:key=
"index"
v-bind=
"item"
v-on=
"item.listeners"
>
<span
slot=
"label"
style=
"padding: 0 10px"
>
{{
item
.
attrs
.
label
}}
</span>
<span
slot=
"label"
style=
"padding: 0 10px"
>
{{
item
.
label
}}
</span>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
...
@@ -21,10 +21,7 @@ export default {
...
@@ -21,10 +21,7 @@ export default {
props
:
{
props
:
{
tabPaneList
:
{
tabPaneList
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[{
default
:
()
=>
[{}]
attrs
:
{},
listeners
:
{}
}]
}
}
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment