UNPKG

@cainiaofe/cn-ui-m

Version:
53 lines (52 loc) 1.81 kB
import React, { useState } from 'react'; import { CnCardItems, CnDemoPage } from "../../.."; export var 自定义数据源 = function () { var value = useState([ { address: '浙江省杭州市余杭区文一西路999号', componyName: '菜鸟网络有限公司', destination3pl: 'Cainiao', destinationNode: 'WH_HK_PH_GSDP', destinationType: 'DELIVERY', detailHeader: 'detail', indexNum: '1', origin3pl: 'Cainiao', originNode: 'WH_HK_PH_GSDP', originType: 'PICKUP', price: '32,123.00 CNY', scheduleId: 1130110637, updateTime: '2022-05-13 09:48:47', }, { indexNum: '2', address: '浙江省杭州市余杭区文一西路999号', originNode: 'WH_HK_PH_GSDP', updateTime: '2022-05-13 09:48:47', destination3pl: 'Cainiao', componyName: '菜鸟网络有限公司', originType: 'PICKUP', detailHeader: 'detail', price: '32,123.00 CNY', origin3pl: 'Cainiao', destinationType: 'DELIVERY', destinationNode: 'WH_HK_PH_GSDP', dd: { scheduleId: 1130110637, }, }, ])[0]; var columns = useState([ { dataIndex: 'indexNum', title: '序号', tip: '123', }, { dataIndex: 'dd.scheduleId', title: '物流服务单', }, ])[0]; return (React.createElement(CnDemoPage, { title: "\u81EA\u5B9A\u4E49\u6570\u636E\u6E90" }, React.createElement(CnCardItems, { dataSource: value, columns: columns }))); }; export default { title: 'demo/CnCardItems' };