Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
xugong
hls-xcmg-vue-app
Commits
fa414319
Commit
fa414319
authored
Feb 26, 2020
by
linxin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'liuin' into uat
parents
968fa2f9
68fe9bdc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
currencyInput.vue
src/components/currencyInput.vue
+0
-3
rateInput.vue
src/components/rateInput.vue
+21
-0
No files found.
src/components/currencyInput.vue
View file @
fa414319
...
...
@@ -102,9 +102,6 @@ export default {
let
eleHeight
=
vm
.
getOffsetTop
(
event
.
target
)
let
scrollTop
=
Math
.
floor
(
dom
.
scrollTop
)
let
result
=
Math
.
floor
(
veiwHeight
-
(
eleHeight
-
scrollTop
))
// vm.$nextTick(function () {
// let r = document.querySelector('.keyboard-backdrop').childNodes
// })
if
(
result
>=
256
)
{
}
else
{
let
ele
=
document
.
createElement
(
'div'
)
...
...
src/components/rateInput.vue
View file @
fa414319
...
...
@@ -86,12 +86,30 @@ export default {
// },
onFocus
(
event
)
{
// if (this.disable) return
let
vm
=
this
this
.
focused
=
true
let
value
=
(
event
.
target
.
value
).
trim
()
let
uncurrency
=
this
.
$options
.
filter
[
'uncurrency'
]
let
newVal
=
uncurrency
(
value
)
event
.
target
.
value
=
newVal
setTimeout
(
function
()
{
let
dom
=
document
.
querySelector
(
'.content'
)
let
veiwHeight
=
vm
.
getClientHeight
()
let
eleHeight
=
vm
.
getOffsetTop
(
event
.
target
)
let
scrollTop
=
Math
.
floor
(
dom
.
scrollTop
)
let
result
=
Math
.
floor
(
veiwHeight
-
(
eleHeight
-
scrollTop
))
if
(
result
>=
256
)
{
}
else
{
let
ele
=
document
.
createElement
(
'div'
)
ele
.
setAttribute
(
'class'
,
'add-height'
)
ele
.
style
.
height
=
(
256
-
result
)
+
'px'
ele
.
style
.
background
=
'#fff'
// setTimeout(() => {
dom
.
appendChild
(
ele
)
// }, 100)
dom
.
scrollTo
(
dom
.
scrollLeft
,
scrollTop
+
(
256
-
result
))
}
console
.
log
(
veiwHeight
,
eleHeight
,
scrollTop
,
result
)
event
.
target
.
type
=
'text'
event
.
target
.
value
=
newVal
// event.target.focus()
...
...
@@ -99,6 +117,9 @@ export default {
},
onBlur
(
event
)
{
// if (this.disable) return
if
(
document
.
querySelector
(
'.add-height'
))
{
document
.
querySelector
(
'.content'
).
removeChild
(
document
.
querySelector
(
'.add-height'
))
}
event
.
target
.
type
=
'text'
this
.
focused
=
false
},
...
...
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