Bug Type: TypeScript
Environment
- Vue Version:
3.2.40
- Element Plus Version:
2.2.28
- Browser / OS:
Google Chrome";v="119", "Chromium";v="119", "Not?A_Brand";v="24 windows11
- Build Tool:
Vite
Reproduction
Related Component
el-input
Reproduction Link
Element Plus Playground
Steps to reproduce
<script lang="jsx">
import { ElInput } from 'element-plus';
import { defineComponent, ref } from 'vue';
const max = ref('')
export default defineComponent({
setup() {
return <ElInput v-model={max} maxlength="50" showWordLimit={true}></ElInput>
}
})
</script>
What is Expected?
没有ts报错
What is actually happening?
有ts报错
Additional comments
(empty)
3条答案
按热度按时间j2qf4p5b1#
使用kebab-case的传值
Source:
hfyxw5xn2#
使用kebab-case的传值
Source:
it isn't effective if using "max-length", because it is not an attribute of
6psbrbz93#
使用kebab-case的传值
Source:
it isn't effective if using "max-length", because it is not an attribute of
如果使用 “max-length” 则无效,因为它不是 的属性关闭
oops, sorry my fault