UNPKG

ranui

Version:

UI Component library based on `Web Component`

80 lines (79 loc) 2.02 kB
export declare const falseList: (string | boolean | null | undefined)[]; /** * @description: 判断这个元素上是否有 disabled 属性 * @param {Element} element * @return {*} */ export declare const isDisabled: (element: Element) => boolean; /** * @description: 查询指定元素的子级元素,删除他们的某一个指定 class * @param {Element} parent * @param {string} deleteClass */ export declare const removeClassToElementChild: (parent: Element, deleteClass: string) => void; /** * @description: 创建 icon 的文档示例 */ export declare const createIconList: () => void; export declare const loadScript: ({ type, content }: { type: string; content: string; }) => Promise<{ success: boolean; }>; export interface CustomErrorType { new (m: string): void; } export declare function createCustomError(msg?: string): CustomErrorType; export declare const vod: { FD: { label: string; }; LD: { bandWidth: { h264: number; h265: number; }; label: string; }; SD: { bandWidth: { h264: number; h265: number; }; label: string; }; HD: { bandWidth: { h264: number; h265: number; }; label: string; }; '2K': { bandWidth: { h264: number; h265: number; }; label: string; }; '4K': { bandWidth: { h264: number; h265: number; }; label: string; }; }; export declare const HTMLElementSSR: () => { new (): HTMLElement; prototype: HTMLElement; } | null; export declare const createSignal: <T = unknown>(value: T, options?: { subscriber?: Function[]; equals?: boolean | ((prev: T | undefined, next: T) => boolean); }) => [() => T, (newValue: T) => void]; /** * 根据文件扩展名获取 MIME 类型 */ export declare function getMimeTypeFromExtension(fileName: string): string;