first commit
This commit is contained in:
27
dbui/src/components/button/button.vue
Normal file
27
dbui/src/components/button/button.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user