Commit 95ee75d7 authored by MARCO Jonathan's avatar MARCO Jonathan
Browse files

馃悰 Fix the default text bug for the text field

parent 03bbd0eb
Pipeline #64860 passed with stage
in 14 seconds
......@@ -74,13 +74,13 @@ export default Vue.extend({
maxErrorMessage(): string {
return this.field.type === 'number'
? this._uct('renderer.fields.UsfText.errors.numberMax', {label: this.field.label, max: this.field.max})
: this._uct('renderer.fields.UsfText.errors.textMax', {label: this.field.label, max: this.field.max})
: this._uct('renderer.fields.UsfText.errors.textMax', {label: this.field.label, max: this.field.max});
},
},
mounted() {
if (this.field.defaultValue) {
this.value = this.field.defaultValue;
if (this.field.defaultText) {
this.value = this.field.defaultText;
}
},
......
......@@ -27,7 +27,7 @@ export interface UsfRow extends FieldParent {
vertical?: boolean;
}
export interface UsfPanel extends FieldParent{
export interface UsfPanel extends FieldParent {
panels: Panel[],
fields: string[];
}
......@@ -57,12 +57,13 @@ export interface UsfCheckboxSwitch extends InputField {
}
export interface UsfRadioGroup extends InputField {
options: string[]
options: string[];
}
// INPUT TEXT FIELDS
export interface TextField extends InputField {
clearable?: boolean;
defaultText?: string;
filled?: boolean;
outlined?: boolean;
placeholder?: string;
......@@ -86,7 +87,7 @@ export interface UsfTextArea extends TextField {
export interface UsfSelect extends TextField {
options: string[];
multiple?: boolean
multiple?: boolean;
}
export interface UsfFile extends TextField {
......
Supports Markdown
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