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
55b1153e
Commit
55b1153e
authored
Mar 01, 2021
by
nature
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
组建优化
parent
0527a398
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
70 additions
and
35 deletions
+70
-35
tab-button.vue
packages/components/BottomTab/tab-button.vue
+10
-10
index.vue
packages/components/STab/index.vue
+2
-2
index.vue
packages/components/Scroll/Bubble/index.vue
+7
-7
index.vue
packages/components/Scroll/index.vue
+24
-3
return.vue
src/components/return.vue
+7
-2
demo.vue
src/pages/BottomTab/demo.vue
+2
-2
hlsPopup.vue
src/pages/hlsPopup.vue
+18
-9
No files found.
packages/components/BottomTab/tab-button.vue
View file @
55b1153e
...
...
@@ -101,18 +101,18 @@ export default {
width: 0px;
}
}
&.disable {
color: rgba(0, 0, 0, .3)
!important
;
background-color: #e6e6e6
!important
;
box-shadow: none
!important
;
cursor: not-allowed
!important
;
/*
&.disable {
color: rgba(0, 0, 0, .3);
background-color: #e6e6e6;
box-shadow: none;
cursor: not-allowed;
div {
color: rgba(0, 0, 0, .3)
!important
;
background-color: #e6e6e6
!important
;
box-shadow: none
!important
;
cursor: not-allowed
!important
;
color: rgba(0, 0, 0, .3);
background-color: #e6e6e6;
box-shadow: none;
cursor: not-allowed;
}
}
}
*/
}
}
...
...
packages/components/STab/index.vue
View file @
55b1153e
...
...
@@ -84,7 +84,7 @@ export default {
watch
:
{
value
(
value
)
{
if
(
value
>
this
.
count
-
1
)
{
throw
'tab index out of bound exception'
throw
Error
(
'tab index out of bound exception'
)
}
else
{
this
.
defaultActive
===
value
// this.setTabActive(value)
...
...
@@ -94,7 +94,7 @@ export default {
mounted
()
{
let
vm
=
this
if
(
vm
.
value
>
vm
.
count
-
1
)
{
throw
'tab index out of bound exception'
throw
Error
(
'tab index out of bound exception'
)
}
else
{
vm
.
setTabActive
(
vm
.
value
)
}
...
...
packages/components/Scroll/Bubble/index.vue
View file @
55b1153e
...
...
@@ -12,7 +12,7 @@ export default {
},
data
()
{
return
{
width
:
5
0
,
width
:
4
0
,
height
:
60
,
}
},
...
...
@@ -33,15 +33,15 @@ export default {
this
.
ratio
=
1
this
.
width
*=
this
.
ratio
this
.
height
*=
this
.
ratio
this
.
initRadius
=
1
1
*
this
.
ratio
// 外面阴影
this
.
minHeadRadius
=
1
2
*
this
.
ratio
this
.
minTailRadius
=
5
*
this
.
ratio
this
.
initRadius
=
1
0
*
this
.
ratio
// 外面阴影
this
.
minHeadRadius
=
1
0
*
this
.
ratio
this
.
minTailRadius
=
4
*
this
.
ratio
this
.
initArrowRadius
=
6
*
this
.
ratio
// 里面的刷新
this
.
minArrowRadius
=
6
*
this
.
ratio
this
.
arrowWidth
=
3
*
this
.
ratio
this
.
maxDistance
=
4
0
*
this
.
ratio
this
.
initCenterX
=
2
5
*
this
.
ratio
this
.
initCenterY
=
2
5
*
this
.
ratio
this
.
maxDistance
=
3
0
*
this
.
ratio
this
.
initCenterX
=
2
0
*
this
.
ratio
this
.
initCenterY
=
2
0
*
this
.
ratio
this
.
headCenter
=
{
x
:
this
.
initCenterX
,
y
:
this
.
initCenterY
,
...
...
packages/components/Scroll/index.vue
View file @
55b1153e
...
...
@@ -114,8 +114,8 @@ export default {
// 下拉刷新配置
type
:
Object
,
default
:
()
=>
({
threshold
:
4
0
,
// 触发 pullingDown 的距离
stop
:
2
0
,
// pullingDown 正在刷新 hold 时的距离
threshold
:
4
5
,
// 触发 pullingDown 的距离
stop
:
3
0
,
// pullingDown 正在刷新 hold 时的距离
txt
:
'刷新成功'
,
}),
},
...
...
@@ -341,12 +341,18 @@ export default {
_initPullDown
()
{
let
vm
=
this
this
.
scroll
.
on
(
'pullingDown'
,
()
=>
{
// if (this.pullUpFinally) {
// this.pullDownBefore = false
// vm.scroll.closePullDown()
// this.pullDownNow = false
// } else {
this
.
pullDownBefore
=
false
this
.
pullDownNow
=
true
setTimeout
(
function
()
{
vm
.
$emit
(
'pullingDown'
)
vm
.
scroll
.
closePullDown
()
// 防止在 bounce 前二次触发
},
100
)
},
150
)
// }
})
this
.
scroll
.
on
(
'scroll'
,
pos
=>
{
...
...
@@ -529,6 +535,11 @@ export default {
}
}
.platform-ios{
.vue-better-scroll{
&__pulldown {
padding-top:4px
}
}
.has-footer {
.vue-better-scroll__wrapper {
padding-bottom: 1rem;
...
...
@@ -538,6 +549,11 @@ export default {
// iPhoneX适配
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
.vue-better-scroll{
&__pulldown {
padding-top:24px
}
}
.has-footer {
.vue-better-scroll__wrapper {
padding-bottom: 1.8rem;
...
...
@@ -549,6 +565,11 @@ export default {
// iPhoneX Max适配
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
.vue-better-scroll{
&__pulldown {
padding-top:24px
}
}
.has-footer {
.vue-better-scroll__wrapper {
padding-bottom: 1.8rem;
...
...
src/components/return.vue
View file @
55b1153e
...
...
@@ -5,14 +5,19 @@
<
template
>
<div
class=
"h-header-btn"
>
<i
class=
"ion-ios-arrow-back"
/>
<slot
:back=
"back"
:
$
index=
"1"
name=
"back"
>
<i
class=
"ion-ios-arrow-back"
/>
</slot>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
back
:
{
data
:
'返回'
,
index
:
3
,
},
}
},
methods
:
{
...
...
src/pages/BottomTab/demo.vue
View file @
55b1153e
...
...
@@ -10,8 +10,8 @@
<div
slot=
"center"
>
BottomTab
</div>
</h-header>
<bottom-tab
:showDivider=
"true"
>
<tab-button>
返回
</tab-button>
<tab-button>
退出
<img
src=
"@/assets/image/warning@2x.png"
></tab-button>
<tab-button
disable
>
返回
</tab-button>
<tab-button
disable
>
退出
<img
src=
"@/assets/image/warning@2x.png"
></tab-button>
</bottom-tab>
</h-view>
</
template
>
...
...
src/pages/hlsPopup.vue
View file @
55b1153e
<
template
>
<h-view
class=
"public-style hls-popup"
style=
"height: 100%"
title=
"封装测试"
>
<h-header
class=
"bar-custom"
>
<h-return
slot=
"left"
@
click
.
native=
"$routeGo()"
/>
<h-return
slot=
"left"
@
click
.
native=
"$routeGo()"
>
<template
slot=
"back"
slot-scope=
"
{back,$index}">
<p>
{{
back
.
index
}}
</p>
<p>
{{
$index
}}
</p>
</
template
>
</h-return>
<div
slot=
"center"
>
封装测试
</div>
<div
slot=
"right"
class=
"h-header-btn"
>
操作
...
...
@@ -257,8 +262,12 @@
<h-modal
ref=
"modal"
v-model=
"showModalValue"
position=
"bottom"
class=
"sign-modal"
>
<h-view>
<h-header
style=
"height: 43px !important;padding-top:0px"
>
<div
slot=
"left"
class=
"h-header-btn"
>
确定
</div>
<div
slot=
"right"
class=
"h-header-btn"
>
清除
</div>
<
template
#
left
>
<div
class=
"h-header-btn"
>
确定
</div>
</
template
>
<
template
#
right
>
<div
class=
"h-header-btn"
>
清除
</div>
</
template
>
</h-header>
<h-content
:cal-content=
"false"
>
<div
id=
"draw"
class=
"draw"
/>
...
...
@@ -298,16 +307,16 @@ export default {
imgList
:
[
{
imgUrl
:
'http://hlsapp.hand-china.com/hls_file/2018/05/F1B6D85E409A4714A8540504B2D133AD'
,
imgOriginalUrl
:
'http://hlsapp.hand-china.com/file/orign.png'
,
imgSize
:
2982604
,
imgOriginalUrl
:
'http://hlsapp.hand-china.com/file/orign.png'
,
imgSize
:
2982604
,
},
{
imgUrl
:
'http://hlsapp.hand-china.com/hls_file/2018/05/F1B6D85E409A4714A8540504B2D133AD'
,
imgOriginalUrl
:
'http://hlsapp.hand-china.com/file/orign.png'
,
imgSize
:
228260487
,
imgOriginalUrl
:
'http://hlsapp.hand-china.com/file/orign.png'
,
imgSize
:
228260487
,
},
{
imgUrl
:
'http://hlsapp.hand-china.com/hls_file/2018/05/F1B6D85E409A4714A8540504B2D133AD'
,
imgOriginalUrl
:
'http://hlsapp.hand-china.com/file/orign.png'
,
imgSize
:
328260412341
,
imgOriginalUrl
:
'http://hlsapp.hand-china.com/file/orign.png'
,
imgSize
:
328260412341
,
},
],
}
...
...
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