手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

Element如何设置InputNumber隐藏按钮

时间:2024-10-12 00:47:46

1、打开一个vue文件,添加element框架下的InputNumber计数器,设置InputNumber计数器默认值为1。如图

Element如何设置InputNumber隐藏按钮
Element如何设置InputNumber隐藏按钮

2、设置controls属性为false,用于隐藏数量添加和减少的点击按钮。如图

Element如何设置InputNumber隐藏按钮

3、保存vue文件后使用浏览器打开,即可看到InputNumber计数器左右两边的按钮已经隐藏掉了。如图

Element如何设置InputNumber隐藏按钮
© 手抄报圈