fix: fix ts declaration error when execute pnpm build:ui vue command (#386)

This commit is contained in:
Kagol 2023-08-14 16:33:19 +08:00 committed by GitHub
parent 5f6784ecb3
commit d6264f9e68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 9 additions and 8 deletions

1
.gitignore vendored
View File

@ -11,6 +11,7 @@ coverage/
/packages/vue/index.ts
/packages/vue/pc.ts
/packages/vue/mobile.ts
/packages/vue/mobile-first.ts
/packages/vue/app.ts
/examples/**/playwright-report

View File

@ -64,7 +64,7 @@ function getMainTemplate({ mode }) {
export default {
{{{components}}},
install
}
} as any
`
}

View File

@ -41,7 +41,7 @@ export const i18n = (fn) => {
export const extend = _extend
interface InitI18nOption {
export interface InitI18nOption {
app?: any
createI18n?: Function
messages?: Record<string, any>

View File

@ -434,4 +434,4 @@ export default {
UserHead,
UserHeadGroup,
install
}
} as any

View File

@ -105,7 +105,7 @@ export default class AMapCoordSys {
return [pt.lng, pt.lat]
}
getViewRect() {
getViewRect(): any {
let api = this._api
return new echarts.graphic.BoundingRect(0, 0, api.getWidth(), api.getHeight())

View File

@ -31,4 +31,4 @@ export default echarts.extendComponentModel({
center: [116.397475, 39.908695],
zoom: 4
}
})
}) as any

View File

@ -94,5 +94,5 @@ export default defineComponent({
const tagName = this.props.tag.name ?? 'div'
return hooks.h(tagName, attr, slots)
}
})
}) as any
</script>

View File

@ -1,8 +1,8 @@
interface ComponentType<P> {}
interface ForwardRefExoticComponent<P> {}
interface VueMouseEvent extends Event {}
interface VueNode {}
interface Ref<T> {}
export interface VueNode {}
export interface Ref<T> {}
interface RefAttributes<T> {}
import type {