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 1010 </view >
1111 <input :disabled =" disabledInput || disabled" :cursor-spacing =" getCursorSpacing" :class =" { 'u-input-disabled': disabled }"
1212 v-model =" inputVal" class =" u-number-input" @blur =" onBlur" @focus =" onFocus"
13- type =" number" :style =" {
13+ : type =" positiveInteger?' number':'digit' " :style =" {
1414 color: color,
1515 fontSize: size + 'rpx',
1616 background: bgColor,
Original file line number Diff line number Diff line change @@ -278,12 +278,13 @@ export default {
278278 let columnIndex = e .detail .value ;
279279 // 由于后面是需要push进数组的,所以需要先清空数组
280280 this .selectValue = [];
281+ this .defaultSelector = columnIndex;
281282 if (this .mode == ' mutil-column-auto' ) {
282283 // 对比前后两个数组,寻找变更的是哪一列,如果某一个元素不同,即可判定该列发生了变化
283284 this .lastSelectIndex .map ((val , idx ) => {
284285 if (val != columnIndex[idx]) index = idx;
285286 });
286- this . defaultSelector = columnIndex;
287+
287288 for (let i = index + 1 ; i < this .columnNum ; i++ ) {
288289 // 当前变化列的下一列的数据,需要获取上一列的数据,同时需要指定是上一列的第几个的children,再往后的
289290 // 默认是队列的第一个为默认选项
You can’t perform that action at this time.
0 commit comments