Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-community-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
6 years ago
Commit
3342b903ec697400d0e5bf66810c684b607112fb
1 parent
6f4e2f11
click area
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
apps/components/widgets/widget-icon-btn.vue
apps/components/widgets/widget-icon-btn.vue
View file @
3342b90
<template>
<AuthComponent :auth="isAuth" class="icon-btn" :class="{'btn-selected': viewOption.selected}" @click="onClick" :style="btnStyle">
<AuthComponent :auth="isAuth" class="icon-btn" :class="{'btn-selected': viewOption.selected}" :style="btnStyle">
<div class="click-wrap" @click="onClick"></div>
<i class="iconfont" :class="iconClass" :style="iconStyle"></i>
<p v-if="viewText" class="icon-btn-text" :style="textStyle">
<span class="view-text">{{Number(viewText) ? viewText : ''}}</span>
...
...
@@ -264,12 +265,22 @@ export default {
display: inline-block;
line-height: 1;
vertical-align: middle;
position: relative;
> * {
display: inline-block;
vertical-align: middle;
}
.click-wrap {
width: 150%;
height: calc(100% + 30px);
position: absolute;
left: -25%;
top: -15px;
z-index: 1;
}
.icon-btn-text {
position: relative;
...
...
Please
register
or
login
to post a comment