* 创建元素 * @param tagName 标签名 * @param property 属性 * @param attributes 元素上的自定义属性 * @example * // 创建一个DIV元素,且属性class为xxx * DOMUtils.createElement("div",undefined,{ class:"xxx" }); * > * @example * // 创建一个DIV元素 * DOMUtils.createElement("div"); * >
(
/** 元素名 */
tagName: K,
/** 属性 */
property?:
| ({
[P in keyof HTMLElementTagNameMap[K]]?: HTMLElementTagNameMap[K][P] extends string | boolean | number
? HTMLElementTagNameMap[K][P]
: never;
} & {
[key: string]: any;
})
| string,
/** 自定义属性 */
attributes?: PopsDOMUtilsCreateElementAttributesMap
)
source not stored for this graph (policy: none)
no test coverage detected