From ee92f039bea4307ccfb819728d3e2ed04fa00e03 Mon Sep 17 00:00:00 2001 From: Snoword <1430750200@qq.com> Date: Fri, 6 May 2022 16:00:51 +0800 Subject: [PATCH] fix: spelling 'useRenderChcekbox' --- src/components/Form/src/Form.vue | 4 ++-- .../{useRenderChcekbox.tsx => useRenderCheckbox.tsx} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/components/Form/src/components/{useRenderChcekbox.tsx => useRenderCheckbox.tsx} (94%) diff --git a/src/components/Form/src/Form.vue b/src/components/Form/src/Form.vue index f4f3cda..5ba6fe2 100644 --- a/src/components/Form/src/Form.vue +++ b/src/components/Form/src/Form.vue @@ -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' @@ -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 diff --git a/src/components/Form/src/components/useRenderChcekbox.tsx b/src/components/Form/src/components/useRenderCheckbox.tsx similarity index 94% rename from src/components/Form/src/components/useRenderChcekbox.tsx rename to src/components/Form/src/components/useRenderCheckbox.tsx index 3a7ad40..26ac32e 100644 --- a/src/components/Form/src/components/useRenderChcekbox.tsx +++ b/src/components/Form/src/components/useRenderCheckbox.tsx @@ -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