fix: operationNodeProps ts error

pull/6800/head
tangjinzhou 2023-06-16 14:09:35 +08:00
parent 7f96399009
commit 823b3ddd11
1 changed files with 5 additions and 4 deletions

View File

@ -14,7 +14,7 @@ import EllipsisOutlined from '@ant-design/icons-vue/EllipsisOutlined';
export const operationNodeProps = { export const operationNodeProps = {
prefixCls: { type: String }, prefixCls: { type: String },
id: { type: String }, id: { type: String },
tabs: { type: Object as PropType<(Tab & { closeIcon?: () => any })[]> }, tabs: { type: Array as PropType<(Tab & { closeIcon?: () => any })[]> },
rtl: { type: Boolean }, rtl: { type: Boolean },
tabBarGutter: { type: Number }, tabBarGutter: { type: Number },
activeKey: { type: [String, Number] }, activeKey: { type: [String, Number] },
@ -127,7 +127,8 @@ export default defineComponent({
if (!val) { if (!val) {
setOpen(false); setOpen(false);
} }
}); },
);
return () => { return () => {
const { const {