1、打开一个vue文件,添加element框架下的InputNumber计数器,设置InputNumber计数器默认值为1。如图
2、设置controls属性为false,用于隐藏数量添加和减少的点击按钮。如图