初始版本提交
This commit is contained in:
4
src/components/Title/index.ts
Normal file
4
src/components/Title/index.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import { withInstall } from '/@/utils';
|
||||
import title from './src/Title.vue';
|
||||
|
||||
export const Title = withInstall(title);
|
||||
19
src/components/Title/src/Title.vue
Normal file
19
src/components/Title/src/Title.vue
Normal file
@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<h2
|
||||
:align="align"
|
||||
:style="{
|
||||
fontSize: fontSize + 'px',
|
||||
color: color,
|
||||
fontWeight: 'bold',
|
||||
}"
|
||||
>{{ defaultValue }}</h2
|
||||
>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
defineProps({
|
||||
defaultValue: String,
|
||||
align: String,
|
||||
fontSize: Number,
|
||||
color: String,
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user