diff --git a/pages/en-us/components/display.mdx b/pages/en-us/components/display.mdx index 3c7951a..d0ebb5c 100644 --- a/pages/en-us/components/display.mdx +++ b/pages/en-us/components/display.mdx @@ -1,5 +1,5 @@ import { Layout, Playground, Attributes } from 'lib/components' -import { Display, Code, Snippet } from 'components' +import { Display, Code, Snippet, Image } from 'components' export const meta = { title: 'Display', @@ -13,14 +13,13 @@ To display important information or images in a central alignment. - + `} /> - A domain redirect that redirects requests made to www.zeit.rocks to zeit.rocks.

}> - + `} /> diff --git a/pages/en-us/components/image.mdx b/pages/en-us/components/image.mdx index b9b509f..0a81f68 100644 --- a/pages/en-us/components/image.mdx +++ b/pages/en-us/components/image.mdx @@ -61,7 +61,8 @@ Display image content. | Attribute | Description | Type | Accepted values | Default | ---------- | ---------- | ---- | -------------- | ------ | | **src** | image src | `string` | - | - | -| **animation** | display animation when loading | `boolean` | - | `true` | +| **disableSkeleton** | disable skeleton animation when loading | `boolean` | - | `false` | +| **disableAutoResize** | disable zooming when width is too small | `boolean` | - | `false` | | **maxDelay**(ms) | max duration of animation | `number` | - | `3000` | | **width** | width | `number` | - | - | | **height** | height | `number` | - | - | diff --git a/pages/zh-cn/components/display.mdx b/pages/zh-cn/components/display.mdx index cb46e11..6b568ae 100644 --- a/pages/zh-cn/components/display.mdx +++ b/pages/zh-cn/components/display.mdx @@ -1,5 +1,5 @@ import { Layout, Playground, Attributes } from 'lib/components' -import { Display, Code, Snippet } from 'components' +import { Display, Code, Snippet, Image } from 'components' export const meta = { title: '陈列框 Display', @@ -12,10 +12,10 @@ export const meta = { - + `} /> @@ -54,10 +54,10 @@ export const meta = { 将域名 www.zeit.rocks 重定向至 zeit.rocks

}> - + `} /> diff --git a/pages/zh-cn/components/image.mdx b/pages/zh-cn/components/image.mdx index 0c14450..e6734bf 100644 --- a/pages/zh-cn/components/image.mdx +++ b/pages/zh-cn/components/image.mdx @@ -60,7 +60,8 @@ export const meta = { | 属性 | 描述 | 类型 | 推荐值 | 默认 | ---------- | ---------- | ---- | -------------- | ------ | | **src** | 图片地址 | `string` | - | - | -| **animation** | 是否在加载时显示骨架动画 | `boolean` | - | `true` | +| **disableSkeleton** | 禁用加载时的骨架动画 | `boolean` | - | `false` | +| **disableAutoResize** | 禁用等比缩放图片 (当小于指定宽度时) | `boolean` | - | `false` | | **maxDelay** | 动画持续最大时间 (毫秒) | `number` | - | `3000` | | **width** | 宽度 | `number` | - | - | | **height** | 高度 | `number` | - | - |