Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
cube-ui
提交
73a4b243
C
cube-ui
项目概览
DiDi
/
cube-ui
9 个月 前同步成功
通知
34
Star
9078
Fork
1508
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
cube-ui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
73a4b243
编写于
1月 31, 2019
作者:
D
dolymood
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs(input): add focus & blur api doc
上级
65bdb002
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
31 addition
and
2 deletion
+31
-2
document/components/docs/en-US/input.md
document/components/docs/en-US/input.md
+8
-1
document/components/docs/en-US/textarea.md
document/components/docs/en-US/textarea.md
+8
-0
document/components/docs/zh-CN/input.md
document/components/docs/zh-CN/input.md
+8
-1
document/components/docs/zh-CN/textarea.md
document/components/docs/zh-CN/textarea.md
+7
-0
未找到文件。
document/components/docs/en-US/input.md
浏览文件 @
73a4b243
...
...
@@ -30,7 +30,7 @@ Input component. You can use the `v-model` directive to create two-way data bind
You can use the
`clearable`
attribute to toggle the clear button.
Before 1.11.0, the
`clearable`
value only can be a Boolean value.
After 1.11.0 the
`clearable`
value can be a Boolean or an Object value.
```
html
...
...
@@ -121,3 +121,10 @@ Input component. You can use the `v-model` directive to create two-way data bind
| - | - | - |
| focus | This event is triggered after the input box is focused. If input is disabled, it will not be triggered | e - event |
| blur | This event is triggered after the input box blur | e - event |
### Instance methods
| Method name | Description |
| - | - |
| focus
<sup>
1.12.10+
</sup>
| Focus element |
| blur
<sup>
1.12.10+
</sup>
| Blur element |
document/components/docs/en-US/textarea.md
浏览文件 @
73a4b243
...
...
@@ -110,3 +110,11 @@ Multi-line input box components. You can use the `v-model` directive to create t
| - | - | - |
| focus | This event is triggered after the textarea box is focused. If Textarea is disabled, it will not be triggered | e - event |
| blur | This event is triggered after the textarea box blur | e - event |
### Instance methods
| Method name | Description |
| - | - |
| focus
<sup>
1.12.10+
</sup>
| Focus element |
| blur
<sup>
1.12.10+
</sup>
| Blur element |
document/components/docs/zh-CN/input.md
浏览文件 @
73a4b243
...
...
@@ -29,7 +29,7 @@
可通过
`clearable`
配置清空按钮。
在 1.11.0 版本之前
`clearable`
的值是布尔类型的,表示是否展示清除按钮;
在 1.11.0 版本之后
`clearable`
可配置为布尔类型,还可以配置为对象。
```
html
...
...
@@ -122,3 +122,10 @@
| - | - | - |
| focus | 输入框聚焦后触发此事件,如果禁用状态,则不触发 | e - 事件对象 |
| blur | 输入框失焦后触发此事件 | e - 事件对象 |
### 实例方法
| 方法名 | 说明 |
| - | - |
| focus
<sup>
1.12.10+
</sup>
| 获得焦点 |
| blur
<sup>
1.12.10+
</sup>
| 离焦 |
document/components/docs/zh-CN/textarea.md
浏览文件 @
73a4b243
...
...
@@ -101,3 +101,10 @@
| - | - | - |
| focus | 输入框聚焦后触发此事件,如果禁用状态,则不触发 | e - 事件对象 |
| blur | 输入框失焦后触发此事件 | e - 事件对象 |
### 实例方法
| 方法名 | 说明 |
| - | - |
| focus
<sup>
1.12.10+
</sup>
| 获得焦点 |
| blur
<sup>
1.12.10+
</sup>
| 离焦 |
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录