fix: fix all types of errors, compatible with volar plugin

This commit is contained in:
vben
2021-08-17 23:04:02 +08:00
parent a5ff59237f
commit e15b4f14db
35 changed files with 69 additions and 61 deletions

View File

@@ -146,11 +146,11 @@
<SimpleMenu {...menuProps} isSplitMenu={unref(getSplit)} items={menus} />
) : (
<BasicMenu
{...menuProps}
{...(menuProps as any)}
isHorizontal={props.isHorizontal}
type={unref(getMenuType)}
showLogo={unref(getIsShowLogo)}
mode={unref(getComputedMenuMode)}
mode={unref(getComputedMenuMode as any)}
items={menus}
/>
);

View File

@@ -31,7 +31,7 @@
setup(props) {
const { prefixCls } = useDesign('setting-input-number-item');
function handleChange(e: ChangeEvent) {
function handleChange(e) {
props.event && baseHandler(props.event, e);
}
return {

View File

@@ -27,7 +27,7 @@
</div>
</template>
<script lang="ts">
import type { RouteLocationNormalized } from 'vue-router';
import type { RouteLocationNormalized, RouteMeta } from 'vue-router';
import { defineComponent, computed, unref, ref } from 'vue';
@@ -94,7 +94,7 @@
}
const { path, fullPath, meta = {} } = route;
const { currentActiveMenu, hideTab } = meta;
const { currentActiveMenu, hideTab } = meta as RouteMeta;
const isHide = !hideTab ? null : currentActiveMenu;
const p = isHide || fullPath || path;
if (activeKeyRef.value !== p) {