关联记录选择组件
参数定义
参数 | 类型 | 是否必选 | 默认值 | 说明 |
---|---|---|---|---|
v-model:value | [String, Array] | 否 | 无 | 绑定值 |
label | String | 是 | 无 | 标题配置 |
labelWidth | String | 否 | 80px | 标题宽度 |
disabled | Boolean | 否 | false | 是否禁用 |
formSchema | Object | 是 | 无 | 关联记录配置项 |
事件定义
事件名 | 参数 | 说明 |
---|---|---|
change | string | 绑定值变化时触发 |
selected | string | 选择的关联记录数据 |
代码示例
<template>
<online-popup-link-record label="关联记录" :formSchema="formSchema" required v-model:value="gljl" />
</template>
<script setup>
import { ref } from 'vue';
const gljl = ref('');
const formSchema = ref({dictTable: 'test_demo', dictCode: 'id', dictText: 'name,age'})
</script>