Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uview-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李晖
uview-ui
Commits
f7f50b11
Unverified
Commit
f7f50b11
authored
Dec 17, 2021
by
童皓
Committed by
GitHub
Dec 17, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1191 from qianjue520/master
修复select组件在小程序端展示选值的bug,修复步进器设置可输入小数在小程序真机上无法输入的问题
parents
739cb489
473d8781
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
u-number-box.vue
uview-ui/components/u-number-box/u-number-box.vue
+1
-1
u-select.vue
uview-ui/components/u-select/u-select.vue
+2
-1
No files found.
uview-ui/components/u-number-box/u-number-box.vue
View file @
f7f50b11
...
...
@@ -10,7 +10,7 @@
</view>
<input
:disabled=
"disabledInput || disabled"
:cursor-spacing=
"getCursorSpacing"
:class=
"
{ 'u-input-disabled': disabled }"
v-model="inputVal" class="u-number-input" @blur="onBlur" @focus="onFocus"
type="number
" :style="{
:type="positiveInteger?'number':'digit'
" :style="{
color: color,
fontSize: size + 'rpx',
background: bgColor,
...
...
uview-ui/components/u-select/u-select.vue
View file @
f7f50b11
...
...
@@ -278,12 +278,13 @@ export default {
let
columnIndex
=
e
.
detail
.
value
;
// 由于后面是需要push进数组的,所以需要先清空数组
this
.
selectValue
=
[];
this
.
defaultSelector
=
columnIndex
;
if
(
this
.
mode
==
'
mutil-column-auto
'
)
{
// 对比前后两个数组,寻找变更的是哪一列,如果某一个元素不同,即可判定该列发生了变化
this
.
lastSelectIndex
.
map
((
val
,
idx
)
=>
{
if
(
val
!=
columnIndex
[
idx
])
index
=
idx
;
});
this
.
defaultSelector
=
columnIndex
;
for
(
let
i
=
index
+
1
;
i
<
this
.
columnNum
;
i
++
)
{
// 当前变化列的下一列的数据,需要获取上一列的数据,同时需要指定是上一列的第几个的children,再往后的
// 默认是队列的第一个为默认选项
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment