From 25d2aa1bcc51e4bf55f5b173bcdef5254adf2dd8 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Tue, 30 Sep 2025 17:32:00 +0200 Subject: [PATCH] feat(models): align component model editing with type selection~ --- .../ComponentModelStructureEditor.vue | 78 +++++++++++++++++-- app/components/StructureNodeEditor.vue | 76 +++++++++++++----- app/pages/component-catalog.vue | 22 +++++- 3 files changed, 149 insertions(+), 27 deletions(-) diff --git a/app/components/ComponentModelStructureEditor.vue b/app/components/ComponentModelStructureEditor.vue index 57989f4..3328261 100644 --- a/app/components/ComponentModelStructureEditor.vue +++ b/app/components/ComponentModelStructureEditor.vue @@ -5,13 +5,15 @@ :depth="0" :component-types="availableComponentTypes" :piece-types="availablePieceTypes" + :lock-type="lockRootType" + :locked-type-label="displayedRootTypeLabel" is-root /> diff --git a/app/components/StructureNodeEditor.vue b/app/components/StructureNodeEditor.vue index 9d3e7ba..417f7cf 100644 --- a/app/components/StructureNodeEditor.vue +++ b/app/components/StructureNodeEditor.vue @@ -8,25 +8,32 @@ {{ isRoot ? 'Famille de composant racine' : 'Famille de composant' }} - - {{ formatComponentTypeOption(type) }} - - -

- {{ node.typeComposantId ? `Sélection : ${getComponentTypeLabel(node.typeComposantId) || 'Inconnue'}` : 'Aucune famille sélectionnée' }} -

+ + + +

+ {{ node.typeComposantId ? `Sélection : ${getComponentTypeLabel(node.typeComposantId) || 'Inconnue'}` : 'Aucune famille sélectionnée' }} +

+ +