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/index.ts
/packages/vue/pc.ts /packages/vue/pc.ts
/packages/vue/mobile.ts /packages/vue/mobile.ts
/packages/vue/mobile-first.ts
/packages/vue/app.ts /packages/vue/app.ts
/examples/**/playwright-report /examples/**/playwright-report

View File

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

View File

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

View File

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

View File

@ -105,7 +105,7 @@ export default class AMapCoordSys {
return [pt.lng, pt.lat] return [pt.lng, pt.lat]
} }
getViewRect() { getViewRect(): any {
let api = this._api let api = this._api
return new echarts.graphic.BoundingRect(0, 0, api.getWidth(), api.getHeight()) 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], center: [116.397475, 39.908695],
zoom: 4 zoom: 4
} }
}) }) as any

View File

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

View File

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