Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
numbox-shopping.md 883 Bytes
Copy Edit Web IDE Raw Blame History
wlp authored 2019-03-30 23:52 . 更新:numbox-shopping.md

购物车数字输入框

截图

示例

注意:依赖flex.scss
注意:依赖uni-app组件uni-icon
注意:索引可输入数组来支持多层循环
注意:可自定义颜色$uni-color-primary/$uni-color-warning/$uni-color-error
注意:固定最小值限制0

事件

默认:change(value, 索引)
value值为-1或-2:click(索引)

属性

value : { // 输入值
  type : Number,
  value : 0 
},
index: { // 组件索引
    type: [Number, Array],
    default: 0
},
disabled : { // 是否禁用键盘输入
  type : Boolean,
  value : false
},
max:{ // 最大值
  type: Number,
  value: 20
},
step: { // 步长
    type: Number,
    default: 1
},

Comment ( 0 )

Sign in for post a comment