## 单个班型展示

<br />

### 基本用法

:::demo `checked` 是否选中状态，默认为`false`

```html

<template>
    <ve-class-type @callBack="checked=!checked" :checked="checked">
    </ve-class-type>
</template>

<script>
    export default {
        data() {
            return {
                checked: false
            }
        }
    }
</script>
```

:::

### 已选中班型

:::demo `selected`是否已被选中，默认为`false`
```html

<template>
    <ve-class-type :selected="true" label="已被选中班型">
    </ve-class-type>
</template>
```

:::

### 匹配班型
通过`matching`展示匹配到的对应班型

:::demo `matching`班型是否匹配，默认为`false`
```html

<template>
    <ve-class-type :matching="true" @callBack="callBack">
    </ve-class-type>
</template>
<script>
    export default {
        data() {
            return {
                checked : false
            }
        },
        methods: {
            callBack() {
                this.$message("点击了主体");
                this.checked = !this.checked;
            }
        }
    }
</script>
```

:::

### 删除班型
点击右上角x,可对班型进行删除操作

:::demo
```html

<template>
    <ve-class-type @del="del" label="自定义班型名称">
    </ve-class-type>
</template>

<script>
    export default {
        methods: {
            del() {
                this.$message("点击了删除");
            }
        }
    }
</script>
```

:::

### Attributes

| 参数      | 说明          | 类型      | 可选值                           | 默认值  |
|---------- |-------------- |---------- |--------------------------------  |-------- |
| checked | 是否选中状态 | boolean | — | false |
| selected | 是否已经被选中 | boolean | — | false |
| label | 班型名称 | String | — | 默认班型名称默认班型名称默认班型名称 |
| matching | 班型名称是否匹配 | boolean | — | false |

### Events

| 事件名称 | 说明 | 回调参数 |
|---------- |-------- |---------- |
| callBack | 班型点击回调 | — |
| del | 班型删除回调 | — |