初始版本提交

This commit is contained in:
yaoyn
2024-02-05 09:15:37 +08:00
parent b52d4414be
commit 445292105f
1848 changed files with 236859 additions and 75 deletions

View File

@ -0,0 +1,4 @@
import { withInstall } from '/@/utils/index';
import text from './src/Text.vue';
export const Text = withInstall(text);

View File

@ -0,0 +1,25 @@
<template>
<p
:align="align"
:style="{
fontFamily: fontFamily,
fontSize: fontSize + 'px',
fontWeight: fontWeight,
color: color,
fontStyle: fontStyle,
}"
>
{{ defaultValue }}</p
>
</template>
<script lang="ts" setup>
defineProps({
defaultValue: { type: String },
color: { type: String, default: '#000' },
fontFamily: { type: String, default: 'Arial' },
fontSize: { type: Number, default: 12 },
fontWeight: { type: [Number, String], default: 'normal' },
fontStyle: { type: String, default: 'normal' },
align: { type: String, default: 'left' },
});
</script>