Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [Bug]: textarea 组件maxlengthshow-word-limit同时使用,验证不通过时样式不一致 #2687

Closed
ichynul opened this issue Dec 20, 2024 · 0 comments
Assignees

Comments

@ichynul
Copy link
Contributor

ichynul commented Dec 20, 2024

Version

3.20

Vue Version

3.x

Link to minimal reproduction

https://opentiny.design/vue-playground?mode=pc&theme=default#3.20|eyJzcmMvQXBwLnZ1ZSI6IjxzY3JpcHQgbGFuZz1cInRzeFwiPlxuLy8g5byV5YWlIEBvcGVudGlueS92dWUg57uE5Lu2XG5pbXBvcnQgeyBCdXR0b24sIExpbmsgfSBmcm9tICdAb3BlbnRpbnkvdnVlJ1xuXG5leHBvcnQgZGVmYXVsdCB7XG4gIGNvbXBvbmVudHM6IHtcbiAgICBUaW55QnV0dG9uOiBCdXR0b24sXG4gICAgVGlueUxpbms6IExpbmtcbiAgfSxcbiAgZGF0YSgpIHtcbiAgICByZXR1cm4ge1xuICAgICAgbXNnOiAnaGVsbG8gd29ybGQhJ1xuICAgIH1cbiAgfVxufVxuPC9zY3JpcHQ+XG5cbjx0ZW1wbGF0ZT5cbiAgPFRpbnlCdXR0b24+56Gu5a6aPC9UaW55QnV0dG9uPlxuICA8aDE+e3sgbXNnIH19PC9oMT5cbiAgPGRpdiBjbGFzcz1cInRpbnl2dWVcIj5cbiAgICA8ZGl2IGNsYXNzPVwidGlueXZ1ZS1wYWdlXCI+XG4gICAgICB0aW55dnVlXG4gICAgICA8dGlueS1saW5rIHR5cGU9XCJzdWNjZXNzXCIgaHJlZj0naHR0cHM6Ly9naXRodWIuY29tL29wZW50aW55L3RpbnktdnVlJz5cbiAgICAgICAgdGlueXZ1ZVxuICAgICAgPC90aW55LWxpbms+XG4gICAgPC9kaXY+XG4gIDwvZGl2PlxuPC90ZW1wbGF0ZT5c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Vzc2FnZTogJ+mVv+W6puW/hemhu+S4jeWwj+S6jjInLCB0cmlnZ2VyOiBbJ2NoYW5nZScsICdibHVyJ10gfVxuICBdLFxufSlcblxuZnVuY3Rpb24gaGFuZGxlU3VibWl0UHJvbWlzZSgpIHtcbiAgcnVsZUZvcm1SZWYudmFsdWVcbiAgICAudmFsaWRhdGUoKVxuICAgIC50aGVuKCgpID0+IHtcbiAgICAgIFRpbnlNb2RhbC5hbGVydCgncHJvbWlzZeeUqOazlTrmj5DkuqTmiJDlip8nKVxuICAgIH0pXG4gICAgLmNhdGNoKCgpID0+IHtcbiAgICAgIFRpbnlNb2RhbC5hbGVydCgncHJvbWlzZeeUqOazlTrmj5DkuqTlpLHotKUnKVxuICAgIH0pXG59XG48L3NjcmlwdD5cblxuPHN0eWxlIHNjb3BlZD5cbi5kZW1vLWZvcm0ge1xuICB3aWR0aDogNDUwcHg7XG59XG4udGl0bGUge1xuICBtYXJnaW4tYm90dG9tOiAyMHB4O1xuICBmb250LXNpemU6IDE0cHg7XG59XG48L3N0eWxlPlxuIiwiX28iOnt9fQ==

Step to reproduce

<tiny-input type="textarea" maxlength="5" show-word-limit v-model="createData.users"></tiny-input>

What is expected

No response

What is actually happening

火狐截图_2024-12-20T14-52-02 789Z

What is your project name

Any additional comments (optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants