2.0.3 • Published 5 months ago

@wu-component/wu-input v2.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

Input 输入框

常用的输入框组件。

基础用法

::: demo

<template>
    <div style="display: flex; align-items: center;justify-content: space-around;padding: 16px">
        <wu-plus-input style="width: 280px" maxLength="10" disabled="false" placeholder="请输入" type="input"></wu-plus-input>
    </div>
</template>

:::

禁用状态

::: demo

<template>
    <div style="display: flex; align-items: center;justify-content: space-around;padding: 16px">
        <wu-plus-input style="width: 280px" maxLength="10" disabled="true" placeholder="请输入" clearable="true" type="input"></wu-plus-input>
    </div>
</template>
<script>
</script>

:::

清除按钮

::: demo

<template>
    <div style="display: flex; align-items: center;justify-content: space-around;padding: 16px">
        <wu-plus-input style="width: 280px" maxLength="10" placeholder="请输入" clearable="true" type="input"></wu-plus-input>
    </div>
</template>

:::

文本域

::: demo

<template>
    <div style="display: flex; align-items: center;justify-content: space-around;padding: 16px">
        <wu-plus-input style="width: 280px" rows="2" disabled="false" maxLength="20" placeholder="请输入" clearable="false" type="textarea"></wu-plus-input>
    </div>
</template>

:::

Attributes

参数说明类型可选值默认值
size组件大小UISizemedium、small、minimini
disabled是否禁用Booleantrue, falsefalse
clearable是否清除Booleantrue, falsefalse
value输入框值String----
type类型Stringtextarea、inputinput
placeholderplaceholderString----
suffixIconsuffixIconString----
namenameString----
formformString----
prefixIconprefixIconString----
maxLength最大长度Number----
minLength最小长度Number----
rows行数,仅文本域有用Number----
autoComplete是否补全Booleantrue, falsefalse
onBlur失去焦点Function----
onFocus获取焦点Function----
onInput用户输入Function----
onChange值修改Function----
onMouseEnter鼠标移入Function----
onMouseLeave鼠标离开Function----

Event

事件名说明参数
change值修改(event: CustomEvent) => void
blur失去焦点(event: CustomEvent) => void
focus获取焦点(event: CustomEvent) => void
input用户输入(event: CustomEvent) => void
2.0.3

5 months ago

2.0.1

1 year ago

2.0.0

1 year ago

1.11.8

1 year ago

1.11.7

1 year ago

1.11.6

1 year ago

1.11.4

1 year ago

1.11.3

1 year ago

1.11.1

1 year ago

1.10.6

1 year ago

1.10.3

1 year ago

1.10.2

1 year ago

1.10.1

1 year ago

1.9.24

2 years ago

1.9.21

2 years ago

1.9.20

2 years ago

1.9.17

2 years ago

1.9.1

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.0.1

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago