组件名称调整
Former-commit-id: 389ee4ae067ddb6ba004d6b61cacb5e85cccfdfb [formerly 389ee4ae067ddb6ba004d6b61cacb5e85cccfdfb [formerly 389ee4ae067ddb6ba004d6b61cacb5e85cccfdfb [formerly 389ee4ae067ddb6ba004d6b61cacb5e85cccfdfb [formerly a7a8e84c3f91251be54453c2953b303c97f18500 [formerly 92b8cc6bf9d7cfa4413140cbb53b63313d89b50e]]]]] Former-commit-id: c1dfc429358c2c851596de19c0addd69c9ba7a04 Former-commit-id: 38d14b1767e93500756bfd63d9417f198c1072d6 Former-commit-id: 6aa971020961a9c12a3790414b7bd06def3d5922 [formerly d1cf77ed4557c58790f9f9ef44344fdc1b5a63e0] Former-commit-id: 0333ea49a1b4bff5833e3b9a27484d824ee120d4 Former-commit-id: ccc5f16c2bce6ab562415120caf45c8d78e69a6b Former-commit-id: 78520c1824aa5d58428f07c7c9dd2d645d4a6cce Former-commit-id: a1937ddd17de318c80640db11a1979fc59cee4ee Former-commit-id: 065f3b5d8911a7697c034da0ed23b71cf4205ed6
This commit is contained in:
32
src/components/demo/d2-link-btn/index.vue
Normal file
32
src/components/demo/d2-link-btn/index.vue
Normal file
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<el-button-group>
|
||||
<el-button v-if="title" size="mini" @click="$open(link)">{{title}}</el-button>
|
||||
<el-button size="mini" @click="$open(link)">
|
||||
<d2-icon :name="icon"/>
|
||||
{{link}}
|
||||
</el-button>
|
||||
</el-button-group>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'd2-link-btn',
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: ''
|
||||
},
|
||||
icon: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: 'link'
|
||||
},
|
||||
link: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: 'https://github.com/d2-projects'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user