drops-option

列表操作按钮配置

Usage no npm install needed!

<script type="module">
  import dropsOption from 'https://cdn.skypack.dev/drops-option';
</script>

README

Author

你们的吴男神

drops-option

列表操作按钮配置

install

npm install --save drops-option

usage

 import React from 'react';
 import DropOption from 'drops-option';
 
 const App = (_: any, record: CurrentItem) => (
  return <DropOption
     onMenuClick={(element: any) => handleMenuClick(record, element.key)}
     menuOptions={[
        { key: 'detail', name: '详情' },
        { key: 'edit', name: '修改' },
        { key: 'del', name: '删除' },
        ]}
    />
 );
 export default App;

Preview

输入图片说明