🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

@kyfe/ks-employee

Package Overview
Dependencies
Maintainers
10
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kyfe/ks-employee

ks-employee

latest
npmnpm
Version
0.0.4
Version published
Maintainers
10
Created
Source

API接口

搜索联系人: kuasheng.ksBookVersion.contactSearch 搜索记录-记录列表: kuasheng.ksSearchRecord.listV2 上报搜索记录: kuasheng.ksSearchRecord.changeV2 删除所有记录: kuasheng.ksSearchRecord.deleteAll

参数

参数名说明默认值
value如果是弹出层组件,则是 Boolean,表示显示隐藏(可使用 v-model 绑定), 如果是员工搜索组件,则是 Array, 表示默认值可使用 v-model 绑定)_disabledItem: 设置为 true 禁用列表某项
popAttr弹出层组件属性{}
defaultValue弹出层组件默认值[]
multiple多选false
menuId轻应用菜单id (3.0.37版本必填)''
showCancel是否展示取消按钮true
showHistory是否显示历史搜索true
placeholder输入框的提示语请搜索人名/工号
clearable是否展示输入框的清除按钮true
repeatText多选重复添加的提示文案请勿重复添加
title弹出层的 title 文案(ks-employee-popup组件的属性)选择成员
searchParams人员搜索自定义参数
safeAreaTop已选人员列表ios头部安全距离true
selected选择事件前的钩子函数(item:当前选中值)return true 阻止当前选择function(item)
historyListHandler历史记录列表显示前的数据处理(list:历史记录列表数据)return listfunction(list)
searchListHandler搜索查询列表显示前的数据处理(list:搜索查询列表数据)return listfunction(list)
disabledItemClick点击查询列表和历史记录列表中被禁用的(属性_disabledItem 为 true)item 事件处理 return itemfunction(item)

searchParams(自定义查询参数)

参数说明默认值
searchParams示例: {filterOffice: 2,deptCodeList: ['1,066,000,000,0000,0000,0000,0000,0000']}
filterOffice过滤在职状态:1:全部,2:在职,3:离职;默认11
deptCodeList组织code集合,限制5个[]

事件

事件名说明
input选中人员事件(v-model 绑定不用监听)
focus输入框的聚焦事件回调
blur输入框的失焦事件回调
clear输入框的删除按钮事件回调
cancel取消事件回调
confirm确认事件回调 返回当前选中人员数组

插槽

| 插槽名称 | 说明 | 参数 | -----------|--------|------------ | employeeListInfo | 搜索查询列表内容展示信息 | {item} | | historyListInfo | 历史记录列表内容展示信息 | {item} |

用法

<template>
    <ks-button @click="show4 != show4">弹出层场景</ks-button>
    <ks-employee-popup :style="{ height: '100%', width: '100%' }" v-model="show4" placeholder="测试" :multiple="multiple"  @confirm="confirm"></ks-employee-popup>
</template>

<script>
export default {
  data() {
    return {
      show4: false,
      multiple: true
    }
  },
  methods: {
    confirm(list) {
      console.log('popup选中的值', list)
    }
  }
}
</script>

FAQs

Package last updated on 08 May 2024

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