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

fix(#1260): 对齐数据更新时间 #1553

Merged
merged 1 commit into from
Sep 2, 2023
Merged

Conversation

IITII
Copy link
Member

@IITII IITII commented Sep 1, 2023

#1260

  • 至于字段目前的对齐方式,我觉得挺不错的。数值之类的右对齐没问题,先不说设计,数值有长有短。居中肯定不行,左对齐也不行,只能右对齐。 不信可以自己改改试试,改 align 值即可

headers: [
{
text: this.$t("home.headers.site"),
align: "center",
value: "name",
width: "110px",
},
{
text: this.$t("home.headers.userName"),
align: "left",
value: "user.name",
},
{
text: this.$t("home.headers.levelName"),
align: "left",
value: "user.levelName",
},
{
text: this.$t("home.headers.activitiyData"),
align: "right",
value: "user.uploaded",
width: "120px",
},
{
text: this.$t("home.headers.ratio"),
align: "right",
value: "user.ratio",
},
{
text: this.$t("home.headers.seeding"),
align: "right",
value: "user.seeding",
},
{
text: this.$t("home.headers.seedingSize"),
align: "right",
value: "user.seedingSize",
},
{
text: this.$t("home.headers.bonus"),
align: "right",
value: "user.bonus",
},
{
text: this.$t("home.headers.bonusPerHour"),
align: "right",
value: "user.bonusPerHour",
},
{
text: this.$t("home.headers.joinTime"),
align: "right",
value: "user.joinTime",
},
{
text: this.$t("home.headers.lastUpdateTime"),
align: "right",
value: "user.lastUpdateTime",
},
{
text: this.$t("home.headers.status"),
align: "center",
value: "user.lastUpdateStatus",
},
],

  • 更新前
    image

  • 更新后
    image

@IITII IITII merged commit 7bdc404 into pt-plugins:dev Sep 2, 2023
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 this pull request may close these issues.

1 participant