forked from opentiny/tiny-vue
fix: fix ts declaration error when execute pnpm build:ui vue command (#386)
This commit is contained in:
parent
5f6784ecb3
commit
d6264f9e68
|
@ -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
|
||||
|
|
|
@ -64,7 +64,7 @@ function getMainTemplate({ mode }) {
|
|||
export default {
|
||||
{{{components}}},
|
||||
install
|
||||
}
|
||||
} as any
|
||||
`
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -434,4 +434,4 @@ export default {
|
|||
UserHead,
|
||||
UserHeadGroup,
|
||||
install
|
||||
}
|
||||
} as any
|
||||
|
|
|
@ -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())
|
||||
|
|
|
@ -31,4 +31,4 @@ export default echarts.extendComponentModel({
|
|||
center: [116.397475, 39.908695],
|
||||
zoom: 4
|
||||
}
|
||||
})
|
||||
}) as any
|
||||
|
|
|
@ -94,5 +94,5 @@ export default defineComponent({
|
|||
const tagName = this.props.tag.name ?? 'div'
|
||||
return hooks.h(tagName, attr, slots)
|
||||
}
|
||||
})
|
||||
}) as any
|
||||
</script>
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue