mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 11:07:52 +08:00
fix: 解决表单项 pipeIn 和 pipeOut 的 this 丢失
This commit is contained in:
parent
cdaeb01902
commit
633317eb1d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user