数通智联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

124 lines
1.9 KiB

<!--
@ 作者: 秦东
@ 时间: 2023-09-01 16:16:54
@ 备注:
-->
<script lang='ts' setup>
import '@/assets/scss/element-var.scss'
import '@/assets/scss/index.scss'
import '@/assets/iconfont/iconfont.css'
import 'element-plus/dist/index.css'
import {
constGetControlByName,
constSetFormOptions,
constFormBtnEvent,
constControlChange,
constFormProps,
appendOrRemoveStyle
} from '@/api/DesignForm/utils'
const formData = {
list: [
{
type: "radio",
control:
{
modelValue: ""
},
options: [],
config:
{
optionsType: 0
},
name: "radio1693383929154",
item:
{
label: "单选框组"
}
},
{
type: "select",
control:
{
modelValue: "",
appendToBody: true
},
options: [],
config:
{
optionsType: 0
},
name: "select1693383931223",
item:
{
label: "下拉选择框"
}
},
{
type: "inputNumber",
control:
{
modelValue: 0
},
config:
{},
name: "inputNumber1693383932808",
item:
{
label: "计数器"
}
},
{
type: "button",
control:
{
label: "保存",
type: "success",
key: "submit"
},
config:
{
span: 6,
textAlign: "center"
}
},
{
type: "button",
control:
{
label: "取消",
type: "danger",
key: "reset"
},
config:
{
span: 6,
textAlign: "center"
}
}],
form:
{
size: "default",
name: "customer_form_157524328231997440",
formName: "未命名表单_157524328231997440"
},
config:
{}
}
const formProps = computed(() => {
return {
type: 3
}
})
provide(constFormProps, formProps)
</script>
<template>
<el-card shadow="never">
<ak-form :formData="formData"></ak-form>
</el-card>
</template>
<style lang='scss' scoped>
</style>