Skip to content

Text 文本渲染

type : 'text'

用于普通文本的渲染

代码演示

基础用法

<template>
    <x-form ref="formRef" label-align="top" :model="formValue" :items="formOptions" />
</template>

<script lang="ts" setup>
import { ref } from 'vue';
const formRef = ref();
const formValue = ref({
    text: '我是一段文本',
});
const formOptions = ref([
    {
        type: 'text',
        label: 'text',
        name: 'text',
        placeholder: '请输入内容',
        itemProps: {
        }
    },

]);

</script>
<style lang="scss" scoped></style>
基础用法

API

Props

Events