From a87f7803cceea80d4c46526190be7cec9a9e45cd Mon Sep 17 00:00:00 2001 From: besscroft Date: Thu, 11 Jan 2024 23:33:29 +0800 Subject: [PATCH] docs(components): [image] add type of crossorigin --- docs/en-US/component/image.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en-US/component/image.md b/docs/en-US/component/image.md index 5e07bf0684..6249e8a14b 100644 --- a/docs/en-US/component/image.md +++ b/docs/en-US/component/image.md @@ -60,7 +60,7 @@ image/image-preview ### Image Attributes | Name | Description | Type | Default | -| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- | ------- | +| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |-------------------------------------------------------------------------| ------- | | src | image source, same as native. | ^[string] | '' | | fit | indicate how the image should be resized to fit its container, same as [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit). | ^[enum]`'' \| 'fill' \| 'contain' \| 'cover' \| 'none' \| 'scale-down'` | '' | | hide-on-click-modal | when enabling preview, use this flag to control whether clicking on backdrop can exit preview mode. | ^[boolean] | false | @@ -69,7 +69,7 @@ image/image-preview | scroll-container | the container to add scroll listener when using lazy load. By default, the container to add scroll listener when using lazy load. | ^[string] / ^[object]`HTMLElement` | — | | alt | native attribute `alt`. | ^[string] | — | | referrerpolicy | native attribute [referrerPolicy](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/referrerPolicy). | ^[string] | — | -| crossorigin | native attribute [crossorigin](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin). | ^[enum]`'' \| 'anonymous' \| 'use-credentials'` | 'anonymous' | — | +| crossorigin | native attribute [crossorigin](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin). | ^[enum]`'' \| 'anonymous' \| 'use-credentials' \| 'null'` | 'anonymous' | — | | preview-src-list | allow big image preview. | ^[object]`string[]` | [] | | z-index | set image preview z-index. | ^[number] | — | | initial-index | initial preview image index, less than the length of `url-list`. | ^[number] | 0 |