
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
multiple-search-input
Advanced tools
It is based on vue-bootstrap-typeahead and supported multiple added tags.

import { MultipleSearchInput } from 'multiple-search-input'
Vue.component('MultipleSearchInput', MultipleSearchInput)
import { multipleSearchInputPlugin } from 'multiple-search-input'
Vue.use(multipleSearchInputPlugin);
| prop | type | description |
|---|---|---|
| limit | Number | 限制tag的个数 |
| list | {text: string; value: T} | 下拉选择 |
| options | {text: string; value: T} | 初始下拉(当是远程搜索没有初始下拉选择时需要提供,不然value找不到对应显示的text值,当options和list同时有优先选options里面的值) |
| label | string | label |
| fieldClass | string | 设置整体div的class |
| disabled | boolean | disabled |
| canFreeText | boolean | 不检查是否在下拉内,可以直接新建tag |
| busy | boolean | 使用无限滚动时翻页设置成true,load数据后改成false |
| infinite | boolean | 是否采用无限滚动 |
| handleValidate | (val: T) => boolean | 控制能否加入tag内 |
| value [v-model] | T[] | tag的value |
| event | type | description |
|---|---|---|
| fetch-data | (val: string) => void; | 输入之后得到的值(可以在此调用远程搜索api) |
| fetch-more-data | (val: string) => void; | 触发滚动到底部的时候触发 |
| get-option | (val: {text: string; value: T}[]) => void; | 获取当前已被选中的tag option(对于得不到初始option,在页面返回的时候可以在option中传入) |
| blur | () => void; | 当输入后没有匹配或者选择list里面的value,触发失去焦点时(对于远程搜的时候,可以利用这个钩子来清空list) |
| change[v-model] | (val: string[]) => void; |
npm run dev,将package.json中的main改为dist/multipleSearchInput.js, 并运行npm link将包链接到本地全局,再在需要调试的项目运行npm link multiple-search-input。需要调试的项目还需要npm install source-map-loader配置webpack.confignpm run start: 本地demo启本地服务器nom run dev: 打一个dev环境的js包nom run start:demo: 打一个prod环境的包但不抽离vue,vue-class-component,vue-property-decorator,方便直接引入js,而不是通过npm本地引入nom run build: 打prod包发布新版本pre-publish: 打包并改版本号
FAQs
It is based on vue-bootstrap-typeahead and supported multiple added tags.
The npm package multiple-search-input receives a total of 10 weekly downloads. As such, multiple-search-input popularity was classified as not popular.
We found that multiple-search-input 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.