diff --git a/package.json b/package.json index 9d3ebe54..c2650a95 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "private": true, - "author": "jialin ", + "author": "jialin", "scripts": { "build": "max build", "dev": "max dev", diff --git a/src/components/list-input/hint-input.tsx b/src/components/list-input/hint-input.tsx index e261d4a7..1a9ff9c0 100644 --- a/src/components/list-input/hint-input.tsx +++ b/src/components/list-input/hint-input.tsx @@ -6,6 +6,7 @@ interface HintInputProps { value: string; label?: string; onChange: (value: string) => void; + placeholder?: string; sourceOptions?: Global.HintOptions[]; } @@ -82,6 +83,7 @@ const HintInput: React.FC = (props) => { return ( void; } @@ -75,6 +76,7 @@ const ListInput: React.FC = (props) => { {_.map(list, (item: any, index: number) => { return ( void; value: string; label?: string; + placeholder?: string; options?: Global.HintOptions[]; } @@ -27,6 +28,7 @@ const ListItem: React.FC = (props) => { onChange={handleOnChange} label={label} sourceOptions={options} + placeholder={props.placeholder} />