-
{{ type === 'text' ? '编辑文本' : '上传拼图汇报' }}
-
+
+
+
{{ type === 'text' ? '编辑文本' : '编辑图片' }}
+
+
+
+
+
+ 删除
-
-
-
- 删除
-
-
-
- 修改
-
-
-
- 剪裁
-
+
+
+ 修改
+
+
+
+ 剪裁
-
+
@@ -75,21 +73,26 @@
},
remove () {
- this.$emit('onLongpress', {
- type: this.type,
- value: this.value,
- index: this.currIndex,
- action: 'remove'
- })
+ this.$confirm('确定删除该条数据?').then(() => {
+ this.$emit('onLongpress', {
+ type: this.type,
+ value: this.value,
+ index: this.currIndex,
+ action: 'remove'
+ })
- this.currIndex = -1
- this.isShow = false
+ this.currIndex = -1
+ this.isShow = false
+ }).catch(() => {
+ })
},
toClipping () {
uni.navigateTo({
url: `./Clipping?url=${encodeURIComponent(this.value)}`
})
+
+ this.isShow = false
},
onLongpress (item, index) {
@@ -117,6 +120,17 @@
}
.rich-bottom {
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ z-index: 11;
+ width: 100%;
+ transform: translateY(100%);
+ border-radius: 32px 32px 0px 0px;
+ transition: all ease 0.4s;
+ overflow: hidden;
+ background: #fff;
+
.top {
display: flex;
position: relative;
@@ -139,12 +153,16 @@
height: 32px;
transform: translateY(-50%);
}
+
+ &.active {
+ transform: translateY(0);
+ }
}
.btns {
display: flex;
align-items: center;
- height: 216px;
+ height: 246px;
div {
display: flex;
@@ -164,6 +182,10 @@
}
}
}
+
+ &.active {
+ transform: translateY(0);
+ }
}
.rich-item {