Skip to content

Commit

Permalink
chore(plugin-form): css correction and code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
TT1228 committed Dec 4, 2024
1 parent fd7a2ed commit 5816530
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default {
return this.schema.entity
},
scope() {
return this.entity.replace('_',' ').replace(/s$/,'')
return this.schema.label.toLowerCase()
},
bypassSearch() {
return this.$route && this.$route.query && this.$route.query.no_search
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
v-for="(option, i) in schema.fields"
:key="i"
class="option-group"
:class="{ 'radio-diabled': $props.disabled }"
:class="{ 'radio-disabled': $props.disabled }"
>
<label
class="k-label"
Expand Down Expand Up @@ -179,14 +179,8 @@ export default {
gap: $kui-space-80;
}
.radio-diabled {
label {
cursor: not-allowed;
}
input {
cursor: not-allowed;
}
.radio-disabled {
cursor: not-allowed;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ const defaultFormSchema: DefaultPluginsSchemaRecord = reactive({
// plugin scoping
selectionGroup: {
type: 'selectionGroup',
disabled: !props.hideScopeSelection ? false : props.hideScopeSelection || (formType.value === EntityBaseFormType.Create && props.config.entityId) ? true : false,
disabled: props.hideScopeSelection,
inputType: 'hidden',
styleClasses: 'hide-label',
fields: [
Expand Down

0 comments on commit 5816530

Please sign in to comment.