diff --git a/.gitignore b/.gitignore index d94f45a81b1..ea27aa8b404 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,8 @@ dist .npmrc .cache +test/upload-server/static + .local # local env files .env.local diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index aaca09aa3d7..03b5b27a7da 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -30,6 +30,7 @@ - 修复菜单图标大小不一致 - 修复顶部菜单宽度计算问题 - 修复表格 tabSetting 问题 +- 修复文件上传删除失效 ## 2.0.0-rc.12 (2020-11-30) diff --git a/src/components/Table/src/components/TableAction.tsx b/src/components/Table/src/components/TableAction.tsx index a889b6173b7..b4f014a02f2 100644 --- a/src/components/Table/src/components/TableAction.tsx +++ b/src/components/Table/src/components/TableAction.tsx @@ -4,6 +4,7 @@ import Icon from '/@/components/Icon/index'; import { DownOutlined } from '@ant-design/icons-vue'; import { ActionItem } from '/@/components/Table'; import { Button } from '/@/components/Button'; +import { snowUuid } from '/@/utils/uuid'; const prefixCls = 'basic-table-action'; export default defineComponent({ name: 'TableAction', @@ -23,7 +24,7 @@ export default defineComponent({ }, }, setup(props) { - function renderButton(action: ActionItem, index: number) { + function renderButton(action: ActionItem) { const { disabled = false, label, icon, color = '', type = 'link', ...actionProps } = action; const button = (