@zhsz/cool-design-dv
Version:
76 lines (75 loc) • 2.68 kB
TypeScript
/**
* 属性参数
* @member props
* @property {Boolean} [lock] 缩放锁定比例
* @property {Boolean} [scale=true] 开启自动缩放
* @property {Number} [width=1920] 原始宽度
* @property {Number} [height=1080] 原始高度
* @property {Number} [activeIndex] 初始展示的场景索引,有MyDvScreen子组件才有效
* @property {string|function} [target=body] 页面的参照目标元素,默认是body,支持css选择器,有一个特殊值parent取组件的父节点
* @property {object} [config] 页面配置对象 {color, textColor, fill, colors} ,提供给子组件调用
* @property {boolean} [fit] 自动适应父容器尺寸,设置后 width height 的参数失效
* @property {string} [layout] 适配方向,横向 - horizontal,竖向 - vertical,默认horizontal
* @property {boolean} [fullscreen] 显示全屏切换按钮
*/
type Props = {
lock?: boolean;
scale?: boolean;
width?: number;
height?: number;
activeIndex?: number;
target?: string | HTMLElement | (() => string | HTMLElement);
fit?: boolean;
fullscreen?: boolean;
layout?: string;
config?: {
[key: string]: string;
};
};
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
scale: boolean;
width: number;
height: number;
activeIndex: number;
layout: string;
target: () => HTMLElement;
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
scale: boolean;
width: number;
height: number;
activeIndex: number;
layout: string;
target: () => HTMLElement;
}>>>, {
height: number;
width: number;
scale: boolean;
target: string | HTMLElement | (() => string | HTMLElement);
layout: string;
activeIndex: number;
}, {}>, {
default?(_: {}): any;
}>;
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: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').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];
} & {};
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};