mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 09:08:51 +08:00
docs: ✏️ 增加 Input 字数限制的示例
This commit is contained in:
parent
4f1d9452ec
commit
5aa1c00acd
@ -50,6 +50,7 @@
|
||||
<wd-input type="text" label="清除、密码" v-model="value14" @input="handleInput" placeholder="请输入..." clearable show-password />
|
||||
<wd-input type="text" label="错误状态" v-model="value15" @input="handleInput" placeholder="请输入歪比巴卜" error />
|
||||
<wd-input type="text" label="必填" v-model="value16" @input="handleInput" placeholder="请输入歪比巴卜" required />
|
||||
<wd-input type="text" label="字数限制" v-model="value22" placeholder="请输入..." :maxlength="20" show-word-limit clearable />
|
||||
<wd-input type="text" label="图标" v-model="value17" @input="handleInput" placeholder="请输入..." prefix-icon="dong" suffix-icon="list" />
|
||||
<wd-input type="text" label="自定义插槽" center v-model="value18" @input="handleInput" placeholder="请输入..." clearable>
|
||||
<template #suffix>
|
||||
@ -84,6 +85,7 @@ const value18 = ref<string>('')
|
||||
const value19 = ref<string>('')
|
||||
const value20 = ref<string>('')
|
||||
const value21 = ref<string>('')
|
||||
const value22 = ref<string>('')
|
||||
|
||||
function handleChange(event: any) {
|
||||
console.log(event)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user