mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-12-12 11:22:56 +00:00
28 lines
572 B
Vue
28 lines
572 B
Vue
<template>
|
|
<ElFormItem v-bind="itemProps">
|
|
<template #label>
|
|
<slot name="label"></slot>
|
|
</template>
|
|
<slot></slot>
|
|
<div v-if="extra" v-html="extra" class="m-form-tip"></div>
|
|
</ElFormItem>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed } from 'vue';
|
|
import { ElFormItem } from 'element-plus';
|
|
|
|
import { FormItemProps } from '@tmagic/design';
|
|
|
|
defineOptions({
|
|
name: 'TElAdapterFormItem',
|
|
});
|
|
|
|
const props = defineProps<FormItemProps>();
|
|
|
|
const itemProps = computed(() => {
|
|
const { extra, ...rest } = props;
|
|
return rest;
|
|
});
|
|
</script>
|