mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 22:52:32 -05:00
add select fields mode
This commit is contained in:
1 parent
bc8eb33f05
commit
43c41e2557
11 files changed
+958
-108
No files matched your search
@@ -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')
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user