Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄瑜
VueElementTemplate
Commits
361a03d6
Commit
361a03d6
authored
Mar 01, 2018
by
王康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tab
parent
fdc1b20f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
HmTab.vue
src/views/haomo/components/tabs/HmTab.vue
+5
-2
index.vue
src/views/haomo/components/tabs/index.vue
+3
-2
No files found.
src/views/haomo/components/tabs/HmTab.vue
View file @
361a03d6
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<
script
>
<
script
>
// import _ from 'lodash'
// import _ from 'lodash'
// import request from '@/utils/request'
// import request from '@/utils/request'
import
schema
from
'../../schemas/hm_org_schema'
//
import schema from '../../schemas/hm_org_schema'
/**
/**
* 毫末科技的选项卡组件.
* 毫末科技的选项卡组件.
...
@@ -55,11 +55,14 @@
...
@@ -55,11 +55,14 @@
* 对于所有毫末科技的组件,必须传schema,以完成数据的交互
* 对于所有毫末科技的组件,必须传schema,以完成数据的交互
*/
*/
props
:
{
props
:
{
schema
:
{
type
:
Object
,
required
:
true
}
},
},
data
()
{
data
()
{
return
{
return
{
activeName
:
'first'
,
activeName
:
'first'
,
schema
:
schema
[
'CcHmUser'
],
swiperOption
:
{
swiperOption
:
{
slidesPerView
:
2
,
slidesPerView
:
2
,
slidesPerGroup
:
2
,
slidesPerGroup
:
2
,
...
...
src/views/haomo/components/tabs/index.vue
View file @
361a03d6
<
template
>
<
template
>
<div>
<div>
<hm-tab></hm-tab>
<hm-tab
:schema=
"schema['CcHmUser']"
></hm-tab>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
HmTab
from
'./HmTab.vue'
import
HmTab
from
'./HmTab.vue'
//
import schema from '../../schemas/hm_org_schema'
import
schema
from
'../../schemas/hm_org_schema'
export
default
{
export
default
{
name
:
'HmTab'
,
name
:
'HmTab'
,
// 继承其他组件
// 继承其他组件
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
filters
:
{
filters
:
{
},
},
created
()
{
created
()
{
this
.
schema
=
schema
},
},
methods
:
{}
methods
:
{}
}
}
...
...
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