Youpin Search

youpin-search 搜索页

介绍

搜索页组件,帮助你快速搭建搜索页面,样式美观,简单好用

使用方法

import "/components/youpin-search.stml";

例子

<youpin-search 
    onclose="close" 
    placeholder="" 
    keywords="" 
    hiddenNum="5"
    onemptykeywords="emptykeywords" 
    onsubmit="submit">
</youpin-search>

props 属性

参数 说明 类型 默认值
placeholder 关键字占用符 string 请输入关键词
keywords 搜索指定关键词 string
hiddenNum 超过X个子记录后缩放历史搜索列表 number

events 事件

事件名 说明 回调参数
close 取消按钮点击时触发
emptykeywords 空关键词提交搜索时触发
submit 提交关键词搜索触发