28 lines
564 B
Vue
28 lines
564 B
Vue
<template>
|
|
<div class="db-button">
|
|
<button>button 按钮组件</button>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { toRefs, Ref, ref, reactive, PropOptions } from '@vue/composition-api'
|
|
import { UnwrapRef} from '@vue/composition-api/dist/reactivity'
|
|
|
|
export default {
|
|
name: 'buttons',
|
|
props: {
|
|
},
|
|
setup(props: PropOptions) {
|
|
const state: UnwrapRef<{
|
|
title: Ref<string>
|
|
}> = reactive({
|
|
title: ref('ui框架组件 - button')
|
|
});
|
|
|
|
return {
|
|
...toRefs(state)
|
|
}
|
|
}
|
|
}
|
|
</script>
|