Skip to content

Commit

Permalink
fix(ColorPicker): selectInputProps API can't work (#3279)
Browse files Browse the repository at this point in the history
* fix(color-picker):修复ColorPicker透传SelectInputProps无效问题

* fix(color-picker): 修复color-picker组件的selectInputProps属性失效问题

---------

Co-authored-by: taninsist <taninsist@gmail.com>
  • Loading branch information
taninsist and taninsist authored Aug 26, 2024
1 parent 959742c commit cbb1b90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/color-picker/panel/format/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Select as TSelect, Option as TOption } from '../../../select';
import { Input as TInput } from '../../../input';
import FormatInputs from './inputs';
import { useBaseClassName } from '../../hooks';
import type { TdSelectInputProps } from '../../../select-input/type';

export default defineComponent({
name: 'FormatPanel',
Expand Down Expand Up @@ -74,9 +75,10 @@ export default defineComponent({
<t-select
size="small"
class={`${baseClassName}__format-mode-select`}
{...selectInputProps}
selectInputProps={{ ...selectInputProps }}
popupProps={{
overlayClassName: `${baseClassName}__select-options`,
...(selectInputProps as TdSelectInputProps).popupProps,
}}
v-model={this.formatModel}
onChange={handleModeChange}
Expand Down

0 comments on commit cbb1b90

Please sign in to comment.