mirror of
https://github.com/Molunerfinn/PicGo.git
synced 2024-04-21 10:31:33 +00:00
38 lines
528 B
Vue
38 lines
528 B
Vue
<template>
|
|
<el-form-item
|
|
:label="label"
|
|
>
|
|
<el-button
|
|
type="primary"
|
|
round
|
|
size="small"
|
|
@click="handleClick"
|
|
>
|
|
{{ buttonLabel }}
|
|
</el-button>
|
|
</el-form-item>
|
|
</template>
|
|
<script lang="ts" setup>
|
|
|
|
interface IProps {
|
|
label: string
|
|
buttonLabel: string
|
|
}
|
|
|
|
defineProps<IProps>()
|
|
|
|
const emit = defineEmits(['click'])
|
|
|
|
const handleClick = () => {
|
|
emit('click')
|
|
}
|
|
|
|
</script>
|
|
<script lang="ts">
|
|
export default {
|
|
name: 'ButtonFormItem'
|
|
}
|
|
</script>
|
|
<style lang='stylus'>
|
|
</style>
|