Add support for extra info: URLs (#182)

* Always show Down button

* Add URL and improve ArrayInput handling

* Minor
This commit is contained in:
Louis Lam
2023-11-25 22:14:21 +08:00
committed by GitHub
parent d23e2d8aa1
commit 631bc60cb2
4 changed files with 99 additions and 6 deletions

View File

@@ -49,8 +49,7 @@ export default {
array() {
// Create the array if not exists, it should be safe.
if (!this.service[this.name]) {
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
this.service[this.name] = [];
return [];
}
return this.service[this.name];
},
@@ -89,6 +88,10 @@ export default {
},
methods: {
addField() {
// Create the array if not exists.
if (!this.service[this.name]) {
this.service[this.name] = [];
}
this.array.push("");
},
remove(index) {