Skip to content

Commit 1e5a08d

Browse files
committed
feat(flexible): 添加 onTransform 回调函数以支持 vw 值计算前的转换
1 parent 513b31d commit 1e5a08d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

packages/flexible/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cherrywind/flexible",
3-
"version": "0.1.7",
3+
"version": "0.1.7-alpha",
44
"private": false,
55
"keywords": [
66
"flexible"

packages/flexible/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ export interface FlexibleOptions {
5656
*/
5757
orientationchange?: boolean;
5858

59+
/**
60+
* 在计算 vw 值后但在应用之前调用的转换函数。
61+
*/
5962
onTransform?: (options: {
6063
/**
6164
* 作用域元素的信息(如果适用)。

0 commit comments

Comments
 (0)