SelectUser 选择用户
参数定义
参数 | 类型 | 是否必选 | 默认值 | 说明 |
---|---|---|---|---|
v-model | [String,Array] | 否 | 无 | 绑定值 |
rowKey | String | 否 | username | 取值字段配置 |
labelKey | String | 否 | realname | 显示字段配置 |
maxSelectCount | Number | 否 | - | 最大选择数量 |
modalTitle | String | 否 | 选择用户 | 组件标题 |
isRadioSelection | boolean | 否 | false | 是否单选 |
事件定义
事件名 | 参数 | 说明 |
---|---|---|
change | string 类型(多个以,号分割) | 绑定值变化时触发 |
代码示例
<template>
<SelectUser label="用户:" :required="true" v-model="user"></SelectUser>
</template>
<script>
import { ref } from 'vue';
const user = ref('')
</script>