fix: list actions not work

pull/2682/head
tanjinzhou 2020-07-29 20:56:55 +08:00
parent 72668faa25
commit fc82e7c536
1 changed files with 2 additions and 2 deletions

View File

@ -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) => (