fix(table): tableAction icon #182

This commit is contained in:
vben 2021-01-14 00:41:02 +08:00
parent b803c4100d
commit b9d53a7133
4 changed files with 15 additions and 7 deletions

View File

@ -1,3 +1,10 @@
## Wip
### 🐛 Bug Fixes
- 修复 `TableAction`图标问题
- 修复菜单折叠按钮丢失问题
## 2.0.0-rc.16 (2020-01-12)
### ✨ Refactor

View File

@ -96,7 +96,7 @@
"stylelint-order": "^4.1.0",
"ts-node": "^9.1.0",
"typescript": "^4.1.3",
"vite": "^2.0.0-beta.26",
"vite": "^2.0.0-beta.27",
"vite-plugin-html": "^2.0.0-beta.5",
"vite-plugin-mock": "^2.0.0-beta.3",
"vite-plugin-purge-icons": "^0.5.1",

View File

@ -32,12 +32,13 @@
return popValues;
});
return () => {
const Button = h(BasicButton, unref(getBindValues), extendSlots(slots));
const values = omit(unref(getBindValues), 'icon');
const Button = h(BasicButton, values, extendSlots(slots));
if (!props.enable) {
return Button;
}
return h(Popconfirm, omit(unref(getBindValues), 'icon'), { default: () => Button });
return h(Popconfirm, values, { default: () => Button });
};
},
});

View File

@ -7850,10 +7850,10 @@ vite-plugin-pwa@^0.3.6:
pretty-bytes "^5.5.0"
workbox-build "^6.0.2"
vite@^2.0.0-beta.26:
version "2.0.0-beta.26"
resolved "https://registry.npmjs.org/vite/-/vite-2.0.0-beta.26.tgz#70e2277003de609b218ddb33d740f76d01f01dc2"
integrity sha512-/OZ5X5nq9xV3UKO2x3Xl83RQM0DsRWsa4htaRyzZ6e+G5Z+SfMiUlveJctSoPJ3JjoIBm4bbDAe0rXM5Mt2tlw==
vite@^2.0.0-beta.27:
version "2.0.0-beta.27"
resolved "https://registry.npmjs.org/vite/-/vite-2.0.0-beta.27.tgz#a2e4b3a698e67c89fd963ff51ee5283ec564c65c"
integrity sha512-1fGPjSVE4MmCGVguFy7pPurCLnvHu4fJSzVjejd9GoFqCNie+JKCpe3KGsxIb9B8ot/aDd4ISCB0+fH1/01FUA==
dependencies:
esbuild "^0.8.26"
postcss "^8.2.1"