![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
ac-selector
Advanced tools
用友中台选人组件,目前只有智能产品部-消息组和预警在用。目前只支持从服务端获取数据。
npm i ac-Selector
import Selector from 'ac-Selector'
import 'ac-Selector/build/Selector.css'
参数 | 说明 | 类型 | 是否必填 | 默认值 | 返回值 |
---|---|---|---|---|---|
show | 是否显示模态框 | boolean | 是 | false | 无 |
onConfirm | 确认回调函数 | func | 是 | () => {} | 选中的用户 |
onClose | 取消回调函数 | func | 是 | () => {} | 无 |
selectedUser | 已选的用户列表 | array | 否 | [] | 无 |
selectedOther | 已选的其他列表 | array | 否 | [] | 无 |
mode | 环境区分 | string | 否 | daily | |
documentNo | 单据编号 | string | 否 | st_purchaseorder | 规则选人查询数据必传参数 |
onConfirm
回调函数参数说明 {
type:'用户',
typeCode: 0,
userid:'用户id',
username:'用户名',
mobile:'手机号',
email:'用户邮箱',
orgName:'用户部门',
}
角色
{
type: '角色',
typeCode: 1,
roleId: '角色id',
roleCode: '角色code',
roleName: '角色名称'
}
组织
{
type: '组织',
typeCode: 2,
orgId: '组织ID',
orgName: '组织名称'
}
规则
{
type: '规则',
typeCode: 3,
ruleCode: '规则code',
ruleName: '规则名称'
}
FAQs
The npm package ac-selector receives a total of 10 weekly downloads. As such, ac-selector popularity was classified as not popular.
We found that ac-selector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.