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/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
|
||||||
|
|
|
@ -64,7 +64,7 @@ function getMainTemplate({ mode }) {
|
||||||
export default {
|
export default {
|
||||||
{{{components}}},
|
{{{components}}},
|
||||||
install
|
install
|
||||||
}
|
} as any
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -434,4 +434,4 @@ export default {
|
||||||
UserHead,
|
UserHead,
|
||||||
UserHeadGroup,
|
UserHeadGroup,
|
||||||
install
|
install
|
||||||
}
|
} as any
|
||||||
|
|
|
@ -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())
|
||||||
|
|
|
@ -31,4 +31,4 @@ export default echarts.extendComponentModel({
|
||||||
center: [116.397475, 39.908695],
|
center: [116.397475, 39.908695],
|
||||||
zoom: 4
|
zoom: 4
|
||||||
}
|
}
|
||||||
})
|
}) as any
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue