no message
Former-commit-id: 956da93856c738e00064eae4e23b2fa030469d82 Former-commit-id: 09bd6561aa5c3252e6c56917ce38c861f97b25be Former-commit-id: 7c86886a561c440938a188a20b4b5f1b3d739b1e Former-commit-id: 9f49f475139909e15a9f7a1708ce6e9091f4d125
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<el-button-group>
|
||||
<el-button size="mini">依赖</el-button>
|
||||
<el-button v-if="title" size="mini">{{title}}</el-button>
|
||||
<el-button size="mini" @click="$open(link)">
|
||||
<d2-icon name="link"/>
|
||||
<d2-icon :name="icon"/>
|
||||
{{link}}
|
||||
</el-button>
|
||||
</el-button-group>
|
||||
@@ -12,6 +12,16 @@
|
||||
export default {
|
||||
name: 'd2-demo-link-btn',
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: ''
|
||||
},
|
||||
icon: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: 'link'
|
||||
},
|
||||
link: {
|
||||
type: String,
|
||||
required: false,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<d2-container type="full">
|
||||
<template slot="header">日期计算</template>
|
||||
<template slot="footer">
|
||||
<d2-demo-link-btn :link="link"/>
|
||||
<d2-demo-link-btn title="依赖" :link="link"/>
|
||||
</template>
|
||||
</d2-container>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user