From 5fca9ce2c59767adfbb2f3cab3c52d86df1f3223 Mon Sep 17 00:00:00 2001 From: 1sm <31946591+1sm23@users.noreply.github.com> Date: Wed, 24 Nov 2021 23:17:11 +0800 Subject: [PATCH] chore: comment format (#1398) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(modal): 取消全屏功能后关闭图标颜色异常 * chore: move to pnpm * fix: RangePicekr在表单项中占满分配的宽度 * chore: comment format * Revert "fix: RangePicekr在表单项中占满分配的宽度" This reverts commit cd70e41dac294329383be3d2f0a393dc26b7f140. Co-authored-by: liushiman --- build/vite/plugin/index.ts | 4 ++-- src/components/CardList/src/data.ts | 2 +- src/components/Form/src/types/form.ts | 4 ++-- src/components/Table/src/hooks/useTableScroll.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build/vite/plugin/index.ts b/build/vite/plugin/index.ts index 9c0924a0..93a2c00f 100644 --- a/build/vite/plugin/index.ts +++ b/build/vite/plugin/index.ts @@ -61,12 +61,12 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) { // rollup-plugin-visualizer vitePlugins.push(configVisualizerConfig()); - //vite-plugin-theme + // vite-plugin-theme vitePlugins.push(configThemePlugin(isBuild)); // The following plugins only work in the production environment if (isBuild) { - //vite-plugin-imagemin + // vite-plugin-imagemin VITE_USE_IMAGEMIN && vitePlugins.push(configImageminPlugin()); // rollup-plugin-gzip diff --git a/src/components/CardList/src/data.ts b/src/components/CardList/src/data.ts index ac56cad9..b7c4be78 100644 --- a/src/components/CardList/src/data.ts +++ b/src/components/CardList/src/data.ts @@ -1,5 +1,5 @@ import { ref } from 'vue'; -//每行个数 +// 每行个数 export const grid = ref(12); // slider属性 export const useSlider = (min = 6, max = 12) => { diff --git a/src/components/Form/src/types/form.ts b/src/components/Form/src/types/form.ts index ac85a74f..8415b03c 100644 --- a/src/components/Form/src/types/form.ts +++ b/src/components/Form/src/types/form.ts @@ -54,9 +54,9 @@ export interface FormProps { model?: Recordable; // The width of all items in the entire form labelWidth?: number | string; - //alignment + // alignment labelAlign?: 'left' | 'right'; - //Row configuration for the entire form + // Row configuration for the entire form rowProps?: RowProps; // Submit form on reset submitOnReset?: boolean; diff --git a/src/components/Table/src/hooks/useTableScroll.ts b/src/components/Table/src/hooks/useTableScroll.ts index dd101424..a8969da1 100644 --- a/src/components/Table/src/hooks/useTableScroll.ts +++ b/src/components/Table/src/hooks/useTableScroll.ts @@ -91,7 +91,7 @@ export function useTableScroll( if (!unref(getCanResize) || tableData.length === 0) return; await nextTick(); - //Add a delay to get the correct bottomIncludeBody paginationHeight footerHeight headerHeight + // Add a delay to get the correct bottomIncludeBody paginationHeight footerHeight headerHeight const headEl = tableEl.querySelector('.ant-table-thead ');