【issues/7948】修复JselectRole组件不支持双向绑定 ---

dev
JEECG 3 months ago
parent bc56384325
commit cba4847413

@ -41,7 +41,7 @@
default: () => {},
},
},
emits: ['options-change', 'change'],
emits: ['options-change', 'change', 'update:value'],
setup(props, { emit, refs }) {
const emitData = ref<any[]>();
//model
@ -118,6 +118,9 @@
//emitData.value = values.join(",");
state.value = values;
selectValues.value = values;
// update-begin--author:liaozhiyang---date:20250318---forissues/7948JselectRole
emit('update:value', values);
// update-end--author:liaozhiyang---date:20250318---forissues/7948JselectRole
}
const getBindValue = Object.assign({}, unref(props), unref(attrs));
return {

Loading…
Cancel
Save