1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!--
<hm-transfer
:schema="schema['HmUser']" 数据库操作对象 Object
:filterable="true" 是否显示搜索框 Boolean (必须项)
:title="['左侧列表', '右侧列表']" 列表标题 Array (可选项)
:buttonTexts="['左移', '右移']" 按钮名称 Array (可选项)
></hm-transfer>
-->
<template>
<hm-transfer
:schema="schema['HmUser']"
:filterable="canSearch"
:title="listTitle"
:buttonTexts="buttonTexts"
></hm-transfer>
</template>
<script>
import HmTransfer from './HmTransfer'
import schema from '../../schemas/hm_org_schema'
export default {
name: 'HmTransferIndex',
// 继承其他组件
extends: {},
// 使用其它组件
components: {
'hm-transfer': HmTransfer
},
data() {
return {}
},
computed: {},
filters: {},
created() {
this.schema = schema
this.canSearch = true
this.listTitle = ['左侧列表', '右侧列表']
this.buttonTexts = ['左移', '右移']
},
methods: {}
}
</script>
<style scoped>
</style>