element-plus/docs/.vitepress/vitepress/components/globals/vp-api-external.vue
Xc 751d187cad
docs(components): [api-external] (#10356)
* docs(components): [input]

* docs(components): [input]

* docs(components): [input] revert changes input.md

* docs(components): [input] revert changes input.md

* docs(components): [api-external] remove unused

* docs(components): [api-external] remove unused

* docs(components): [api-external] remove default prefix
2022-11-02 22:11:19 +08:00

34 lines
473 B
Vue

<script setup lang="ts">
import VpLink from '../common/vp-link.vue'
defineProps({
text: {
type: String,
required: true,
},
url: {
type: String,
required: true,
},
prefix: {
type: String,
default: '',
},
})
</script>
<template>
<slot>
<span v-if="prefix" class="mr-1">{{ prefix }}</span>
<VpLink :href="url">
{{ text }}
</VpLink>
</slot>
</template>
<style scoped>
:deep(.el-icon) {
font-size: 18px;
}
</style>