
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
ux-upaas-search
Advanced tools
cnpm install 或 npm install cnpm使用教程
npm run dev (开发环境打包 port:8080)
npm run test (测试用例)
npm run build (生产环境打包)
state= {
SearchData :{
"placeholder":"搜索" /**没有值的时候显示的内容(string)**/
,"iconName":"icon-sousuo" /**IconName 文字前面的图标**/
,"value":"" //搜索框中的默认值
,"active":true //input框激活
,"hidden":false //隐藏搜索框
,"readonly":false //搜索框只读
,"disabled":false //搜索框禁用
,"onClick":function(val){console.log(val)}
,"onBlur":function(val){console.log(val)}
,"onFocus":function(val){console.log(val)}
,"onChange":function(val){console.log(val)}
}
}
1.安装npm组件包
npm install @beisen/search --save-dev
2.引用组件
import Search from "@beisen/search"
该参数为上述参数,传入方式使用: data={参数}
state= {
SearchData :{
"placeholder":"搜索" /**没有值的时候显示的内容(string)**/
,"iconName":"icon-sousuo" /**IconName 文字前面的图标**/
,"value":"" //搜索框中的默认值
,"active":true //input框激活
,"hidden":false //隐藏搜索框
,"readonly":false //搜索框只读
,"disabled":false //搜索框禁用
,"onClick":function(val){console.log(val)}
,"onBlur":function(val){console.log(val)}
,"onFocus":function(val){console.log(val)}
,"onChange":function(val){console.log(val)}
}
}
render () {
return (
<Search {...this.state.SearchData} />
)
}
FAQs
Search
We found that ux-upaas-search demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.