@cainiaofe/cn-ui-m
Version:
68 lines (67 loc) • 3.29 kB
JavaScript
import * as React from 'react';
import { CnDemoBlock, CnDemoPage, CnEmployeeSelect } from "../../..";
var dataSource = [
{
workNo: '132681',
nickName: '史霞',
name: '林勇',
department: '部门信息部门信息部门信息部门信息部门信息',
dingding: '650000200005243974',
buMail: 'j.ywnvcig@pcqkoelbb.中国互联.网络',
workStatus: true,
isManager: '0',
},
{
workNo: '187556',
nickName: '钱涛',
name: '任艳',
department: '部门信息部门信息部门信息',
dingding: '360000200512271882',
buMail: 'q.lqhc@vmycmd.bs',
personalPhotoUrl: 'https://img.alicdn.com/tfs/TB1e0Uhv8jTBKNjSZFuXXb0HFXa-512-512.png',
workStatus: true,
isManager: '0',
},
{
workNo: '142938',
nickName: '龙敏',
name: '郝勇',
department: '部门信息部门信息部门信息部门信息部门信息',
dingding: '630000201910136168',
buMail: 'b.jyhirrguw@ldxygxbn.ne',
personalPhotoUrl: 'https://img.alicdn.com/tfs/TB1e0Uhv8jTBKNjSZFuXXb0HFXa-512-512.png',
workStatus: true,
isManager: '0',
},
{
workNo: '120680',
nickName: '廖娟',
name: '邹洋',
department: '部门信息部门信息部门信息部门信息部门信息',
dingding: '350000198101097750',
buMail: 'o.zcaspqakg@rkxmvwku.cf',
personalPhotoUrl: 'https://img.alicdn.com/tfs/TB1e0Uhv8jTBKNjSZFuXXb0HFXa-512-512.png',
workStatus: true,
isManager: '0',
},
];
export var 指定数据源 = function () { return (React.createElement(CnDemoPage, { title: "\u6307\u5B9A\u6570\u636E\u6E90" },
React.createElement(CnDemoBlock, { title: "\u81EA\u5B9A\u4E49\u6570\u636E\u6E90", padding: 0 },
React.createElement(CnEmployeeSelect, { defaultAvatarImgUrl: "https://gw.alicdn.com/imgextra/i1/O1CN01V5V2en21bQeeqgVCs_!!6000000007003-2-tps-72-72.png", dataSource: dataSource })),
React.createElement(CnDemoBlock, { title: "\u6307\u5B9A\u5BF9\u8C61\u7ED3\u6784\u7684\u9ED8\u8BA4\u503C", padding: 0 },
React.createElement(CnEmployeeSelect, { useDetailValue: true, value: {
workNo: '120680',
nickName: '廖娟',
name: '邹洋',
department: '部门信息部门信息部门信息部门信息部门信息',
dingding: '350000198101097750',
buMail: 'o.zcaspqakg@rkxmvwku.cf',
personalPhotoUrl: 'https://img.alicdn.com/tfs/TB1e0Uhv8jTBKNjSZFuXXb0HFXa-512-512.png',
workStatus: true,
isManager: '0',
} })),
React.createElement(CnDemoBlock, { title: "\u53EA\u8BFB" },
React.createElement(CnEmployeeSelect, { readOnly: true, defaultAvatarImgUrl: "https://gw.alicdn.com/imgextra/i1/O1CN01V5V2en21bQeeqgVCs_!!6000000007003-2-tps-72-72.png", dataSource: dataSource, mode: "multiple", value: ['132681', '142938'] })))); };
指定数据源.desc =
'当自定义传入dataSource后,员工选择器将不再使用内置请求,同时搜索也变为本地模式,即从dataSource中进行搜索。';
export default { title: 'demo/CnEmployeeSelect' };