updates
This commit is contained in:
+5
-5
@@ -516,14 +516,14 @@ export class Render {
|
|||||||
|
|
||||||
Ut.each(field, (val, key) => {
|
Ut.each(field, (val, key) => {
|
||||||
|
|
||||||
if (key == 'readonly') {
|
if (key === 'readonly') {
|
||||||
key = 'readOnly';
|
key = 'readOnly';
|
||||||
val = Boolean(val);
|
val = Boolean(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (field.maxlength) {
|
if (key === 'maxlength') {
|
||||||
key = 'maxLength';
|
key = 'maxLength';
|
||||||
val = Boolean(val);
|
val = parseInt(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (key === 'required' || key === 'disabled') {
|
if (key === 'required' || key === 'disabled') {
|
||||||
@@ -537,10 +537,10 @@ export class Render {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (key === 'dataid') {
|
if (key === 'dataid') {
|
||||||
input.dataset.id = field.dataid;
|
input.dataset.id = val;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[ key ] = val;
|
input[ key ] = val;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user