Skip to content

Commit

Permalink
fix: fix ts declaration error when execute pnpm build:ui vue command (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kagol authored Aug 14, 2023
1 parent 5f6784e commit d6264f9
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion internals/cli/src/commands/build/build-entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function getMainTemplate({ mode }) {
export default {
{{{components}}},
install
}
} as any
`
}

Expand Down
2 changes: 1 addition & 1 deletion packages/vue-locale/src/vue3/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/mobile-first.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,4 +434,4 @@ export default {
UserHead,
UserHeadGroup,
install
}
} as any
2 changes: 1 addition & 1 deletion packages/vue/src/chart/autonavi-map/src/AMapCoordSys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/src/chart/autonavi-map/src/AMapModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ export default echarts.extendComponentModel({
center: [116.397475, 39.908695],
zoom: 4
}
})
}) as any
2 changes: 1 addition & 1 deletion packages/vue/src/config-provider/src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@ export default defineComponent({
const tagName = this.props.tag.name ?? 'div'
return hooks.h(tagName, attr, slots)
}
})
}) as any
</script>
4 changes: 2 additions & 2 deletions packages/vue/src/query-builder/src/ts/propsUsingFrame.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit d6264f9

Please sign in to comment.