## BioMenu 百奥知menu
简单实现待后续完善补充。

### 基本用法

:::demo

```html
<bio-menu
  :menu="menu"
  :collapse="collapse"
  :default-active="defaultActive">
</bio-menu>
<script>
  export default {
    data() {
      return {
        menu: [
          {
            "name": "主页",
            "code": "home",
            "allCode": [
              "home"
            ],
            "path": "/home",
            "level": "1",
            "type": "1",
            "iconname": "back_login",
            "sortindex": "1",
            "specialShow": "0"
          },
          {
            "name": "drug",
            "code": "drug",
            "allCode": [
              "drug"
            ],
            "path": "/subjectInfo",
            "level": "1",
            "type": "1",
            "iconname": "drug",
            "sortindex": "3",
            "specialShow": "0"
          },
          {
            "name": "ctms",
            "code": "ctms",
            "allCode": [
              "ctms"
            ],
            "path": "/ctms",
            "level": "1",
            "type": "1",
            "iconname": "ctms",
            "sortindex": "9",
            "children": [
                {
                  'name': '历史',
                  'code': 'history',
                  'allCode': ['ctms', 'history'],
                  'path': '/history',
                  'level': '2',
                  'type': '1',
                  'iconname': 'history',
                  'sortindex': '23'
                }
            ],
            "specialShow": "0"
          },
          {
            "name": "设置",
            "code": "setting",
            "allCode": [
              "setting"
            ],
            "path": "",
            "level": "1",
            "type": "2",
            "iconname": "tool_more",
            "sortindex": "16",
            "specialShow": "0"
          }
        ],
        collapse:false,
        defaultActive: {
          "name": "主页",
          "code": "home",
          "allCode": [
            "home"
          ],
          "path": "/home",
          "level": "1",
          "type": "1",
          "iconname": "back_login",
          "sortindex": "1",
          "specialShow": "0"
        }
      }
    }
  };
</script>
```
:::

### Attributes
form对象内参数。

| 参数      | 说明    | 类型      | 可选值       | 默认值   |
|---------- |-------- |---------- |-------------  |-------- |
| menu | 菜单数据 | arry | — | — |
| collapse | 是否折叠显示菜单  | boolean | — | false |
| defaultActive | 默认展示的菜单 | object   | — | — |
| iconKey | 菜单数据中icon属性的key值 | string | — | iconname |

### Events
| 事件名称      | 说明    | 回调参数      |
|---------- |-------- |---------- |
| menuItemClick | 菜单被点击时触发 | 被点击的菜单对象 |
