提交 480cfb91 作者: vben

fix: fix antdv console warning

上级 0e414ba3
## Wip
### ⚡ Performance Improvements
- 升级`vue``ant-design-vue`版本,解决兼容问题
### 🐛 Bug Fixes
- **Table** 修复分页抖动问题
......
......@@ -39,7 +39,7 @@
"@logicflow/extension": "^0.5.0",
"@vueuse/core": "^5.0.3",
"@zxcvbn-ts/core": "^0.3.0",
"ant-design-vue": "2.1.6",
"ant-design-vue": "2.2.0-beta.6",
"axios": "^0.21.1",
"codemirror": "^5.62.0",
"cropperjs": "^1.5.12",
......@@ -56,7 +56,7 @@
"sortablejs": "^1.13.0",
"tinymce": "^5.8.2",
"vditor": "^3.8.5",
"vue": "3.0.11",
"vue": "3.1.2",
"vue-i18n": "9.1.6",
"vue-json-pretty": "^2.0.2",
"vue-router": "^4.0.10",
......@@ -86,7 +86,7 @@
"@vitejs/plugin-legacy": "^1.4.2",
"@vitejs/plugin-vue": "^1.2.3",
"@vitejs/plugin-vue-jsx": "^1.1.5",
"@vue/compiler-sfc": "3.0.11",
"@vue/compiler-sfc": "3.1.2",
"@vue/test-utils": "^2.0.0-rc.9",
"autoprefixer": "^10.2.6",
"commitizen": "^4.2.4",
......
......@@ -51,12 +51,7 @@ export default function ({
const debounceUpdateAdvanced = useDebounceFn(updateAdvanced, 30);
watch(
[
// TODO
// () => unref(getSchema),
() => advanceState.isAdvanced,
() => unref(realWidthRef),
],
[() => unref(getSchema), () => advanceState.isAdvanced, () => unref(realWidthRef)],
() => {
const { showAdvancedButton } = unref(getProps);
if (showAdvancedButton) {
......
<template>
<MenuItem>
<MenuItem :key="item.path">
<!-- <MenuItem :class="getLevelClass"> -->
<MenuItemContent v-bind="$props" :item="item" />
</MenuItem>
......
......@@ -3,6 +3,7 @@
<SubMenu
v-if="menuHasChildren(item) && getShowMenu"
:class="[theme]"
:key="`submenu-${item.path}`"
popupClassName="app-top-menu-popup"
>
<template #title>
......@@ -16,7 +17,6 @@
</template>
<script lang="ts">
import type { Menu as MenuType } from '/@/router/types';
import { defineComponent, computed } from 'vue';
import { Menu } from 'ant-design-vue';
import { useDesign } from '/@/hooks/web/useDesign';
......
<template>
<span :class="`${prefixCls}- flex items-center `">
<Icon v-if="getIcon" :icon="getIcon" :size="18" :class="`${prefixCls}-wrapper__icon`" />
<Icon v-if="getIcon" :icon="getIcon" :size="18" :class="`${prefixCls}-wrapper__icon mr-2`" />
{{ getI18nName }}
</span>
</template>
......
......@@ -75,9 +75,9 @@ export function usePermission() {
if (!value) {
return def;
}
const allCodeList = permissionStore.getPermCodeList;
const allCodeList = permissionStore.getPermCodeList as string[];
if (!isArray(value)) {
return allCodeList.includes(value as string);
return allCodeList.includes(value);
}
return (intersection(value, allCodeList) as string[]).length > 0;
}
......
......@@ -2,7 +2,9 @@ import { getCurrentInstance, onBeforeUnmount, ref, Ref, unref } from 'vue';
const domSymbol = Symbol('watermark-dom');
export function useWatermark(appendEl: Ref<HTMLElement | null> = ref(document.body)) {
export function useWatermark(
appendEl: Ref<HTMLElement | null> = ref(document.body) as Ref<HTMLElement>
) {
let func: Fn = () => {};
const id = domSymbol.toString();
const clear = () => {
......
......@@ -39,5 +39,5 @@
"mock/**/*.ts",
"vite.config.ts"
],
"exclude": ["node_modules", "dist", "**/*.js"]
"exclude": ["node_modules", "tests/server/**/*.ts", "dist", "**/*.js"]
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论