|
@@ -174,6 +174,7 @@ const getLogicStateByField = (field, fieldsLogicState) => {
|
|
|
readOnly
|
|
|
}
|
|
|
}
|
|
|
+// 给选中类型 将 options 配置 铺设为 params 注入给 组件使用
|
|
|
export const useProps = (state, data, isPc = true, isRoot = false, specialHandling, t, ExtraParams) => {
|
|
|
if (!t) {
|
|
|
t = useI18n().t
|
|
@@ -294,6 +295,10 @@ export const useProps = (state, data, isPc = true, isRoot = false, specialHandli
|
|
|
case 'checkbox':
|
|
|
result.options = _.get(state, `data[${options.dataKey}].list`, [])
|
|
|
break
|
|
|
+ case 'selectUser':
|
|
|
+ result.min = options.min
|
|
|
+ result.max = options.max
|
|
|
+ break
|
|
|
case 'select':
|
|
|
// 当前选中的值,如果是人员就获取人员的api,部门就获取部门的api
|
|
|
if ([2, 3].indexOf(renderType) > -1) {
|