Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Mar 8, 2023
1 parent 9998e01 commit 1221fee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/ma-form/formItem/form-checkbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
:disabled="props.component.disabled"
@change="maEvent.handleChangeEvent(props.component, $event)"
>
<template v-for="(item, index) in dictList[dictIndex]">
<template v-for="(item, index) in (dictList[dictIndex] ?? [])">
<a-checkbox :value="item.value" :disabled="item.disabled" :indeterminate="item.indeterminate">{{ item.label }}</a-checkbox>
</template>
</a-checkbox-group>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ma-form/formItem/form-radio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
:disabled="props.component.disabled"
@change="handleCascaderChangeEvent($event)"
>
<template v-for="(item, index) in dictList[dictIndex]">
<template v-for="(item, index) in (dictList[dictIndex] ?? [])">
<a-radio :value="item.value" :disabled="item.disabled">{{ item.label }}</a-radio>
</template>
</a-radio-group>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ma-form/formItem/form-select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
@blur="maEvent.handleCommonEvent(props.component, 'onBlur')"
@search="maEvent.customeEvent(props.component, $event, 'onSearch')"
>
<template v-for="(item, index) in dictList[dictIndex]">
<template v-for="(item, index) in (dictList[dictIndex] ?? [])">
<a-option :value="item.value" :disabled="item.disabled">{{ item.label }}</a-option>
</template>
</a-select>
Expand Down

0 comments on commit 1221fee

Please sign in to comment.