From f77566adcc591849c122131b17b331edba0b0790 Mon Sep 17 00:00:00 2001 From: winixt Date: Mon, 18 Dec 2023 17:42:07 +0800 Subject: [PATCH] style: format code --- packages/fes-plugin-layout/package.json | 76 +++++++++---------- .../fes-plugin-layout/src/runtime/useTitle.js | 8 +- .../src/runtime/views/MultiTabProvider.vue | 40 +++++----- 3 files changed, 63 insertions(+), 61 deletions(-) diff --git a/packages/fes-plugin-layout/package.json b/packages/fes-plugin-layout/package.json index 1f1af348..3b474dc7 100644 --- a/packages/fes-plugin-layout/package.json +++ b/packages/fes-plugin-layout/package.json @@ -1,40 +1,40 @@ { - "name": "@fesjs/plugin-layout", - "version": "5.1.7", - "description": "@fesjs/plugin-layout", - "main": "lib/index.js", - "files": [ - "lib", - "types.d.ts" - ], - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/WeBankFinTech/fes.js.git", - "directory": "packages/fes-plugin-layout" - }, - "keywords": [ - "fes" - ], - "author": "harrywan", - "license": "MIT", - "bugs": { - "url": "https://github.com/WeBankFinTech/fes.js/issues" - }, - "homepage": "https://github.com/WeBankFinTech/fes.js#readme", - "publishConfig": { - "access": "public" - }, - "dependencies": { - "@fesjs/utils": "^3.0.1" - }, - "peerDependencies": { - "@fesjs/fes": "^3.1.4", - "@fesjs/fes-design": ">=0.7.0", - "vue": "^3.2.47", - "vue-router": "^4.0.1" - }, - "typings": "./types.d.ts" + "name": "@fesjs/plugin-layout", + "version": "5.1.7", + "description": "@fesjs/plugin-layout", + "author": "harrywan", + "license": "MIT", + "homepage": "https://github.com/WeBankFinTech/fes.js#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/WeBankFinTech/fes.js.git", + "directory": "packages/fes-plugin-layout" + }, + "bugs": { + "url": "https://github.com/WeBankFinTech/fes.js/issues" + }, + "keywords": [ + "fes" + ], + "main": "lib/index.js", + "files": [ + "lib", + "types.d.ts" + ], + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "publishConfig": { + "access": "public" + }, + "peerDependencies": { + "@fesjs/fes": "^3.1.4", + "@fesjs/fes-design": ">=0.7.0", + "vue": "^3.2.47", + "vue-router": "^4.0.1" + }, + "dependencies": { + "@fesjs/utils": "^3.0.1" + }, + "typings": "./types.d.ts" } diff --git a/packages/fes-plugin-layout/src/runtime/useTitle.js b/packages/fes-plugin-layout/src/runtime/useTitle.js index e56636e4..f0417953 100644 --- a/packages/fes-plugin-layout/src/runtime/useTitle.js +++ b/packages/fes-plugin-layout/src/runtime/useTitle.js @@ -3,11 +3,11 @@ import { useRoute } from '@@/core/coreExports'; const cache = reactive(new Map()); -export const getTitle = (path) => cache.get(path); +export const getTitle = path => cache.get(path); -export const deleteTitle = (patch) => cache.delete(patch); +export const deleteTitle = patch => cache.delete(patch); -export const useTabTitle = (title) => { +export function useTabTitle(title) { const route = useRoute(); const titleRef = ref(title); const path = route.path; @@ -15,4 +15,4 @@ export const useTabTitle = (title) => { cache.set(path, titleRef); return titleRef; -}; +} diff --git a/packages/fes-plugin-layout/src/runtime/views/MultiTabProvider.vue b/packages/fes-plugin-layout/src/runtime/views/MultiTabProvider.vue index 1066fedc..cec9349d 100644 --- a/packages/fes-plugin-layout/src/runtime/views/MultiTabProvider.vue +++ b/packages/fes-plugin-layout/src/runtime/views/MultiTabProvider.vue @@ -1,9 +1,9 @@ + +