vben
2020-11-28 de499a145556427304abe075b62e6869f44dc640
src/components/Table/src/components/TableAction.tsx
@@ -24,20 +24,20 @@
  },
  setup(props) {
    function renderButton(action: ActionItem, index: number) {
      const { disabled = false, label, icon, color = '', type = 'link' } = action;
      const { disabled = false, label, icon, color = '', type = 'link', ...actionProps } = action;
      const button = (
        <Button
          type={type as any}
          type={type}
          size="small"
          disabled={disabled}
          color={color}
          {...action}
          {...actionProps}
          key={`${index}-${label}`}
        >
          {() => (
            <>
              {icon && <Icon icon={icon} class="mr-1" />}
              {label}
              {icon && <Icon icon={icon} />}
            </>
          )}
        </Button>
@@ -96,7 +96,7 @@
              return renderPopConfirm(action, index);
            })}
          {dropDownActions && dropDownActions.length && (
            <Dropdown>
            <Dropdown overlayClassName="basic-tale-action-dropdown">
              {{
                default: dropdownDefaultSLot,
                overlay: () => {
@@ -106,6 +106,7 @@
                        default: () => {
                          return dropDownActions.map((action, index) => {
                            const { disabled = false } = action;
                            action.ghost = true;
                            return (
                              <Menu.Item key={`${index}`} disabled={disabled}>
                                {() => {