@tarojsx/library
Version:
Taro3 library
18 lines (17 loc) • 572 B
TypeScript
declare type Instance = HTMLDivElement & {
style: any;
[key: string]: any;
};
/**
* TaroElement 设置 style 属性比设置字符串 cssText 理论上性能更高, 这种方式可以跳过 react setState, 但是逃不过小程序 setData.
*
* 在碰到兼容问题前, 暂时交由 spring web 处理 style.
*
* 1. TaroElement.style[name] = value
* 2. TaroElement.setAttribute('style', styleString)
*/
export declare const applyAnimatedValues: (instance: Instance, props: {
[attr: string]: any;
style: React.CSSProperties;
}) => boolean;
export {};