Skip to content

Commit

Permalink
chore(dist): build dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Jino Liu committed Aug 5, 2023
1 parent 465ef97 commit dadcbc2
Show file tree
Hide file tree
Showing 20 changed files with 67 additions and 39 deletions.
15 changes: 11 additions & 4 deletions packages/lib/vue2/vue2-form-element/dist/vueJsonSchemaForm.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -9132,7 +9132,7 @@ function getMatchingIndex(formData, options, rootSchema) {
if (isValid(augmentedSchema, formData)) {
return i;
}
} else if (isValid(options[i], formData)) {
} else if (isValid(option, formData)) {
return i;
}
} // 尝试查找const 配置
Expand Down Expand Up @@ -10321,7 +10321,13 @@ var Widget = {
required: self.required,
propPath: path2prop(curNodePath)
});
if (errors.length > 0) return callback(errors[0].message); // customRule 如果存在自定义校验

if (errors.length > 0) {
var errMsg = errors[0].message;
if (callback) callback(errMsg);
return Promise.reject(errMsg);
} // customRule 如果存在自定义校验


var curCustomRule = self.$props.customRule;

Expand All @@ -10334,7 +10340,8 @@ var Widget = {
});
}

return callback();
if (callback) return callback();
return Promise.resolve();
},
trigger: 'change'
}]
Expand Down Expand Up @@ -11459,7 +11466,7 @@ var SelectLinkageField = {
}
});
} else {
setPathVal(this.rootFormData, this.curNodePath, newOptionData === undefined ? curFormData : newOptionData);
setPathVal(this.rootFormData, this.curNodePath, newOptionData === undefined && isValid(retrieveSchema(this.selectList[newVal], this.rootSchema), curFormData) ? curFormData : newOptionData);
} // 可添加一个配置通知外部这里变更
// todo: onChangeOption

Expand Down

Large diffs are not rendered by default.

15 changes: 11 additions & 4 deletions packages/lib/vue2/vue2-form-element/dist/vueJsonSchemaForm.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -9140,7 +9140,7 @@
if (isValid(augmentedSchema, formData)) {
return i;
}
} else if (isValid(options[i], formData)) {
} else if (isValid(option, formData)) {
return i;
}
} // 尝试查找const 配置
Expand Down Expand Up @@ -10329,7 +10329,13 @@
required: self.required,
propPath: path2prop(curNodePath)
});
if (errors.length > 0) return callback(errors[0].message); // customRule 如果存在自定义校验

if (errors.length > 0) {
var errMsg = errors[0].message;
if (callback) callback(errMsg);
return Promise.reject(errMsg);
} // customRule 如果存在自定义校验


var curCustomRule = self.$props.customRule;

Expand All @@ -10342,7 +10348,8 @@
});
}

return callback();
if (callback) return callback();
return Promise.resolve();
},
trigger: 'change'
}]
Expand Down Expand Up @@ -11467,7 +11474,7 @@
}
});
} else {
setPathVal(this.rootFormData, this.curNodePath, newOptionData === undefined ? curFormData : newOptionData);
setPathVal(this.rootFormData, this.curNodePath, newOptionData === undefined && isValid(retrieveSchema(this.selectList[newVal], this.rootSchema), curFormData) ? curFormData : newOptionData);
} // 可添加一个配置通知外部这里变更
// todo: onChangeOption

Expand Down

Large diffs are not rendered by default.

15 changes: 11 additions & 4 deletions packages/lib/vue2/vue2-form-iview3/dist/vue2-form-iview3.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -9132,7 +9132,7 @@ function getMatchingIndex(formData, options, rootSchema) {
if (isValid(augmentedSchema, formData)) {
return i;
}
} else if (isValid(options[i], formData)) {
} else if (isValid(option, formData)) {
return i;
}
} // 尝试查找const 配置
Expand Down Expand Up @@ -10321,7 +10321,13 @@ var Widget = {
required: self.required,
propPath: path2prop(curNodePath)
});
if (errors.length > 0) return callback(errors[0].message); // customRule 如果存在自定义校验

if (errors.length > 0) {
var errMsg = errors[0].message;
if (callback) callback(errMsg);
return Promise.reject(errMsg);
} // customRule 如果存在自定义校验


var curCustomRule = self.$props.customRule;

Expand All @@ -10334,7 +10340,8 @@ var Widget = {
});
}

return callback();
if (callback) return callback();
return Promise.resolve();
},
trigger: 'change'
}]
Expand Down Expand Up @@ -11459,7 +11466,7 @@ var SelectLinkageField = {
}
});
} else {
setPathVal(this.rootFormData, this.curNodePath, newOptionData === undefined ? curFormData : newOptionData);
setPathVal(this.rootFormData, this.curNodePath, newOptionData === undefined && isValid(retrieveSchema(this.selectList[newVal], this.rootSchema), curFormData) ? curFormData : newOptionData);
} // 可添加一个配置通知外部这里变更
// todo: onChangeOption

Expand Down

Large diffs are not rendered by default.

15 changes: 11 additions & 4 deletions packages/lib/vue2/vue2-form-iview3/dist/vue2-form-iview3.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -9140,7 +9140,7 @@
if (isValid(augmentedSchema, formData)) {
return i;
}
} else if (isValid(options[i], formData)) {
} else if (isValid(option, formData)) {
return i;
}
} // 尝试查找const 配置
Expand Down Expand Up @@ -10329,7 +10329,13 @@
required: self.required,
propPath: path2prop(curNodePath)
});
if (errors.length > 0) return callback(errors[0].message); // customRule 如果存在自定义校验

if (errors.length > 0) {
var errMsg = errors[0].message;
if (callback) callback(errMsg);
return Promise.reject(errMsg);
} // customRule 如果存在自定义校验


var curCustomRule = self.$props.customRule;

Expand All @@ -10342,7 +10348,8 @@
});
}

return callback();
if (callback) return callback();
return Promise.resolve();
},
trigger: 'change'
}]
Expand Down Expand Up @@ -11467,7 +11474,7 @@
}
});
} else {
setPathVal(this.rootFormData, this.curNodePath, newOptionData === undefined ? curFormData : newOptionData);
setPathVal(this.rootFormData, this.curNodePath, newOptionData === undefined && isValid(retrieveSchema(this.selectList[newVal], this.rootSchema), curFormData) ? curFormData : newOptionData);
} // 可添加一个配置通知外部这里变更
// todo: onChangeOption

Expand Down

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/lib/vue3/vue3-form-ant/dist/vue3-form-ant.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -9151,7 +9151,7 @@ function getMatchingIndex(formData, options, rootSchema) {
if (isValid(augmentedSchema, formData)) {
return i;
}
} else if (isValid(options[i], formData)) {
} else if (isValid(option, formData)) {
return i;
}
} // 尝试查找const 配置
Expand Down Expand Up @@ -11147,7 +11147,7 @@ var SelectLinkageField = {
}
});
} else {
setPathVal(props.rootFormData, props.curNodePath, newOptionData === undefined ? curFormData : newOptionData);
setPathVal(props.rootFormData, props.curNodePath, newOptionData === undefined && isValid(retrieveSchema(props.selectList[newVal], props.rootSchema), curFormData) ? curFormData : newOptionData);
}
});
return function () {
Expand Down
Loading

0 comments on commit dadcbc2

Please sign in to comment.