vue下拉菜单选择输入框

@ tillhub / vue-search-filter (@tillhub/vue-search-filter)

Vue search input with dropdown for more filters.

Vue搜索输入带有下拉列表,用于更多过滤器。

View Demo 查看演示 Download Source 下载源

安装 (Install)

npm install --save @tillhub/vue-search-filter

用法 (Usage)

Please see example folder for complete code example. Note, that the css has to be imported separately. This library assumes that element-ui is being used by the caller.

请参阅示例文件夹以获取完整的代码示例。 请注意,css必须单独导入。 该库假定调用者正在使用element-ui。

To see the example in action:

要查看实际示例:

npm run serve

属性 (Attributes)

Attribute

Type

Required

Example

Default

Description

width

number

no

500

460

sets fixed width of component in pixels, minimum is 350

locale

string

no

"de"

"en"

Currently only German and English is supported. Only 'de' and 'en '

inputPlaceholder

string

no

"Search in products"

"Search"

Sets the placeholder text in the input field

searchButtonText

string

no

"Submit"

"Search"

Sets a custom text in the blue submitting button

resetButtonText

string

no

"Reset"

"Cancel"

Sets a custom text in the reset button

属性

类型

需要

默认

描述

宽度

没有

500

460

设置组件的固定宽度(以像素为单位),最小值为350

地区

没有

“ de”

“ en”

目前仅支持德语和英语。 仅“ de”和“ en”

inputPlaceholder

没有

“搜索产品”

“搜索”

在输入字段中设置占位符文本

searchButtonText

没有

“提交”

“搜索”

在蓝色的提交按钮中设置自定义文本

resetButtonText

没有

“重启”

“取消”

在重置按钮中设置自定义文本

大事记 (Events)

Event

Description

Params

submit

triggers when the user clicks on "search" button

filters

reset

triggers when the user clicks on the "reset" button

--

close-dropwdown

triggers when the user closes the dropwdown

--

事件

描述

参数

提交

当用户单击“搜索”按钮时触发

过滤器

重启

当用户单击“重置”按钮时触发

-

关闭

当用户关闭下拉菜单时触发

-

插槽 (Slot)

One named slot it provided: "dropwdown-content". It is highly advised to refer to the example folder to see how this slot is used. Understanding the parent-child communication is crucial as the dropdown content and input content are closely linked.

它提供了一个命名的插槽:“ dropwdown-content”。 强烈建议参考示例文件夹以了解如何使用此插槽。 由于下拉内容和输入内容紧密联系,因此了解亲子沟通至关重要。

Name

Type

Example

Description

input

object

{ key1: { label: "product name", value: "product uuid"}, key2: { label: "branch name", value: "branch uuid"} }

this is an object that depicts the current state of the tags in the input field,

on every change they are passed to the slot so the consumer can update the slot children accordingly.

The key name is determined by the user, when it is being passed in the "addTag" method (see below).

addTag

function

({ name, value, label }) => {}

This method communicates the changes in the slot children to the parent.

It adds tags to the parent input field.E.g. it can be called on every change in the child.

The method expects to be called with an object with at least the "name" prop.

If "label" is falsey, it will default to "value".

名称

类型

描述

输入

目的

{key1:{标签:“产品名称”,值:“产品uuid”},key2:{标签:“分支名称”,值:“ branch uuid”}}

该对象描述了输入字段中标签的当前状态,

在每次更改时,它们都会传递到插槽,以便消费者可以相应地更新插槽子代。

在“ addTag”方法中传递键名时,键名由用户确定(请参见下文)。

addTag

功能

({名称,值,标签})=> {}

此方法将插槽子项中的更改传达给父项。

它将标签添加到父输入字段中,例如可以在子项中的每次更改时调用它。

该方法期望使用至少具有“名称”属性的对象进行调用。

如果“标签”为假,则默认为“值”。

翻译自: https://vuejsexamples.com/vue-search-input-with-dropdown-for-more-filters/

vue下拉菜单选择输入框

