Enhance form column settings and table display

- Add "Show all" and "Hide all" buttons in column settings modal
- Improve column width handling and default width management
- Update OpenSelect and OpenText components to support more flexible prop types
- Add z-index to table header for better visual hierarchy
- Refactor column width property from `cell_width` to `width`
This commit is contained in:
Julien Nahum
2025-02-17 11:27:58 +01:00
parent 0d6bd1bfde
commit 55b0f57741
8 changed files with 203 additions and 38 deletions

View File

@@ -24,8 +24,14 @@ export default {
components: { OpenTag },
props: {
value: {
type: Object,
type: [String, Object, Array],
required: false,
default: null
},
property: {
type: Object,
required: true
}
},
data() {
@@ -34,10 +40,7 @@ export default {
computed: {
valueIsObject() {
if (typeof this.value === "object" && this.value !== null) {
return true
}
return false
return Array.isArray(this.value) || (typeof this.value === "object" && this.value !== null)
},
},
}

View File

@@ -7,8 +7,9 @@ export default {
components: {},
props: {
value: {
type: String,
required: true,
type: [String, Number],
required: false,
default: null
},
},
}