Merge branch '2.x' into dev

This commit is contained in:
chenjiahan
2020-11-24 22:21:28 +08:00
6 changed files with 15 additions and 7 deletions
+3 -2
View File
@@ -127,13 +127,14 @@ export default createComponent({
const renderAction = (action, index) => {
const { icon, text, disabled, className } = action;
return (
<div
<button
type="button"
class={[bem('action', { disabled, 'with-icon': icon }), className]}
onClick={() => onClickAction(action, index)}
>
{icon && <Icon name={icon} class={bem('action-icon')} />}
<div class={[bem('action-text'), BORDER_BOTTOM]}>{text}</div>
</div>
</button>
);
};