File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 10
10
</view >
11
11
<input :disabled =" disabledInput || disabled" :cursor-spacing =" getCursorSpacing" :class =" { 'u-input-disabled': disabled }"
12
12
v-model =" inputVal" class =" u-number-input" @blur =" onBlur" @focus =" onFocus"
13
- type =" number" :style =" {
13
+ : type =" positiveInteger?' number':'digit' " :style =" {
14
14
color: color,
15
15
fontSize: size + 'rpx',
16
16
background: bgColor,
Original file line number Diff line number Diff line change @@ -278,12 +278,13 @@ export default {
278
278
let columnIndex = e .detail .value ;
279
279
// 由于后面是需要push进数组的,所以需要先清空数组
280
280
this .selectValue = [];
281
+ this .defaultSelector = columnIndex;
281
282
if (this .mode == ' mutil-column-auto' ) {
282
283
// 对比前后两个数组,寻找变更的是哪一列,如果某一个元素不同,即可判定该列发生了变化
283
284
this .lastSelectIndex .map ((val , idx ) => {
284
285
if (val != columnIndex[idx]) index = idx;
285
286
});
286
- this . defaultSelector = columnIndex;
287
+
287
288
for (let i = index + 1 ; i < this .columnNum ; i++ ) {
288
289
// 当前变化列的下一列的数据,需要获取上一列的数据,同时需要指定是上一列的第几个的children,再往后的
289
290
// 默认是队列的第一个为默认选项
You can’t perform that action at this time.
0 commit comments