unika-components 1.1.181 → 1.1.183
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.d.ts +1 -1
- package/dist/src/utils/applyTextAnimation.d.ts +6 -0
- package/dist/unika-components.css +6619 -6618
- package/dist/unika-components.esm.js +55 -23
- package/dist/unika-components.umd.js +55 -22
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ import UniMenuTel from './components/UniMenuTel';
|
|
|
27
27
|
import UniMenuReceipt from './components/UniMenuReceipt';
|
|
28
28
|
import UniMenuMap from './components/UniMenuMap';
|
|
29
29
|
declare const install: (app: App) => void;
|
|
30
|
-
export { applyTextAnimation, applyTextAnimationsForPage } from './utils/applyTextAnimation';
|
|
30
|
+
export { applyTextAnimation, applyTextAnimationsForPage, restoreTextAnimation } from './utils/applyTextAnimation';
|
|
31
31
|
export { UniText, UniImage, UniShape, UniMusic, UniVideo, UniCalendar, UniCountdown, UniMap, UniCall, UniEffect, UniLottie, UniButton, UniBarrage, WorkRenderH5, WorkRenderLong, WorkRender, UniFormInput, UniFormSubmit, UniFormSelect, UniFormSingle, UniFormMultiple, UniFormContainer, UniMenu, UniMenuVideo, UniMenuTel, UniMenuReceipt, UniMenuMap, install };
|
|
32
32
|
declare const _default: {
|
|
33
33
|
install: (app: App<any>) => void;
|
|
@@ -22,6 +22,12 @@ export interface ElementLike {
|
|
|
22
22
|
textAni?: TextAnimationItem[];
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* 恢复文字元素的原始内容(撤销逐字动画后调用)
|
|
27
|
+
* @param element 元素数据
|
|
28
|
+
* @param rootElement 根元素
|
|
29
|
+
*/
|
|
30
|
+
export declare function restoreTextAnimation(element: ElementLike, rootElement?: HTMLElement | Document): void;
|
|
25
31
|
/**
|
|
26
32
|
* 对指定页面的文字元素应用 textAni 动画
|
|
27
33
|
* @param elements 页面元素列表
|