diff --git a/packages/opendesign/src/input/__docs__/__case__/InputUsage.vue b/packages/opendesign/src/input/__docs__/__case__/InputUsage.vue index 28faf69df3951f9c59b2f7e133e2654c2d4b5431..9cb7d284c222032fc53dd420a537afa23cb7fedc 100644 --- a/packages/opendesign/src/input/__docs__/__case__/InputUsage.vue +++ b/packages/opendesign/src/input/__docs__/__case__/InputUsage.vue @@ -11,6 +11,12 @@ 禁用状态:`disabled` ; +通过属性 `showLength` 控制输入字符数与最大限制字符数的展示与隐藏; + +通过属性 `maxLength` 限制输入最大字符长度; + +通过属性 `inputOnOutlimit` 控制输入字符超长时,是否允许继续输入; + 按钮的圆角可以通过 `pill` 设置为半圆,也可以是 css 属性 `border-radius` 能够接受的其它值。 @@ -25,6 +31,12 @@ Three shapes: `solid`, `outline`, and `text`; Disabled state: `disabled`; +Control the display and hiding of the input character count and the maximum limit character count through the attribute `showLength`. + +Limit the maximum character length of the input through the attribute `maxLength`; + +Control whether to continue inputting when the input character is too long through the attribute `inputOnOutlimit`. + The input's radius can be set to half circle by setting `pill` to `true`, or to css property `border-radius` accepted values.