Browse Source

fix: list actions not work

pull/2682/head
tanjinzhou 4 years ago
parent
commit
fc82e7c536
  1. 4
      components/list/Item.jsx

4
components/list/Item.jsx

@ -93,8 +93,8 @@ export default {
const getPrefixCls = this.configProvider.getPrefixCls;
const prefixCls = getPrefixCls('list', customizePrefixCls);
const extra = getComponent(this, 'extra');
const actions = getComponent(this, 'actions');
let actions = getComponent(this, 'actions');
actions = actions && !Array.isArray(actions) ? [actions] : actions;
const actionsContent = actions && actions.length > 0 && (
<ul class={`${prefixCls}-item-action`} key="actions">
{actions.map((action, i) => (

Loading…
Cancel
Save