Commit 0d55427f authored by 满振华's avatar 满振华

修改参数

parent 1c617bf0
{
"name": "apollo_form_pase",
"version": "0.0.8",
"version": "0.0.9",
"description": "",
"main": "dist/index.js",
"module": "dist/index.esm.js",
......
......@@ -40,7 +40,7 @@ export const HandleClass = {
...obj.behaviorResult,
paramsJson,
}
resertValue && resertValue({ key: ls });
resertValue && resertValue({ key: ls, handleType });
if (handleType !== 'init') {
obj.value = void 0; //将目标组件清空
}
......
......@@ -58,9 +58,9 @@ class HandleBehavior {
let formData = this.formData;
this.formData = behaviorInstance.fun({ value, behavior, behaviors, formData, componentData, handleType }, this.resetValueCallback);
}
resetValueCallback = ({ key, value }) => {
resetValueCallback = ({ key, value, handleType }) => {
const componentData = this.formData.find(ls => ls.name === key) || {};
this.handleBehavior({ currentValue: value, componentData })
this.handleBehavior({ currentValue: value, componentData, handleType })
}
hiddenFilds = () => {
this.formData = this.formData.filter(item => item.type !== 'hidden')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment