Socket
Socket
Sign inDemoInstall

@ubrorg/search-bar

Package Overview
Dependencies
Maintainers
11
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ubrorg/search-bar

search-bar


Version published
Weekly downloads
23
decreased by-4.17%
Maintainers
11
Weekly downloads
 
Created
Source

search-bar

使用

在页面的 page.json 中配置:

{
  "usingComponents": {
    "search-bar": "@ubrorg/search-bar/lib/index"
  }
}

在页面的 page.axml 中直接使用:

<search-bar
  className=""
  value="{{value}}"
  focus="{{focus}}"
  disabled="{{disabled}}"
  placeholder="{{placeholder}}"
  onInput="handleInput"
  onClear="handleClearInput"
  onFocus="handleFocus"
  onBlur="handleBlur"
  onCancel="handleCancel"
  onSubmit="handleSubmit"
/>

option参数

属性类型默认值解释
classNamestring''外部样式
valuestring
focusboolean 是否聚焦
disabledboolean''是否不可输入
placeholderstring/array''底纹词,数组长度大于1时滚动显示
onInputEventHandle 输入
onClearEventHandle 清空搜索框
onFocusEventHandle 聚焦
onBlurEventHandle 失去焦点
onSubmitEventHandle 回车或者点击搜索按钮触发

开发

  1. yarn 或者 ayarn阿里内网)安装依赖
  2. 小程序 IDE 打开组件(下载地址

更多命令

  • miapp newbranch: 新建分支
  • miapp push: 提交代码
  • miapp prepub: 预发(发布 beta 版本)
  • miapp publish: 正式发布

FAQs

Package last updated on 08 Feb 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc