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
701c5bd3
Commit
701c5bd3
authored
Feb 26, 2020
by
linxin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'liuin' into uat
parents
3bf405ab
07e4136d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
rateInput.vue
src/components/rateInput.vue
+20
-0
No files found.
src/components/rateInput.vue
View file @
701c5bd3
...
@@ -123,6 +123,26 @@ export default {
...
@@ -123,6 +123,26 @@ export default {
event
.
target
.
type
=
'text'
event
.
target
.
type
=
'text'
this
.
focused
=
false
this
.
focused
=
false
},
},
// 取窗口可视范围的高度
getClientHeight
()
{
var
clientHeight
=
0
if
(
document
.
body
.
clientHeight
&&
document
.
documentElement
.
clientHeight
)
{
clientHeight
=
(
document
.
body
.
clientHeight
<
document
.
documentElement
.
clientHeight
)
?
document
.
body
.
clientHeight
:
document
.
documentElement
.
clientHeight
}
else
{
clientHeight
=
(
document
.
body
.
clientHeight
>
document
.
documentElement
.
clientHeight
)
?
document
.
body
.
clientHeight
:
document
.
documentElement
.
clientHeight
}
return
clientHeight
},
// 取窗口滚动条高度
getOffsetTop
(
obj
)
{
var
tmp
=
obj
.
offsetTop
var
node
=
obj
.
offsetParent
while
(
node
!=
null
)
{
tmp
+=
node
.
offsetTop
node
=
node
.
offsetParent
}
return
tmp
},
},
},
}
}
</
script
>
</
script
>
...
...
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