vue 下拉框筛选列表_vue下拉菜单选择输入框_带有下拉菜单的Vue搜索输入可提供更多过滤条件...相关推荐

  1. Asp net实现下拉框和列表框的连动

    分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow 也欢迎大家转载本篇文章.分享知识,造福人民,实现我们中华民族伟大复兴! 走过了牛 ...

  2. MFC学习--下拉框、列表、树控件、选项卡

    下拉框.列表.树控件.选项卡 下拉框 属性 代码操作 列表控件 属性 代码操作 树控件 属性 代码操作 选项卡 属性 代码操作 文化建设 下拉框 属性 Data: 下拉可选项,用分号分隔( ; ) T ...

  3. 文本域 自定义下拉框 支持模糊检索 关键字高亮 上下选择

    转载自:文本域 自定义下拉框 支持模糊检索 关键字高亮 上下选择 一.需求 需要创建一个常见问题库,填写存在问题时可以下拉选择,可以模糊搜索,也可以手写.如果选择了问题库中的内容,自动填充内容到存在问 ...

  4. falsk 下拉框(自动获取默认数据)与输入框案例及数据提交接收

    入口页 app.py from flask import Flask, render_template, request from flask_paginate import Pagination, ...

  5. vue下拉框筛选表格数据

    html中: //下拉框 <el-form-item label="选择区域"><el-select v-model="chick" clea ...

  6. ExcelJS 导入导出excel带下拉框筛选数据

    import ExcelJS from "exceljs"; 配上文档地址 下载方法 //数据格式 deviceJson:{         't(数据类型)':[{value:0 ...

  7. element 下拉框 el-select 自定义控制某项禁止选择

    vue element 下拉框 el-select 自定义控制某项 el-option 禁止选择 驾驶员,押运员不能同时选择同一个人 例如:驾驶员选择 张三 押运员禁止选张三 如果押运员选张三 驾驶员 ...

  8. java导出Excel增加下拉框选项,解决小数据量和大数据量下拉框选项的问题

    文章目录 java导出Excel增加下拉框选项 一.小数据量情况 二.大数据量情况 java导出Excel增加下拉框选项(java结合easyExcel) 添加传参模型ConsumablesAddDT ...

  9. Excel制作导入模板,多级联动下拉框(一整列的设置),修改一级下拉框内容,自动清空二级内容

    目录 效果展示 一.数据准备 二.模板制作 原因1:为空 原因二:名称管理器数据有误 三.修改一级下拉框内容,自动清空二级内容 1,效果演示 2,实际操作 效果展示 一.数据准备 1,新建一张表,在s ...

最新文章

  1. 2021-11-10 YOLOX训练最新笔记总结(coco格式)
  2. JAVA基础5-数组
  3. 转:纯CSS实现“鼠标移过显示层”效果
  4. RESTful Web 服务 - 安全性
  5. 《零基础》MySQL 正则表达式(二十一)
  6. 被新款iPad和AirPods拯救的苹果 夺回全球市值最高公司宝座
  7. nginx html 不缓存,nginx如何实现js和css不缓存
  8. 计算机软件3dmax在展览中的研究,【建模技巧】实用展览设计3ds Max建模方法(第一期)...
  9. 【技术分享】几维安全CTO刘柏江:IoT时代LLVM编译器防护的艺术
  10. Altium Designer 学习记录3
  11. 反射认识_03_改变成员变量Fields
  12. 预应力钢筒混凝土管(PCCP)行业发展现状及竞争格局分析报告2022-2027年版
  13. spamhaus反垃圾邮件联盟黑名单PBL申诉详细步骤
  14. DNS不能解析外网与正确设置DNS的技术分享
  15. java老版手机游戏剑魂_剑魂自动训练第3部分
  16. Linux虚拟机无法显示IP的解决办法
  17. 一些SQL数据库技巧
  18. 2021-2027全球及中国WiFi热点软件行业研究及十四五规划分析报告
  19. 这几款效率神器,Windows装机必备
  20. mysql可以做决策树吗_决策树 - stream886 - 博客园

热门文章

  1. 根据SAP SAP Cloud Connector的日志排查错误
  2. PHP里的$_SERVER对象
  3. Account Hierarchy in SAP CRM and C4C
  4. ABAP调试器脚本的一个具体应用
  5. SAP CRM Fiori 标准应用 My Account - search by ID 根据 ID 进行搜索的标准功能实现原理
  6. Jerry 2017年的五一小长假:8种经典排序算法的ABAP实现
  7. 边缘计算框架_【北大成果】一种集成多组网协议多边缘计算框架的边缘计算处理平台...
  8. 什么是java构造函数_什么是java构造函数
  9. python蟒蛇绘制实例分析_011 实例2-Python蟒蛇绘制
  10. 等差数列划分Python解法