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
HireTest
VueElementTemplate
Commits
361a03d6
Commit
361a03d6
authored
7 years ago
by
王康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tab
parent
fdc1b20f
Changes
2
Hide 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 @@
<
script
>
// import _ from 'lodash'
// import request from '@/utils/request'
import
schema
from
'../../schemas/hm_org_schema'
//
import schema from '../../schemas/hm_org_schema'
/**
* 毫末科技的选项卡组件.
...
...
@@ -55,11 +55,14 @@
* 对于所有毫末科技的组件,必须传schema,以完成数据的交互
*/
props
:
{
schema
:
{
type
:
Object
,
required
:
true
}
},
data
()
{
return
{
activeName
:
'first'
,
schema
:
schema
[
'CcHmUser'
],
swiperOption
:
{
slidesPerView
:
2
,
slidesPerGroup
:
2
,
...
...
This diff is collapsed.
Click to expand it.
src/views/haomo/components/tabs/index.vue
View file @
361a03d6
<
template
>
<div>
<hm-tab></hm-tab>
<hm-tab
:schema=
"schema['CcHmUser']"
></hm-tab>
</div>
</
template
>
<
script
>
import
HmTab
from
'./HmTab.vue'
//
import schema from '../../schemas/hm_org_schema'
import
schema
from
'../../schemas/hm_org_schema'
export
default
{
name
:
'HmTab'
,
// 继承其他组件
...
...
@@ -24,6 +24,7 @@
filters
:
{
},
created
()
{
this
.
schema
=
schema
},
methods
:
{}
}
...
...
This diff is collapsed.
Click to expand it.
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