rsuite-autocomplete
v2.1.1
Published
输入框自动完成功能。
Downloads
15
Readme
RSUITE Autocomplete
输入框自动完成功能。
快速开始
安装
npm install rsuite-autocomplete --save-dev
样式
在 less
文件中引入:
@import '~rsuite-autocomplete/lib/less/main';
示例
import React from 'react';
import AutoCompete from 'rsuite-autocomplete';
export default React.createClass({
render(){
const dataSource = [
"HYPER Advertiser",
"HYPER Web Analytics",
"HYPER Video Analytics",
"HYPER DMP",
"HYPER Ad Serving",
"HYPER Data Discovery"
];
return (
<AutoComplete dataSource={dataSource}
placeholder="Product Name"/>
)
}
});