chenzhfa f705248590 门户前端工程提交 2 yıl önce
..
README.md f705248590 门户前端工程提交 2 yıl önce
demo.js f705248590 门户前端工程提交 2 yıl önce
index.js f705248590 门户前端工程提交 2 yıl önce
index.less f705248590 门户前端工程提交 2 yıl önce

README.md

自定义图标

参数 说明 类型 默认值
type icon 样式 string
status icon 状态【-1:禁用;0:默认;1: 激活】 integer 0
onClick click 事件 function
  <CustIcon type="icon-gouwuche" status={0} onClick={() => message.info("添加购物车")} />
  <CustIcon type="icon-gouwuche" status={1} onClick={() => message.info("取消添加购物车")} />
  <CustIcon type="icon-gouwuche" status={-1} onClick={() => message.warning("已禁用")}  />