mirror of
https://github.com/dataease/dataease.git
synced 2026-05-23 22:08:34 +08:00
feat: 使用fit2cloud-ui改造系统管理
This commit is contained in:
38
frontend/src/components/GridButton/index.vue
Normal file
38
frontend/src/components/GridButton/index.vue
Normal file
@@ -0,0 +1,38 @@
|
||||
<template>
|
||||
<el-tooltip :content="tooltip">
|
||||
<el-button circle class="fu-search-bar-button" :type="type" :size="size" @click="click">
|
||||
<slot>
|
||||
<i :class="icon" />
|
||||
</slot>
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'GridButton',
|
||||
props: {
|
||||
size: {
|
||||
type: String,
|
||||
default: 'mini'
|
||||
},
|
||||
icon: {
|
||||
type: String,
|
||||
default: null
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
default: null
|
||||
},
|
||||
tooltip: {
|
||||
type: String,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
click(e) {
|
||||
this.$emit('click', e)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user