zarm icon indicating copy to clipboard operation
zarm copied to clipboard

建议新增下拉菜单组件 DropdownMenu

Open wangping1248 opened this issue 3 years ago • 0 comments

实现一个下拉菜单组件,内容如下:

Demo

import { DropdownMenu } from 'zarm';

render(
  <DropdownMenu>
    <DropdownMenu.Item
      value={0}
      options={[
        { text: '全部保单', value: 0 },
        { text: '健康险', value: 1 },
        { text: '车险', value: 2 },
      ]}
    ></DropdownMenu.Item>
    <DropdownMenu.Item
      value="a"
      options={[
        { text: '默认排序', value: 'a' },
        { text: '好评排序', value: 'b' },
        { text: '销量排序', value: 'c' },
      ]}
    ></DropdownMenu.Item>
  </DropdownMenu>
);

wangping1248 avatar Oct 29 '21 07:10 wangping1248