# 示例
## option.js
```javascript
export const baseModelOptions = [
{
tag: 'el-input',
label: '角色名称:',
key: 'name',
value: '',
default: '',
attribute: {//属性
type: 'text',
placeholder: '请输入角色名称',
},
},
{
tag: 'el-input',
label: '备注:',
key: 'remark',
value: '',
default: '',
attribute: {//属性
type: 'text',
placeholder: '请输入备注',
},
},
{
tag: 'BaseTree',
label: '菜单:',
key: 'menuIdList',
value: [],
default: [],
attribute: {//属性
defaultCheckedKey: [],
nodeKey: "id",
showCheckbox: true,
props: {label:'name'},
data: []
}
},
]
export const baseFilterOptions = [
{
tag: 'el-input',
label: '角色名称:',
key: 'name',
value: '',
attribute: {//属性
type: 'text',
placeholder: '请输入角色名称'
},
},
]
```
## role.vue
```html
```