Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified db/TDesign.db
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on v
background-color | String | - | \- | N
close-btn | String / Boolean / Object | false | \- | N
delete-btn | String / Boolean / Object | false | \- | N
images | Array | [] | Typescript:`Array<string>` | N
initial-index | Number | 0 | Typescript:`Number` | N
image-props | Object | - | `1.12.0`。Typescript: `ImageProps`,[Image API Documents](./image?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/image-viewer/type.ts) | N
images | Array | [] | Typescript: `Array<string>` | N
initial-index | Number | 0 | Typescript: `Number` | N
lazy | Boolean | true | `1.9.4` | N
show-index | Boolean | false | \- | N
using-custom-navbar | Boolean | false | `v1.1.4` | N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场
background-color | String | - | 遮罩的背景颜色 | N
close-btn | String / Boolean / Object | false | 是否显示关闭操作,前提需要开启页码。值为字符串表示图标名称,值为 `true` 表示使用默认图标 `close`,值为 `Object` 类型,表示透传至 `icon` ,不传表示不显示图标 | N
delete-btn | String / Boolean / Object | false | 是否显示删除操作,前提需要开启页码。值为字符串表示图标名称,值为 `true` 表示使用默认图标 `delete`,值为 `Object` 类型,表示透传至 `icon`,不传表示不显示图标 | N
image-props | Object | - | `1.12.0`。透传至 Image 组件。TS 类型:`ImageProps`,[Image API Documents](./image?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/image-viewer/type.ts) | N
images | Array | [] | 图片数组。TS 类型:`Array<string>` | N
initial-index | Number | 0 | 初始化页码。TS 类型:`Number` | N
lazy | Boolean | true | `1.9.4`。是否开启图片懒加载。开启后会预加载当前图片、相邻图片 | N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ const props: TdImageViewerProps = {
type: null,
value: false,
},
/** 透传至 Image 组件 */
imageProps: {
type: Object,
},
/** 图片数组 */
images: {
type: Array,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
* */

import { ImageProps } from '../image/index';

export interface TdImageViewerProps {
/**
* 遮罩的背景颜色
Expand All @@ -29,6 +31,13 @@ export interface TdImageViewerProps {
type: null;
value?: string | boolean | object;
};
/**
* 透传至 Image 组件
*/
imageProps?: {
type: ObjectConstructor;
value?: ImageProps;
};
/**
* 图片数组
* @default []
Expand Down
37 changes: 37 additions & 0 deletions packages/scripts/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -68865,6 +68865,43 @@
"Boolean"
]
},
{
"id": 1764210910,
"platform_framework": [
"64"
],
"component": "ImageViewer",
"field_category": 1,
"field_name": "imageProps",
"field_type": [
"8"
],
"field_default_value": "",
"field_enum": "",
"field_desc_zh": "透传至 Image 组件",
"field_desc_en": null,
"field_required": 0,
"event_input": "",
"create_time": "2025-11-27 02:35:10",
"update_time": "2025-11-27 02:35:10",
"event_output": null,
"custom_field_type": "ImageProps【import { ImageProps } from '@Image'】",
"syntactic_sugar": null,
"readonly": 1,
"html_attribute": 0,
"trigger_elements": "",
"deprecated": 0,
"version": "{ \"Miniprogram\": \"1.12.0\" }",
"test_description": null,
"support_default_value": 0,
"field_category_text": "Props",
"platform_framework_text": [
"Miniprogram"
],
"field_type_text": [
"Object"
]
},
{
"id": 1711596997,
"platform_framework": [
Expand Down