From af2745c2c09c738f74e1aa5bd9c412c76ca11337 Mon Sep 17 00:00:00 2001 From: TheGeniusOfEternity Date: Tue, 7 Jan 2025 00:08:05 +0300 Subject: [PATCH 1/3] feat: select component integration By this update Select Component was integrated into note's settings into Role Select component. Due to this integration, some issues were fixed: - added ability to get selected value outside the component via @value-update attribute - changed Popover's reactive styling to avoid unapplying component's positioning - Updated Select Component's page in Playground --- codex-ui/dev/pages/components/Select.vue | 9 ++++- .../src/vue/components/popover/Popover.vue | 10 +++--- codex-ui/src/vue/components/select/Select.vue | 4 +++ .../components/team/RoleSelect.vue | 34 +++++++++++-------- 4 files changed, 38 insertions(+), 19 deletions(-) diff --git a/codex-ui/dev/pages/components/Select.vue b/codex-ui/dev/pages/components/Select.vue index 91c8070d..8b573e34 100644 --- a/codex-ui/dev/pages/components/Select.vue +++ b/codex-ui/dev/pages/components/Select.vue @@ -8,17 +8,24 @@ - +
+ Default + +
+ Getting selected option - You can use selected item outside the component via @value-update: {{ updatedValue }} + Selected option replaces default value and can be easily got from the same object: +
+ {{ currentItem }} +
+ + Aligning + + You can choose vertical aligning from below and above and horizontal aligning from left and right +
+ + +
diff --git a/codex-ui/src/vue/components/select/Select.vue b/codex-ui/src/vue/components/select/Select.vue index f8049a3c..2a4b2ccd 100644 --- a/codex-ui/src/vue/components/select/Select.vue +++ b/codex-ui/src/vue/components/select/Select.vue @@ -1,31 +1,33 @@ diff --git a/src/presentation/components/team/Team.vue b/src/presentation/components/team/Team.vue index 581f97f2..c4fc3f30 100644 --- a/src/presentation/components/team/Team.vue +++ b/src/presentation/components/team/Team.vue @@ -8,6 +8,7 @@ :key="member.id" :title="member.user.name || member.user.email" :has-delimiter="memberIndex !== team.length - 1" + data-dimensions="medium" >