Skip to content

Commit

Permalink
fixbug: tsError
Browse files Browse the repository at this point in the history
  • Loading branch information
jsxiaosi committed Jul 10, 2022
1 parent 761d9c1 commit e773d80
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Form/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
>
<FormItem :form-item="fItem" :form-model="form" :set-form-model="setFormModel">
<template v-for="item in Object.keys($slots)" #[item]="data">
<slot :name="item" v-bind="data || {}"></slot>
<slot :name="item" v-bind="((data || {}) as Recordable)"></slot>
</template>
</FormItem>
</el-col>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Form/types/from.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { VNode } from 'vue';

export interface FormProps {
labelPosition: string;
labelPosition: 'top' | 'right' | 'left';
formItem: Array<FormItemProps>;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<el-table v-bind="$attrs" style="width: 100%">
<TableChild v-for="(item, index) in option" :key="index" :item="item">
<template v-for="soitem in Object.keys($slots)" #[soitem]="data">
<slot :name="soitem" v-bind="data || {}"></slot>
<slot :name="soitem" v-bind="((data || {}) as Recordable)"></slot>
</template>
</TableChild>
</el-table>
Expand Down
2 changes: 1 addition & 1 deletion src/utils/slotsHelper.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Slots } from 'vue';
import { isFunction } from './is';

export function getSlot(slots: Slots, slot = 'default', data?: any) {
export function getSlot(slots: Slots, slot = 'default', data?: Recordable) {
if (!slots || !Reflect.has(slots, slot)) {
return null;
}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/views/index/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<script setup lang="ts">
import SeamlessScroll from '@/components/SeamlessScroll/index.vue';
import WeDetails from './components/WeDetails.vue';
import VisitAnalysis from './components/Analysis.vue';
import VisitAnalysis from './components/AnalysisChart.vue';
import { ref, Ref, onMounted, reactive } from 'vue';
import { useECharts } from '@/hooks/web/useECharts';
Expand Down

0 comments on commit e773d80

Please sign in to comment.