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
7ceba1ae
Commit
7ceba1ae
authored
Feb 23, 2018
by
高天阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hm-complex-panel -> hm-panel
parent
1a22d103
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
14 deletions
+14
-14
HmPanel.md
src/views/haomo/components/panel/HmPanel.md
+5
-5
HmPanel.vue
src/views/haomo/components/panel/HmPanel.vue
+1
-1
index.vue
src/views/haomo/components/panel/index.vue
+7
-7
styleguide.config.js
styleguide.config.js
+1
-1
No files found.
src/views/haomo/components/panel/Hm
Complex
Panel.md
→
src/views/haomo/components/panel/HmPanel.md
View file @
7ceba1ae
### 基本使用
### 基本使用
```
jsx
```
jsx
<
hm
-
complex
-
panel
:
hmTitle
=
"面板标题"
<
hm
-
panel
:
hmTitle
=
"面板标题"
:
hmTitleClass
=
'center'
:
hmTitleClass
=
'center'
:
hmContentClass
=
'center'
:
hmContentClass
=
'center'
:
hmContentText
=
'面板文字'
:
hmContentText
=
'面板文字'
...
@@ -201,22 +201,22 @@
...
@@ -201,22 +201,22 @@
'type': 'number'
'type': 'number'
}
}
]
]
}"
>
<
/
hm
-
complex
-
panel
>
}"
>
<
/
hm
-
panel
>
```
```
### 指定显示的表单类型
### 指定显示的表单类型
```
vue
```
vue
<
template
>
<
template
>
<div>
<div>
<hm-
complex-
panel
:schema=
"schema['HmUser']"
:hmTitle=
"hmTitle"
:hmTitleClass=
"hmTitleClass"
:hmContentClass=
"hmContentClass"
<hm-panel
:schema=
"schema['HmUser']"
:hmTitle=
"hmTitle"
:hmTitleClass=
"hmTitleClass"
:hmContentClass=
"hmContentClass"
:hmContentText=
"hmContentText"
:hmPanelHeight=
"hmPanelHeight"
>
:hmContentText=
"hmContentText"
:hmPanelHeight=
"hmPanelHeight"
>
</hm-
complex-
panel>
</hm-panel>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'Hm
Complex
Panel'
,
name
:
'HmPanel'
,
data
()
{
data
()
{
return
{
return
{
schema
:
{
schema
:
{
...
...
src/views/haomo/components/panel/Hm
Complex
Panel.vue
→
src/views/haomo/components/panel/HmPanel.vue
View file @
7ceba1ae
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
export
default
{
export
default
{
name
:
'Hm
Complex
Panel'
,
name
:
'HmPanel'
,
// 继承其他组件
// 继承其他组件
extends
:
{},
extends
:
{},
// 使用其它组件
// 使用其它组件
...
...
src/views/haomo/components/panel/index.vue
View file @
7ceba1ae
<
template
>
<
template
>
<div>
<div>
<hm-
complex-
panel
:schema=
"schema['HmUser']"
:hmTitle=
"titleBak"
:hmContentClass=
"hmContentClass"
<hm-panel
:schema=
"schema['HmUser']"
:hmTitle=
"titleBak"
:hmContentClass=
"hmContentClass"
:hmStyle=
"styleBak"
:hmPanelHeight=
"panelHeightBak"
:hmCollapse=
"collapseBak"
>
:hmStyle=
"styleBak"
:hmPanelHeight=
"panelHeightBak"
:hmCollapse=
"collapseBak"
>
</hm-
complex-
panel>
</hm-panel>
<hm-
complex-
panel
:schema=
"schema['HmUser']"
:hmTitle=
"hmTitle"
:hmTitleClass=
"hmTitleClass"
<hm-panel
:schema=
"schema['HmUser']"
:hmTitle=
"hmTitle"
:hmTitleClass=
"hmTitleClass"
:hmContentText=
"hmContentText"
:hmStyle=
"hmStyle"
:hmPanelHeight=
"hmPanelHeight"
:hmCollapse=
"collapses"
>
:hmContentText=
"hmContentText"
:hmStyle=
"hmStyle"
:hmPanelHeight=
"hmPanelHeight"
:hmCollapse=
"collapses"
>
</hm-
complex-
panel>
</hm-panel>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Hm
ComplexPanel
from
'./HmComplex
Panel.vue'
import
Hm
Panel
from
'./Hm
Panel.vue'
import
schema
from
'../../schemas/hm_org_schema'
import
schema
from
'../../schemas/hm_org_schema'
import
HmComplexDetail
from
'../details/HmComplexDetail.vue'
import
HmComplexDetail
from
'../details/HmComplexDetail.vue'
export
default
{
export
default
{
name
:
'Hm
Complex
Panel'
,
name
:
'HmPanel'
,
// 继承其他组件
// 继承其他组件
extends
:
{},
extends
:
{},
// 使用其它组件
// 使用其它组件
components
:
{
components
:
{
'hm-
complex-panel'
:
HmComplex
Panel
,
'hm-
panel'
:
Hm
Panel
,
'hm-complex-detail'
:
HmComplexDetail
'hm-complex-detail'
:
HmComplexDetail
},
},
data
()
{
data
()
{
...
...
styleguide.config.js
View file @
7ceba1ae
...
@@ -29,7 +29,7 @@ const sections = [
...
@@ -29,7 +29,7 @@ const sections = [
'./src/views/haomo/components/tables/HmComplexTable.vue'
,
'./src/views/haomo/components/tables/HmComplexTable.vue'
,
'./src/views/haomo/components/forms/HmComplexForm.vue'
,
'./src/views/haomo/components/forms/HmComplexForm.vue'
,
'./src/views/haomo/components/details/HmComplexDetail.vue'
,
'./src/views/haomo/components/details/HmComplexDetail.vue'
,
'./src/views/haomo/components/panel/Hm
Complex
Panel.vue'
'./src/views/haomo/components/panel/HmPanel.vue'
]
]
}
}
},
},
...
...
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