Commit 7ceba1ae authored by 高天阳's avatar 高天阳

hm-complex-panel -> hm-panel

parent 1a22d103
### 基本使用 ### 基本使用
```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: 'HmComplexPanel', name: 'HmPanel',
data() { data() {
return { return {
schema: { schema: {
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
import request from '@/utils/request' import request from '@/utils/request'
export default { export default {
name: 'HmComplexPanel', name: 'HmPanel',
// 继承其他组件 // 继承其他组件
extends: {}, extends: {},
// 使用其它组件 // 使用其它组件
......
<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 HmComplexPanel from './HmComplexPanel.vue' import HmPanel from './HmPanel.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: 'HmComplexPanel', name: 'HmPanel',
// 继承其他组件 // 继承其他组件
extends: {}, extends: {},
// 使用其它组件 // 使用其它组件
components: { components: {
'hm-complex-panel': HmComplexPanel, 'hm-panel': HmPanel,
'hm-complex-detail': HmComplexDetail 'hm-complex-detail': HmComplexDetail
}, },
data() { data() {
......
...@@ -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/HmComplexPanel.vue' './src/views/haomo/components/panel/HmPanel.vue'
] ]
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment