|
|
@ -69,6 +69,7 @@ const control = computed(() => { |
|
|
// return props.data |
|
|
// return props.data |
|
|
}) |
|
|
}) |
|
|
const options = ref(props.data.options) |
|
|
const options = ref(props.data.options) |
|
|
|
|
|
//console.log("FormItem*********************************************************"+JSON.stringify(props.data)) |
|
|
const changeEvent = inject(constControlChange, '') as any |
|
|
const changeEvent = inject(constControlChange, '') as any |
|
|
const updateModel = (val: any) => { |
|
|
const updateModel = (val: any) => { |
|
|
let controlAttribute = "" |
|
|
let controlAttribute = "" |
|
|
@ -552,7 +553,7 @@ const imgUploadApiUrl = import.meta.env.VITE_APP_BASE_API+"/api/upordown" |
|
|
<el-radio |
|
|
<el-radio |
|
|
:key="index" |
|
|
:key="index" |
|
|
:label="transformOption(item.value)" |
|
|
:label="transformOption(item.value)" |
|
|
v-for="(item, index) in options" |
|
|
v-for="(item, index) in props.data.options" |
|
|
|
|
|
|
|
|
> |
|
|
> |
|
|
<span :style="getFormItemInputStyle(configStyle,5)">{{ item.label }}</span> |
|
|
<span :style="getFormItemInputStyle(configStyle,5)">{{ item.label }}</span> |
|
|
@ -566,7 +567,7 @@ const imgUploadApiUrl = import.meta.env.VITE_APP_BASE_API+"/api/upordown" |
|
|
:style="getFormItemInputStyle(configStyle,4)" |
|
|
:style="getFormItemInputStyle(configStyle,4)" |
|
|
> |
|
|
> |
|
|
<el-checkbox |
|
|
<el-checkbox |
|
|
v-for="(item, index) in options" |
|
|
v-for="(item, index) in props.data.options" |
|
|
:key="index" |
|
|
:key="index" |
|
|
:label="transformOption(item.value)" |
|
|
:label="transformOption(item.value)" |
|
|
> |
|
|
> |
|
|
@ -580,7 +581,7 @@ const imgUploadApiUrl = import.meta.env.VITE_APP_BASE_API+"/api/upordown" |
|
|
:data="data" |
|
|
:data="data" |
|
|
:disabled="editDisabled" |
|
|
:disabled="editDisabled" |
|
|
v-model="value" |
|
|
v-model="value" |
|
|
:options="options" |
|
|
:options="props.data.options" |
|
|
:remote-method="getAxiosOptions" |
|
|
:remote-method="getAxiosOptions" |
|
|
:transformOption="transformOption" |
|
|
:transformOption="transformOption" |
|
|
/> |
|
|
/> |
|
|
|