mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 08:57:19 +08:00
perf: update
This commit is contained in:
parent
df71c7f75c
commit
4f5f18f61c
@ -36,9 +36,8 @@
|
|||||||
"@pureadmin/descriptions": "^1.1.0",
|
"@pureadmin/descriptions": "^1.1.0",
|
||||||
"@pureadmin/table": "^1.2.0",
|
"@pureadmin/table": "^1.2.0",
|
||||||
"@pureadmin/utils": "^1.1.5",
|
"@pureadmin/utils": "^1.1.5",
|
||||||
"@vueuse/core": "^9.4.0",
|
"@vueuse/core": "^9.5.0",
|
||||||
"@vueuse/motion": "^2.0.0-beta.12",
|
"@vueuse/motion": "2.0.0-beta.12",
|
||||||
"@vueuse/shared": "^9.4.0",
|
|
||||||
"@wangeditor/editor": "^5.1.21",
|
"@wangeditor/editor": "^5.1.21",
|
||||||
"@wangeditor/editor-for-vue": "^5.1.12",
|
"@wangeditor/editor-for-vue": "^5.1.12",
|
||||||
"animate.css": "^4.1.1",
|
"animate.css": "^4.1.1",
|
||||||
@ -49,7 +48,7 @@
|
|||||||
"driver.js": "^0.9.8",
|
"driver.js": "^0.9.8",
|
||||||
"echarts": "^5.4.0",
|
"echarts": "^5.4.0",
|
||||||
"el-table-infinite-scroll": "^3.0.1",
|
"el-table-infinite-scroll": "^3.0.1",
|
||||||
"element-plus": "^2.2.20",
|
"element-plus": "^2.2.21",
|
||||||
"element-resize-detector": "^1.2.4",
|
"element-resize-detector": "^1.2.4",
|
||||||
"js-cookie": "^3.0.1",
|
"js-cookie": "^3.0.1",
|
||||||
"jsbarcode": "^3.11.5",
|
"jsbarcode": "^3.11.5",
|
||||||
@ -150,7 +149,7 @@
|
|||||||
"vite-plugin-cdn-import": "^0.3.5",
|
"vite-plugin-cdn-import": "^0.3.5",
|
||||||
"vite-plugin-compression": "^0.5.1",
|
"vite-plugin-compression": "^0.5.1",
|
||||||
"vite-plugin-mock": "^2.9.6",
|
"vite-plugin-mock": "^2.9.6",
|
||||||
"vite-plugin-remove-console": "^1.2.0",
|
"vite-plugin-remove-console": "^1.3.0",
|
||||||
"vite-svg-loader": "^3.6.0",
|
"vite-svg-loader": "^3.6.0",
|
||||||
"vue-eslint-parser": "^9.1.0",
|
"vue-eslint-parser": "^9.1.0",
|
||||||
"vue-tsc": "^1.0.9"
|
"vue-tsc": "^1.0.9"
|
||||||
|
668
pnpm-lock.yaml
generated
668
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -8,7 +8,6 @@ import {
|
|||||||
computed,
|
computed,
|
||||||
PropType
|
PropType
|
||||||
} from "vue";
|
} from "vue";
|
||||||
import { templateRef } from "@vueuse/core";
|
|
||||||
import { useAttrs } from "@pureadmin/utils";
|
import { useAttrs } from "@pureadmin/utils";
|
||||||
|
|
||||||
import Cropper from "cropperjs";
|
import Cropper from "cropperjs";
|
||||||
@ -78,7 +77,7 @@ export default defineComponent({
|
|||||||
props,
|
props,
|
||||||
setup(props) {
|
setup(props) {
|
||||||
const cropper: any = ref<Nullable<Cropper>>(null);
|
const cropper: any = ref<Nullable<Cropper>>(null);
|
||||||
const imgElRef = templateRef<HTMLImageElement | null>("imgElRef", null);
|
const imgElRef = ref();
|
||||||
|
|
||||||
const isReady = ref<boolean>(false);
|
const isReady = ref<boolean>(false);
|
||||||
|
|
||||||
|
@ -1,17 +1,16 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, unref, nextTick, onUnmounted } from "vue";
|
import { ref, unref, nextTick, onUnmounted } from "vue";
|
||||||
import { templateRef } from "@vueuse/core";
|
|
||||||
import flippers from "./filpper";
|
import flippers from "./filpper";
|
||||||
|
|
||||||
const timer = ref(null);
|
const timer = ref(null);
|
||||||
const flipObjs = ref([]);
|
const flipObjs = ref([]);
|
||||||
|
|
||||||
const flipperHour1 = templateRef<HTMLElement | null>("flipperHour1", null);
|
const flipperHour1 = ref();
|
||||||
const flipperHour2 = templateRef<HTMLElement | null>("flipperHour2", null);
|
const flipperHour2 = ref();
|
||||||
const flipperMinute1 = templateRef<HTMLElement | null>("flipperMinute1", null);
|
const flipperMinute1 = ref();
|
||||||
const flipperMinute2 = templateRef<HTMLElement | null>("flipperMinute2", null);
|
const flipperMinute2 = ref();
|
||||||
const flipperSecond1 = templateRef<HTMLElement | null>("flipperSecond1", null);
|
const flipperSecond1 = ref();
|
||||||
const flipperSecond2 = templateRef<HTMLElement | null>("flipperSecond2", null);
|
const flipperSecond2 = ref();
|
||||||
|
|
||||||
// 初始化数字
|
// 初始化数字
|
||||||
const init = () => {
|
const init = () => {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, unref, onMounted } from "vue";
|
import { ref, unref, onMounted } from "vue";
|
||||||
import { templateRef } from "@vueuse/core";
|
|
||||||
import { LogicFlow } from "@logicflow/core";
|
import { LogicFlow } from "@logicflow/core";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
@ -16,8 +15,8 @@ const emit = defineEmits<{
|
|||||||
(e: "catData"): void;
|
(e: "catData"): void;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const controlButton3 = templateRef<HTMLElement | any>("controlButton3", null);
|
const controlButton3 = ref();
|
||||||
const controlButton4 = templateRef<HTMLElement | any>("controlButton4", null);
|
const controlButton4 = ref();
|
||||||
|
|
||||||
const focusIndex = ref<Number>(-1);
|
const focusIndex = ref<Number>(-1);
|
||||||
const titleLists = ref([
|
const titleLists = ref([
|
||||||
|
@ -2,11 +2,10 @@
|
|||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import { noticesData } from "./data";
|
import { noticesData } from "./data";
|
||||||
import NoticeList from "./noticeList.vue";
|
import NoticeList from "./noticeList.vue";
|
||||||
import { templateRef } from "@vueuse/core";
|
|
||||||
import { Tabs, TabPane } from "@pureadmin/components";
|
import { Tabs, TabPane } from "@pureadmin/components";
|
||||||
|
|
||||||
const dropdownDom = templateRef<ElRef | null>("dropdownDom", null);
|
const dropdownDom = ref();
|
||||||
const activeName = ref(noticesData[0].name);
|
const activeKey = ref(noticesData[2].key);
|
||||||
const notices = ref(noticesData);
|
const notices = ref(noticesData);
|
||||||
|
|
||||||
const noticesNum = ref(0);
|
const noticesNum = ref(0);
|
||||||
@ -33,7 +32,8 @@ function tabClick() {
|
|||||||
<Tabs
|
<Tabs
|
||||||
centered
|
centered
|
||||||
class="dropdown-tabs"
|
class="dropdown-tabs"
|
||||||
v-model:activeName="activeName"
|
:tabBarStyle="{ marginLeft: notices?.length > 4 ? '8px' : '0' }"
|
||||||
|
v-model="activeKey"
|
||||||
@tabClick="tabClick"
|
@tabClick="tabClick"
|
||||||
>
|
>
|
||||||
<template v-for="item in notices" :key="item.key">
|
<template v-for="item in notices" :key="item.key">
|
||||||
|
@ -13,7 +13,6 @@ import { useRouter } from "vue-router";
|
|||||||
import panel from "../panel/index.vue";
|
import panel from "../panel/index.vue";
|
||||||
import { emitter } from "@/utils/mitt";
|
import { emitter } from "@/utils/mitt";
|
||||||
import { resetRouter } from "@/router";
|
import { resetRouter } from "@/router";
|
||||||
import { templateRef } from "@vueuse/core";
|
|
||||||
import { removeToken } from "@/utils/auth";
|
import { removeToken } from "@/utils/auth";
|
||||||
import { routerArrays } from "@/layout/types";
|
import { routerArrays } from "@/layout/types";
|
||||||
import { useNav } from "@/layout/hooks/useNav";
|
import { useNav } from "@/layout/hooks/useNav";
|
||||||
@ -38,9 +37,9 @@ const { isDark } = useDark();
|
|||||||
const { isSelect } = useCssModule();
|
const { isSelect } = useCssModule();
|
||||||
const { $storage } = useGlobal<GlobalPropertiesApi>();
|
const { $storage } = useGlobal<GlobalPropertiesApi>();
|
||||||
|
|
||||||
const mixRef = templateRef<HTMLElement | null>("mixRef", null);
|
const mixRef = ref();
|
||||||
const verticalRef = templateRef<HTMLElement | null>("verticalRef", null);
|
const verticalRef = ref();
|
||||||
const horizontalRef = templateRef<HTMLElement | null>("horizontalRef", null);
|
const horizontalRef = ref();
|
||||||
|
|
||||||
const {
|
const {
|
||||||
body,
|
body,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { isEqual } from "lodash-unified";
|
import { isEqual } from "@pureadmin/utils";
|
||||||
import { transformI18n } from "@/plugins/i18n";
|
import { transformI18n } from "@/plugins/i18n";
|
||||||
import { ref, watch, onMounted, toRaw } from "vue";
|
import { ref, watch, onMounted, toRaw } from "vue";
|
||||||
import { getParentPaths, findRouteByPath } from "@/router/utils";
|
import { getParentPaths, findRouteByPath } from "@/router/utils";
|
||||||
|
@ -9,7 +9,7 @@ import {
|
|||||||
getCurrentInstance
|
getCurrentInstance
|
||||||
} from "vue";
|
} from "vue";
|
||||||
import { tagsViewsType } from "../types";
|
import { tagsViewsType } from "../types";
|
||||||
import { isEqual } from "lodash-unified";
|
import { isEqual } from "@pureadmin/utils";
|
||||||
import type { StorageConfigs } from "/#/index";
|
import type { StorageConfigs } from "/#/index";
|
||||||
import { useEventListener } from "@vueuse/core";
|
import { useEventListener } from "@vueuse/core";
|
||||||
import { useRoute, useRouter } from "vue-router";
|
import { useRoute, useRouter } from "vue-router";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
import { store } from "@/store";
|
import { store } from "@/store";
|
||||||
import { isEqual } from "lodash-unified";
|
import { isEqual } from "@pureadmin/utils";
|
||||||
import type { StorageConfigs } from "/#/index";
|
import type { StorageConfigs } from "/#/index";
|
||||||
import { routerArrays } from "@/layout/types";
|
import { routerArrays } from "@/layout/types";
|
||||||
import { multiType, positionType } from "./types";
|
import { multiType, positionType } from "./types";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed } from "vue";
|
import { computed } from "vue";
|
||||||
import { cloneDeep } from "lodash-unified";
|
import { clone } from "@pureadmin/utils";
|
||||||
import { transformI18n } from "@/plugins/i18n";
|
import { transformI18n } from "@/plugins/i18n";
|
||||||
import ElTreeLine from "@/components/ReTreeLine";
|
import ElTreeLine from "@/components/ReTreeLine";
|
||||||
import { extractPathList, deleteChildren } from "@pureadmin/utils";
|
import { extractPathList, deleteChildren } from "@pureadmin/utils";
|
||||||
@ -10,7 +10,7 @@ defineOptions({
|
|||||||
name: "LineTree"
|
name: "LineTree"
|
||||||
});
|
});
|
||||||
|
|
||||||
const menusTree = cloneDeep(usePermissionStoreHook().wholeMenus);
|
const menusTree = clone(usePermissionStoreHook().wholeMenus, true);
|
||||||
const menusData = computed(() => {
|
const menusData = computed(() => {
|
||||||
return deleteChildren(menusTree);
|
return deleteChildren(menusTree);
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, computed } from "vue";
|
import { ref, computed } from "vue";
|
||||||
import { cloneDeep } from "lodash-unified";
|
import { clone } from "@pureadmin/utils";
|
||||||
import type { ElTreeV2 } from "element-plus";
|
import type { ElTreeV2 } from "element-plus";
|
||||||
import { transformI18n } from "@/plugins/i18n";
|
import { transformI18n } from "@/plugins/i18n";
|
||||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
@ -24,7 +24,7 @@ const dataProps = ref({
|
|||||||
children: "children"
|
children: "children"
|
||||||
});
|
});
|
||||||
const treeRef = ref<InstanceType<typeof ElTreeV2>>();
|
const treeRef = ref<InstanceType<typeof ElTreeV2>>();
|
||||||
const menusTree = cloneDeep(usePermissionStoreHook().wholeMenus);
|
const menusTree = clone(usePermissionStoreHook().wholeMenus, true);
|
||||||
|
|
||||||
const menusData = computed(() => {
|
const menusData = computed(() => {
|
||||||
return deleteChildren(menusTree);
|
return deleteChildren(menusTree);
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, reactive, unref } from "vue";
|
import { ref, reactive, unref } from "vue";
|
||||||
import { templateRef } from "@vueuse/core";
|
|
||||||
import SeamlessScroll from "@/components/ReSeamlessScroll";
|
import SeamlessScroll from "@/components/ReSeamlessScroll";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "SeamlessScroll"
|
name: "SeamlessScroll"
|
||||||
});
|
});
|
||||||
|
|
||||||
const scroll = templateRef<ElRef | null>("scroll", null);
|
const scroll = ref();
|
||||||
|
|
||||||
const listData = ref([
|
const listData = ref([
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import type { FormInstance, FormItemProp } from "element-plus";
|
import type { FormInstance, FormItemProp } from "element-plus";
|
||||||
import { cloneDeep } from "lodash-unified";
|
import { clone } from "@pureadmin/utils";
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
|
|
||||||
const isDisabled = ref(false);
|
const isDisabled = ref(false);
|
||||||
@ -13,7 +13,7 @@ export const useVerifyCode = () => {
|
|||||||
time = 60
|
time = 60
|
||||||
) => {
|
) => {
|
||||||
if (!formEl) return;
|
if (!formEl) return;
|
||||||
const initTime = cloneDeep(time);
|
const initTime = clone(time, true);
|
||||||
await formEl.validateField(props, isValid => {
|
await formEl.validateField(props, isValid => {
|
||||||
if (isValid) {
|
if (isValid) {
|
||||||
clearInterval(timer.value);
|
clearInterval(timer.value);
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import XEUtils from "xe-utils";
|
import XEUtils from "xe-utils";
|
||||||
import Config from "./config.vue";
|
import Config from "./config.vue";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { cloneDeep } from "lodash-unified";
|
import { clone } from "@pureadmin/utils";
|
||||||
import { reactive, ref, unref, nextTick } from "vue";
|
import { reactive, ref, unref, nextTick } from "vue";
|
||||||
import { useCopyToClipboard } from "@pureadmin/utils";
|
import { useCopyToClipboard } from "@pureadmin/utils";
|
||||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
|
||||||
@ -92,7 +92,7 @@ const dictData = reactive({
|
|||||||
] as VxeFormPropTypes.Items
|
] as VxeFormPropTypes.Items
|
||||||
});
|
});
|
||||||
|
|
||||||
const originData = cloneDeep(dictData.tableData);
|
const originData = clone(dictData.tableData, true);
|
||||||
|
|
||||||
const xTree = ref<TablePublicMethods>();
|
const xTree = ref<TablePublicMethods>();
|
||||||
const xForm = ref<FormMethods>();
|
const xForm = ref<FormMethods>();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, computed } from "vue";
|
import { ref, computed } from "vue";
|
||||||
import { cloneDeep } from "lodash-unified";
|
import { clone } from "@pureadmin/utils";
|
||||||
import { transformI18n } from "@/plugins/i18n";
|
import { transformI18n } from "@/plugins/i18n";
|
||||||
import { TreeSelect } from "@pureadmin/components";
|
import { TreeSelect } from "@pureadmin/components";
|
||||||
import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
|
import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
|
||||||
@ -17,7 +17,7 @@ defineOptions({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const { toDetail, router } = useDetail();
|
const { toDetail, router } = useDetail();
|
||||||
const menusTree = cloneDeep(usePermissionStoreHook().wholeMenus);
|
const menusTree = clone(usePermissionStoreHook().wholeMenus, true);
|
||||||
|
|
||||||
const treeData = computed(() => {
|
const treeData = computed(() => {
|
||||||
return appendFieldByUniqueId(deleteChildren(menusTree), 0, {
|
return appendFieldByUniqueId(deleteChildren(menusTree), 0, {
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, reactive } from "vue";
|
import { ref, reactive } from "vue";
|
||||||
import { templateRef } from "@vueuse/core";
|
|
||||||
import SeamlessScroll from "@/components/ReSeamlessScroll";
|
import SeamlessScroll from "@/components/ReSeamlessScroll";
|
||||||
|
|
||||||
const scroll = templateRef<ElRef | null>("scroll", null);
|
const scroll = ref();
|
||||||
|
|
||||||
const listData = ref([
|
const listData = ref([
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user