fix: 解决表单项 pipeIn 和 pipeOut 的 this 丢失

This commit is contained in:
ChuHoMan 2023-09-05 10:49:59 +08:00
parent cdaeb01902
commit 633317eb1d

View File

@ -649,7 +649,8 @@ export function wrapControl<
if (pipeOut) {
const oldValue = this.model.value;
value = callStrFunction(
value = callStrFunction.call(
this,
pipeOut,
['value', 'oldValue', 'data'],
value,
@ -774,7 +775,8 @@ export function wrapControl<
} = this.props;
if (pipeOut) {
value = callStrFunction(
value = callStrFunction.call(
this,
pipeOut,
['value', 'oldValue', 'data'],
value,
@ -797,7 +799,8 @@ export function wrapControl<
let value: any = this.model ? this.model.tmpValue : control.value;
if (control.pipeIn) {
value = callStrFunction(
value = callStrFunction.call(
this,
control.pipeIn,
['value', 'data'],
value,