From 7d2ef675f746fc880c4459404e3bbe7dcc241ae2 Mon Sep 17 00:00:00 2001 From: adro Date: Tue, 31 Oct 2023 22:52:58 +0100 Subject: [PATCH] Add EnumInput (WIP) - Also Slight linting adjustment - Slight form style adustment - Visually descendant fields version --- client/package.json | 1 + client/src/components/inputs/EnumInput.vue | 84 ++++++++++++++++++++++ client/src/components/inputs/NicerForm.vue | 4 +- client/src/pages/test.vue | 13 ++++ 4 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 client/src/components/inputs/EnumInput.vue diff --git a/client/package.json b/client/package.json index c6594ef..c1c2da0 100644 --- a/client/package.json +++ b/client/package.json @@ -89,6 +89,7 @@ "vue/first-attribute-linebreak": "off", "vue/max-attributes-per-line": "off", "vue/html-closing-bracket-newline": "off", + "vue/no-dupe-keys": "off", "vue/singleline-html-element-content-newline": "off", "indent": [ "error", diff --git a/client/src/components/inputs/EnumInput.vue b/client/src/components/inputs/EnumInput.vue new file mode 100644 index 0000000..61fa698 --- /dev/null +++ b/client/src/components/inputs/EnumInput.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/client/src/components/inputs/NicerForm.vue b/client/src/components/inputs/NicerForm.vue index 6c90d75..6c91ebc 100644 --- a/client/src/components/inputs/NicerForm.vue +++ b/client/src/components/inputs/NicerForm.vue @@ -59,5 +59,7 @@ watch($$(modelValue), (val) => { diff --git a/client/src/pages/test.vue b/client/src/pages/test.vue index 854f4d5..05421ba 100644 --- a/client/src/pages/test.vue +++ b/client/src/pages/test.vue @@ -3,6 +3,8 @@ import SingleSelect from '../components/inputs/SingleSelect.vue'; import { SearchProvider, Options } from '../components/inputs/DropdownInput.vue'; import MultiSelect from '../components/inputs/MultiSelect.vue'; import NicerForm from '../components/inputs/NicerForm.vue'; +import EnumInput from '../components/inputs/EnumInput.vue'; +import TextBox from '../components/inputs/TextBox.vue'; const testValues: Options = { 1: { display: 'Option 1' }, @@ -28,9 +30,20 @@ function genSP(indexIsChar: boolean): SearchProvider { {{ vm }} +