This commit is contained in:
2025-12-08 18:26:49 +08:00
parent 1b5e8fd4e5
commit 56791e05ec

View File

@@ -4,7 +4,7 @@
<div class="form-group">
<h3>输入框</h3>
<DynamicComponent
<DynamicFormItem
:config="inputConfig"
v-model="inputValue"
@change="handleChange"
@@ -14,7 +14,7 @@
<div class="form-group">
<h3>下拉选择</h3>
<DynamicComponent
<DynamicFormItem
:config="selectConfig"
v-model="selectValue"
@change="handleChange"
@@ -24,7 +24,7 @@
<div class="form-group">
<h3>复选框组</h3>
<DynamicComponent
<DynamicFormItem
:config="checkboxConfig"
v-model="checkboxValue"
@change="handleChange"
@@ -34,7 +34,7 @@
<div class="form-group">
<h3>单选框组</h3>
<DynamicComponent
<DynamicFormItem
:config="radioConfig"
v-model="radioValue"
@change="handleChange"
@@ -44,7 +44,7 @@
<div class="form-group">
<h3>开关</h3>
<DynamicComponent
<DynamicFormItem
:config="switchConfig"
v-model="switchValue"
@change="handleChange"
@@ -54,7 +54,7 @@
<div class="form-group">
<h3>文本域</h3>
<DynamicComponent
<DynamicFormItem
:config="textareaConfig"
v-model="textareaValue"
@change="handleChange"
@@ -64,7 +64,7 @@
<div class="form-group">
<h3>数字输入框</h3>
<DynamicComponent
<DynamicFormItem
:config="numberConfig"
v-model="numberValue"
@change="handleChange"
@@ -74,7 +74,7 @@
<div class="form-group">
<h3>日期选择器</h3>
<DynamicComponent
<DynamicFormItem
:config="dateConfig"
v-model="dateValue"
@change="handleChange"
@@ -84,7 +84,7 @@
<div class="form-group">
<h3>日期时间选择器</h3>
<DynamicComponent
<DynamicFormItem
:config="datetimeConfig"
v-model="datetimeValue"
@change="handleChange"
@@ -94,7 +94,7 @@
<div class="form-group">
<h3>日期范围选择器</h3>
<DynamicComponent
<DynamicFormItem
:config="dateRangeConfig"
v-model="dateRangeValue"
@change="handleChange"
@@ -104,7 +104,7 @@
<div class="form-group">
<h3>时间选择器</h3>
<DynamicComponent
<DynamicFormItem
:config="timeConfig"
v-model="timeValue"
@change="handleChange"
@@ -114,7 +114,7 @@
<div class="form-group">
<h3>颜色选择器</h3>
<DynamicComponent
<DynamicFormItem
:config="colorConfig"
v-model="colorValue"
@change="handleChange"
@@ -124,7 +124,7 @@
<div class="form-group">
<h3>评分组件</h3>
<DynamicComponent
<DynamicFormItem
:config="rateConfig"
v-model="rateValue"
@change="handleChange"
@@ -134,7 +134,7 @@
<div class="form-group">
<h3>滑块组件</h3>
<DynamicComponent
<DynamicFormItem
:config="sliderConfig"
v-model="sliderValue"
@change="handleChange"
@@ -144,7 +144,7 @@
<div class="form-group">
<h3>多选下拉</h3>
<DynamicComponent
<DynamicFormItem
:config="multiSelectConfig"
v-model="multiSelectValue"
@change="handleChange"
@@ -156,7 +156,7 @@
<script setup lang="ts">
import { ref } from 'vue'
import DynamicComponent from './DynamicComponent.vue'
import DynamicFormItem from './DynamicFormItem.vue'
import type { SysConfigVO } from '@/types/sys/config'
// 表单值