ChoiceSetting support added, added captcha settings
This commit is contained in:
parent
819cd41cf0
commit
0b5e536b4c
7 changed files with 121 additions and 13 deletions
|
|
@ -13,7 +13,7 @@ export default {
|
|||
},
|
||||
props: {
|
||||
path: {
|
||||
type: String,
|
||||
type: [String, Array],
|
||||
required: true
|
||||
},
|
||||
disabled: {
|
||||
|
|
@ -21,7 +21,7 @@ export default {
|
|||
default: false
|
||||
},
|
||||
parentPath: {
|
||||
type: String
|
||||
type: [String, Array]
|
||||
},
|
||||
parentInvert: {
|
||||
type: Boolean,
|
||||
|
|
@ -68,6 +68,9 @@ export default {
|
|||
backendDescriptionDescription () {
|
||||
return this.backendDescription?.description
|
||||
},
|
||||
backendDescriptionSuggestions () {
|
||||
return this.backendDescription?.suggestions
|
||||
},
|
||||
shouldBeDisabled () {
|
||||
const parentValue = this.parentPath !== undefined ? get(this.configSource, this.parentPath) : null
|
||||
return this.disabled || (parentValue !== null ? (this.parentInvert ? parentValue : !parentValue) : false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue