效果:

HTML代码:(type="integer"为这个,是限制只能输入正整数或负整数,英文和汉字自动转成0)
<vxe-table
show-overflow
keep-source
v-loading="loading"
:data="ruleList"
ref="Table"
:row-config="{isHover: true}"
height="100%"
:edit-config="{trigger: 'click', mode: 'cell', showStatus: true}"
>
<vxe-column type="seq" width="60" />
<vxe-column
title="排序"
field="orderNum"
:show-overflow-tooltip="true"
:edit-render="{autofocus: '.myinput'}"
>
<template #edit="scope">
<vxe-input
type="integer"
maxlength="30"
class="myinput"
v-model="scope.row.orderNum"
placeholder="请输入

最低0.47元/天 解锁文章
1904

被折叠的 条评论
为什么被折叠?



