From fe81ed4e7a0849396d504b1ee119ed451a098a32 Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Wed, 28 Oct 2020 19:01:36 +0800 Subject: [PATCH] refactor(selection): placeholder part --- src/_base/selection/src/Selection.vue | 17 ++++++++----- src/_base/selection/src/styles/themed-base.js | 25 ++++++++++++------- src/select/src/Select.vue | 2 +- 3 files changed, 28 insertions(+), 16 deletions(-) diff --git a/src/_base/selection/src/Selection.vue b/src/_base/selection/src/Selection.vue index d9a5a5cf1..6f17aa367 100644 --- a/src/_base/selection/src/Selection.vue +++ b/src/_base/selection/src/Selection.vue @@ -122,7 +122,7 @@ ref="patternInput" class="n-base-selection-label__input" :value="(patternInputFocused && active) ? pattern : label" - :placeholder="selectedOption ? label : placeholder" + :placeholder="null" :readonly="!disabled && filterable && (active || autofocus) ? false : 'readonly'" :disabled="disabled" tabindex="-1" @@ -131,6 +131,12 @@ @blur="handlePatternInputBlur" @input="handlePatternInputInput" > +
+ {{ filterablePlaceholder }} +
- {{ labelPlaceholder }} + {{ placeholder }}