@opentiny/vue-renderless
Version:
An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.
40 lines (36 loc) • 1.16 kB
TypeScript
import { ExtractPropTypes } from 'vue';
import { PropType } from '@opentiny/vue-common';
type VariantType = 'image' | 'circle' | 'square';
type SizeType = 'large' | 'medium' | 'small';
declare const $constants: {};
declare const skeletonItemProps: {
_constants: {
type: ObjectConstructor;
default: () => {};
};
modelValue: StringConstructor;
variant: {
type: PropType<VariantType>;
default: string;
};
size: {
type: PropType<SizeType>;
default: string;
};
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (FunctionConstructor | ObjectConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_mcp_config: ObjectConstructor;
tiny_chart_theme: ObjectConstructor;
};
type ISkeletonItemProps = ExtractPropTypes<typeof skeletonItemProps>;
type ISkeletonItemConstants = typeof $constants;
interface ISkeletonItemState {
isActive: boolean;
}
interface ISkeletonItemApi {
state: ISkeletonItemState;
}
export { ISkeletonItemApi, ISkeletonItemConstants, ISkeletonItemProps, ISkeletonItemState };