add select fields mode

This commit is contained in:
Pete Matsyburka committed 2026-01-18 09:52:43 +02:00
1 parent bc8eb33f05
commit 43c41e2557
11 files changed
+958 -108

No files matched your search

+11 -2
View File
@@ -212,12 +212,17 @@ export default {
required: false,
default: true
},
withClickSaveEvent: {
type: Boolean,
required: false,
default: false
},
buildDefaultName: {
type: Function,
required: true
}
},
emits: ['close'],
emits: ['close', 'click-save'],
data () {
return {
preferences: {}
@@ -322,7 +327,11 @@ export default {
Object.assign(this.field.preferences, this.preferences)
this.save()
if (this.withClickSaveEvent) {
this.$emit('click-save')
} else {
this.save()
}
this.$emit('close')
}