提交 480cfb91 作者: vben

fix: fix antdv console warning

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