element-plus/docs/.vitepress/vitepress/components/globals/vp-api-ref.vue
Jeremy 71e6365a74
docs(components): [autocomplete] (#10405)
* docs(components): [autocomplete]

* Add new API component `ref-type`.
* Update doc API name font-family.
* Update API popup style.
* Update Autocomplete documentations.
2022-11-04 16:19:17 +08:00

22 lines
419 B
Vue

<script setup lang="ts">
import { computed } from 'vue'
import ApiTyping from './vp-api-typing.vue'
const props = defineProps({
type: {
type: String,
required: true,
},
shallow: Boolean,
})
const type = computed(() => {
const wrapperType = props.shallow ? 'ShallowRef' : 'Ref'
return `${wrapperType}<${props.type}>`
})
</script>
<template>
<ApiTyping type="Object" :details="type" />
</template>