diff --git a/locales/en.yaml b/locales/en.yaml index 4605818fea..c54d9fd47c 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -157,7 +157,7 @@ menus: pureTimeline: Time Line pureLineTree: LineTree pureList: List Page - pureListCard: Card List Page + pureCardList: Card List Page pureDebounce: Debounce & Throttle pureFormDesign: Form Design pureBarcode: Barcode diff --git a/locales/zh-CN.yaml b/locales/zh-CN.yaml index 1d2f2ce154..2b1fd4123f 100644 --- a/locales/zh-CN.yaml +++ b/locales/zh-CN.yaml @@ -157,7 +157,7 @@ menus: pureTimeline: 时间线 pureLineTree: 树形连接线 pureList: 列表页面 - pureListCard: 卡片列表页 + pureCardList: 卡片列表页 pureDebounce: 防抖节流 pureFormDesign: 表单设计器 pureBarcode: 条形码 diff --git a/src/router/modules/list.ts b/src/router/modules/list.ts index e63733942c..6595846082 100644 --- a/src/router/modules/list.ts +++ b/src/router/modules/list.ts @@ -12,11 +12,11 @@ export default { children: [ { path: "/list/card", - name: "ListCard", + name: "CardList", component: () => import("@/views/list/card/index.vue"), meta: { icon: "ri:bank-card-line", - title: $t("menus.pureListCard"), + title: $t("menus.pureCardList"), showParent: true } } diff --git a/src/views/account-settings/components/accountManagement.vue b/src/views/account-settings/components/AccountManagement.vue similarity index 96% rename from src/views/account-settings/components/accountManagement.vue rename to src/views/account-settings/components/AccountManagement.vue index eb85d2c2d8..837f6a7b3e 100644 --- a/src/views/account-settings/components/accountManagement.vue +++ b/src/views/account-settings/components/AccountManagement.vue @@ -3,6 +3,10 @@ import { ref } from "vue"; import { message } from "@/utils/message"; import { deviceDetection } from "@pureadmin/utils"; +defineOptions({ + name: "AccountManagement" +}); + const list = ref([ { title: "账户密码", diff --git a/src/views/account-settings/components/preferences.vue b/src/views/account-settings/components/Preferences.vue similarity index 97% rename from src/views/account-settings/components/preferences.vue rename to src/views/account-settings/components/Preferences.vue index 46f1196478..93a510a541 100644 --- a/src/views/account-settings/components/preferences.vue +++ b/src/views/account-settings/components/Preferences.vue @@ -3,6 +3,10 @@ import { ref } from "vue"; import { message } from "@/utils/message"; import { deviceDetection } from "@pureadmin/utils"; +defineOptions({ + name: "Preferences" +}); + const list = ref([ { title: "账户密码", diff --git a/src/views/account-settings/components/profile.vue b/src/views/account-settings/components/Profile.vue similarity index 99% rename from src/views/account-settings/components/profile.vue rename to src/views/account-settings/components/Profile.vue index 39ea664ef2..dc6edb18b0 100644 --- a/src/views/account-settings/components/profile.vue +++ b/src/views/account-settings/components/Profile.vue @@ -8,6 +8,10 @@ import ReCropperPreview from "@/components/ReCropperPreview"; import { createFormData, deviceDetection } from "@pureadmin/utils"; import uploadLine from "@iconify-icons/ri/upload-line"; +defineOptions({ + name: "Profile" +}); + const imgSrc = ref(""); const cropperInfo = ref(); const cropRef = ref(); diff --git a/src/views/account-settings/components/securityLog.vue b/src/views/account-settings/components/SecurityLog.vue similarity index 97% rename from src/views/account-settings/components/securityLog.vue rename to src/views/account-settings/components/SecurityLog.vue index 554a25e43e..845540c296 100644 --- a/src/views/account-settings/components/securityLog.vue +++ b/src/views/account-settings/components/SecurityLog.vue @@ -5,6 +5,10 @@ import { reactive, ref, onMounted } from "vue"; import { deviceDetection } from "@pureadmin/utils"; import type { PaginationProps } from "@pureadmin/table"; +defineOptions({ + name: "SecurityLog" +}); + const loading = ref(true); const dataList = ref([]); const pagination = reactive({ diff --git a/src/views/account-settings/index.vue b/src/views/account-settings/index.vue index 01bf187e44..d218044089 100644 --- a/src/views/account-settings/index.vue +++ b/src/views/account-settings/index.vue @@ -3,11 +3,11 @@ import { getMine } from "@/api/user"; import { useRouter } from "vue-router"; import { ref, onBeforeMount } from "vue"; import { ReText } from "@/components/ReText"; -import Profile from "./components/profile.vue"; -import Preferences from "./components/preferences.vue"; -import SecurityLog from "./components/securityLog.vue"; +import Profile from "./components/Profile.vue"; +import Preferences from "./components/Preferences.vue"; +import SecurityLog from "./components/SecurityLog.vue"; import { useGlobal, deviceDetection } from "@pureadmin/utils"; -import AccountManagement from "./components/accountManagement.vue"; +import AccountManagement from "./components/AccountManagement.vue"; import TopCollapse from "@/layout/components/sidebar/topCollapse.vue"; import { useDataThemeChange } from "@/layout/hooks/useDataThemeChange"; diff --git a/src/views/editor/components/base.vue b/src/views/editor/components/EditorBase.vue similarity index 100% rename from src/views/editor/components/base.vue rename to src/views/editor/components/EditorBase.vue diff --git a/src/views/editor/components/multi.vue b/src/views/editor/components/EditorMulti.vue similarity index 100% rename from src/views/editor/components/multi.vue rename to src/views/editor/components/EditorMulti.vue diff --git a/src/views/editor/components/picUpload.vue b/src/views/editor/components/EditorUpload.vue similarity index 100% rename from src/views/editor/components/picUpload.vue rename to src/views/editor/components/EditorUpload.vue diff --git a/src/views/editor/components/index.ts b/src/views/editor/components/index.ts index eb5f269a50..1e1767f47e 100644 --- a/src/views/editor/components/index.ts +++ b/src/views/editor/components/index.ts @@ -1,9 +1,3 @@ -import base from "./base.vue"; -import multi from "./multi.vue"; -import picUpload from "./picUpload.vue"; - -const Base = base; -const Multi = multi; -const PicUpload = picUpload; - -export { Base, Multi, PicUpload }; +export { default as EditorBase } from "./EditorBase.vue"; +export { default as EditorMulti } from "./EditorMulti.vue"; +export { default as EditorUpload } from "./EditorUpload.vue"; diff --git a/src/views/editor/index.vue b/src/views/editor/index.vue index 237d42f8e8..3a9845cc94 100644 --- a/src/views/editor/index.vue +++ b/src/views/editor/index.vue @@ -1,6 +1,6 @@