@beisen-phoenix/lookup
---
Last updated 7 months ago by beisencorp .
ISC · Original npm · Tarball · package.json
$ cnpm install @beisen-phoenix/lookup 
SYNC missed versions from official npm registry.

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例子

    tableMeta: {
        columns: columns,
        dataSource: tableData,
        pagination:{
            pageSize: 15
        }
    },
    searchFormMeta: {
        fields: fields
    },
    tablePrimaryKey: 'key'

安装及运行示例

npm install @beisen-phoenix/lookup
npm run examples

Current Tags

  • 3.3.55                                ...           latest (7 months ago)
  • 3.2.44-rc.1                                ...           rc (8 months ago)

251 Versions

  • 3.3.55                                ...           7 months ago
  • 3.3.54                                ...           7 months ago
  • 3.3.53                                ...           7 months ago
  • 3.3.52                                ...           7 months ago
  • 3.3.51                                ...           7 months ago
  • 3.3.50                                ...           7 months ago
  • 3.3.49                                ...           7 months ago
  • 3.3.48                                ...           7 months ago
  • 3.3.47                                ...           7 months ago
  • 3.3.46                                ...           7 months ago
  • 3.3.45                                ...           7 months ago
  • 3.3.43                                ...           7 months ago
  • 3.3.42                                ...           7 months ago
  • 3.3.41-beta.1                                ...           7 months ago
  • 3.3.41                                ...           7 months ago
  • 3.3.39                                ...           7 months ago
  • 3.3.38                                ...           8 months ago
  • 3.3.37                                ...           8 months ago
  • 3.3.36                                ...           8 months ago
  • 3.3.35                                ...           8 months ago
  • 3.3.34                                ...           8 months ago
  • 3.3.33                                ...           8 months ago
  • 3.3.32                                ...           8 months ago
  • 3.3.31                                ...           8 months ago
  • 3.3.29                                ...           8 months ago
  • 3.3.28                                ...           8 months ago
  • 3.3.27                                ...           8 months ago
  • 3.3.26                                ...           8 months ago
  • 3.3.25                                ...           8 months ago
  • 3.3.24                                ...           8 months ago
  • 3.3.23                                ...           8 months ago
  • 3.3.22                                ...           8 months ago
  • 3.3.21                                ...           8 months ago
  • 3.3.20                                ...           8 months ago
  • 3.3.19                                ...           8 months ago
  • 3.3.18                                ...           8 months ago
  • 3.3.17                                ...           8 months ago
  • 3.3.16                                ...           8 months ago
  • 3.3.15                                ...           8 months ago
  • 3.3.14                                ...           8 months ago
  • 3.3.13                                ...           8 months ago
  • 3.3.12                                ...           8 months ago
  • 3.3.11                                ...           8 months ago
  • 3.3.10                                ...           8 months ago
  • 3.3.9                                ...           8 months ago
  • 3.3.8                                ...           8 months ago
  • 3.3.7                                ...           8 months ago
  • 3.3.6                                ...           8 months ago
  • 3.3.5                                ...           8 months ago
  • 3.2.80-beta.1                                ...           8 months ago
  • 3.2.80                                ...           8 months ago
  • 3.3.4                                ...           8 months ago
  • 3.3.3                                ...           8 months ago
  • 3.3.1                                ...           8 months ago
  • 3.3.0                                ...           8 months ago
  • 3.2.97                                ...           8 months ago
  • 3.2.95                                ...           8 months ago
  • 3.2.94                                ...           8 months ago
  • 3.2.93                                ...           8 months ago
  • 3.2.92                                ...           8 months ago
  • 3.2.90                                ...           8 months ago
  • 3.2.88                                ...           8 months ago
  • 3.2.87                                ...           8 months ago
  • 3.2.86                                ...           8 months ago
  • 3.2.85                                ...           8 months ago
  • 3.2.84                                ...           8 months ago
  • 3.2.83                                ...           8 months ago
  • 3.2.82                                ...           8 months ago
  • 3.2.81                                ...           8 months ago
  • 3.2.79                                ...           8 months ago
  • 3.2.78                                ...           8 months ago
  • 3.2.76                                ...           8 months ago
  • 3.2.7-rc.1                                ...           8 months ago
  • 3.2.74                                ...           8 months ago
  • 3.2.73                                ...           8 months ago
  • 3.2.69-beta.1                                ...           8 months ago
  • 3.2.72                                ...           8 months ago
  • 3.2.70                                ...           8 months ago
  • 3.2.69                                ...           8 months ago
  • 3.2.68                                ...           8 months ago
  • 3.2.67                                ...           8 months ago
  • 3.2.66                                ...           8 months ago
  • 3.2.64-beta.11                                ...           8 months ago
  • 3.2.64-beta.10                                ...           8 months ago
  • 3.2.64-beta.9                                ...           8 months ago
  • 3.2.64-beta.8                                ...           8 months ago
  • 3.2.64-beta.7                                ...           8 months ago
  • 3.2.65                                ...           8 months ago
  • 3.2.64-beta.6                                ...           8 months ago
  • 3.2.64-beta.4                                ...           8 months ago
  • 3.2.64-beta.2                                ...           8 months ago
  • 3.2.64-beta.1                                ...           8 months ago
  • 3.2.63                                ...           8 months ago
  • 3.2.61                                ...           8 months ago
  • 3.2.60                                ...           8 months ago
  • 3.2.59                                ...           8 months ago
  • 3.2.58                                ...           8 months ago
  • 3.2.57                                ...           8 months ago
  • 3.2.56                                ...           8 months ago
  • 3.2.55                                ...           8 months ago
  • 3.2.54                                ...           8 months ago
  • 3.2.47-beta.8                                ...           8 months ago
  • 3.2.47-beta.7                                ...           8 months ago
  • 3.2.53                                ...           8 months ago
  • 3.2.52                                ...           8 months ago
  • 3.2.51                                ...           8 months ago
  • 3.2.47-beta.6                                ...           8 months ago
  • 3.2.50                                ...           8 months ago
  • 3.2.49                                ...           8 months ago
  • 3.2.47-beta.4                                ...           8 months ago
  • 3.2.47-beta.3                                ...           8 months ago
  • 3.2.47-alpha.3                                ...           8 months ago
  • 3.2.47-beta.2                                ...           8 months ago
  • 3.2.47-alpha.2                                ...           8 months ago
  • 3.2.48                                ...           8 months ago
  • 3.2.47-beta.1                                ...           8 months ago
  • 3.2.45-alpha.1                                ...           8 months ago
  • 3.2.47                                ...           8 months ago
  • 3.2.46                                ...           8 months ago
  • 3.2.45-beta.1                                ...           8 months ago
  • 3.2.45-beta.0                                ...           8 months ago
  • 3.2.45                                ...           8 months ago
  • 3.2.44-rc.4                                ...           8 months ago
  • 3.2.44-rc.3                                ...           8 months ago
  • 3.2.44-rc.2                                ...           8 months ago
  • 3.2.44-rc.1                                ...           8 months ago
  • 3.2.44                                ...           8 months ago
  • 3.2.43                                ...           8 months ago
  • 3.2.42                                ...           8 months ago
  • 3.2.41                                ...           8 months ago
  • 3.2.40                                ...           8 months ago
  • 3.2.39                                ...           8 months ago
  • 3.2.37                                ...           8 months ago
  • 3.2.35                                ...           8 months ago
  • 3.2.34                                ...           9 months ago
  • 3.2.33                                ...           9 months ago
  • 3.2.32                                ...           9 months ago
  • 3.2.31                                ...           9 months ago
  • 3.2.30                                ...           9 months ago
  • 3.2.29                                ...           9 months ago
  • 3.2.28                                ...           9 months ago
  • 3.2.27                                ...           9 months ago
  • 3.2.26                                ...           9 months ago
  • 3.2.25                                ...           9 months ago
  • 3.2.24                                ...           9 months ago
  • 3.2.23                                ...           9 months ago
  • 3.2.22                                ...           9 months ago
  • 3.2.21                                ...           9 months ago
  • 3.2.20                                ...           9 months ago
  • 3.2.19                                ...           9 months ago
  • 3.2.18                                ...           9 months ago
  • 3.2.17                                ...           9 months ago
  • 3.2.16                                ...           9 months ago
  • 3.2.15                                ...           9 months ago
  • 3.2.14                                ...           9 months ago
  • 3.2.12                                ...           9 months ago
  • 3.2.10                                ...           9 months ago
  • 3.2.9                                ...           9 months ago
  • 3.2.8                                ...           9 months ago
  • 3.2.7                                ...           9 months ago
  • 3.2.6                                ...           9 months ago
  • 3.2.5                                ...           9 months ago
  • 3.2.4                                ...           9 months ago
  • 3.2.3                                ...           9 months ago
  • 3.2.2                                ...           9 months ago
  • 3.2.1                                ...           9 months ago
  • 3.2.0                                ...           9 months ago
  • 3.1.99                                ...           9 months ago
  • 3.1.98                                ...           9 months ago
  • 3.1.97                                ...           9 months ago
  • 3.1.96                                ...           9 months ago
  • 3.1.95                                ...           9 months ago
  • 3.1.94                                ...           9 months ago
  • 3.1.92                                ...           9 months ago
  • 3.1.91                                ...           9 months ago
  • 3.1.90                                ...           9 months ago
  • 3.1.89                                ...           9 months ago
  • 3.1.88                                ...           9 months ago
  • 3.1.87                                ...           9 months ago
  • 3.1.86                                ...           9 months ago
  • 3.1.85                                ...           9 months ago
  • 3.1.84                                ...           9 months ago
  • 3.1.83                                ...           9 months ago
  • 3.1.82                                ...           9 months ago
  • 3.1.81                                ...           9 months ago
  • 3.1.80                                ...           9 months ago
  • 3.1.79                                ...           9 months ago
  • 3.1.78                                ...           9 months ago
  • 3.1.77                                ...           9 months ago
  • 3.1.76                                ...           9 months ago
  • 3.1.75                                ...           9 months ago
  • 3.1.74                                ...           9 months ago
  • 3.1.73                                ...           9 months ago
  • 3.1.72                                ...           9 months ago
  • 3.1.71                                ...           9 months ago
  • 3.1.70                                ...           9 months ago
  • 3.1.69                                ...           9 months ago
  • 3.1.68                                ...           9 months ago
  • 3.1.67                                ...           9 months ago
  • 3.1.65                                ...           9 months ago
  • 3.1.64                                ...           9 months ago
  • 3.1.63                                ...           9 months ago
  • 3.1.62                                ...           9 months ago
  • 3.1.61                                ...           9 months ago
  • 3.1.60                                ...           9 months ago
  • 3.1.59                                ...           9 months ago
  • 3.1.58                                ...           9 months ago
  • 3.1.57                                ...           9 months ago
  • 3.1.56                                ...           9 months ago
  • 3.1.55                                ...           9 months ago
  • 3.1.54                                ...           9 months ago
  • 3.1.53                                ...           9 months ago
  • 3.1.52                                ...           9 months ago
  • 3.1.51                                ...           9 months ago
  • 3.1.50                                ...           9 months ago
  • 3.1.49                                ...           9 months ago
  • 3.1.48                                ...           9 months ago
  • 3.1.47                                ...           9 months ago
  • 3.1.46                                ...           9 months ago
  • 3.1.45                                ...           9 months ago
  • 3.1.44                                ...           10 months ago
  • 3.1.43                                ...           10 months ago
  • 3.1.42                                ...           10 months ago
  • 3.1.41                                ...           10 months ago
  • 3.1.40                                ...           10 months ago
  • 3.1.39                                ...           10 months ago
  • 3.1.38                                ...           10 months ago
  • 3.1.37                                ...           10 months ago
  • 3.1.36                                ...           10 months ago
  • 3.1.35                                ...           10 months ago
  • 3.1.34                                ...           10 months ago
  • 3.1.33                                ...           10 months ago
  • 3.1.32                                ...           10 months ago
  • 3.1.31                                ...           10 months ago
  • 3.1.30                                ...           10 months ago
  • 3.1.29                                ...           10 months ago
  • 3.1.28                                ...           10 months ago
  • 3.1.26                                ...           10 months ago
  • 3.1.25                                ...           10 months ago
  • 1.0.12                                ...           10 months ago
  • 1.0.11                                ...           10 months ago
  • 1.0.10                                ...           10 months ago
  • 1.0.9                                ...           10 months ago
  • 1.0.8                                ...           10 months ago
  • 1.0.7                                ...           10 months ago
  • 1.0.5                                ...           10 months ago
  • 1.0.4                                ...           10 months ago
  • 1.0.3                                ...           10 months ago
  • 1.0.2                                ...           10 months ago
  • 1.0.1                                ...           10 months ago
  • 1.0.0                                ...           10 months ago

Copyright 2014 - 2016 © taobao.org |