[new feature] Field: add error-message-align prop (#3016)
This commit is contained in:
@@ -20,6 +20,7 @@ export default sfc({
|
||||
onIconClick: Function,
|
||||
autosize: [Boolean, Object],
|
||||
errorMessage: String,
|
||||
errorMessageAlign: String,
|
||||
type: {
|
||||
type: String,
|
||||
default: 'text'
|
||||
@@ -243,7 +244,7 @@ export default sfc({
|
||||
{this.renderRightIcon()}
|
||||
{slots('button') && <div class={bem('button')}>{slots('button')}</div>}
|
||||
</div>
|
||||
{this.errorMessage && <div class={bem('error-message')}>{this.errorMessage}</div>}
|
||||
{this.errorMessage && <div class={bem('error-message', this.errorMessageAlign)}>{this.errorMessage}</div>}
|
||||
</Cell>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user