【发布时间】:2020-07-14 23:27:45
【问题描述】:
我正在将此库用于角度图像库。 @ks89/angular-modal-gallery
我正在使用带有 modalGaleryEnable 的轮播模式,以便当用户单击图像时显示模式。
<ks-carousel [id]="111" [images]="imagesRect"
[carouselImageConfig]="{description: {strategy: 2, imageText: ''}}"
[carouselConfig]="{maxWidth: '766px', maxHeight: '400px', showArrows: true, objectFit: 'cover', keyboardEnable: true, modalGalleryEnable: true, legacyIE11Mode: false}"
[previewConfig]="{visible: true, number: 5, width: 'auto', maxHeight: '100px'}">
</ks-carousel>
图像描述中显示文本“Image X/X - Description”。
我需要删除文本“图像”,我设法为轮播做了 使用 carouselImageConfig:
[carouselImageConfig]="{description: {strategy: 2, imageText: ''}}"
但是对于模态模式它不起作用。 有模态模式的配置:
<ks-modal-gallery [id]="0" [modalImages]="images"
[currentImageConfig]="{description: {strategy: 2, imageText: ''}}"></ks-modal-gallery>
,但是我不知道如何使用它,因为我没有直接使用模态库。
提前致谢。
【问题讨论】:
标签: javascript angular image-gallery