diff --git a/example/pages/listexample/_detail.vue b/example/pages/listexample/_detail.vue index efe6cd0e..6d4619d4 100644 --- a/example/pages/listexample/_detail.vue +++ b/example/pages/listexample/_detail.vue @@ -208,6 +208,19 @@ export default { }, { label: this.$t("content"), value: "content", type: "editor" }, { label: "Color", value: "meta.color", synci18n: true, type: "color" }, + { + label: "map", + value: "meta.map", + type: "map", + attrs: { + multiple: true, + fields: [ + { value: "store_name", label: "Store name", class: "col-sm-6" }, + { value: "contact", label: "Contact", class: "col-sm-6" }, + ], + }, + synci18n: true, + }, { group: "Seo", fields: [ @@ -343,13 +356,6 @@ export default { }, ], sidenav: [ - { - label: this.$t("categories"), - value: "categories", - synci18n: true, - type: "m2m", - attrs: { endpoint: "api/camomilla/categories", itemText: "title" }, - }, { group: "Status", fields: [ @@ -421,7 +427,6 @@ export default { type: "media", synci18n: true, }, - { label: "map", value: "meta.map", type: "map", synci18n: true }, ], }; }, diff --git a/packages/@mapomodule/uikit/components/Form/fields/mapField/mapField.vue b/packages/@mapomodule/uikit/components/Form/fields/mapField/mapField.vue index fc168433..e8ecfc7d 100644 --- a/packages/@mapomodule/uikit/components/Form/fields/mapField/mapField.vue +++ b/packages/@mapomodule/uikit/components/Form/fields/mapField/mapField.vue @@ -1,35 +1,78 @@