ElemeFE / ElemeFE/element

[Feature Request] There is no prop for the Input of MessageBox, such as maxLength and show-word-limit

Open
#21,202 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Existing Component

### Component Name
MessageBox

### Description
- There is no prop for the Input of MessageBox, such as maxLength and show-word-limit

### Expected results

```javascript
let promptRes = await this.$prompt('message', {
title: 'Title',
type: 'info',
inputProps: {
maxlength: 10,
'show-word-limit': true
},
inputPlaceholder: 'please input',
inputValidator: value => {
// ...
return true
}
}).then(({ value }) => value).catch(() => '')
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.