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
61744351
Commit
61744351
authored
Apr 25, 2019
by
Nature
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
组件样式调整
parent
1d9bc73a
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
58 additions
and
58 deletions
+58
-58
ionic.less
packages/common/styles/ionic.less
+2
-2
platform-ios.less
packages/common/styles/platform-ios.less
+2
-2
platform-iosx.less
packages/common/styles/platform-iosx.less
+5
-5
index.js
packages/common/utils/index.js
+1
-1
actionsheet.vue
packages/components/ActionSheet/actionsheet.vue
+2
-2
index.vue
packages/components/BottomTab/index.vue
+5
-5
Notify.vue
packages/components/Dialog/Notify.vue
+8
-8
index.vue
packages/components/HContent/index.vue
+2
-2
index.vue
packages/components/HHeader/index.vue
+7
-7
index.vue
packages/components/NumberKeyboard/index.vue
+2
-2
index.vue
packages/components/Scroll/index.vue
+2
-2
main.js
src/main.js
+1
-1
hlsPopup.vue
src/pages/hlsPopup.vue
+18
-18
variables.less
src/styles/variables.less
+1
-1
No files found.
packages/common/styles/ionic.less
View file @
61744351
...
@@ -4328,7 +4328,7 @@ ion-infinite-scroll:not(.active) .icon:before {
...
@@ -4328,7 +4328,7 @@ ion-infinite-scroll:not(.active) .icon:before {
/* If you change these, change platform.scss as well */
/* If you change these, change platform.scss as well */
.has-header {
.has-header {
top: 44px;
top: 44px;
/*no*/
}
}
.no-header {
.no-header {
...
@@ -4348,7 +4348,7 @@ ion-infinite-scroll:not(.active) .icon:before {
...
@@ -4348,7 +4348,7 @@ ion-infinite-scroll:not(.active) .icon:before {
}
}
.has-footer {
.has-footer {
bottom: 44px;
bottom: 44px;
/*no*/
}
}
.has-subfooter {
.has-subfooter {
...
...
packages/common/styles/platform-ios.less
View file @
61744351
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
bottom: 12px;
bottom: 12px;
}
}
.has-header {
.has-header {
top:
@iosHasHeader;
top:
64px; /*no*/
}
}
.header-top {
.header-top {
margin-top: 63px;
margin-top: 63px;
/*no*/
}
}
.img {
.img {
margin-top: 10px;
margin-top: 10px;
...
...
packages/common/styles/platform-iosx.less
View file @
61744351
...
@@ -2,18 +2,18 @@
...
@@ -2,18 +2,18 @@
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios{
.platform-ios{
.has-header {
.has-header {
top:
79px
top:
84px /*no*/
}
}
.has-tabs {
.has-tabs {
bottom: 84px;
bottom: 84px;
/*no*/
}
}
.has-footer{
.has-footer{
margin-bottom:
@bottomSafeArea;
margin-bottom:
34px; /*no*/
}
}
.public-style {
.public-style {
.bottom-tab{
.bottom-tab{
height: 78px;
height: 78px;
/*no*/
padding-bottom:
@bottomSafeArea;
padding-bottom:
34px; /*no*/
}
}
}
}
}
}
...
...
packages/common/utils/index.js
100755 → 100644
View file @
61744351
...
@@ -19,7 +19,7 @@ export function timeout (time) {
...
@@ -19,7 +19,7 @@ export function timeout (time) {
* @param {any} msg 信息
* @param {any} msg 信息
*/
*/
export
function
assert
(
condition
,
msg
)
{
export
function
assert
(
condition
,
msg
)
{
if
(
!
condition
)
throw
new
Error
(
`[h
ips
]
${
msg
}
`
)
if
(
!
condition
)
throw
new
Error
(
`[h
ls-ui
]
${
msg
}
`
)
}
}
/**
/**
...
...
packages/components/ActionSheet/actionsheet.vue
View file @
61744351
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
.platform-ios {
.platform-ios {
.action-sheet-backdrop {
.action-sheet-backdrop {
.action-sheet {
.action-sheet {
margin-bottom:
@bottomSafeArea;
margin-bottom:
34px; /*no*/
}
}
}
}
}
}
...
@@ -195,7 +195,7 @@
...
@@ -195,7 +195,7 @@
.platform-ios {
.platform-ios {
.action-sheet-backdrop {
.action-sheet-backdrop {
.action-sheet {
.action-sheet {
margin-bottom:
@bottomSafeArea;
margin-bottom:
34px /*no*/
}
}
}
}
}
}
...
...
packages/components/BottomTab/index.vue
View file @
61744351
...
@@ -28,7 +28,7 @@ export default {
...
@@ -28,7 +28,7 @@ export default {
<
style
lang=
"less"
>
<
style
lang=
"less"
>
.h-bottom-tab {
.h-bottom-tab {
height: 44px;
height: 44px;
/*no*/
width: 100%;
width: 100%;
background-color: #fff;
background-color: #fff;
position: fixed;
position: fixed;
...
@@ -43,8 +43,8 @@ export default {
...
@@ -43,8 +43,8 @@ export default {
.platform-ios {
.platform-ios {
//.h-ios {
//.h-ios {
.h-bottom-tab {
.h-bottom-tab {
height: 78px;
height: 78px;
/*no*/
padding-bottom:
@bottomSafeArea;
padding-bottom:
34px; /*no*/
}
}
//}
//}
}
}
...
@@ -53,8 +53,8 @@ export default {
...
@@ -53,8 +53,8 @@ export default {
.platform-ios {
.platform-ios {
//.h-ios {
//.h-ios {
.h-bottom-tab {
.h-bottom-tab {
height: 78px;
height: 78px;
/*no*/
padding-bottom:
@bottomSafeArea;
padding-bottom:
34px; /*no*/
}
}
//}
//}
}
}
...
...
packages/components/Dialog/Notify.vue
View file @
61744351
...
@@ -150,26 +150,26 @@ export default {
...
@@ -150,26 +150,26 @@ export default {
// ios平台
// ios平台
.platform-ios .hls-notify .hls-notify-wrap-plugin {
.platform-ios .hls-notify .hls-notify-wrap-plugin {
padding-top:
@iosPaddingTop;
padding-top:
20px; /*no*/
height:
@iosHasHeader;
height:
44px; /*no*/
}
}
// iPhoneX适配
// iPhoneX适配
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios
.platform-cordova:not(.fullscreen)
{
.platform-ios{
.hls-notify .hls-notify-wrap-plugin {
.hls-notify .hls-notify-wrap-plugin {
padding-top:
@iosxPaddingTop;
padding-top:
40px; /*no*/
height:
@iosxHasHeader;
height:
84px; /*no*/
}
}
}
}
}
}
// iPhoneX Max适配
// iPhoneX Max适配
@media (device-width: 414px) and (device-height: 896px) {
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios
.platform-cordova:not(.fullscreen)
{
.platform-ios{
.hls-notify .hls-notify-wrap-plugin {
.hls-notify .hls-notify-wrap-plugin {
padding-top:
@iosxPaddingTop;
padding-top:
40px; /*no*/
height:
@iosxHasHeader;
height:
84px; /*no*/
}
}
}
}
}
}
...
...
packages/components/HContent/index.vue
View file @
61744351
...
@@ -30,7 +30,7 @@ export default {
...
@@ -30,7 +30,7 @@ export default {
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
.platform-ios {
.has-header {
.has-header {
top:
@iosxHasHeader;
top:
84px; /*no*/
}
}
}
}
}
}
...
@@ -39,7 +39,7 @@ export default {
...
@@ -39,7 +39,7 @@ export default {
@media (device-width: 414px) and (device-height: 896px) {
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
.platform-ios {
.has-header {
.has-header {
top:
@iosxHasHeader;
top:
84px; /*no*/
}
}
}
}
}
}
...
...
packages/components/HHeader/index.vue
View file @
61744351
...
@@ -50,7 +50,7 @@ export default {
...
@@ -50,7 +50,7 @@ export default {
.h-header {
.h-header {
flex-shrink: 0;
flex-shrink: 0;
height:
@headerHeight;
height:
44px; /*no*/
background: #fff;
background: #fff;
display: flex;
display: flex;
align-items: center;
align-items: center;
...
@@ -62,7 +62,7 @@ export default {
...
@@ -62,7 +62,7 @@ export default {
flex: 1;
flex: 1;
font-size: 17px;
font-size: 17px;
font-weight: 500;
font-weight: 500;
line-height:
@headerHeight
;
line-height:
44px
;
text-align: center;
text-align: center;
text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
white-space: nowrap;
...
@@ -88,7 +88,7 @@ export default {
...
@@ -88,7 +88,7 @@ export default {
.h-header-btn {
.h-header-btn {
&:first-of-type {
&:first-of-type {
padding-left:
@paddingLength
;
padding-left:
15px
;
}
}
}
}
}
}
...
@@ -100,7 +100,7 @@ export default {
...
@@ -100,7 +100,7 @@ export default {
justify-content: flex-end;
justify-content: flex-end;
&:last-of-type {
&:last-of-type {
padding-right:
@paddingLength
;
padding-right:
15px
;
}
}
}
}
}
}
...
@@ -141,7 +141,7 @@ export default {
...
@@ -141,7 +141,7 @@ export default {
// ios平台
// ios平台
.platform-ios .h-header {
.platform-ios .h-header {
padding-top:
@iosPaddingTop;
padding-top:
20px; /*no*/
}
}
// iPhoneX适配
// iPhoneX适配
...
@@ -149,7 +149,7 @@ export default {
...
@@ -149,7 +149,7 @@ export default {
.platform-ios {
.platform-ios {
//.h-ios {
//.h-ios {
.h-header {
.h-header {
padding-top:
@iosxPaddingTop;
padding-top:
40px; /*no*/
}
}
//}
//}
...
@@ -161,7 +161,7 @@ export default {
...
@@ -161,7 +161,7 @@ export default {
.platform-ios {
.platform-ios {
//.h-ios {
//.h-ios {
.h-header {
.h-header {
padding-top:
@iosxPaddingTop;
padding-top:
40px; /*no*/
}
}
//}
//}
...
...
packages/components/NumberKeyboard/index.vue
View file @
61744351
...
@@ -182,7 +182,7 @@
...
@@ -182,7 +182,7 @@
.platform-ios {
.platform-ios {
.number-keyboard {
.number-keyboard {
&__body {
&__body {
margin-bottom:
@bottomSafeArea;
margin-bottom:
34px; /*no*/
}
}
}
}
}
}
...
@@ -192,7 +192,7 @@
...
@@ -192,7 +192,7 @@
.platform-ios {
.platform-ios {
.number-keyboard {
.number-keyboard {
&__body {
&__body {
margin-bottom:
@bottomSafeArea;
margin-bottom:
34px; /*no*/
}
}
}
}
}
}
...
...
packages/components/Scroll/index.vue
View file @
61744351
...
@@ -464,7 +464,7 @@ export default {
...
@@ -464,7 +464,7 @@ export default {
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
.platform-ios {
.has-header {
.has-header {
top:
@iosxHasHeader;
top:
84px; /*no*/
}
}
}
}
}
}
...
@@ -473,7 +473,7 @@ export default {
...
@@ -473,7 +473,7 @@ export default {
@media (device-width: 414px) and (device-height: 896px) {
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
.platform-ios {
.has-header {
.has-header {
top:
@iosxHasHeader;
top:
84px; /*no*/
}
}
}
}
}
}
...
...
src/main.js
View file @
61744351
...
@@ -9,7 +9,7 @@ import router from './router/index'
...
@@ -9,7 +9,7 @@ import router from './router/index'
import
flexible
from
'./common/ydui.flexible'
import
flexible
from
'./common/ydui.flexible'
import
{
componentInstall
,
appStyle
}
from
'../packages/index'
import
{
componentInstall
,
appStyle
}
from
'../packages/index'
/**
/**
* 指令
* 指令
...
...
src/pages/hlsPopup.vue
View file @
61744351
...
@@ -387,7 +387,7 @@ export default {
...
@@ -387,7 +387,7 @@ export default {
this
.
show2
=
true
this
.
show2
=
true
},
},
handleNotify
()
{
handleNotify
()
{
this
.
showNotify
({
this
.
hlsPopup
.
showNotify
({
content
:
'提示内容'
,
content
:
'提示内容'
,
position
:
'top'
,
position
:
'top'
,
time
:
2000
,
time
:
2000
,
...
@@ -408,28 +408,28 @@ export default {
...
@@ -408,28 +408,28 @@ export default {
// console.log(`change: ${i}`)
// console.log(`change: ${i}`)
},
},
showLoading
()
{
showLoading
()
{
hlsPopup
.
showLoading
(
'请稍等!'
)
this
.
hlsPopup
.
showLoading
(
'请稍等!'
)
},
},
hideLoading
()
{
hideLoading
()
{
hlsPopup
.
hideLoading
()
this
.
hlsPopup
.
hideLoading
()
},
},
showLongTop
()
{
showLongTop
()
{
hlsPopup
.
showLongTop
(
'操作成功操作成功操作成功操作成功操作成功操作成功操作成功操作成功操作成功'
)
this
.
hlsPopup
.
showLongTop
(
'操作成功操作成功操作成功操作成功操作成功操作成功操作成功操作成功操作成功'
)
},
},
showLongCenter
()
{
showLongCenter
()
{
hlsPopup
.
showLongCenter
(
'操作成功操作成功操作成功'
)
this
.
hlsPopup
.
showLongCenter
(
'操作成功操作成功操作成功'
)
},
},
showLongBottom
()
{
showLongBottom
()
{
hlsPopup
.
showLongBottom
(
'操作成功操作成功操作成功操作成功'
)
this
.
hlsPopup
.
showLongBottom
(
'操作成功操作成功操作成功操作成功'
)
},
},
showSuccess
()
{
showSuccess
()
{
hlsPopup
.
showSuccess
(
'操作成功'
)
this
.
hlsPopup
.
showSuccess
(
'操作成功'
)
},
},
showError
()
{
showError
()
{
hlsPopup
.
showError
(
'操作失败'
)
this
.
hlsPopup
.
showError
(
'操作失败'
)
},
},
showConfirm
()
{
showConfirm
()
{
hlsPopup
.
showConfirm
({
this
.
hlsPopup
.
showConfirm
({
title
:
'确定退出'
,
title
:
'确定退出'
,
content
:
'退出后需从新登录'
,
content
:
'退出后需从新登录'
,
onConfirm
:
function
(
index
)
{
onConfirm
:
function
(
index
)
{
...
@@ -438,7 +438,7 @@ export default {
...
@@ -438,7 +438,7 @@ export default {
})
})
},
},
showPopup
()
{
showPopup
()
{
hlsPopup
.
showPopup
({
this
.
hlsPopup
.
showPopup
({
title
:
'确定退出'
,
title
:
'确定退出'
,
content
:
'退出后需从新登录'
,
content
:
'退出后需从新登录'
,
onConfirm
:
function
()
{
onConfirm
:
function
()
{
...
@@ -447,7 +447,7 @@ export default {
...
@@ -447,7 +447,7 @@ export default {
})
})
},
},
showActionSheet
()
{
showActionSheet
()
{
hlsPopup
.
showActionSheet
({
this
.
hlsPopup
.
showActionSheet
({
titleText
:
'请选择照片'
,
titleText
:
'请选择照片'
,
buttonArray
:
[
'拍照'
,
'从相册取'
],
buttonArray
:
[
'拍照'
,
'从相册取'
],
callback
:
(
index
)
=>
{
callback
:
(
index
)
=>
{
...
@@ -456,7 +456,7 @@ export default {
...
@@ -456,7 +456,7 @@ export default {
})
})
},
},
showActionSheetButton
()
{
showActionSheetButton
()
{
hlsPopup
.
showActionSheet
({
this
.
hlsPopup
.
showActionSheet
({
titleText
:
'照片'
,
titleText
:
'照片'
,
buttonArray
:
[{
text
:
'拍照'
,
type
:
'warn'
},
{
text
:
'从相册取'
,
type
:
'primary'
}],
buttonArray
:
[{
text
:
'拍照'
,
type
:
'warn'
},
{
text
:
'从相册取'
,
type
:
'primary'
}],
callback
:
(
index
)
=>
{
callback
:
(
index
)
=>
{
...
@@ -465,7 +465,7 @@ export default {
...
@@ -465,7 +465,7 @@ export default {
})
})
},
},
showTime
(
format
)
{
showTime
(
format
)
{
hlsPopup
.
showTime
({
this
.
hlsPopup
.
showTime
({
nowDate
:
'2017-08-12'
,
nowDate
:
'2017-08-12'
,
format
:
format
,
format
:
format
,
callback
:
(
date
)
=>
{
callback
:
(
date
)
=>
{
...
@@ -474,7 +474,7 @@ export default {
...
@@ -474,7 +474,7 @@ export default {
})
})
},
},
showBigPicture
()
{
showBigPicture
()
{
hlsPopup
.
showBigPicture
({
this
.
hlsPopup
.
showBigPicture
({
imgUrl
:
'http://hlsapp.hand-china.com/hls_file/2018/05/F1B6D85E409A4714A8540504B2D133AD'
,
imgUrl
:
'http://hlsapp.hand-china.com/hls_file/2018/05/F1B6D85E409A4714A8540504B2D133AD'
,
})
})
},
},
...
@@ -492,7 +492,7 @@ export default {
...
@@ -492,7 +492,7 @@ export default {
'code_name'
:
'个人2'
,
'code_name'
:
'个人2'
,
},
},
]
]
hlsPopup
.
selectList
({
this
.
hlsPopup
.
selectList
({
list
:
bpClassList
,
list
:
bpClassList
,
code
:
'bp_type'
,
code
:
'bp_type'
,
object
:
{},
object
:
{},
...
@@ -526,7 +526,7 @@ export default {
...
@@ -526,7 +526,7 @@ export default {
'parent'
:
'NP2'
,
'parent'
:
'NP2'
,
},
},
]
]
hlsPopup
.
selectList
({
this
.
hlsPopup
.
selectList
({
list
:
bpClassList
,
list
:
bpClassList
,
code
:
'bp_type'
,
code
:
'bp_type'
,
object
:
{},
object
:
{},
...
@@ -573,7 +573,7 @@ export default {
...
@@ -573,7 +573,7 @@ export default {
'parent'
:
'NP1'
,
'parent'
:
'NP1'
,
},
},
]
]
hlsPopup
.
selectList
({
this
.
hlsPopup
.
selectList
({
list
:
bpClassList
,
list
:
bpClassList
,
code
:
'bp_type'
,
code
:
'bp_type'
,
object
:
{},
object
:
{},
...
@@ -625,7 +625,7 @@ export default {
...
@@ -625,7 +625,7 @@ export default {
},
},
keyboradShow
()
{
keyboradShow
()
{
let
vm
=
this
let
vm
=
this
hlsPopup
.
showNumberKeyborad
({
this
.
hlsPopup
.
showNumberKeyborad
({
title
:
'数字键盘'
,
title
:
'数字键盘'
,
keyDown
:
(
text
)
=>
{
keyDown
:
(
text
)
=>
{
vm
.
onInput
(
text
)
vm
.
onInput
(
text
)
...
...
src/styles/variables.less
View file @
61744351
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
/**
/**
* 颜色
* 颜色
*/
*/
@theme-color:#
f0f
;
@theme-color:#
5D98F6
;
@font-color:#666666;
@font-color:#666666;
@mainColor: #000;
@mainColor: #000;
@baseColor: white;
@baseColor: white;
...
...
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