Skip to content

Commit 0fdea58

Browse files
author
gankai
committed
feat(完成分享弹出的制作): 分享
分享
1 parent 0da396d commit 0fdea58

File tree

16 files changed

+806
-270
lines changed

16 files changed

+806
-270
lines changed

package-lock.json

+140-119
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/DropList/index.vue

+34-24
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<template>
2-
<div class="wrap" v-show="isShow">
3-
<div
4-
class="wrap-content"
5-
:style="'width:'+width+';top:'+top+';right:'+right+';bottom:'+bottom+';left:'+left"
6-
>
2+
<div>
3+
<div class="wrap" v-show="isShow">
74
<div
8-
class="item"
9-
v-for="(item,index) in list"
10-
v-text="item.text"
11-
:key="index"
12-
@click="Action(item.action)"
13-
></div>
5+
class="wrap-content"
6+
:style="'width:'+width+';top:'+top+';right:'+right+';bottom:'+bottom+';left:'+left"
7+
>
8+
<div class="item" v-for="(item,index) in list" :key="index" @click="Action(item.action)">
9+
<svg-icon :icon-class="item.icon"></svg-icon>
10+
<span>{{item.text}}</span>
11+
</div>
12+
</div>
1413
</div>
1514
</div>
1615
</template>
1716

17+
1818
<script>
1919
export default {
2020
name: "DropList",
@@ -55,26 +55,36 @@ export default {
5555
position: absolute;
5656
opacity: 1;
5757
background: #fff;
58-
border-radius: 10px;
58+
border-radius: 6px;
5959
z-index: 999999;
60+
.item {
61+
opacity: 0.8;
62+
padding: 8px 0px;
63+
margin: 0 15px;
64+
font-size: 14px;
65+
color: #3a3a3a;
66+
display: flex;
67+
justify-content: flex-start;
68+
align-items: center;
69+
border-bottom: 1px solid #f2f2f2;
70+
span {
71+
flex: 1;
72+
text-align: center;
73+
}
74+
.svg-icon {
75+
width: 19px;
76+
height: 19px;
77+
}
78+
}
6079
}
6180
6281
.wrap-content:before {
6382
content: "";
6483
position: absolute;
6584
right: 10px;
66-
top: -25px;
67-
border: 10px solid transparent;
68-
border-bottom: 20px solid #fff;
69-
}
70-
71-
.wrap-content .item {
72-
padding: 8px 0px;
73-
margin: 0 5px;
74-
font-size: 11px;
75-
text-align: center;
76-
color: #000;
77-
border-bottom: 1px solid #f2f2f2;
85+
top: -14px;
86+
border: 6px solid transparent;
87+
border-bottom: 10px solid #fff;
7888
}
7989
8090
.wrap-content .item:last-child {

src/icons/svg/copy-link.svg

+22
Loading

src/icons/svg/heart-null-black.svg

+14
Loading

src/icons/svg/my-reminder.svg

+14
Loading

0 commit comments

Comments
 (0)