react-asc 18.7.0 → 18.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,7 @@ export interface IAutoCompleteProps {
8
8
  value?: string;
9
9
  openOnFocus?: boolean;
10
10
  disabled?: boolean;
11
+ placeholder?: string;
11
12
  readOnly?: boolean;
12
13
  debounce?: number;
13
14
  onSelect?: (val: ISelectOption) => void;
package/index.es.js CHANGED
@@ -253,7 +253,7 @@ styleInject(css_248z$I);
253
253
  // multiple
254
254
  // custom template render items
255
255
  const AutoComplete = (props) => {
256
- const { id, name, className, options = [], openOnFocus = true, disabled, readOnly, debounce = 0, onChange, onSelect, value } = props;
256
+ const { id, name, className, options = [], openOnFocus = true, disabled, readOnly, debounce = 0, placeholder, onChange, onSelect, value } = props;
257
257
  const [model, setModel] = useState('');
258
258
  const [searchText, setSearchText] = useState('');
259
259
  const [isShow, setIsShow] = useState(false);
@@ -299,7 +299,7 @@ const AutoComplete = (props) => {
299
299
  };
300
300
  return (React.createElement(React.Fragment, null,
301
301
  React.createElement("div", { ref: selectConainter, className: styles$I.selectContainer },
302
- React.createElement("input", { type: "text", className: getCssClass(), id: id, name: name, tabIndex: 0, readOnly: readOnly, disabled: disabled, onChange: handleOnChange, onFocus: handleOnFocus, value: model }),
302
+ React.createElement("input", { type: "text", className: getCssClass(), id: id, name: name, tabIndex: 0, readOnly: readOnly, disabled: disabled, onChange: handleOnChange, onFocus: handleOnFocus, placeholder: placeholder, value: model }),
303
303
  isShow &&
304
304
  React.createElement(React.Fragment, null,
305
305
  React.createElement("div", { className: styles$I.selectMenu },