You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
863 B
57 lines
863 B
<template>
|
|
<view>
|
|
<view class="scan_float" @click="goScan('bottom')">
|
|
<image src="@/static/icons_ui/icon_add.svg"></image>
|
|
<view>{{btnName}}</view>
|
|
</view>
|
|
<!-- <movable-area>
|
|
<movable-view class="max" direction="all">扫描</movable-view>
|
|
</movable-area> -->
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
x: 0,
|
|
y: 0,
|
|
old: {
|
|
x: 0,
|
|
y: 0
|
|
}
|
|
}
|
|
},
|
|
props: {
|
|
btnName: {
|
|
type: String,
|
|
default: '创建'
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
},
|
|
methods: {
|
|
goScan(content) {
|
|
this.$emit("goScan", '');
|
|
},
|
|
tap: function(e) {
|
|
this.x = this.old.x
|
|
this.y = this.old.y
|
|
this.$nextTick(function() {
|
|
this.x = 30
|
|
this.y = 30
|
|
})
|
|
},
|
|
onChange: function(e) {
|
|
this.old.x = e.detail.x
|
|
this.old.y = e.detail.y
|
|
}
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
</style>
|
|
|