Skip to content

Commit

Permalink
fix(comp:select): the placeholder in overlay can't setting (#1571)
Browse files Browse the repository at this point in the history
  • Loading branch information
danranVm committed Jun 5, 2023
1 parent 0ce5cf4 commit 7388dc4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/components/select/src/Select.tsx
Expand Up @@ -193,6 +193,7 @@ export default defineComponent({
clearable
clearIcon={clearIcon}
clearVisible={!!value}
placeholder={props.searchPlaceholder}
size="sm"
suffix="search"
value={value}
Expand Down
1 change: 1 addition & 0 deletions packages/components/select/src/types.ts
Expand Up @@ -80,6 +80,7 @@ export const selectProps = {
readonly: { type: Boolean, default: false },
searchable: { type: [Boolean, String] as PropType<boolean | 'overlay'>, default: false },
searchFn: { type: [Boolean, Function] as PropType<boolean | SelectSearchFn>, default: true },
searchPlaceholder: { type: String, default: undefined },
size: { type: String as PropType<FormSize>, default: undefined },
status: String as PropType<ValidateStatus>,
suffix: { type: String, default: undefined },
Expand Down
3 changes: 2 additions & 1 deletion packages/components/table/style/index.less
Expand Up @@ -192,7 +192,8 @@
// --------- Selectable ---------
&-selectable-trigger {
margin-left: @spacing-xs;
color: @table-head-icon-color;
color: @table-head-color;
font-size: var(--ix-font-size-lg);
cursor: pointer;
}

Expand Down

0 comments on commit 7388dc4

Please sign in to comment.