fix: 修复TS类型错误

This commit is contained in:
kailong321200875
2023-01-16 14:45:39 +08:00
parent 2800fb81c7
commit 1c06a27b90
7 changed files with 29 additions and 28 deletions

View File

@@ -82,19 +82,19 @@ const formValidation = () => {
<Form is-custom :model="form" :rules="rules" @register="register">
<Descriptions :title="t('descriptionsDemo.form')" :data="data" :schema="schema" class="mt-20px">
<template #username-label="scope">
<template #username-label="{ row: scope }">
<span class="is-required--item">{{ scope.label }}</span>
</template>
<template #nickName-label="scope">
<template #nickName-label="{ row: scope }">
<span class="is-required--item">{{ scope.label }}</span>
</template>
<template #phone-label="scope">
<template #phone-label="{ row: scope }">
<span class="is-required--item">{{ scope.label }}</span>
</template>
<template #email-label="scope">
<template #email-label="{ row: scope }">
<span class="is-required--item">{{ scope.label }}</span>
</template>
<template #addr-label="scope">
<template #addr-label="{ row: scope }">
<span class="is-required--item">{{ scope.label }}</span>
</template>

View File

@@ -28,7 +28,7 @@ const { t } = useI18n()
</ElCol>
<ElCol :span="24">
<ElCard shadow="hover" class="mb-20px">
<Echart :options="wordOptions" :height="300" />
<Echart :options="wordOptions as any" :height="300" />
</ElCard>
</ElCol>
</ElRow>