Skip to content

Commit

Permalink
fix: spelling 'useRenderChcekbox'
Browse files Browse the repository at this point in the history
  • Loading branch information
snowords committed May 6, 2022
1 parent 18ae499 commit ee92f03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Form/src/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from './helper'
import { useRenderSelect } from './components/useRenderSelect'
import { useRenderRadio } from './components/useRenderRadio'
import { useRenderChcekbox } from './components/useRenderChcekbox'
import { useRenderCheckbox } from './components/useRenderCheckbox'
import { useDesign } from '@/hooks/web/useDesign'
import { findIndex } from '@/utils'
import { set } from 'lodash-es'
Expand Down Expand Up @@ -251,7 +251,7 @@ export default defineComponent({
return renderRadioOptions(item)
case 'Checkbox':
case 'CheckboxButton':
const { renderChcekboxOptions } = useRenderChcekbox()
const { renderChcekboxOptions } = useRenderCheckbox()
return renderChcekboxOptions(item)
default:
break
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ElCheckbox, ElCheckboxButton } from 'element-plus'
import { defineComponent } from 'vue'

export const useRenderChcekbox = () => {
export const useRenderCheckbox = () => {
const renderChcekboxOptions = (item: FormSchema) => {
// 如果有别名,就取别名
const labelAlias = item?.componentProps?.optionsAlias?.labelField
Expand Down

0 comments on commit ee92f03

Please sign in to comment.