UNPKG

@alitajs/antd-plus

Version:

基于 ant-design 封装的偏业务组件

35 lines (33 loc) 746 B
import React from 'react'; import { ButtonList } from '@alitajs/antd-plus'; var Example = function Example() { return /*#__PURE__*/React.createElement(ButtonList, { size: "small", list: [{ text: '新增', type: 'primary', onClick: function onClick() { return console.log(1); } }, { text: '修改', type: 'default', onClick: function onClick() { return console.log(2); } }, { text: '删除', type: 'dashed', onClick: function onClick() { return console.log(3); } }, { text: '全选', type: 'default', onClick: function onClick() { return console.log(4); } }] }); }; export default Example;