ElementUI not compatible with formschema
@demsking We are trying to integrate the updated version of Element-UI 2.13.0 using the Vue 2.6.11 dependency but, we have encountered a bug in the integration: The components don't allow the insertion of characters from the keyboard, the inserted character is deleted when "vue.runtime.esm.js" call " copiesi" :
function flushCallbacks () { pending = false; var copies = callbacks.slice(0); callbacks.length = 0; for (var i = 0; i < copies.length; i++) { copies[i](); } }
So we came to the conclusion that "ElementUIComponents.js" loses the reference to "element" when called FormItem, in fact by printing the FormItem nodes, we noticed that at this point "elm" and "componentInstance" are undefined:
`var FormItem = { functional: true, props: { label: { type: String }, enableWrapper: { type: Boolean, default: false } }, render: function render(h, _ref2) { var data = _ref2.data, props = _ref2.props, children = _ref2.children, slots = _ref2.slots;
if (data.field.isArrayField && props.enableWrapper !== true) {
return slots().default;
}
var formItem = h('el-form-item', {
props: {
prop: data.field.attrs.name,
label: props.label,
required: data.field.attrs.required
}
}, slots().default);
console.log('formItem');
console.log(formItem);
console.log('children');
console.log(children);
return formItem;
} };
var Element = function Element(component) { return { functional: true, props: ['type', 'label', 'value'], render: function render(h, _ref3) { var data = _ref3.data, props = _ref3.props, listeners = _ref3.listeners, slots = _ref3.slots; var nodes = [h(component, { field: data.field, props: _objectSpread({}, data.attrs, props), on: _objectSpread({}, listeners, { input: function input(value) { var target = nodes[0].elm; listeners.input({ target: target }); }, change: function change(value, event) { var target = nodes[0].elm; target.value = value; props.value = value; listeners.change({ target: target }); } }) }, slots().default)]; return h(FormItem, { field: data.field, props: props, on: listeners }, nodes); } }; };`
Now We have been able to correctly create the attributes (which they have created incorrectly), but while solving this bug, we have not had positive results regarding the bug in question.