Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
rc-select-city
Advanced tools
import React from 'react';
import ReactDOM from 'react-dom';
import SelectCity from 'rc-select-city';
import SelectCity from "rc-select-city";
import "rc-select-city/assets/index.css"
import "antd/dist/antd.css";
const address = require("rc-select-city/address.json");
/**
* 参数集合
*/
const params = {
deepMap: [{ name: '省', value: 31, }, { name: '市', value: 383 }, { name: '区', value: 3234 }],
popupStyle: {
width: 350,
zIndex: 99,
}, /* 弹窗样式 */
search: true, /* 模糊搜索 */
address, /* json方式 方式城市基本数据,与addressApi选项2选1, 优先 address */
//addressApi: apiConfig.getCityData, /* fetch api方式城市基本数据 */
style: {
width: 150,
}, /* input 的样式 */
onChange(selectVal, selectName, code) { /* 选择到最后一层的回调 */
console.log('change', selectVal, selectName, code)
},
onSelect(selectVal, selectName, code) { /* 每层选择的回调,除了, 除了最后一层调用onChange */
console.log('select', selectVal, selectName, code)
},
}
ReactDOM.render(<SelectCity params={params}/>, document.getElementById('root'));
FAQs
```js
The npm package rc-select-city receives a total of 1 weekly downloads. As such, rc-select-city popularity was classified as not popular.
We found that rc-select-city demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.