mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-15 01:09:20 +08:00
22 lines
461 B
Vue
22 lines
461 B
Vue
<template>
|
|
<component :is="uiComponent.component" v-bind="uiProps">
|
|
<slot></slot>
|
|
</component>
|
|
</template>
|
|
|
|
<script setup lang="ts" name="TMDivider">
|
|
import { computed } from 'vue';
|
|
|
|
import { getConfig } from './config';
|
|
|
|
const props = defineProps<{
|
|
direction?: string;
|
|
borderStyle?: string;
|
|
contentPosition?: string;
|
|
}>();
|
|
|
|
const uiComponent = getConfig('components').divider;
|
|
|
|
const uiProps = computed(() => uiComponent.props(props));
|
|
</script>
|