mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 18:01:24 +08:00
751d187cad
* 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
34 lines
473 B
Vue
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>
|