diff --git a/src/en-US/element/info.md b/src/en-US/element/info.md index 7a3ac81..a53ee0a 100644 --- a/src/en-US/element/info.md +++ b/src/en-US/element/info.md @@ -31,7 +31,7 @@ type Element = { angle?: number; detail: any; // Different element has different description operations?: { - lock?: boolean; + locked?: boolean; invisible?: boolean; limitRatio?: boolean; }; @@ -51,9 +51,9 @@ type Element = { | w | Element width | `number` | - | `true` | - | | h | Element height | `number` | - | `true` | - | | angle | Element rotation angle | `number` | `0` | `false` | `[0, 360]` | -| lock | Set the lock-staus of element | `boolean` | `false` | `false` | The view operation cannot be controlled after the element is locked | +| locked | Set the lock-staus of element | `boolean` | `false` | `false` | The view operation cannot be controlled after the element is locked | | detail | Detail of different elements | `object` (Please check the description of each element for details) | - | `true` | - | -| operation.lock | Set the lock-staus of element | `boolean` | `false` | `false` | The view operation cannot be controlled after the element is locked | +| operation.locked | Set the locked-staus of element | `boolean` | `false` | `false` | The view operation cannot be controlled after the element is locked | | operation.invisible | - | `boolean` | `false` | `false` | - | | operation.limitRatio | Limit element width and height ratio | `boolean` | - | `false` | When the element is scaled, it is scaled according to its width and height ratio | diff --git a/src/zh-CN/element/info.md b/src/zh-CN/element/info.md index 1e289e4..8bd4b64 100644 --- a/src/zh-CN/element/info.md +++ b/src/zh-CN/element/info.md @@ -32,7 +32,7 @@ type Element = { detail: any; // 不同元素的描述内容不一样 // operations 为元素操控配置 operations?: { - lock?: boolean; + locked?: boolean; invisible?: boolean; limitRatio?: boolean; }; @@ -53,7 +53,7 @@ type Element = { | h | 元素高度 | `number` | - | - | | angle | 元素旋转角度 | `number` | `0` | `[0, 360]` | | detail | 元素描述内容 | `object` (详情请查看各元素描述内容) | - | - | -| operations.lock | 元素是否锁住 | `boolean` | `false` | 元素锁住后就不能进行视图操作 | +| operations.locked | 元素是否锁住 | `boolean` | `false` | 元素锁住后就不能进行视图操作 | | operations.invisible | 元素是否不可见 | `boolean` | `false` | 元素不可见就不会渲染 | | operations.limitRatio | 元素是否限制宽高比例 | `boolean` | - | 在元素缩放时候,按照其宽高比例进行缩放 |