From d854c63031a459f69fb0cc669913d88185e63205 Mon Sep 17 00:00:00 2001 From: "PCPRO-CRLANG\\crlang" Date: Sun, 26 Jun 2022 23:25:10 +0800 Subject: [PATCH] style: lint code --- index.html | 3 +- src/App.vue | 8 +- src/api/demo/system.ts | 6 +- src/api/model/baseModel.ts | 2 +- src/api/sys/upload.ts | 5 +- .../Application/src/AppProvider.vue | 11 - src/components/Basic/src/BasicHelp.vue | 41 +- src/components/Basic/src/BasicTitle.vue | 1 - .../BasicDescription/src/BasicDescription.vue | 7 +- src/components/BasicDescription/src/props.ts | 24 +- src/components/BasicDescription/src/typing.ts | 5 +- .../BasicDrawer/src/BasicDrawer.vue | 11 +- src/components/BasicDrawer/src/props.ts | 80 ++-- src/components/BasicDrawer/src/useDrawer.ts | 14 +- src/components/BasicForm/src/BasicForm.vue | 13 +- .../BasicForm/src/components/FormAction.vue | 4 +- .../BasicForm/src/components/FormItem.vue | 117 +++--- src/components/BasicForm/src/const.ts | 24 +- .../BasicForm/src/hooks/useAdvanced.ts | 23 +- .../BasicForm/src/hooks/useBasic.ts | 5 +- src/components/BasicForm/src/hooks/useForm.ts | 6 +- .../BasicForm/src/hooks/useFormEvents.ts | 6 +- .../BasicForm/src/hooks/useFormValues.ts | 23 +- src/components/BasicModal/src/BasicModal.vue | 22 +- .../src/components/ModalWrapper.vue | 42 +-- src/components/BasicModal/src/typing.ts | 4 +- src/components/BasicModal/src/useModal.ts | 19 +- .../BasicModal/src/useModalContext.ts | 2 +- src/components/BasicTable/src/BasicTable.vue | 58 +-- .../BasicTable/src/components/TableAction.vue | 21 +- .../src/components/TablePagination.vue | 9 +- .../src/components/TableSetting.vue | 2 +- .../BasicTable/src/hooks/useColumns.ts | 49 +-- .../BasicTable/src/hooks/useDataSource.ts | 24 +- .../BasicTable/src/hooks/usePagination.tsx | 2 +- .../BasicTable/src/hooks/useTable.ts | 20 +- .../BasicTable/src/hooks/useTableContext.ts | 10 +- .../BasicTable/src/hooks/useTableExpand.ts | 2 +- .../BasicTable/src/hooks/useTableForm.ts | 4 +- .../BasicTable/src/hooks/useTableScroll.ts | 9 +- src/components/BasicTable/src/typing.ts | 2 +- .../BasicUpload/src/BasicUpload.vue | 30 +- .../BasicUpload/src/components/FileList.vue | 4 +- .../src/components/PreviewModal.vue | 2 +- .../src/components/UploadModal.vue | 39 +- src/components/BasicUpload/src/data.tsx | 17 +- src/components/Button/src/Button.vue | 1 - src/components/Button/src/props.ts | 32 +- src/components/CardGrid/src/CardGrid.vue | 7 +- .../src/CollapseContainer.vue | 1 - .../ContextMenu/src/ContextMenu.vue | 12 +- src/components/CountTo/src/props.ts | 1 - .../CountdownInput/src/CountdownInput.vue | 4 +- src/components/DragVerify/src/DragVerify.vue | 4 +- src/components/DragVerify/src/ImgRotate.vue | 14 +- src/components/ElementPlus/index.ts | 4 +- src/components/Icon/src/Icon.vue | 4 +- src/components/IconPicker/src/IconPicker.vue | 8 +- src/components/IconPicker/src/data/index.ts | 1 - .../LazyContainer/src/LazyContainer.vue | 2 +- src/components/List/src/index.vue | 2 +- src/components/List/src/item.vue | 12 +- src/components/List/src/meta.vue | 14 +- src/components/List/src/props.ts | 3 +- src/components/List/src/types.ts | 1 - .../Menu/src/components/BasicSubMenuItem.vue | 2 +- .../PageWrapper/src/PageWrapper.vue | 3 +- .../ScrollContainer/src/ScrollContainer.vue | 2 +- src/components/ScrollContainer/src/typing.ts | 2 +- src/components/Scrollbar/src/bar.ts | 31 +- .../SimpleMenu/src/SimpleMenuTag.vue | 2 +- .../SimpleMenu/src/components/SubMenuItem.vue | 3 +- .../StrengthMeter/src/StrengthMeter.vue | 10 +- src/components/SvgIcon/src/SvgIcon.vue | 4 +- src/components/Time/src/Time.vue | 2 +- src/components/Transition/src/Transition.tsx | 14 +- .../VirtualScroll/src/VirtualScroll.vue | 14 +- src/directives/clickOutside.ts | 14 +- src/directives/clickRepeat.ts | 18 +- src/enums/breakpointEnum.ts | 4 +- src/hooks/core/useContext.ts | 11 +- src/hooks/core/useLockFn.ts | 4 +- src/hooks/setting/useHeaderSetting.ts | 20 +- src/hooks/web/useContentHeight.ts | 5 +- src/hooks/web/useECharts.ts | 5 +- src/hooks/web/useMessage.tsx | 10 +- src/hooks/web/usePermission.ts | 4 +- src/hooks/web/useWatermark.ts | 4 +- src/layouts/default/footer/index.vue | 2 +- src/layouts/default/header/MultipleHeader.vue | 3 +- .../default/header/components/Breadcrumb.vue | 7 +- .../header/components/lock/LockModal.vue | 6 +- .../header/components/notify/NoticeList.vue | 4 +- .../header/components/notify/index.vue | 7 +- .../components/search/AppSearchModal.vue | 8 +- .../header/components/user-dropdown/index.vue | 26 +- src/layouts/default/menu/index.vue | 21 +- src/layouts/default/menu/useLayoutMenu.ts | 8 +- src/layouts/default/setting/SettingDrawer.tsx | 157 +++----- .../setting/components/InputNumberItem.vue | 12 +- .../default/setting/components/SelectItem.vue | 2 +- .../setting/components/SettingFooter.vue | 9 +- .../default/setting/components/SwitchItem.vue | 3 +- .../default/setting/components/TypePicker.vue | 2 +- src/layouts/default/setting/index.vue | 2 +- src/layouts/default/sider/LayoutSider.vue | 9 +- src/layouts/default/sider/MixSider.vue | 2 +- src/layouts/default/sider/useLayoutSider.ts | 10 +- .../default/tabs/components/TabContent.vue | 11 +- src/layouts/default/tabs/index.vue | 2 +- src/layouts/default/tabs/useTabDropdown.ts | 2 +- src/layouts/iframe/index.vue | 3 +- src/logics/initAppConfig.ts | 8 +- src/logics/mitt/routeChange.ts | 5 +- src/logics/theme/updateBackground.ts | 4 +- src/router/routes/index.ts | 8 +- src/settings/componentSetting.ts | 6 +- src/store/modules/app.ts | 8 +- src/store/modules/errorLog.ts | 5 +- src/store/modules/user.ts | 2 +- src/utils/color.ts | 11 +- src/utils/dateUtil.ts | 5 +- src/utils/demo/index.ts | 11 +- src/utils/domUtils.ts | 6 +- src/utils/file/download.ts | 2 +- src/utils/helper/treeHelper.ts | 35 +- src/utils/http/axios/Axios.ts | 11 +- src/utils/http/axios/axiosTransform.ts | 5 +- src/utils/http/axios/checkStatus.ts | 6 +- src/utils/http/axios/index.ts | 9 +- src/utils/index.ts | 7 +- src/utils/validators.ts | 21 +- .../analysis/components/OrderAnalysis.vue | 14 +- .../analysis/components/OrderAnalysisBar.vue | 11 +- .../analysis/components/VisitAnalysis.vue | 355 +++++++++--------- .../analysis/components/VisitAnalysisPie.vue | 12 +- .../dashboard/analysis/components/anaCard.vue | 25 +- .../analysis/components/anaOrder.vue | 10 +- .../analysis/components/anaProduct.vue | 3 +- .../analysis/components/anaSite2.vue | 10 +- src/views/dashboard/analysis/data.ts | 14 +- .../workbench/components/ActivityTimeline.vue | 1 - .../workbench/components/ProjectCard.vue | 2 +- .../workbench/components/QuickNav.vue | 2 +- src/views/dashboard/workbench/index.vue | 4 +- src/views/demo/charts/Dync.vue | 8 +- src/views/demo/charts/data.ts | 41 +- src/views/demo/charts/map/Baidu.vue | 3 +- src/views/demo/charts/map/Tencent.vue | 3 +- src/views/demo/comp/button/index.vue | 11 +- src/views/demo/comp/desc/index.vue | 4 +- src/views/demo/comp/drawer/Drawer1.vue | 2 +- src/views/demo/comp/lazy/Transition.vue | 3 +- src/views/demo/comp/loading/index.vue | 4 +- src/views/demo/comp/modal/Modal1.vue | 12 +- src/views/demo/comp/modal/Modal2.vue | 4 +- src/views/demo/comp/modal/Modal3.vue | 1 - src/views/demo/comp/modal/index.vue | 23 +- src/views/demo/comp/scroll/Action.vue | 2 +- src/views/demo/comp/scroll/VirtualScroll.vue | 6 +- src/views/demo/comp/scroll/data.ts | 1 - src/views/demo/comp/scroll/index.vue | 2 +- src/views/demo/comp/time/index.vue | 4 +- src/views/demo/comp/transition/index.vue | 7 +- src/views/demo/comp/upload/index.vue | 4 +- src/views/demo/comp/verify/index.vue | 2 +- src/views/demo/feat/breadcrumb/FlatList.vue | 2 +- src/views/demo/feat/download/index.vue | 6 +- src/views/demo/feat/icon/index.vue | 3 +- src/views/demo/feat/session-timeout/index.vue | 6 +- src/views/demo/feat/tab-params/index.vue | 4 +- src/views/demo/feat/ws/index.vue | 6 +- src/views/demo/form/AdvancedForm.vue | 6 +- src/views/demo/form/CustomerForm.vue | 2 +- src/views/demo/form/RefForm.vue | 8 +- src/views/demo/form/RuleForm.vue | 21 +- src/views/demo/form/UseForm.vue | 34 +- src/views/demo/form/data.ts | 4 +- src/views/demo/level/Menu111.vue | 6 +- src/views/demo/level/Menu12.vue | 6 +- src/views/demo/level/Menu2.vue | 6 +- .../demo/page/account/center/Application.vue | 2 +- .../demo/page/account/center/Project.vue | 5 +- src/views/demo/page/account/center/index.vue | 2 +- .../demo/page/account/setting/BaseSetting.vue | 4 +- src/views/demo/page/account/setting/data.ts | 2 +- src/views/demo/page/desc/basic/index.vue | 8 +- src/views/demo/page/desc/high/index.vue | 13 +- src/views/demo/page/form/basic/index.vue | 8 +- src/views/demo/page/form/high/index.vue | 3 +- src/views/demo/page/list/basic/data.ts | 2 +- src/views/demo/page/list/basic/index.vue | 6 +- src/views/demo/page/list/card/index.vue | 2 +- src/views/demo/page/list/search/index.vue | 2 +- src/views/demo/page/result/fail/index.vue | 4 +- .../demo/permission/CurrentPermissionMode.vue | 3 +- src/views/demo/permission/back/Btn.vue | 8 +- src/views/demo/permission/front/Btn.vue | 5 +- src/views/demo/permission/front/index.vue | 6 +- .../demo/system/account/AccountModal.vue | 12 +- src/views/demo/system/account/DeptTree.vue | 5 +- src/views/demo/system/account/data.ts | 1 - src/views/demo/system/account/index.vue | 10 +- src/views/demo/system/dept/index.vue | 2 +- src/views/demo/system/menu/MenuDrawer.vue | 1 - src/views/demo/system/menu/index.vue | 2 +- src/views/demo/system/role/RoleDrawer.vue | 2 +- src/views/demo/table/AuthColumn.vue | 2 +- src/views/demo/table/Basic.vue | 7 +- src/views/demo/table/CustomerCell.vue | 12 +- src/views/demo/table/FixedColumn.vue | 4 +- src/views/demo/tree/ActionTree.vue | 18 +- src/views/demo/tree/EditTree.vue | 40 +- src/views/demo/tree/index.vue | 18 +- src/views/sys/error-log/index.vue | 12 +- src/views/sys/exception/Exception.vue | 12 +- src/views/sys/iframe/index.vue | 1 - src/views/sys/lock/LockPage.vue | 3 +- src/views/sys/login/Login.vue | 41 +- src/views/sys/login/LoginForm.vue | 1 - src/views/sys/login/RegisterForm.vue | 4 +- src/views/sys/login/useLogin.ts | 8 +- 222 files changed, 1186 insertions(+), 1487 deletions(-) diff --git a/index.html b/index.html index f6c72f7d..1d4271c6 100644 --- a/index.html +++ b/index.html @@ -6,8 +6,7 @@ + content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" /> <%= title %> diff --git a/src/App.vue b/src/App.vue index 796a3ac2..5f35f739 100644 --- a/src/App.vue +++ b/src/App.vue @@ -18,7 +18,11 @@ useTitle() if ((process.env.NODE_ENV || '') === 'production') { const { pkg, lastBuildTime } = __APP_INFO__ const { name, version } = pkg - console.info(` %c ${name} %c 版本${version} %c 构建时间${lastBuildTime} `, 'color: #fadfa3; background: #030307; padding:5px 0;', 'color: #fadfa3; background: #4D4A48; padding:5px 0;', 'background: #fadfa3; padding:5px 0;') + console.info( + ` %c ${name} %c 版本${version} %c 构建时间${lastBuildTime} `, + 'color: #fadfa3; background: #030307; padding:5px 0;', + 'color: #fadfa3; background: #4D4A48; padding:5px 0;', + 'background: #fadfa3; padding:5px 0;' + ) } - diff --git a/src/api/demo/system.ts b/src/api/demo/system.ts index dc083dc6..8242b4d4 100644 --- a/src/api/demo/system.ts +++ b/src/api/demo/system.ts @@ -25,11 +25,9 @@ enum Api { export const getAccountList = (params: AccountParams) => defHttp.get({ url: Api.AccountList, params }) -export const getDeptList = (params?: DeptListItem) => - defHttp.get({ url: Api.DeptList, params }) +export const getDeptList = (params?: DeptListItem) => defHttp.get({ url: Api.DeptList, params }) -export const getMenuList = (params?: MenuParams) => - defHttp.get({ url: Api.MenuList, params }) +export const getMenuList = (params?: MenuParams) => defHttp.get({ url: Api.MenuList, params }) export const getRoleListByPage = (params?: RolePageParams) => defHttp.get({ url: Api.RolePageList, params }) diff --git a/src/api/model/baseModel.ts b/src/api/model/baseModel.ts index 3d8b0d74..c2cafd9d 100644 --- a/src/api/model/baseModel.ts +++ b/src/api/model/baseModel.ts @@ -5,6 +5,6 @@ export interface BasicPageParams { export interface BasicFetchResult { items: T[] - page: number, + page: number total: number } diff --git a/src/api/sys/upload.ts b/src/api/sys/upload.ts index c13b3fa6..3f927ab4 100644 --- a/src/api/sys/upload.ts +++ b/src/api/sys/upload.ts @@ -8,10 +8,7 @@ const { uploadUrl = '' } = useGlobSetting() /** * @description: Upload interface */ -export function uploadApi( - params: UploadFileParams, - onUploadProgress?: (progressEvent: ProgressEvent) => void -) { +export function uploadApi(params: UploadFileParams, onUploadProgress?: (progressEvent: ProgressEvent) => void) { return defHttp.uploadFile( { url: uploadUrl, diff --git a/src/components/Application/src/AppProvider.vue b/src/components/Application/src/AppProvider.vue index 5ce1f006..ace097da 100644 --- a/src/components/Application/src/AppProvider.vue +++ b/src/components/Application/src/AppProvider.vue @@ -2,17 +2,9 @@ import { defineComponent, ref, unref } from 'vue' import { createAppProviderContext } from './useAppContext' import { createBreakpointListen } from '@/hooks/event/useBreakpoint' -// import { prefixCls } from '@/settings/designSetting' import { useAppStore } from '@/store/modules/app' import { MenuModeEnum, MenuTypeEnum } from '@/enums/menuEnum' -// const props = { -/** - * class style prefix - */ -// prefixCls: { type: String, default: prefixCls }, -// } - export default defineComponent({ name: 'AppProvider', inheritAttrs: false, @@ -33,11 +25,8 @@ export default defineComponent({ handleRestoreState() }) - // const { prefixCls } = toRefs(props) - // Inject variables into the global createAppProviderContext({ - // prefixCls, isMobile, }) diff --git a/src/components/Basic/src/BasicHelp.vue b/src/components/Basic/src/BasicHelp.vue index 73d19edc..44e189fc 100644 --- a/src/components/Basic/src/BasicHelp.vue +++ b/src/components/Basic/src/BasicHelp.vue @@ -80,10 +80,7 @@ export default defineComponent({ return () => { return ( - + {{ content: () => renderTitle(), default: () => {getSlot(slots) || }, @@ -96,28 +93,28 @@ export default defineComponent({ diff --git a/src/components/Basic/src/BasicTitle.vue b/src/components/Basic/src/BasicTitle.vue index 72511e74..9ec5bc7c 100644 --- a/src/components/Basic/src/BasicTitle.vue +++ b/src/components/Basic/src/BasicTitle.vue @@ -53,7 +53,6 @@ export default defineComponent({ return { prefixCls, getClass } }, }) - diff --git a/src/components/BasicUpload/src/components/FileList.vue b/src/components/BasicUpload/src/components/FileList.vue index 56e32eae..0711fbc3 100644 --- a/src/components/BasicUpload/src/components/FileList.vue +++ b/src/components/BasicUpload/src/components/FileList.vue @@ -84,9 +84,7 @@ export default defineComponent({ const render = typeof customRender === 'function' return ( - {render - ? customRender?.({ text: record[prop], record }) - : record[prop]} + {render ? customRender?.({ text: record[prop], record }) : record[prop]} ) })} diff --git a/src/components/BasicUpload/src/components/PreviewModal.vue b/src/components/BasicUpload/src/components/PreviewModal.vue index f24d8755..f02cdd6d 100644 --- a/src/components/BasicUpload/src/components/PreviewModal.vue +++ b/src/components/BasicUpload/src/components/PreviewModal.vue @@ -36,7 +36,7 @@ export default defineComponent({ setup(_, { emit }) { const fileListRef = ref([]) - const [register, { closeModal }] = useModalInner((data:string[]) => { + const [register, { closeModal }] = useModalInner((data: string[]) => { // 接收 BasicUpload 页面传递过来的 data // Receive the data passed from the BasicUpload page fileListRef.value = data diff --git a/src/components/BasicUpload/src/components/UploadModal.vue b/src/components/BasicUpload/src/components/UploadModal.vue index 36fdfdb3..8029b34b 100644 --- a/src/components/BasicUpload/src/components/UploadModal.vue +++ b/src/components/BasicUpload/src/components/UploadModal.vue @@ -10,7 +10,6 @@ :closeFn="handleCloseFn" :confirm-options="getConfirmProps" :cancel-options="getCancelProps"> - -
+
+ 选择文件 + :disabled="getUploadState">选择文件 +
([]) const { accept, helpText, maxNumber, maxSize } = toRefs(props) - const [register, { closeModal }] = useModalInner((data:string[]) => { + const [register, { closeModal }] = useModalInner((data: string[]) => { // 接收 BasicUpload 页面传递过来的 data // Receive the data passed from the BasicUpload page previewFileList.value = data || [] @@ -97,8 +98,7 @@ export default defineComponent({ */ const getIsSelectFile = computed(() => { return ( - fileListRef.value.length > 0 && - !fileListRef.value.every((item) => item.status === UploadResultStatus.SUCCESS) + fileListRef.value.length > 0 && !fileListRef.value.every((item) => item.status === UploadResultStatus.SUCCESS) ) }) /** @@ -106,10 +106,8 @@ export default defineComponent({ * * Get confirm button configuration */ - const getConfirmProps = computed(():EleButton => { - const someSuccess = fileListRef.value.some( - (item) => item.status === UploadResultStatus.SUCCESS, - ) + const getConfirmProps = computed((): EleButton => { + const someSuccess = fileListRef.value.some((item) => item.status === UploadResultStatus.SUCCESS) return { text: '保存', type: 'primary', @@ -121,7 +119,7 @@ export default defineComponent({ * * Get cancel button configuration */ - const getCancelProps = computed(():EleButton => { + const getCancelProps = computed((): EleButton => { return { text: '关闭', disabled: isUploadingRef.value, @@ -132,8 +130,8 @@ export default defineComponent({ * * Get whether the upload is in progress or the number of uploads exceeds the limit */ - const getUploadState = computed(():boolean => { - return isUploadingRef.value || (fileListRef.value.length + previewFileList.value.length) >= maxNumber.value + const getUploadState = computed((): boolean => { + return isUploadingRef.value || fileListRef.value.length + previewFileList.value.length >= maxNumber.value }) /** * 获取上传按钮文字状态变化 @@ -141,10 +139,8 @@ export default defineComponent({ * Get upload button text state change */ const getUploadBtnText = computed(() => { - const someError = fileListRef.value.some( - (item) => item.status === UploadResultStatus.ERROR, - ) - return isUploadingRef.value ? '上传中' : (someError ? '重新上传失败文件' : '开始上传') + const someError = fileListRef.value.some((item) => item.status === UploadResultStatus.ERROR) + return isUploadingRef.value ? '上传中' : someError ? '重新上传失败文件' : '开始上传' }) /** * 检查文件数量 @@ -152,7 +148,7 @@ export default defineComponent({ * Check the number of files */ function checkFileLimit() { - if ((fileListRef.value.length + previewFileList.value.length) > maxNumber.value) { + if (fileListRef.value.length + previewFileList.value.length > maxNumber.value) { createMessage.warning(`最多只能上传${maxNumber.value}个文件`) return false } @@ -283,12 +279,11 @@ export default defineComponent({ try { isUploadingRef.value = true - const uploadFileList = - fileListRef.value.filter((item) => item.status !== UploadResultStatus.SUCCESS) || [] + const uploadFileList = fileListRef.value.filter((item) => item.status !== UploadResultStatus.SUCCESS) || [] const data = await Promise.all( uploadFileList.map((item) => { return uploadApiByItem(item) - }), + }) ) isUploadingRef.value = false // 筛选未上传成功文件 diff --git a/src/components/BasicUpload/src/data.tsx b/src/components/BasicUpload/src/data.tsx index 3cfa696c..8877c4a4 100644 --- a/src/components/BasicUpload/src/data.tsx +++ b/src/components/BasicUpload/src/data.tsx @@ -86,7 +86,11 @@ export function createActionColumn(handleRemove: Fn): FileBasicColumn { prop: 'action', fixed: false, customRender: ({ record }) => { - return {() => '删除'} + return ( + + {() => '删除'} + + ) }, } } @@ -133,7 +137,16 @@ export function createPreviewActionColumn({ prop: 'action', fixed: false, customRender: ({ record }) => { - return {() => '删除'}{() => '下载'} + return ( + + + {() => '删除'} + + + {() => '下载'} + + + ) }, } } diff --git a/src/components/Button/src/Button.vue b/src/components/Button/src/Button.vue index 91dabc72..c09fdb46 100644 --- a/src/components/Button/src/Button.vue +++ b/src/components/Button/src/Button.vue @@ -79,7 +79,6 @@ $prefix-cls: '#{$tonyname}-basic-button'; > .eleicon { &:first-child { margin-right: 4px; - } &:last-child { diff --git a/src/components/Button/src/props.ts b/src/components/Button/src/props.ts index 1382ba80..00f0c4a7 100644 --- a/src/components/Button/src/props.ts +++ b/src/components/Button/src/props.ts @@ -8,31 +8,31 @@ export const customProps = { */ shadow: { type: Boolean }, /** - * 文本前图标 - * - * Text before icon - */ + * 文本前图标 + * + * Text before icon + */ preIcon: { type: String }, /** - * 文本后图标 - * - * Text after icon - */ + * 文本后图标 + * + * Text after icon + */ sufIcon: { type: String }, /** - * 图标大小 - * - * Icon size - */ + * 图标大小 + * + * Icon size + */ iconSize: { type: Number, default: 14, }, /** - * 点击事件 - * - * Click event - */ + * 点击事件 + * + * Click event + */ onClick: { type: Function as PropType<(...args) => any>, default: null, diff --git a/src/components/CardGrid/src/CardGrid.vue b/src/components/CardGrid/src/CardGrid.vue index 8b6e30d5..7eff66c5 100644 --- a/src/components/CardGrid/src/CardGrid.vue +++ b/src/components/CardGrid/src/CardGrid.vue @@ -1,7 +1,7 @@ diff --git a/src/layouts/default/menu/index.vue b/src/layouts/default/menu/index.vue index f393d141..b6dcbd90 100644 --- a/src/layouts/default/menu/index.vue +++ b/src/layouts/default/menu/index.vue @@ -67,9 +67,9 @@ export default defineComponent({ const getUseScroll = computed(() => { return ( !unref(getIsHorizontal) && - (unref(getIsSidebarType) || - props.splitType === MenuSplitTyeEnum.LEFT || - props.splitType === MenuSplitTyeEnum.NONE) + (unref(getIsSidebarType) || + props.splitType === MenuSplitTyeEnum.LEFT || + props.splitType === MenuSplitTyeEnum.NONE) ) }) @@ -103,9 +103,9 @@ export default defineComponent({ } }) /** - * click menu - * @param menu - */ + * click menu + * @param menu + */ function handleMenuClick(path: string) { go(path) @@ -115,11 +115,7 @@ export default defineComponent({ if (!unref(getIsShowLogo) && !unref(getIsMobile)) return null return ( - + ) } @@ -135,8 +131,7 @@ export default defineComponent({ type={unref(getMenuType)} showLogo={unref(getIsShowLogo)} mode={unref(getComputedMenuMode as any)} - items={menus} - /> + items={menus} /> ) } diff --git a/src/layouts/default/menu/useLayoutMenu.ts b/src/layouts/default/menu/useLayoutMenu.ts index a82ce62b..4198015a 100644 --- a/src/layouts/default/menu/useLayoutMenu.ts +++ b/src/layouts/default/menu/useLayoutMenu.ts @@ -20,13 +20,9 @@ export function useSplitMenu(splitType: Ref) { const throttleHandleSplitLeftMenu = useThrottleFn(handleSplitLeftMenu, 50) - const splitNotLeft = computed( - () => unref(splitType) !== MenuSplitTyeEnum.LEFT && !unref(getIsHorizontal) - ) + const splitNotLeft = computed(() => unref(splitType) !== MenuSplitTyeEnum.LEFT && !unref(getIsHorizontal)) - const getSplitLeft = computed( - () => !unref(getSplit) || unref(splitType) !== MenuSplitTyeEnum.LEFT - ) + const getSplitLeft = computed(() => !unref(getSplit) || unref(splitType) !== MenuSplitTyeEnum.LEFT) const getSpiltTop = computed(() => unref(splitType) === MenuSplitTyeEnum.TOP) diff --git a/src/layouts/default/setting/SettingDrawer.tsx b/src/layouts/default/setting/SettingDrawer.tsx index fd5a7597..12c4a0b6 100644 --- a/src/layouts/default/setting/SettingDrawer.tsx +++ b/src/layouts/default/setting/SettingDrawer.tsx @@ -87,8 +87,7 @@ export default defineComponent({ split: unref(getIsHorizontal) ? false : undefined, }) }} - def={unref(getMenuType)} - /> + def={unref(getMenuType)} /> ) } @@ -98,8 +97,7 @@ export default defineComponent({ + event={HandlerEnum.HEADER_THEME} /> ) } @@ -108,8 +106,7 @@ export default defineComponent({ + event={HandlerEnum.MENU_THEME} /> ) } @@ -118,8 +115,7 @@ export default defineComponent({ + event={HandlerEnum.CHANGE_THEME_COLOR} /> ) } @@ -138,73 +134,62 @@ export default defineComponent({ title={'分割菜单'} event={HandlerEnum.MENU_SPLIT} def={unref(getSplit)} - disabled={!unref(getShowMenuRef) || unref(getMenuType) !== MenuTypeEnum.MIX} - /> + disabled={!unref(getShowMenuRef) || unref(getMenuType) !== MenuTypeEnum.MIX} /> + disabled={!unref(getIsMixSidebar)} /> + disabled={!unref(getIsMixSidebar)} /> + disabled={!unref(getShowMenuRef)} /> + disabled={!unref(getShowMenuRef)} /> + disabled={!unref(getShowHeader)} /> + disabled={!unref(getShowMenuRef)} /> + disabled={!unref(getShowMenuRef) || !unref(getCollapsed) || unref(getIsMixSidebar)} /> + disabled={!unref(getShowHeader)} /> + disabled={!unref(getShowMenuRef) || unref(getIsMixSidebar)} /> + disabled={!unref(getIsMixSidebar)} /> + } /> + disabled={!unref(getShowMenuRef) || unref(getIsMixSidebar)} /> - + options={contentModeOptions} /> + + defaultValue={unref(getMenuWidth)} /> ) } @@ -256,15 +232,13 @@ export default defineComponent({ title={'面包屑'} event={HandlerEnum.SHOW_BREADCRUMB} def={unref(getShowBreadCrumb)} - disabled={!unref(getShowHeader)} - /> + disabled={!unref(getShowHeader)} /> + disabled={!unref(getShowHeader)} /> @@ -272,42 +246,33 @@ export default defineComponent({ title={'标签页刷新按钮'} event={HandlerEnum.TABS_SHOW_REDO} def={unref(getShowRedo)} - disabled={!unref(getShowMultipleTab)} - /> + disabled={!unref(getShowMultipleTab)} /> + disabled={!unref(getShowMultipleTab)} /> + disabled={!unref(getShowMultipleTab)} /> + disabled={unref(getIsHorizontal)} /> + disabled={unref(getIsMixSidebar)} /> - + @@ -319,60 +284,44 @@ export default defineComponent({ function renderTransition() { return ( <> - - + + - + + disabled={!unref(getEnableTransition)} /> ) } return () => ( - + {{ - default: () => (<> - {unref(getShowDarkModeToggle) && {() => '主题'}} - {unref(getShowDarkModeToggle) && } - {() => '导航栏模式'} - {renderSidebar()} - {() => '系统主题'} - {renderMainTheme()} - {() => '顶栏主题'} - {renderHeaderTheme()} - {() => '菜单主题'} - {renderSiderTheme()} - {() => '界面功能'} - {renderFeatures()} - {() => '界面显示'} - {renderContent()} - {() => '动画'} - {renderTransition()} - ), + default: () => ( + <> + {unref(getShowDarkModeToggle) && {() => '主题'}} + {unref(getShowDarkModeToggle) && } + {() => '导航栏模式'} + {renderSidebar()} + {() => '系统主题'} + {renderMainTheme()} + {() => '顶栏主题'} + {renderHeaderTheme()} + {() => '菜单主题'} + {renderSiderTheme()} + {() => '界面功能'} + {renderFeatures()} + {() => '界面显示'} + {renderContent()} + {() => '动画'} + {renderTransition()} + + ), footer: () => , }} diff --git a/src/layouts/default/setting/components/InputNumberItem.vue b/src/layouts/default/setting/components/InputNumberItem.vue index 10c4f85d..1af6e7f5 100644 --- a/src/layouts/default/setting/components/InputNumberItem.vue +++ b/src/layouts/default/setting/components/InputNumberItem.vue @@ -1,11 +1,13 @@ diff --git a/src/layouts/default/setting/components/SelectItem.vue b/src/layouts/default/setting/components/SelectItem.vue index 52460367..651d35aa 100644 --- a/src/layouts/default/setting/components/SelectItem.vue +++ b/src/layouts/default/setting/components/SelectItem.vue @@ -11,7 +11,7 @@ :label="item.label" :value="item.value" :key="index" - v-for="(item,index) in options" /> + v-for="(item, index) in options" />
diff --git a/src/layouts/default/setting/components/SettingFooter.vue b/src/layouts/default/setting/components/SettingFooter.vue index 03e0bce0..3075b87a 100644 --- a/src/layouts/default/setting/components/SettingFooter.vue +++ b/src/layouts/default/setting/components/SettingFooter.vue @@ -3,20 +3,23 @@ - 拷贝 + + 拷贝 - 重置 + + 重置 - 清空缓存并返回登录页 + + 清空缓存并返回登录页 diff --git a/src/layouts/default/setting/components/SwitchItem.vue b/src/layouts/default/setting/components/SwitchItem.vue index 9f9e0cd5..bae03e22 100644 --- a/src/layouts/default/setting/components/SwitchItem.vue +++ b/src/layouts/default/setting/components/SwitchItem.vue @@ -7,8 +7,7 @@ inline-prompt :disabled="disabled" active-text="开" - inactive-text="关" - /> + inactive-text="关" /> diff --git a/src/layouts/default/setting/components/TypePicker.vue b/src/layouts/default/setting/components/TypePicker.vue index 50fc1cc3..ae517154 100644 --- a/src/layouts/default/setting/components/TypePicker.vue +++ b/src/layouts/default/setting/components/TypePicker.vue @@ -41,7 +41,7 @@ export default defineComponent({ }, setup(props) { const { prefixCls } = useDesign('setting-menu-type-picker') - const getItemCls = (type:string) => { + const getItemCls = (type: string) => { return [ `${prefixCls}__item`, `${prefixCls}__item--${type}`, diff --git a/src/layouts/default/setting/index.vue b/src/layouts/default/setting/index.vue index 5273f7cf..b7bd064b 100644 --- a/src/layouts/default/setting/index.vue +++ b/src/layouts/default/setting/index.vue @@ -1,7 +1,7 @@ diff --git a/src/logics/initAppConfig.ts b/src/logics/initAppConfig.ts index 8e5c5c10..db6e7f94 100644 --- a/src/logics/initAppConfig.ts +++ b/src/logics/initAppConfig.ts @@ -34,13 +34,7 @@ export function initAppConfigStore() { let projCfg: ProjectConfig = Persistent.getLocal(PROJ_CFG_KEY) as ProjectConfig projCfg = deepMerge(projectSetting, projCfg || {}) - const { - colorWeak, - grayMode, - themeColor, - headerSetting, - menuSetting, - } = projCfg + const { colorWeak, grayMode, themeColor, headerSetting, menuSetting } = projCfg updateDarkTheme(darkMode) diff --git a/src/logics/mitt/routeChange.ts b/src/logics/mitt/routeChange.ts index f1348746..c16cf502 100644 --- a/src/logics/mitt/routeChange.ts +++ b/src/logics/mitt/routeChange.ts @@ -18,10 +18,7 @@ export function setRouteChange(lastChangeRoute: RouteLocationNormalized) { lastChangeTab = r } -export function listenerRouteChange( - callback: (route: RouteLocationNormalized) => void, - immediate = true -) { +export function listenerRouteChange(callback: (route: RouteLocationNormalized) => void, immediate = true) { emitter.on(key, callback) immediate && lastChangeTab && callback(lastChangeTab) } diff --git a/src/logics/theme/updateBackground.ts b/src/logics/theme/updateBackground.ts index 5be0450b..537a4e90 100644 --- a/src/logics/theme/updateBackground.ts +++ b/src/logics/theme/updateBackground.ts @@ -41,7 +41,7 @@ export function updateHeaderBgColor(color?: string) { appStore.setProjectConfig({ headerSetting: { - theme: (isDark || darkMode) ? ThemeEnum.DARK : ThemeEnum.LIGHT, + theme: isDark || darkMode ? ThemeEnum.DARK : ThemeEnum.LIGHT, }, }) } @@ -85,7 +85,7 @@ export function updateSidebarBgColor(color?: string) { * Dynamically generate text color * @param color */ -function dyncGenerateColor(color?:string) { +function dyncGenerateColor(color?: string) { const isDark = colorIsDark(color) return { diff --git a/src/router/routes/index.ts b/src/router/routes/index.ts index 77b3ee64..1d878bc3 100644 --- a/src/router/routes/index.ts +++ b/src/router/routes/index.ts @@ -36,10 +36,4 @@ export const LoginRoute: AppRouteRecordRaw = { } // Basic routing without permission -export const basicRoutes = [ - LoginRoute, - RootRoute, - ...mainOutRoutes, - REDIRECT_ROUTE, - PAGE_NOT_FOUND_ROUTE, -] +export const basicRoutes = [LoginRoute, RootRoute, ...mainOutRoutes, REDIRECT_ROUTE, PAGE_NOT_FOUND_ROUTE] diff --git a/src/settings/componentSetting.ts b/src/settings/componentSetting.ts index a0e42b11..eb30c220 100644 --- a/src/settings/componentSetting.ts +++ b/src/settings/componentSetting.ts @@ -108,9 +108,9 @@ export default { */ defaultItemGutter: 16, /** - * 行的列数,一般不需要修改 - * The number of columns in the row, generally do not need to be modified - */ + * 行的列数,一般不需要修改 + * The number of columns in the row, generally do not need to be modified + */ fullColumnSize: 24, }, /** diff --git a/src/store/modules/app.ts b/src/store/modules/app.ts index 3348b1e3..c928064f 100644 --- a/src/store/modules/app.ts +++ b/src/store/modules/app.ts @@ -1,10 +1,4 @@ -import type { - ProjectConfig, - HeaderSetting, - MenuSetting, - TransitionSetting, - MultiTabsSetting -} from '#/config' +import type { ProjectConfig, HeaderSetting, MenuSetting, TransitionSetting, MultiTabsSetting } from '#/config' import type { BeforeMiniState } from '#/store' import { defineStore } from 'pinia' diff --git a/src/store/modules/errorLog.ts b/src/store/modules/errorLog.ts index dff4f344..3f1c3085 100644 --- a/src/store/modules/errorLog.ts +++ b/src/store/modules/errorLog.ts @@ -56,10 +56,7 @@ export const useErrorLogStore = defineStore({ type: ErrorTypeEnum.AJAX, } if (error.response) { - const { - config: { url = '', data: params = '', method = 'get', headers = {} } = {}, - data = {}, - } = error.response + const { config: { url = '', data: params = '', method = 'get', headers = {} } = {}, data = {} } = error.response errInfo.url = url errInfo.name = 'Ajax Error!' errInfo.file = '-' diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 8cba2ea2..3d881510 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -160,7 +160,7 @@ export const useUserStore = defineStore({ iconType: 'warning', title: '温馨提醒', content: '是否确认退出系统?', - }).then(k => { + }).then((k) => { if (k === 'confirm') { this.logout(true) } diff --git a/src/utils/color.ts b/src/utils/color.ts index 41c88c22..de905ab9 100644 --- a/src/utils/color.ts +++ b/src/utils/color.ts @@ -82,10 +82,10 @@ export function darken(color: string, amount: number) { export function lighten(color: string, amount: number) { color = color.indexOf('#') >= 0 ? color.substring(1, color.length) : color amount = Math.trunc((255 * amount) / 100) - return `#${addLight(color.substring(0, 2), amount)}${addLight( - color.substring(2, 4), + return `#${addLight(color.substring(0, 2), amount)}${addLight(color.substring(2, 4), amount)}${addLight( + color.substring(4, 6), amount - )}${addLight(color.substring(4, 6), amount)}` + )}` } /* Suma el porcentaje indicado a un color (RR, GG o BB) hexadecimal para aclararlo */ @@ -121,10 +121,7 @@ function luminanace(r: number, g: number, b: number) { * @param rgb2 rgb color 2 */ function contrast(rgb1: string[], rgb2: number[]) { - return ( - (luminanace(~~rgb1[0], ~~rgb1[1], ~~rgb1[2]) + 0.05) / - (luminanace(rgb2[0], rgb2[1], rgb2[2]) + 0.05) - ) + return (luminanace(~~rgb1[0], ~~rgb1[1], ~~rgb1[2]) + 0.05) / (luminanace(rgb2[0], rgb2[1], rgb2[2]) + 0.05) } /** diff --git a/src/utils/dateUtil.ts b/src/utils/dateUtil.ts index 66c0382f..d0b94a51 100644 --- a/src/utils/dateUtil.ts +++ b/src/utils/dateUtil.ts @@ -6,10 +6,7 @@ import dayjs from 'dayjs' const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm' const DATE_FORMAT = 'YYYY-MM-DD ' -export function formatToDateTime( - date: dayjs.ConfigType = undefined, - format = DATE_TIME_FORMAT -): string { +export function formatToDateTime(date: dayjs.ConfigType = undefined, format = DATE_TIME_FORMAT): string { return dayjs(date).format(format) } diff --git a/src/utils/demo/index.ts b/src/utils/demo/index.ts index cf00f86e..22699936 100644 --- a/src/utils/demo/index.ts +++ b/src/utils/demo/index.ts @@ -1,10 +1,11 @@ export function randomNumber( minNum, - maxNum:number|undefined = undefined, - decimalNum:number|undefined = undefined + maxNum: number | undefined = undefined, + decimalNum: number | undefined = undefined ): number { - let max = 0; let min = 0 - minNum <= maxNum ? (min = minNum, max = maxNum) : (min = maxNum, max = minNum) + let max = 0 + let min = 0 + minNum <= maxNum ? ((min = minNum), (max = maxNum)) : ((min = maxNum), (max = minNum)) switch (arguments.length) { case 1: return Math.floor(Math.random() * (max + 1)) @@ -17,7 +18,7 @@ export function randomNumber( } } -export function getRandomNumberData(len:number): number[] { +export function getRandomNumberData(len: number): number[] { return Array(...Array(len)).map(() => randomNumber(1, 1e5)) } diff --git a/src/utils/domUtils.ts b/src/utils/domUtils.ts index 3e04dafe..8b1d9fed 100644 --- a/src/utils/domUtils.ts +++ b/src/utils/domUtils.ts @@ -139,11 +139,7 @@ export function on( } } -export function off( - element: Element | HTMLElement | Document | Window, - event: string, - handler: Fn -): void { +export function off(element: Element | HTMLElement | Document | Window, event: string, handler: Fn): void { if (element && event && handler) { element.removeEventListener(event, handler, false) } diff --git a/src/utils/file/download.ts b/src/utils/file/download.ts index b3793ea5..2a373c65 100644 --- a/src/utils/file/download.ts +++ b/src/utils/file/download.ts @@ -69,7 +69,7 @@ export function downloadByData(data: BlobPart, filename: string, mime?: string, * @param target "_self" | "_blank" * @returns */ -export function downloadByUrl(url:string, fileName?: string, target?:TargetContext = '_blank'): boolean { +export function downloadByUrl(url: string, fileName?: string, target?: TargetContext = '_blank'): boolean { const isChrome = window.navigator.userAgent.toLowerCase().indexOf('chrome') > -1 const isSafari = window.navigator.userAgent.toLowerCase().indexOf('safari') > -1 diff --git a/src/utils/helper/treeHelper.ts b/src/utils/helper/treeHelper.ts index 331fe13b..a0103667 100644 --- a/src/utils/helper/treeHelper.ts +++ b/src/utils/helper/treeHelper.ts @@ -40,11 +40,7 @@ export function treeToList(tree: any, config: Partial return result } -export function findNode( - tree: any, - func: Fn, - config: Partial = {} -): T | null { +export function findNode(tree: any, func: Fn, config: Partial = {}): T | null { config = getConfig(config) const { children } = config const list = [...tree] @@ -55,11 +51,7 @@ export function findNode( return null } -export function findNodeAll( - tree: any, - func: Fn, - config: Partial = {} -): T[] { +export function findNodeAll(tree: any, func: Fn, config: Partial = {}): T[] { config = getConfig(config) const { children } = config const list = [...tree] @@ -71,11 +63,7 @@ export function findNodeAll( return result } -export function findPath( - tree: any, - func: Fn, - config: Partial = {} -): T | T[] | null { +export function findPath(tree: any, func: Fn, config: Partial = {}): T | T[] | null { config = getConfig(config) const path: T[] = [] const list = [...tree] @@ -120,11 +108,7 @@ export function findPathAll(tree: any, func: Fn, config: Partial( - tree: T[], - func: (n: T) => boolean, - config: Partial = {} -): T[] { +export function filter(tree: T[], func: (n: T) => boolean, config: Partial = {}): T[] { config = getConfig(config) const children = config.children as string function listFilter(list: T[]) { @@ -138,11 +122,7 @@ export function filter( return listFilter(tree) } -export function forEach( - tree: T[], - func: (n: T) => any, - config: Partial = {} -): void { +export function forEach(tree: T[], func: (n: T) => any, config: Partial = {}): void { config = getConfig(config) const list: any[] = [...tree] const { children } = config @@ -165,10 +145,7 @@ export function treeMap(treeData: T[], opt: { children?: string; conver /** * @description: Extract tree specified structure */ -export function treeMapEach( - data: any, - { children = 'children', conversion }: { children?: string; conversion: Fn } -) { +export function treeMapEach(data: any, { children = 'children', conversion }: { children?: string; conversion: Fn }) { const haveChildren = Array.isArray(data[children]) && data[children].length > 0 const conversionData = conversion(data) || {} if (haveChildren) { diff --git a/src/utils/http/axios/Axios.ts b/src/utils/http/axios/Axios.ts index 1de7654e..d6eadbc3 100644 --- a/src/utils/http/axios/Axios.ts +++ b/src/utils/http/axios/Axios.ts @@ -68,12 +68,7 @@ export class VAxios { if (!transform) { return } - const { - requestInterceptors, - requestInterceptorsCatch, - responseInterceptors, - responseInterceptorsCatch, - } = transform + const { requestInterceptors, requestInterceptorsCatch, responseInterceptors, responseInterceptorsCatch } = transform const axiosCanceler = new AxiosCanceler() @@ -85,9 +80,7 @@ export class VAxios { } = config const ignoreCancel = - ignoreCancelToken !== undefined - ? ignoreCancelToken - : this.options.requestOptions?.ignoreCancelToken + ignoreCancelToken !== undefined ? ignoreCancelToken : this.options.requestOptions?.ignoreCancelToken !ignoreCancel && axiosCanceler.addPending(config) if (requestInterceptors && isFunction(requestInterceptors)) { diff --git a/src/utils/http/axios/axiosTransform.ts b/src/utils/http/axios/axiosTransform.ts index be2a4d52..375eb6fb 100644 --- a/src/utils/http/axios/axiosTransform.ts +++ b/src/utils/http/axios/axiosTransform.ts @@ -30,10 +30,7 @@ export abstract class AxiosTransform { /** * @description: 请求之前的拦截器 */ - requestInterceptors?: ( - config: AxiosRequestConfig, - options: CreateAxiosOptions - ) => AxiosRequestConfig + requestInterceptors?: (config: AxiosRequestConfig, options: CreateAxiosOptions) => AxiosRequestConfig /** * @description: 请求之后的拦截器 diff --git a/src/utils/http/axios/checkStatus.ts b/src/utils/http/axios/checkStatus.ts index b012ab65..1f2f9650 100644 --- a/src/utils/http/axios/checkStatus.ts +++ b/src/utils/http/axios/checkStatus.ts @@ -10,11 +10,7 @@ const { createMessage, createErrorModal } = useMessage() const error = createMessage.error! const stp = projectSetting.sessionTimeoutProcessing -export function checkStatus( - status: number, - msg: string, - errorMessageMode: ErrorMessageMode = 'message' -): void { +export function checkStatus(status: number, msg: string, errorMessageMode: ErrorMessageMode = 'message'): void { const userStore = useUserStoreWithOut() let errMessage = '' diff --git a/src/utils/http/axios/index.ts b/src/utils/http/axios/index.ts index e61505cf..49133199 100644 --- a/src/utils/http/axios/index.ts +++ b/src/utils/http/axios/index.ts @@ -116,10 +116,7 @@ const transform: AxiosTransform = { config.params = undefined } if (joinParamsToUrl) { - config.url = setObjToUrlParams( - config.url as string, - Object.assign({}, config.params, config.data) - ) + config.url = setObjToUrlParams(config.url as string, Object.assign({}, config.params, config.data)) } } else { // 兼容restful风格 @@ -138,9 +135,7 @@ const transform: AxiosTransform = { const token = getToken() if (token && (config as Recordable)?.requestOptions?.withToken !== false) { // jwt token - config.headers.Authorization = options.authenticationScheme - ? `${options.authenticationScheme} ${token}` - : token + config.headers.Authorization = options.authenticationScheme ? `${options.authenticationScheme} ${token}` : token } return config }, diff --git a/src/utils/index.ts b/src/utils/index.ts index 743456fa..217a7ecd 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -86,10 +86,7 @@ export function getRawRoute(route: RouteLocationNormalized): RouteLocationNormal * @param main component * @param extra alias */ -export const withInstall = >( - main: T, - extra?: E -) => { +export const withInstall = >(main: T, extra?: E) => { (main as SFCWithInstall).install = (app): void => { for (const comp of [main, ...Object.values(extra ?? {})]) { app.component(comp.name, comp) @@ -161,7 +158,7 @@ export function buildUUID(): string { * @param instanceRef Ref * @param name instance name */ -export function getUseInstance(instanceRef: Ref | null, name:string): T | null { +export function getUseInstance(instanceRef: Ref | null, name: string): T | null { const instance = unref(instanceRef) if (!instance) { error( diff --git a/src/utils/validators.ts b/src/utils/validators.ts index a57b2068..3749f542 100644 --- a/src/utils/validators.ts +++ b/src/utils/validators.ts @@ -4,25 +4,10 @@ export const isValidWidthUnit = (val: string | number): boolean => { if (isNumber(val)) { return true } - return ( - ['px', 'rem', 'em', 'vw', '%', 'vmin', 'vmax'].some((unit) => - val.endsWith(unit) - ) || val.startsWith('calc') - ) + return ['px', 'rem', 'em', 'vw', '%', 'vmin', 'vmax'].some((unit) => val.endsWith(unit)) || val.startsWith('calc') } -export const isValidComponentSize = (val: string) => - ['', 'large', 'default', 'small'].includes(val) +export const isValidComponentSize = (val: string) => ['', 'large', 'default', 'small'].includes(val) export const isValidDatePickType = (val: string) => - [ - 'year', - 'month', - 'date', - 'dates', - 'week', - 'datetime', - 'datetimerange', - 'daterange', - 'monthrange', - ].includes(val) + ['year', 'month', 'date', 'dates', 'week', 'datetime', 'datetimerange', 'daterange', 'monthrange'].includes(val) diff --git a/src/views/dashboard/analysis/components/OrderAnalysis.vue b/src/views/dashboard/analysis/components/OrderAnalysis.vue index 13e3905b..9d991454 100644 --- a/src/views/dashboard/analysis/components/OrderAnalysis.vue +++ b/src/views/dashboard/analysis/components/OrderAnalysis.vue @@ -16,11 +16,14 @@ export default defineComponent({ const chartRef = ref(null) const { setOptions } = useECharts(chartRef as Ref) - watch(() => props.type, (v) => { - if (v) { - initChart() + watch( + () => props.type, + (v) => { + if (v) { + initChart() + } } - }) + ) const initChart = () => { const data = computed(() => { @@ -28,7 +31,7 @@ export default defineComponent({ return getDateData(type) }) - const gaugeData = data.value.vdata.map(k => { + const gaugeData = data.value.vdata.map((k) => { k.value = k.value.toString().substring(0, 2) return k }) @@ -93,5 +96,4 @@ export default defineComponent({ } }, }) - diff --git a/src/views/dashboard/analysis/components/OrderAnalysisBar.vue b/src/views/dashboard/analysis/components/OrderAnalysisBar.vue index 6ec5ab0a..73196246 100644 --- a/src/views/dashboard/analysis/components/OrderAnalysisBar.vue +++ b/src/views/dashboard/analysis/components/OrderAnalysisBar.vue @@ -16,11 +16,14 @@ export default defineComponent({ const chartRef = ref(null) const { setOptions } = useECharts(chartRef as Ref) - watch(() => props.type, (v) => { - if (v) { - initChart() + watch( + () => props.type, + (v) => { + if (v) { + initChart() + } } - }) + ) const initChart = () => { const data = computed(() => { diff --git a/src/views/dashboard/analysis/components/VisitAnalysis.vue b/src/views/dashboard/analysis/components/VisitAnalysis.vue index 4815aa2e..a8327c65 100644 --- a/src/views/dashboard/analysis/components/VisitAnalysis.vue +++ b/src/views/dashboard/analysis/components/VisitAnalysis.vue @@ -16,11 +16,14 @@ export default defineComponent({ const chartRef = ref(null) const { setOptions, echarts } = useECharts(chartRef as Ref) - watch(() => props.type, (v) => { - if (v) { - initChart() + watch( + () => props.type, + (v) => { + if (v) { + initChart() + } } - }) + ) const initChart = () => { const data = computed(() => { @@ -73,186 +76,201 @@ export default defineComponent({ extraCssText: 'box-shadow: 1px 0 2px 0 rgba(163,163,163,0.5)', }, grid: { left: '1%', right: '1%', top: '10%', bottom: 0, containLabel: true }, - xAxis: [{ - type: 'category', - data: data.value.xdata, - axisLine: { - lineStyle: { - color: '#DCE2E8', + xAxis: [ + { + type: 'category', + data: data.value.xdata, + axisLine: { + lineStyle: { + color: '#DCE2E8', + }, }, - }, - axisTick: { - show: false, - }, - axisLabel: { - interval: 0, - // textStyle: { - color: '#556677', - // }, - fontSize: 12, - margin: 15, - }, - axisPointer: { - label: { - padding: [0, 0, 10, 0], - margin: 15, + axisTick: { + show: false, + }, + axisLabel: { + interval: 0, + // textStyle: { + color: '#556677', + // }, fontSize: 12, - backgroundColor: { - type: 'linear', - x: 0, - y: 0, - x2: 0, - y2: 1, - colorStops: [{ - offset: 0, - color: '#fff', - }, { - offset: 0.86, - color: '#fff', - }, { - offset: 0.86, - color: '#33c0cd', - }, { - offset: 1, - color: '#33c0cd', - }], - global: false, + margin: 15, + }, + axisPointer: { + label: { + padding: [0, 0, 10, 0], + margin: 15, + fontSize: 12, + backgroundColor: { + type: 'linear', + x: 0, + y: 0, + x2: 0, + y2: 1, + colorStops: [ + { + offset: 0, + color: '#fff', + }, + { + offset: 0.86, + color: '#fff', + }, + { + offset: 0.86, + color: '#33c0cd', + }, + { + offset: 1, + color: '#33c0cd', + }, + ], + global: false, + }, }, }, + boundaryGap: false, }, - boundaryGap: false, - }], - yAxis: [{ - type: 'value', - axisTick: { - show: false, - }, - axisLine: { - show: true, - lineStyle: { - color: '#DCE2E8', + ], + yAxis: [ + { + type: 'value', + axisTick: { + show: false, }, - }, - axisLabel: { - // textStyle: { - color: '#556677', - // }, - }, - splitLine: { - show: false, - }, - }, { - type: 'value', - position: 'right', - axisTick: { - show: false, - }, - axisLabel: { - // textStyle: { - color: '#556677', - // }, - formatter: '{value}', - }, - axisLine: { - show: true, - lineStyle: { - color: '#DCE2E8', + axisLine: { + show: true, + lineStyle: { + color: '#DCE2E8', + }, }, - }, - splitLine: { - show: false, - }, - }], - series: [{ - name: 'K1', - type: 'line', - data: data.value.kdata.k1, - symbolSize: 1, - symbol: 'circle', - smooth: true, - yAxisIndex: 0, - showSymbol: false, - lineStyle: { - width: 5, - color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{ - offset: 0, - color: '#9effff', + axisLabel: { + // textStyle: { + color: '#556677', + // }, }, - { - offset: 1, - color: '#9E87FF', + splitLine: { + show: false, }, - ]), - shadowColor: 'rgba(158,135,255, 0.3)', - shadowBlur: 10, - shadowOffsetY: 20, }, - // itemStyle: { - // normal: { - // color: colorList[0], - // borderColor: colorList[0], - // }, - // }, - }, { - name: 'K2', - type: 'line', - data: data.value.kdata.k2, - symbolSize: 1, - symbol: 'circle', - smooth: true, - yAxisIndex: 0, - showSymbol: false, - lineStyle: { - width: 5, - color: new echarts.graphic.LinearGradient(1, 1, 0, 0, [{ - offset: 0, - color: '#73DD39', + { + type: 'value', + position: 'right', + axisTick: { + show: false, }, - { - offset: 1, - color: '#73DDFF', + axisLabel: { + // textStyle: { + color: '#556677', + // }, + formatter: '{value}', + }, + axisLine: { + show: true, + lineStyle: { + color: '#DCE2E8', + }, + }, + splitLine: { + show: false, }, - ]), - shadowColor: 'rgba(115,221,255, 0.3)', - shadowBlur: 10, - shadowOffsetY: 20, }, - // itemStyle: { - // normal: { - // color: colorList[1], - // borderColor: colorList[1], - // }, - // }, - }, - { - name: 'K3', - type: 'line', - data: data.value.kdata.k3, - symbolSize: 1, - yAxisIndex: 1, - symbol: 'circle', - smooth: true, - showSymbol: false, - lineStyle: { - width: 5, - color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ - offset: 0, - color: '#fe9a', + ], + series: [ + { + name: 'K1', + type: 'line', + data: data.value.kdata.k1, + symbolSize: 1, + symbol: 'circle', + smooth: true, + yAxisIndex: 0, + showSymbol: false, + lineStyle: { + width: 5, + color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [ + { + offset: 0, + color: '#9effff', + }, + { + offset: 1, + color: '#9E87FF', + }, + ]), + shadowColor: 'rgba(158,135,255, 0.3)', + shadowBlur: 10, + shadowOffsetY: 20, + }, + // itemStyle: { + // normal: { + // color: colorList[0], + // borderColor: colorList[0], + // }, + // }, + }, + { + name: 'K2', + type: 'line', + data: data.value.kdata.k2, + symbolSize: 1, + symbol: 'circle', + smooth: true, + yAxisIndex: 0, + showSymbol: false, + lineStyle: { + width: 5, + color: new echarts.graphic.LinearGradient(1, 1, 0, 0, [ + { + offset: 0, + color: '#73DD39', + }, + { + offset: 1, + color: '#73DDFF', + }, + ]), + shadowColor: 'rgba(115,221,255, 0.3)', + shadowBlur: 10, + shadowOffsetY: 20, }, - { - offset: 1, - color: '#fe9a8b', + // itemStyle: { + // normal: { + // color: colorList[1], + // borderColor: colorList[1], + // }, + // }, + }, + { + name: 'K3', + type: 'line', + data: data.value.kdata.k3, + symbolSize: 1, + yAxisIndex: 1, + symbol: 'circle', + smooth: true, + showSymbol: false, + lineStyle: { + width: 5, + color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [ + { + offset: 0, + color: '#fe9a', + }, + { + offset: 1, + color: '#fe9a8b', + }, + ]), + shadowColor: 'rgba(254,154,139, 0.3)', + shadowBlur: 10, + shadowOffsetY: 20, }, - ]), - shadowColor: 'rgba(254,154,139, 0.3)', - shadowBlur: 10, - shadowOffsetY: 20, + // itemStyle: { + // color: colorList[2], + // borderColor: colorList[2], + // }, }, - // itemStyle: { - // color: colorList[2], - // borderColor: colorList[2], - // }, - }, ], }) @@ -318,5 +336,4 @@ export default defineComponent({ } }, }) - diff --git a/src/views/dashboard/analysis/components/VisitAnalysisPie.vue b/src/views/dashboard/analysis/components/VisitAnalysisPie.vue index 3fb49d2e..04a3c272 100644 --- a/src/views/dashboard/analysis/components/VisitAnalysisPie.vue +++ b/src/views/dashboard/analysis/components/VisitAnalysisPie.vue @@ -16,11 +16,14 @@ export default defineComponent({ const chartRef = ref(null) const { setOptions } = useECharts(chartRef as Ref) - watch(() => props.type, (v) => { - if (v) { - initChart() + watch( + () => props.type, + (v) => { + if (v) { + initChart() + } } - }) + ) const initChart = () => { const data = computed(() => { @@ -88,5 +91,4 @@ export default defineComponent({ } }, }) - diff --git a/src/views/dashboard/analysis/components/anaCard.vue b/src/views/dashboard/analysis/components/anaCard.vue index 59ded826..5b0e59cf 100644 --- a/src/views/dashboard/analysis/components/anaCard.vue +++ b/src/views/dashboard/analysis/components/anaCard.vue @@ -6,19 +6,18 @@ v-for="item in CardList" :key="item.title"> - +
{{ item.title }}
{{ item.subject }}
+ :class="[{ 'is-down': item.scale < 0, 'is-up': item.scale > 0 }]"> {{ item.value }} + :name="item.scale > 0 ? 'rise' : item.scale < 0 ? 'fall' : 'line'" /> {{ Math.abs(item.scale) }}%
@@ -27,13 +26,16 @@ type="circle" :percentage="item.mix" :width="112" - :circlePathStyle="[{color:'#f00'}]" + :circlePathStyle="[{ color: '#f00' }]" :stroke-width="5" indeterminate :color="getBarColor(item.mix)"> @@ -59,7 +61,7 @@ defineProps({ }, }) -function getBarColor(v:number) { +function getBarColor(v: number) { if (v < 30) { return '#09B66D' } else if (v < 70) { @@ -108,21 +110,21 @@ function getBarColor(v:number) { } &.is-up { - >.t2 { + > .t2 { color: var(--green-color); } - >.t3 { + > .t3 { background: var(--green-color); } } &.is-down { - >.t2 { + > .t2 { color: var(--red-color-2); } - >.t3 { + > .t3 { background: var(--red-color-2); } } @@ -168,7 +170,6 @@ function getBarColor(v:number) { font-weight: lighter; } } - } } } diff --git a/src/views/dashboard/analysis/components/anaOrder.vue b/src/views/dashboard/analysis/components/anaOrder.vue index 3ee6252f..e09a83cc 100644 --- a/src/views/dashboard/analysis/components/anaOrder.vue +++ b/src/views/dashboard/analysis/components/anaOrder.vue @@ -11,8 +11,7 @@ + range-separator="~" /> @@ -20,8 +19,7 @@ v-for="item in dateOptions" :key="item.value" :label="item.label" - :value="item.value" - /> + :value="item.value" />
@@ -66,7 +64,8 @@ export default defineComponent({ { value: 'year', label: 'Year' }, ]) - watch(() => unref(dateType), + watch( + () => unref(dateType), (v) => { emit('dateType', v) } @@ -79,7 +78,6 @@ export default defineComponent({ } }, }) - diff --git a/src/views/demo/comp/modal/Modal2.vue b/src/views/demo/comp/modal/Modal2.vue index 74880616..e5153e1d 100644 --- a/src/views/demo/comp/modal/Modal2.vue +++ b/src/views/demo/comp/modal/Modal2.vue @@ -6,10 +6,10 @@ 从内部关闭弹窗 + class="mr-2">从内部关闭弹窗 从内部修改title + @click="setModalProps">从内部修改title diff --git a/src/views/demo/comp/modal/Modal3.vue b/src/views/demo/comp/modal/Modal3.vue index 3ca3d337..a273fb06 100644 --- a/src/views/demo/comp/modal/Modal3.vue +++ b/src/views/demo/comp/modal/Modal3.vue @@ -2,7 +2,6 @@

打开弹窗 + @click="openModalLoading">打开弹窗 打开消息弹窗 + @click="openMsgPopup()">打开消息弹窗 打开弹窗 + @click="openModal2()">打开弹窗 打开弹窗 + @click="openModal3()">打开弹窗 打开弹窗并传递数据 + @click="send">打开弹窗并传递数据 - @@ -81,11 +80,13 @@ export default defineComponent({ } function openMsgPopup() { - createConfirm({ title: '是否删除?', content: '注意:删除后将无法找回内容!', type: 'warning' }).then((act) => { - createMessage.success('点击了 ' + act) - }).catch((act) => { - createMessage.info('点击了 ' + act) - }) + createConfirm({ title: '是否删除?', content: '注意:删除后将无法找回内容!', type: 'warning' }) + .then((act) => { + createMessage.success('点击了 ' + act) + }) + .catch((act) => { + createMessage.info('点击了 ' + act) + }) } return { diff --git a/src/views/demo/comp/scroll/Action.vue b/src/views/demo/comp/scroll/Action.vue index 89c05b14..a4be98d7 100644 --- a/src/views/demo/comp/scroll/Action.vue +++ b/src/views/demo/comp/scroll/Action.vue @@ -12,7 +12,7 @@ ref="scrollRef">

  • {{ k }}
diff --git a/src/views/demo/comp/scroll/VirtualScroll.vue b/src/views/demo/comp/scroll/VirtualScroll.vue index d4b8bdd2..2882afff 100644 --- a/src/views/demo/comp/scroll/VirtualScroll.vue +++ b/src/views/demo/comp/scroll/VirtualScroll.vue @@ -6,10 +6,8 @@ :itemHeight="60" :listData="data" :height="300"> - @@ -38,7 +39,7 @@ import { ZoomFadeTransition, ZoomOutTransition, ExpandTransition, - ExpandXTransition, + ExpandXTransition } from '@/components/Transition' export default defineComponent({ diff --git a/src/views/demo/comp/upload/index.vue b/src/views/demo/comp/upload/index.vue index 7e590619..ed8ede74 100644 --- a/src/views/demo/comp/upload/index.vue +++ b/src/views/demo/comp/upload/index.vue @@ -9,7 +9,7 @@ :maxSize="5" :maxNumber="3" @delete="handleDelete" - :accept="['png','jpg','jpeg','webp','svg']" /> + :accept="['png', 'jpg', 'jpeg', 'webp', 'svg']" /> + :accept="['png', 'jpg', 'jpeg', 'webp', 'svg']" /> diff --git a/src/views/demo/comp/verify/index.vue b/src/views/demo/comp/verify/index.vue index d4466d5b..47f94aba 100644 --- a/src/views/demo/comp/verify/index.vue +++ b/src/views/demo/comp/verify/index.vue @@ -6,7 +6,7 @@ isSlot :modelValue="verifyState" @end="handleCustomSuccess" /> - 还原 + 还原
diff --git a/src/views/demo/feat/breadcrumb/FlatList.vue b/src/views/demo/feat/breadcrumb/FlatList.vue index e6e8ca48..315b3b8d 100644 --- a/src/views/demo/feat/breadcrumb/FlatList.vue +++ b/src/views/demo/feat/breadcrumb/FlatList.vue @@ -2,7 +2,7 @@ - 进入平级详情页 >> + 进入平级详情页 >> diff --git a/src/views/demo/feat/download/index.vue b/src/views/demo/feat/download/index.vue index d2791277..7f6f321f 100644 --- a/src/views/demo/feat/download/index.vue +++ b/src/views/demo/feat/download/index.vue @@ -39,11 +39,7 @@ export default defineComponent({ downloadByData('text content', 'testName.txt') } function handleDownloadByUrl() { - downloadByUrl( - 'https://www.7-zip.org/a/7z2107-x64.exe', - '7z2107-x64.exe', - '_self', - ) + downloadByUrl('https://www.7-zip.org/a/7z2107-x64.exe', '7z2107-x64.exe', '_self') } function handleDownloadByBase64() { diff --git a/src/views/demo/feat/icon/index.vue b/src/views/demo/feat/icon/index.vue index a9512c35..d77b6692 100644 --- a/src/views/demo/feat/icon/index.vue +++ b/src/views/demo/feat/icon/index.vue @@ -87,8 +87,7 @@ export default defineComponent({ SvgIcon, }, setup() { - return { - } + return {} }, }) diff --git a/src/views/demo/feat/session-timeout/index.vue b/src/views/demo/feat/session-timeout/index.vue index 1072b447..e7480458 100644 --- a/src/views/demo/feat/session-timeout/index.vue +++ b/src/views/demo/feat/session-timeout/index.vue @@ -4,7 +4,11 @@ description="用户登录过期示例,不再跳转登录页,直接生成页面覆盖当前页面,方便保持过期前的用户状态!"> - Current Param : {{ params }} - + description="支持带参数多tab缓存">Current Param : {{ params }} diff --git a/src/views/demo/level/Menu12.vue b/src/views/demo/level/Menu12.vue index b5ea0bda..27d67f82 100644 --- a/src/views/demo/level/Menu12.vue +++ b/src/views/demo/level/Menu12.vue @@ -1,10 +1,8 @@ diff --git a/src/views/demo/level/Menu2.vue b/src/views/demo/level/Menu2.vue index 2f0bbf3a..cd27b527 100644 --- a/src/views/demo/level/Menu2.vue +++ b/src/views/demo/level/Menu2.vue @@ -1,13 +1,11 @@ diff --git a/src/views/demo/page/account/center/Application.vue b/src/views/demo/page/account/center/Application.vue index 94428bab..adb05898 100644 --- a/src/views/demo/page/account/center/Application.vue +++ b/src/views/demo/page/account/center/Application.vue @@ -8,7 +8,7 @@ + :bodyStyle="{ padding: 0 }">
- + :bodyStyle="{ padding: 0 }">
+ :style="{ 'background-image': 'url(' + demoImg + ')' }">
{{ item.title }} diff --git a/src/views/demo/page/account/center/index.vue b/src/views/demo/page/account/center/index.vue index 8190fc30..a560b978 100644 --- a/src/views/demo/page/account/center/index.vue +++ b/src/views/demo/page/account/center/index.vue @@ -123,7 +123,7 @@ export default defineComponent({ padding: 0 10px; &:not(:last-child) { - border-right: 1px dashed rgba(206,206,206,0.5); + border-right: 1px dashed rgba(206, 206, 206, 0.5); } } diff --git a/src/views/demo/page/account/setting/BaseSetting.vue b/src/views/demo/page/account/setting/BaseSetting.vue index 2d2dea03..aecd5c62 100644 --- a/src/views/demo/page/account/setting/BaseSetting.vue +++ b/src/views/demo/page/account/setting/BaseSetting.vue @@ -18,13 +18,13 @@ :maxSize="5" :maxNumber="3" showThumb - :accept="['png','jpg','jpeg','webp']" /> + :accept="['png', 'jpg', 'jpeg', 'webp']" />
更新基本信息 + @click="handleSubmit">更新基本信息
diff --git a/src/views/demo/page/account/setting/data.ts b/src/views/demo/page/account/setting/data.ts index ab178407..89b4ff03 100644 --- a/src/views/demo/page/account/setting/data.ts +++ b/src/views/demo/page/account/setting/data.ts @@ -4,7 +4,7 @@ export interface ListItem { key: string title: string description: string - checked?: boolean, + checked?: boolean extra?: string avatar?: string color?: string diff --git a/src/views/demo/page/desc/basic/index.vue b/src/views/demo/page/desc/basic/index.vue index 2d257125..2dbdb31c 100644 --- a/src/views/demo/page/desc/basic/index.vue +++ b/src/views/demo/page/desc/basic/index.vue @@ -8,8 +8,7 @@ :border="false" :column="3" :data="refundData" - :schema="refundSchema" - /> + :schema="refundSchema" /> + :schema="personSchema" /> @@ -114,7 +112,7 @@ export default defineComponent({ margin-bottom: -8px; font-size: 14px; line-height: 44px; - border-bottom: 1px solid var(--border-color) + border-bottom: 1px solid var(--border-color); } } diff --git a/src/views/demo/page/desc/high/index.vue b/src/views/demo/page/desc/high/index.vue index 69b0b938..64949ce6 100644 --- a/src/views/demo/page/desc/high/index.vue +++ b/src/views/demo/page/desc/high/index.vue @@ -131,7 +131,18 @@ diff --git a/src/views/demo/tree/index.vue b/src/views/demo/tree/index.vue index 72e252fc..49439893 100644 --- a/src/views/demo/tree/index.vue +++ b/src/views/demo/tree/index.vue @@ -8,7 +8,7 @@ + :default-expanded-keys="['0-0', '1-1', '2-2']" />
@@ -123,10 +123,12 @@ export default defineComponent({ if (node.data.leaf || node.level > 5) { return resolve([]) } else { - return resolve([{ - title: 'zone' + node.data.key, - key: node.data.key + '-1', - }]) + return resolve([ + { + title: 'zone' + node.data.key, + key: node.data.key + '-1', + }, + ]) } } @@ -164,7 +166,7 @@ export default defineComponent({ diff --git a/src/views/sys/error-log/index.vue b/src/views/sys/error-log/index.vue index 1083c9c9..f767c4e1 100644 --- a/src/views/sys/error-log/index.vue +++ b/src/views/sys/error-log/index.vue @@ -13,19 +13,13 @@
diff --git a/src/views/sys/exception/Exception.vue b/src/views/sys/exception/Exception.vue index 1c74d324..29fd4319 100644 --- a/src/views/sys/exception/Exception.vue +++ b/src/views/sys/exception/Exception.vue @@ -14,12 +14,12 @@ import { PageEnum } from '@/enums/pageEnum' import { ElButton, ElResult } from 'element-plus' interface MapValue { - title: string; - subTitle: string; - btnText?: string; - icon?: string; - handler?: Fn; - status?: string; + title: string + subTitle: string + btnText?: string + icon?: string + handler?: Fn + status?: string } export default defineComponent({ diff --git a/src/views/sys/iframe/index.vue b/src/views/sys/iframe/index.vue index 4a08c1ab..c6c2aa99 100644 --- a/src/views/sys/iframe/index.vue +++ b/src/views/sys/iframe/index.vue @@ -69,7 +69,6 @@ export default defineComponent({ } }, }) - diff --git a/src/views/sys/login/LoginForm.vue b/src/views/sys/login/LoginForm.vue index a1710c6b..a014be98 100644 --- a/src/views/sys/login/LoginForm.vue +++ b/src/views/sys/login/LoginForm.vue @@ -39,7 +39,6 @@ @click="handleLogin">登录 -