Commit de7fad7c authored by tangfh's avatar tangfh

+

parent 540cbb9e
## 1.0.3(2024-06-13)
1.0.3
## 1.0.2(2024-06-13)
1.0.2
## 1.0.1(2024-06-12) ## 1.0.1(2024-06-12)
1.0.1 1.0.1
## 1.0.0(2024-06-07) ## 1.0.0(2024-06-07)
......
...@@ -43,6 +43,13 @@ ...@@ -43,6 +43,13 @@
}, },
created() { created() {
},
watch: {
pics(newVal, oldVal) {
if(newVal) {
this.picsInner = newVal
}
}
}, },
methods: { methods: {
showBorder() { showBorder() {
...@@ -52,6 +59,9 @@ ...@@ -52,6 +59,9 @@
}, },
onDeleteImageBtnClick(index) { onDeleteImageBtnClick(index) {
//this.$emit("delete", index); //this.$emit("delete", index);
if(!this.edit) {
return;
}
this.picsInner = this.picsInner.filter((item)=> { this.picsInner = this.picsInner.filter((item)=> {
return this.picsInner[index] != item return this.picsInner[index] != item
}) })
......
{ {
"id": "f-add-image-grid", "id": "f-add-image-grid",
"displayName": "f-add-image-grid", "displayName": "f-add-image-grid",
"version": "1.0.1", "version": "1.0.3",
"description": "图片选择", "description": "图片选择",
"keywords": [ "keywords": [
"f-add-image-grid" "f-add-image-grid"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment