@rsmap/vue3ol
Version:
使用 vue3 风格封装后的 Openlayer 地图组件库。
69 lines (67 loc) • 1.86 kB
TypeScript
import { ScaleLine } from 'ol/control';
import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
className?: string;
minWidth?: number;
render?: (...args: unknown[]) => unknown;
target?: HTMLElement;
units?: string;
bar?: boolean;
steps?: number;
text?: string;
dpi?: number;
}>, {
className: string;
minWidth: number;
units: string;
bar: boolean;
steps: number;
text: string;
dpi: undefined;
}>, {
control: ComputedRef<ScaleLine>;
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
className?: string;
minWidth?: number;
render?: (...args: unknown[]) => unknown;
target?: HTMLElement;
units?: string;
bar?: boolean;
steps?: number;
text?: string;
dpi?: number;
}>, {
className: string;
minWidth: number;
units: string;
bar: boolean;
steps: number;
text: string;
dpi: undefined;
}>>>, {
text: string;
className: string;
bar: boolean;
minWidth: number;
units: string;
steps: number;
dpi: number;
}, {}>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: PropType<T[K]>;
required: true;
};
};
type __VLS_WithDefaults<P, D> = {
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
default: D[K];
}> : P[K];
};
type __VLS_Prettify<T> = {
[K in keyof T]: T[K];
} & {};