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.
114 lines
1.8 KiB
114 lines
1.8 KiB
//基础状态
|
|
const checkbox = {
|
|
list: [
|
|
{
|
|
type: "checkbox",
|
|
control:
|
|
{
|
|
modelValue: []
|
|
},
|
|
options: [],
|
|
config:
|
|
{
|
|
optionsType: 0
|
|
},
|
|
name: "checkbox1690867750313",
|
|
item:
|
|
{
|
|
label: "多选框组"
|
|
}
|
|
}],
|
|
form:
|
|
{
|
|
size: "default",
|
|
name: ""
|
|
},
|
|
config:
|
|
{}
|
|
}
|
|
//固定选项
|
|
const checkboxGDXX = {
|
|
list: [
|
|
{
|
|
type: "checkbox",
|
|
control:
|
|
{
|
|
modelValue: []
|
|
},
|
|
options: [
|
|
{
|
|
label: "男",
|
|
value: "1"
|
|
},
|
|
{
|
|
label: "女",
|
|
value: "2"
|
|
},
|
|
{
|
|
label: "跨性别",
|
|
value: "3"
|
|
}],
|
|
config:
|
|
{
|
|
optionsType: 0,
|
|
optionsFun: "",
|
|
className: "自定义Class",
|
|
help: "帮助信息",
|
|
span: 20
|
|
},
|
|
name: "checkbox1690867750313",
|
|
item:
|
|
{
|
|
label: "多选框组"
|
|
}
|
|
}],
|
|
form:
|
|
{
|
|
size: "default",
|
|
name: ""
|
|
},
|
|
config:
|
|
{}
|
|
}
|
|
|
|
//数据源
|
|
const checkboxOptData = {
|
|
list: [
|
|
{
|
|
type: "checkbox",
|
|
control:
|
|
{
|
|
modelValue: []
|
|
},
|
|
options: [],
|
|
config:
|
|
{
|
|
optionsType: 1,
|
|
optionsFun: "org/govthreeaboutman",
|
|
label: "name",
|
|
value: "id",
|
|
transformData: "number",
|
|
className: "自定义Class",
|
|
help: "帮助信息",
|
|
span: 12
|
|
},
|
|
name: "checkbox1690940822941",
|
|
item:
|
|
{
|
|
label: "多选框组",
|
|
rules: [
|
|
{
|
|
required: true,
|
|
message: "必填项",
|
|
trigger: "change"
|
|
}]
|
|
}
|
|
}],
|
|
form:
|
|
{
|
|
size: "default",
|
|
name: ""
|
|
},
|
|
config:
|
|
{}
|
|
}
|