UNPKG

@opensig/opendesign

Version:

19 lines (18 loc) 707 B
import { VNodeChild } from 'vue'; export declare function hyphenate(str: string): string; /** * 将组件的props转为属性字符串以便拼接到html标签中 * 仅在__docs__/__case__/ 中使用 * @param props 组件的props * @param exclude 不转化的props属性名 * @returns 属性字符串 */ export declare function propsToAttrStr<T extends Record<string, any>>(props: T, exclude?: (keyof T)[]): string; export declare function escapeHTML(value?: string): string; type SlotFunc = (props: any) => VNodeChild; export declare function createReusableTemplate(): readonly [(_: any, { slots }: { slots: { default: SlotFunc; }; }) => null, (props: any) => VNodeChild]; export {};