Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-easy-ui
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
easyUI
hls-easy-ui
Commits
6c8da39d
Commit
6c8da39d
authored
Sep 19, 2019
by
JingChao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
file
parent
c9d4ed65
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
index.vue
packages/components/HContent/index.vue
+2
-2
Item.vue
packages/components/ListItem/Item.vue
+11
-6
No files found.
packages/components/HContent/index.vue
View file @
6c8da39d
...
@@ -34,7 +34,7 @@ export default {
...
@@ -34,7 +34,7 @@ export default {
},
},
watch
:
{
watch
:
{
'showHeight'
:
function
()
{
'showHeight'
:
function
()
{
if
(
detectOS
()
!==
'ios
'
)
{
if
(
$config
.
isMobilePlatform
&&
detectOS
()
===
'android
'
)
{
if
(
this
.
docmHeight
>=
this
.
showHeight
)
{
if
(
this
.
docmHeight
>=
this
.
showHeight
)
{
// 软键盘弹出的事件处理
// 软键盘弹出的事件处理
let
activeElement
=
document
.
activeElement
let
activeElement
=
document
.
activeElement
...
@@ -68,7 +68,7 @@ export default {
...
@@ -68,7 +68,7 @@ export default {
this
.
contentHeight
()
this
.
contentHeight
()
}
}
this
.
contentsHeight
=
this
.
$el
.
style
.
height
.
slice
(
0
,
this
.
$el
.
style
.
height
.
length
-
2
)
this
.
contentsHeight
=
this
.
$el
.
style
.
height
.
slice
(
0
,
this
.
$el
.
style
.
height
.
length
-
2
)
if
(
detectOS
()
===
'ios'
)
{
if
(
$config
.
isMobilePlatform
&&
detectOS
()
===
'ios'
)
{
document
.
body
.
addEventListener
(
'focusin'
,
()
=>
{
document
.
body
.
addEventListener
(
'focusin'
,
()
=>
{
// 软键盘弹出的事件处理
// 软键盘弹出的事件处理
...
...
packages/components/ListItem/Item.vue
View file @
6c8da39d
<
template
>
<
template
>
<div
<div
:class=
"[showActivated,
cusClas
s]"
:class=
"[showActivated,
focu
s]"
:style=
"
{'min-height':minHeight}"
:style=
"
{'min-height':minHeight}"
class="hls-item">
class="hls-item">
<div
<div
...
@@ -11,7 +11,9 @@
...
@@ -11,7 +11,9 @@
@
touchcancel=
"end"
@
touchcancel=
"end"
@
mousedown=
"start"
@
mousedown=
"start"
@
mouseup=
"end"
@
mouseup=
"end"
@
mouseleave=
"end"
>
@
mouseleave=
"end"
@
focusin=
"focusin"
@
focusout=
"focusout"
>
<div
v-if=
"showName"
:style=
"
{'min-height':minHeight,'flex':proportion[0] }" class="add-name">
<div
v-if=
"showName"
:style=
"
{'min-height':minHeight,'flex':proportion[0] }" class="add-name">
<slot
name=
"left-icon"
/>
<slot
name=
"left-icon"
/>
<slot
name=
"name"
/>
<slot
name=
"name"
/>
...
@@ -53,10 +55,6 @@ export default {
...
@@ -53,10 +55,6 @@ export default {
type
:
String
,
type
:
String
,
default
:
''
,
default
:
''
,
},
},
cusClass
:
{
type
:
String
,
default
:
''
,
},
hasBorder
:
{
hasBorder
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
,
default
:
true
,
...
@@ -69,6 +67,7 @@ export default {
...
@@ -69,6 +67,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
showActivated
:
''
,
showActivated
:
''
,
focus
:
''
,
hasTouchEvent
:
'ontouchstart'
in
document
,
hasTouchEvent
:
'ontouchstart'
in
document
,
Icon
:
require
(
'./right-gray@2x.png'
),
Icon
:
require
(
'./right-gray@2x.png'
),
}
}
...
@@ -91,6 +90,12 @@ export default {
...
@@ -91,6 +90,12 @@ export default {
// 移动浏览器中长按元素会触发显示菜单,导致touchend事件不会触发,需要阻止该行为
// 移动浏览器中长按元素会触发显示菜单,导致touchend事件不会触发,需要阻止该行为
e
.
preventDefault
()
e
.
preventDefault
()
},
},
focusin
(
e
)
{
this
.
focus
=
'focus'
},
focusout
(
e
)
{
this
.
focus
=
''
},
start
(
e
)
{
start
(
e
)
{
if
(
e
.
target
.
readOnly
)
return
if
(
e
.
target
.
readOnly
)
return
if
(
e
.
target
.
nodeName
===
'INPUT'
||
e
.
target
.
nodeName
===
'TEXTAREA'
||
e
.
target
.
nodeName
===
'BUTTON'
||
e
.
target
.
nodeName
===
'LABEL'
)
return
if
(
e
.
target
.
nodeName
===
'INPUT'
||
e
.
target
.
nodeName
===
'TEXTAREA'
||
e
.
target
.
nodeName
===
'BUTTON'
||
e
.
target
.
nodeName
===
'LABEL'
)
return
...
...
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