npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@beisen-phoenix/lookup

v3.3.55

Published

---

Readme

lookup


概述

嵌入到输入框、form表单字段组合使用,显示下拉弹层或高级模式,选择内容。

lookup支持简单模式的选择,由简单模式切换到高级模式进行搜索选择和直接高级模式选择。

API

lookup props

| name | description | type | default | |----------|----------------|----------|--------------| | mode | 显示模式'simple'/'advanced' | string | 'simple' | multiple | 是否多选 | bool | false | | moreText | 简单模式下自定义查看更更多显示标题 | string | | btnOkText | 自定义按钮名称 | string | | isAdvanceSearchVbl | 在简单模式下是否显示全部查找按钮 | boolean | false | customCls | 自定义样式 | string | | isSearchBox| 简单模式下是否显示搜索框 | bool | false | | isAvator| 简单模式下是否显示头象 | bool | false | | options | 列表数据 | OptionsType[] | [] | | selectValue | 选中值列表 | OptionsType[] | [] | | onSearchChange | 简单模式下搜索触发方法 | Function | - | | autoFocus | 简单模式,输入自动获得焦点 | bool | true | | searchUrl | 简单模式请求url | string | - | | formatData | 数据格式化接口 | Function | - | | onVisibleChange | 组件显示回调 | Function | - | | onConfirm | 组件选择值后触发方法(简单模式、高级模式确定选择项触发) | Function | - | | onCancel | 高级模式下取消选择触发 | Function | - | | advancedVbl | 高级模式显示控制(直接显示高级模式用到) | bool | - | | advanceParam | 高级组件需要的属性 | advanceProps[] | [] | | translation | 多语言翻译 | object | null |

OptionsType

| name | description | type | default | |----------|----------------|----------|--------------| | label | 标题 | string | | sublabel | 二级标题 | string | | value | 值 | string | | avator | 头象属性,请查看avatar组件http://gitlab.beisencorp.com/ux-phoenix/phoenix-monorepo/tree/master/src/components/avatar | AvatarProps |

advanceProps(高级模式属性)

| name | description | type | default | |----------|----------------|----------|--------------| | searchFormMeta | searchForm的数据描述,参见searchform的文档 | [] | | tableMeta | searchForm的数据描述,参见table的文档 | [] | | tablePrimaryKey | table的主键,不传默认依次找value,id属性, | string | | advMetaUrl | form和table的元数据请求接口 | string | | advMetaParam | 请求advMetaUrl时,发送的附加数据 | string | | advFormatMetaData | 格式化Meta数据,searchform和table描述数据 | Function | | advanceSearchUrl | searchform改变后,发送获取table数据的请求url | string | | advanceSearchFunction | searchform改变后,回调函数 | Function | | advFormatListData | 格式化table数据 | Function | | dlgTitle | 高级弹窗标题 | string | | maxSize | 多选模式下,最大选择数量 | number |

advanceProps例子

安装及运行示例

npm install @beisen-phoenix/lookup
npm run examples