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
f3a7db02
Commit
f3a7db02
authored
Jun 28, 2019
by
Nature
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stab分割线问题
parent
b6f84ab8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
24 deletions
+36
-24
README.md
README.md
+8
-2
package.json
package.json
+1
-1
index.vue
packages/components/STab/index.vue
+8
-7
tab-item.vue
packages/components/STab/tab-item.vue
+6
-1
showpicture.vue
packages/components/ShowPicture/showpicture.vue
+11
-11
hlsPopup.vue
src/pages/hlsPopup.vue
+2
-2
No files found.
README.md
View file @
f3a7db02
...
@@ -461,14 +461,14 @@ showActionSheetButton() {
...
@@ -461,14 +461,14 @@ showActionSheetButton() {
### s-tab 切换
### s-tab 切换
```
html
```
html
<div
class=
"local-region"
>
<div
class=
"local-region"
>
<s-tab
@
tabClick=
"stabClick"
:show-divider=
"true"
>
<s-tab
@
tabClick=
"stabClick"
:show-divider=
"true"
has-border=
"true"
>
<tab-item>
测试
</tab-item>
<tab-item>
测试
</tab-item>
<tab-item>
你好
</tab-item>
<tab-item>
你好
</tab-item>
<tab-item>
再见
</tab-item>
<tab-item>
再见
</tab-item>
<tab-item>
按钮
</tab-item>
<tab-item>
按钮
</tab-item>
</s-tab>
</s-tab>
<s-tab @tabClick="stabClick"
position="bottom"
cusClass='class' :default-active="2">
<s-tab @tabClick="stabClick" cusClass='class' :default-active="2">
<tab-item><img src="../assets/image/myInfo/about@2x.png"></tab-item>
<tab-item><img src="../assets/image/myInfo/about@2x.png"></tab-item>
<tab-item><img src="../assets/image/myInfo/version@2x.png"></tab-item>
<tab-item><img src="../assets/image/myInfo/version@2x.png"></tab-item>
<tab-item><img src="../assets/image/myInfo/setting@2x.png"></tab-item>
<tab-item><img src="../assets/image/myInfo/setting@2x.png"></tab-item>
...
@@ -530,3 +530,9 @@ showActionSheetButton() {
...
@@ -530,3 +530,9 @@ showActionSheetButton() {
},
},
```
```
### Note
hls-easy-ui#0.0.2.1
添加ios下content的has-footer样式用于content高度在100%是滑动不到底部的问题
修复 s-tab分割线以及活跃状态下底部边线的样式
package.json
View file @
f3a7db02
{
{
"name"
:
"hls-easy-ui"
,
"name"
:
"hls-easy-ui"
,
"version"
:
"0.0.2"
,
"version"
:
"0.0.2
.1
"
,
"description"
:
"A Vue components project"
,
"description"
:
"A Vue components project"
,
"author"
:
"JingChao <jingchao.wu@hand-china.com>"
,
"author"
:
"JingChao <jingchao.wu@hand-china.com>"
,
"private"
:
false
,
"private"
:
false
,
...
...
packages/components/STab/index.vue
View file @
f3a7db02
<
template
>
<
template
>
<section
:class=
"[c(),
tabCss,
cusClass,overFlow]"
>
<section
:class=
"[c(),cusClass,overFlow]"
>
<section
:style=
"transform"
class=
"tab-content"
>
<section
:style=
"transform"
class=
"tab-content"
>
<slot/>
<slot/>
</section>
</section>
...
@@ -34,6 +34,10 @@ export default {
...
@@ -34,6 +34,10 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
true
,
default
:
true
,
},
},
hasBorder
:
{
type
:
Boolean
,
default
:
false
,
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -47,12 +51,9 @@ export default {
...
@@ -47,12 +51,9 @@ export default {
overFlow
()
{
overFlow
()
{
return
this
.
overflowX
?
'auto-overflow-x'
:
''
return
this
.
overflowX
?
'auto-overflow-x'
:
''
},
},
tabCss
()
{
return
this
.
position
===
'top'
?
this
.
c
(
'top'
)
:
this
.
c
(
'bottom'
)
},
count
()
{
count
()
{
this
.
length
=
this
.
items
.
length
this
.
length
=
this
.
items
.
length
return
this
.
items
.
length
return
this
.
length
},
},
current
()
{
current
()
{
let
vm
=
this
let
vm
=
this
...
@@ -68,7 +69,7 @@ export default {
...
@@ -68,7 +69,7 @@ export default {
transform
()
{
transform
()
{
return
{
return
{
transform
:
'translateX('
+
this
.
translate
+
'px'
+
')'
,
transform
:
'translateX('
+
this
.
translate
+
'px'
+
')'
,
// transition: 'right 0.3s cubic-bezier(0.35, 0, 0.25, 1), left 0.3s cubic-bezier(0.35, 0, 0.25, 1) 0.09s;',
// transition: 'right 0.3s cubic-bezier(0.35, 0, 0.25, 1), left 0.3s cubic-bezier(0.35, 0, 0.25, 1) 0.09s;',
}
}
},
},
},
},
...
@@ -118,7 +119,7 @@ export default {
...
@@ -118,7 +119,7 @@ export default {
.hls-switch-tab {
.hls-switch-tab {
width: 100%;
width: 100%;
// position: absolut
e;
position: relativ
e;
z-index: 1;
z-index: 1;
display: flex;
display: flex;
// justify-content: space-around;
// justify-content: space-around;
...
...
packages/components/STab/tab-item.vue
View file @
f3a7db02
<
template
>
<
template
>
<section
class=
"h-tab-item"
@
click=
"titleClick"
>
<section
:class=
"[tabClass]"
class=
"h-tab-item"
@
click=
"titleClick"
>
<div
class=
"h-item"
>
<div
class=
"h-item"
>
<slot/>
<slot/>
<div
class=
"bottom-border"
/>
<div
class=
"bottom-border"
/>
...
@@ -21,6 +21,11 @@ export default {
...
@@ -21,6 +21,11 @@ export default {
showDivider
()
{
showDivider
()
{
return
this
.
$parent
.
showDivider
return
this
.
$parent
.
showDivider
},
},
tabClass
()
{
if
(
this
.
$parent
.
hasBorder
)
{
return
this
.
$parent
.
position
===
'top'
?
'vue-1px-b'
:
'vue-1px-t'
}
},
},
},
mounted
()
{
mounted
()
{
this
.
$parent
&&
this
.
$parent
.
items
.
push
(
this
)
this
.
$parent
&&
this
.
$parent
.
items
.
push
(
this
)
...
...
packages/components/ShowPicture/showpicture.vue
View file @
f3a7db02
<
template
>
<
template
>
<div
:class=
"
{'active': state == 1}" class="show-picture show-picture-backdrop">
<div
:class=
"
{'active': state == 1}" class="show-picture show-picture-backdrop">
<div
<div
:class=
"
{'show-picture-up': state == 1}"
:class=
"
{'show-picture-up': state == 1}"
class="content scroll-content ionic-scroll show-picture-wrapper">
class="content scroll-content ionic-scroll show-picture-wrapper">
<div
ref=
"pad"
class=
"pad"
>
<div
ref=
"pad"
class=
"pad"
>
<img
<img
v-hls-img-zoom
v-hls-img-zoom
v-tap=
"hide"
v-tap=
"hide"
v-longtap=
"sharePicture"
v-longtap=
"sharePicture"
:src=
"imgUrl"
:src=
"imgUrl"
:alt=
"imgTitle"
>
:alt=
"imgTitle"
>
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
...
...
src/pages/hlsPopup.vue
View file @
f3a7db02
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
操作
操作
</div>
</div>
</h-header>
</h-header>
<!--
<s-tab
:overflowX=
"true"
:showDivider=
"true"
class=
"has-header"
:defaultActive=
"6
"
>
<s-tab
:overflowX=
"true"
:showDivider=
"true"
:defaultActive=
"6"
has-border=
"true
"
>
<tab-item>
工商资料
</tab-item>
<tab-item>
工商资料
</tab-item>
<tab-item>
股东成员
</tab-item>
<tab-item>
股东成员
</tab-item>
<tab-item>
对外投资
</tab-item>
<tab-item>
对外投资
</tab-item>
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<tab-item>
失信记录
</tab-item>
<tab-item>
失信记录
</tab-item>
<tab-item>
涉诉公告
</tab-item>
<tab-item>
涉诉公告
</tab-item>
<tab-item>
司法协助
</tab-item>
<tab-item>
司法协助
</tab-item>
</s-tab>
-->
</s-tab>
<h-content
class=
"has-footer"
>
<h-content
class=
"has-footer"
>
<h-button
class=
"button-class"
type=
"primary"
@
click
.
native=
"showLoading"
>
showLoading
</h-button>
<h-button
class=
"button-class"
type=
"primary"
@
click
.
native=
"showLoading"
>
showLoading
</h-button>
<h-button
class=
"button-class"
type=
"primary"
@
click
.
native=
"hideLoading"
>
hideLoading
</h-button>
<h-button
class=
"button-class"
type=
"primary"
@
click
.
native=
"hideLoading"
>
hideLoading
</h-button>
...
...
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