Skip to content

Commit

Permalink
fix: 处理 vue build 类型错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wjgogogo committed Nov 20, 2024
1 parent 6572e71 commit e94fb85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/s2-vue/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export { default as BaseSheet } from './sheets/base-sheet.vue';
export { default as SheetComponent } from './sheets/index.vue';
export { default as PivotSheet } from './sheets/pivot-sheet.vue';
export { default as TableSheet } from './sheets/table-sheet.vue';
export { default as EditableSheet } from './sheets/editable-sheet.vue';
5 changes: 3 additions & 2 deletions packages/s2-vue/src/components/sheets/editable-sheet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Input } from 'ant-design-vue';
import { isNil, pick } from 'lodash';
import type { TargetCellInfo, S2Options, S2CellType } from '@antv/s2';
import { useExpose } from '../../hooks/useExpose';
import type { BaseSheetInitEmits } from '../../interface';
import { initBaseSheetProps } from '../../utils/initPropAndEmits';
import BaseSheet from './base-sheet.vue';
Expand All @@ -15,7 +16,7 @@ function buildEditProps(option: S2Options): S2Options {
export default defineComponent({
name: 'EditableSheet',
props: initBaseSheetProps(),
emits: [],
emits: [] as unknown as BaseSheetInitEmits,
setup(props, ctx) {
const s2Ref = useExpose(ctx.expose);
const { options: originOptions } = toRefs(props);
Expand Down Expand Up @@ -131,7 +132,7 @@ export default defineComponent({
components: {
BaseSheet,
},
});
}) as unknown;
</script>
<template>
<BaseSheet
Expand Down

0 comments on commit e94fb85

Please sign in to comment.