diff --git a/packages/opendesign/src/grid/__docs__/__case__/GridUsage.vue b/packages/opendesign/src/grid/__docs__/__case__/GridUsage.vue index 0ec4f636439903a46efa6fb7734388a5900c1ce2..8b60b35a5a65cde1d7f418fc18f70ddb0d5bda06 100644 --- a/packages/opendesign/src/grid/__docs__/__case__/GridUsage.vue +++ b/packages/opendesign/src/grid/__docs__/__case__/GridUsage.vue @@ -3,32 +3,150 @@ ### 使用 +ORow的属性: + +通过属性 `inline` 控制 `Row` 的根元素的 `display` 是否为 `inline-flex`; + +通过属性 `align` 控制容器辅轴对齐方式; + +通过属性 `justify` 控制容器主轴对齐方式; + +通过属性 `wrap` 控制容器 `flex-wrap` 样式的值; + +通过属性 `direction` 控制容器 `flex-direction` 样式的值; + +通过属性 `gap` 控制子元素的间距,注意:当同时为组件传递了 `gap`、`gapX`、`gapY` 属性,将优先使用 `gapX`、`gapY`; + +通过属性 `pcS`、`laptop`、`pad`、`padV`、`phone` 可以控制不同断点尺寸下的 `gap`值。 + +OCol的属性: + +通过属性 `flex` 控制元素的 `flex` 样式的值; + +通过属性 `align` 控制元素辅轴的对齐方式; + +通过属性 `pcS`、`laptop`、`pad`、`padV`、`phone` 可以控制不同断点尺寸下的 `flex`值。 + +The attributes of ORow: + +Control whether the `display` of the root element of the `Row` is`inline-flex`through the property`inline`; + +Control the alignment of the container\`s auxiliary axes through the attribute `align`; + +Control the alignment of the container\`s main axis through the attribute `justify`; + +Control the value of the container `flex-wrap` style through the attribute `wrap`; + +Control the value of the container `flex-direction` style through the attribute `direction`; + +Control the spacing of child elements through the attribute `gap`. Note: When the attributes`gap`, `gapX`, and `gapY` are passed to a component simultaneously, `gapX` and `gapY` will be used first. + +The `gap` value at different breakpoint sizes can be controlled through the attributes`pcS`, `laptop`, `pad`, `padV`, and `phone`. + +The properties of OCol: + +Control the value of the `flex` style of an element through the attribute `flex`; + +Control the alignment of the element\`s secondary axis through the attribute `align`; + +The `flex` value at different breakpoint sizes can be controlled through the attributes`pcS`, `laptop`, `pad`, `padV`, and `phone`. + ### Usage - - diff --git a/packages/opendesign/src/grid/__docs__/index.en-US.md b/packages/opendesign/src/grid/__docs__/index.en-US.md index 92c79bc08586f44c7ca218fbe314021ee2fa6251..10cc4f161cb922bc27609fcb207f0ef7b82753d0 100644 --- a/packages/opendesign/src/grid/__docs__/index.en-US.md +++ b/packages/opendesign/src/grid/__docs__/index.en-US.md @@ -9,7 +9,7 @@ Due to limited browser support for the `gap` property in flex-box (Chrome 84, Sa ## Demo - + ## API diff --git a/packages/opendesign/src/grid/__docs__/index.zh-CN.md b/packages/opendesign/src/grid/__docs__/index.zh-CN.md index d00afca33ffbd28542608d5a23e770ce227209d8..e3f6fa13a744482e92119b44d6232e43def71952 100644 --- a/packages/opendesign/src/grid/__docs__/index.zh-CN.md +++ b/packages/opendesign/src/grid/__docs__/index.zh-CN.md @@ -9,7 +9,7 @@ kind: container ## 示例 - + ## API diff --git a/packages/opendesign/src/loading/__docs__/__case__/LoadingUsage.vue b/packages/opendesign/src/loading/__docs__/__case__/LoadingUsage.vue new file mode 100644 index 0000000000000000000000000000000000000000..31b24cc63cf4e15a228bc82d72918c0c58e08884 --- /dev/null +++ b/packages/opendesign/src/loading/__docs__/__case__/LoadingUsage.vue @@ -0,0 +1,73 @@ + + + +### 使用 + +通过 `label` 属性控制 loading 时显示的文本; + +通过 `icon` 属性自定义 loading 时的图标; + +通过 `iconRotating` 属性控制自定义的 loading 图标是否旋转; + +其它属性的使用详见[OLayer](/zh-CN/components/layer#使用)。 + + + +Control the text displayed during loading through the `label` attribute; + +Customize the icon at loading through the `icon` attribute; + +Control whether the custom loading icon rotates through the `iconRotating` property; + +For the usage of other attributes, please refer to [OLayer](/zh-CN/components/layer#usage). + +### Usage + + diff --git a/packages/opendesign/src/loading/__docs__/index.en-US.md b/packages/opendesign/src/loading/__docs__/index.en-US.md index 6dcf0ebacc3056252776ffbafe4a1df346b74b39..0ccef7deb6f2c5607ffa7aa8b1499b46651c3f25 100644 --- a/packages/opendesign/src/loading/__docs__/index.en-US.md +++ b/packages/opendesign/src/loading/__docs__/index.en-US.md @@ -7,6 +7,7 @@ kind: display ## Demo + diff --git a/packages/opendesign/src/loading/__docs__/index.zh-CN.md b/packages/opendesign/src/loading/__docs__/index.zh-CN.md index 21082e29a4787e8eb8f2016688aefd35951b084e..31ade9f0af4d621e0e8dcf5213cf93f7a5ad0614 100644 --- a/packages/opendesign/src/loading/__docs__/index.zh-CN.md +++ b/packages/opendesign/src/loading/__docs__/index.zh-CN.md @@ -7,6 +7,7 @@ kind: display ## 示例 +