tiny-vue/examples/docs/resources/mobile-first/md/numeric/numeric-events.md

37 lines
712 B
Markdown

<div class="demo-header">
<p class="overviewicon">
<span class="wapi-form-numeric"/>
</p>
## Numeric 计数器
<nova-uxlink widget-name="Numeric"></nova-uxlink>
Numeric 计数器可用于输入数字,可自定义数值范围,步进大小。支持鼠标键盘增减。
</div>
### 聚焦事件
输入框获得焦点时触发 `focus` 事件。
<nova-demo-view link="numeric/focus-event.vue"></nova-demo-view>
<br />
### 失焦事件
输入框失去焦点时触发 `blur` 事件。
<nova-demo-view link="numeric/blur-event.vue"></nova-demo-view>
<br />
### 值改变事件
输入框值被改变时触发 `change` 事件。
<nova-demo-view link="numeric/change-event.vue"></nova-demo-view>
<br />