From 5e41e0a56b7d7b810fd4823ce9e5df11687a19d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 22 Jul 2022 22:25:22 +0300 Subject: [PATCH] Refactor #2801 - TreeSelect --- api-generator/components/treeselect.js | 12 ++++++++ src/components/treeselect/TreeSelect.d.ts | 20 ++++++++++--- src/components/treeselect/TreeSelect.vue | 8 +++-- src/views/treeselect/TreeSelectDoc.vue | 36 +++++++++++++++-------- 4 files changed, 57 insertions(+), 19 deletions(-) diff --git a/api-generator/components/treeselect.js b/api-generator/components/treeselect.js index b1a896b45..139e518fe 100644 --- a/api-generator/components/treeselect.js +++ b/api-generator/components/treeselect.js @@ -41,6 +41,18 @@ const TreeSelectProps = [ default: "null", description: "Identifier of the underlying input element." }, + { + name: "inputStyle", + type: "any", + default: "null", + description: "Inline style of the input field." + }, + { + name: "inputClass", + type: "string", + default: "null", + description: "Style class of the input field." + }, { name: "selectionMode", type: "string", diff --git a/src/components/treeselect/TreeSelect.d.ts b/src/components/treeselect/TreeSelect.d.ts index 77c28239c..d9ae7d6bc 100644 --- a/src/components/treeselect/TreeSelect.d.ts +++ b/src/components/treeselect/TreeSelect.d.ts @@ -34,10 +34,6 @@ export interface TreeSelectProps { * Index of the element in tabbing order. */ tabindex?: string | undefined; - /** - * Identifier of the underlying input element. - */ - inputId?: string | undefined; /** * Defines the selection mode. * @see TreeSelectSelectionModeType @@ -70,6 +66,22 @@ export interface TreeSelectProps { * Default value is true. */ metaKeySelection?: boolean | undefined; + /** + * Identifier of the underlying input element. + */ + inputId?: string | undefined; + /** + * Style class of the input field. + */ + inputClass?: any | undefined; + /** + * Inline style of the input field. + */ + inputStyle?: any | undefined; + /** + * + */ + inputProps?: object | undefined; } export interface TreeSelectSlots { diff --git a/src/components/treeselect/TreeSelect.vue b/src/components/treeselect/TreeSelect.vue index 68f92aa75..2243ed367 100644 --- a/src/components/treeselect/TreeSelect.vue +++ b/src/components/treeselect/TreeSelect.vue @@ -1,7 +1,7 @@