
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
QJsearch - A search component depend on Vue3 and Element-Plus
Allright, if you want to implement a quick search, maybe you could use this.
It mainly includes common form search and quick list search.
Hope it can help complete your work smoothly
npm
npm install qjsearch
cnpm
cnpm install qjsearch
yarn
yarn add qjsearch
This is a Component for Vue
So you can registere it in Vue
import Vue from 'vue'
import QJsearch from 'qjsearch'
Vue.use(QJsearch)
- searchData:搜索条件数据(Array | Object)
- initVisibleCount: 收起展示得行数(rows)
- searchFn:触发搜索得回调函数
<QJsearch :searchData="searchData" :initVisibleCount="2" @searchFn="searchCallback" />
searchData -> eg:
const searchData = ref([
{
type: 'input',
propValueName: 'enterpriseName',
labelName: '企业名称',
labelVisibel: true,
placeholder: '请输入企业名称',
searchVal: '',
display: 'inline',
wrapperCssText: 'width: 400px',
elplusCssText: { width: '400px' }, // 可以接受字符串或者对象格式
immediate: false,
},
{
type: 'btns',
labelVisible: false,
list: [
{
type: 'folderbtn',
text1: '展开更多筛选条件',
text2: '收起更多筛选条件',
},
],
attr: {
display: 'inline',
},
},
{
type: 'inputNumber',
propValueName: 'num',
labelName: '数量',
labelVisibel: true,
searchVal: '',
immediate: false,
},
{
type: 'inputNumberRange',
propValueName: 'num',
labelName: '数量',
labelVisibel: true,
searchVal: ['', ''],
immediate: false,
},
{
type: 'select',
propValueName: 'regTimeList',
labelName: '企业经营实力',
labelVisibel: true,
options: [
{
name: '1年之内',
id: '1',
},
{
name: '2年之内',
id: '2',
},
],
immediate: false,
multiple: true,
more: [
{
type: 'select',
propValueName: 'financeList',
options: [
{
name: 'A轮',
id: 'A',
},
{
name: 'B轮',
id: 'B',
},
],
immediate: false,
labelName: '融资轮次',
elplusCssText: { width: '180px' },
multiple: true,
wrapperCssText: { 'margin-right': '20px' },
},
{
type: 'inputNumberRange',
propValueName: 'capital',
searchVal: ['', ''],
labelVisible: false,
immediate: false,
maxLength: 10,
labelName: '注册资本',
suffixText: '万注册资本',
wrapperCssText: { 'margin-right': '20px' },
},
{
type: 'dateRange',
propValueName: 'recentVisitTime',
labelName: '最近来访时间',
immediate: false,
disabledDate: time => {
return time.getTime() >= Date.now() || time.getTime() < new Date('2022-01-31')
},
},
],
},
{
type: 'list',
propValueName: 'level',
labelVisibel: true,
options: [
{
name: 'A轮',
id: 'A',
},
{
name: 'B轮',
id: 'B',
},
],
immediate: false,
labelName: '企业等级',
searchVal: ['A'],
multiple: true,
wrapperCssText: { 'margin-right': '20px' },
},
{
type: 'qkdatetimeRange',
propValueName: 'firstAccessTime',
labelVisibel: true,
labelName: '首访时间',
immediate: false,
disabledDate: time => {
return time.getTime() >= Date.now() || time.getTime() < new Date('2022-01-31')
},
options: [
{
days: -1,
label: '昨天',
},
{
days: 0,
label: '今天',
},
{
days: -29,
label: '最近1个月',
},
],
},
{
type: 'radio',
propValueName: 'years',
labelName: '经营时长',
labelVisibel: true,
options: [
{
name: '1年之内',
id: '1',
},
{
name: '2年之内',
id: '2',
},
],
immediate: false,
},
{
type: 'checkbox',
propValueName: 'years1',
labelName: '经营时长',
labelVisibel: true,
options: [
{
name: '1年之内',
id: '1',
},
{
name: '2年之内',
id: '2',
},
],
immediate: false,
},
{
type: 'cascader',
propValueName: 'industryList',
labelName: '企业属性',
options: [
{
id: '1',
name: '农、林、牧、渔业',
subLit: [
{
id: '2',
name: '农业',
subLit: [
{
id: '3',
name: '谷物种植',
subLit: null,
},
{
id: '8',
name: '豆类、油料和薯类种植',
subLit: null,
},
{
id: '12',
name: '棉、麻、糖、烟草种植',
subLit: null,
},
{
id: '17',
name: '蔬菜、食用菌及园艺作物种植',
subLit: null,
},
{
id: '22',
name: '水果种植',
subLit: null,
},
{
id: '28',
name: '坚果、含油果、香料和饮料作物种植',
subLit: null,
},
{
id: '34',
name: '中药材种植',
subLit: null,
},
{
id: '37',
name: '草种植及割草',
subLit: null,
},
{
id: '40',
name: '其他农业',
subLit: null,
},
],
},
],
},
],
immediate: false,
},
{
type: 'btns',
labelVisibel: true,
list: [
{
type: 'btn',
btnType: 'primary'
},
]
},
])
FAQs
A Search Component for Vue3 and Element Plus
The npm package qjsearch receives a total of 5 weekly downloads. As such, qjsearch popularity was classified as not popular.
We found that qjsearch 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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.