lincl 3 years ago
parent
commit
e468cb8409
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/components/DragIcon/index.vue

+ 5 - 3
src/components/DragIcon/index.vue

@ -7,8 +7,9 @@
			@touchstart="down" 
			@touchmove="move" 
			@touchend="end"
			:style="{top: top  + 'px', left: left  + 'px', bottom: bottom, right: right}" 
			:style="{top: top  + 'px', left: left  + 'px', bottom: bottom, right: right, 'background-color': bgcColor||''}" 
			>
			<slot />
			<slot v-if="$slots.img" name="img"></slot>
			<span v-else>{{text}}</span>
		</div>
@ -25,7 +26,8 @@ export default {
		text: String,
		style: String,
		bottom: String,
		right: String
		right: String,
		bgcColor: String
	},
  	data() {
		return {
@ -105,7 +107,7 @@ export default {
	.float-btn{
		&.is-img{
			padding: 0 ;
			background: #fff;
			background: transparent;
		}
        position: fixed;
        z-index: 4;