@rsmap/vue3ol
Version:
使用 vue3 风格封装后的 Openlayer 地图组件库。
75 lines (73 loc) • 2.19 kB
TypeScript
import { FullScreen } from 'ol/control';
import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
className?: string;
label?: string;
labelActive?: string;
activeClassName?: string;
inactiveClassName?: string;
tipLabel?: string;
keys?: boolean;
target?: Record<string, unknown>;
source?: Record<string, unknown>;
}>, {
className: string;
label: string;
labelActive: string;
activeClassName: string;
inactiveClassName: string;
tipLabel: string;
keys: boolean;
target: undefined;
source: undefined;
}>, {
control: ComputedRef<FullScreen>;
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
className?: string;
label?: string;
labelActive?: string;
activeClassName?: string;
inactiveClassName?: string;
tipLabel?: string;
keys?: boolean;
target?: Record<string, unknown>;
source?: Record<string, unknown>;
}>, {
className: string;
label: string;
labelActive: string;
activeClassName: string;
inactiveClassName: string;
tipLabel: string;
keys: boolean;
target: undefined;
source: undefined;
}>>>, {
keys: boolean;
label: string;
source: Record<string, unknown>;
className: string;
target: Record<string, unknown>;
tipLabel: string;
labelActive: string;
activeClassName: string;
inactiveClassName: string;
}, {}>;
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];
} & {};