vue element el-input-number 清空后默认为0
element
A Vue.js 2.0 UI Toolkit for Web
项目地址:https://gitcode.com/gh_mirrors/eleme/element
免费下载资源
·
需求 删除 el-input-number 内容后,默认显示 0,不会为 空
<el-col :span="6">
<el-form-item label="工时费:">
<el-input-number
v-model="saveParams.dblworkinghourscharge"
size="medium"
class="input-number"
:controls="false"
:precision="2"
:step="0.1"
@blur=" (e, name) => {blurNumber(e, 'dblworkinghourscharge'); } "
>
</el-input-number>
<span class="input-append">元</span>
</el-form-item>
blurNumber(e, name) {
if (!e.target.value) {
this.saveParams[name] = 0;
}
}
GitHub 加速计划 / eleme / element
10
1
下载
A Vue.js 2.0 UI Toolkit for Web
最近提交(Master分支:4 个月前 )
c345bb45
8 个月前
a07f3a59
* Update transition.md
* Update table.md
* Update transition.md
* Update table.md
* Update transition.md
* Update table.md
* Update table.md
* Update transition.md
* Update popover.md 8 个月前
更多推荐
已为社区贡献2条内容
所有评论(0)