Accept Merge Request #915: (feature/前端样式修改 -> develop)
Merge Request: 修改field错误问题 Created By: @黄焱 Reviewed By: @马广威 Approved By: @马广威 Accepted By: @黄焱 URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/915?initial=true
This commit is contained in:
@@ -83,12 +83,8 @@ patch(FormStatusIndicator.prototype, 'jikimo_frontend.FormStatusIndicator', {
|
|||||||
);
|
);
|
||||||
patch(Field.prototype, 'jikimo_frontend.Field', {
|
patch(Field.prototype, 'jikimo_frontend.Field', {
|
||||||
setup() {
|
setup() {
|
||||||
this.FieldComponent = this.props.fieldInfo.FieldComponent;
|
|
||||||
if (!this.FieldComponent) {
|
|
||||||
const fieldType = this.props.record.fields[this.props.name].type;
|
|
||||||
this.FieldComponent = getFieldClassFromRegistry(fieldType, this.props.type);
|
|
||||||
}
|
|
||||||
owl.onMounted(this.setRequired);
|
owl.onMounted(this.setRequired);
|
||||||
|
return this._super(...arguments);
|
||||||
},
|
},
|
||||||
setRequired() {
|
setRequired() {
|
||||||
const id = this.props.id
|
const id = this.props.id
|
||||||
|
|||||||
Reference in New Issue
Block a user