docs(components): [cascader] fix type error (#10961)

closed #10937
This commit is contained in:
qiang 2022-12-12 20:23:30 +08:00 committed by GitHub
parent 701f27a2d5
commit b9853474ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,7 @@ import { ref } from 'vue'
const value = ref([])
const props = {
expandTrigger: 'hover',
expandTrigger: 'hover' as const,
}
const handleChange = (value) => {

View File

@ -3,8 +3,10 @@
</template>
<script lang="ts" setup>
import type { CascaderProps } from 'element-plus'
let id = 0
const props = {
const props: CascaderProps = {
lazy: true,
lazyLoad(node, resolve) {
const { level } = node