Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Upload] 通过grid-config调整图片大小之后,感觉画面的布局有问题 #2452

Closed
Zlianxin opened this issue Nov 25, 2023 · 1 comment · Fixed by #2449
Closed

Comments

@Zlianxin
Copy link

tdesign-miniprogram 版本

1.2.3

重现链接

No response

重现步骤

wxml代码如下所示:

<t-upload mediaType="{{['image']}}" max="{{8}}" files="{{fileList}}" bind:add="handleAdd" bind:remove="handleRemove" gridConfig="{{uploadGridConfig}}">
</t-upload>

其中uploadGridConfig的值如下所示:

uploadGridConfig: {
  column: 4,
  width: 134,
  height: 134,
}

期望结果

期望上,图片是左右两端对齐。

实际结果

但实际上,左边是有缝隙的。

Snipaste_2023-11-25_12-10-05

基础库版本

No response

补充说明

看了一下源码,看是是像把一排平均分为4份。
之后问题是出现在里面的 t-grid-item__content 的布局,图片在里面是偏右的,应该偏左才对。。
Snipaste_2023-11-25_12-15-10

Copy link
Contributor

👋 @Zlianxin,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant