demo: rm useless Tag margin-right (#48356)

* site: rm useless Tag margin-right

* chore: revert
This commit is contained in:
lijianan 2024-04-09 21:35:31 +08:00 committed by GitHub
parent 089514bae9
commit 25a1849af9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 47 additions and 23 deletions

View File

@ -11684,8 +11684,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end: 0;"
>
cat
CAT
</span>
</td>
<td
@ -11727,8 +11728,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end: 0;"
>
dog
DOG
</span>
</td>
<td
@ -11770,8 +11772,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end: 0;"
>
cat
CAT
</span>
</td>
<td
@ -11814,8 +11817,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end: 0;"
>
dog
DOG
</span>
</td>
<td
@ -11857,8 +11861,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end: 0;"
>
cat
CAT
</span>
</td>
<td
@ -11900,8 +11905,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end: 0;"
>
dog
DOG
</span>
</td>
<td
@ -11943,8 +11949,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end: 0;"
>
cat
CAT
</span>
</td>
<td
@ -11986,8 +11993,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end: 0;"
>
dog
DOG
</span>
</td>
<td
@ -12030,8 +12038,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end: 0;"
>
cat
CAT
</span>
</td>
<td
@ -12073,8 +12082,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end: 0;"
>
dog
DOG
</span>
</td>
<td

View File

@ -6872,8 +6872,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end:0"
>
cat
CAT
</span>
</td>
<td
@ -6915,8 +6916,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end:0"
>
dog
DOG
</span>
</td>
<td
@ -6958,8 +6960,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end:0"
>
cat
CAT
</span>
</td>
<td
@ -7002,8 +7005,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end:0"
>
dog
DOG
</span>
</td>
<td
@ -7045,8 +7049,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end:0"
>
cat
CAT
</span>
</td>
<td
@ -7088,8 +7093,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end:0"
>
dog
DOG
</span>
</td>
<td
@ -7131,8 +7137,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end:0"
>
cat
CAT
</span>
</td>
<td
@ -7174,8 +7181,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end:0"
>
dog
DOG
</span>
</td>
<td
@ -7218,8 +7226,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end:0"
>
cat
CAT
</span>
</td>
<td
@ -7261,8 +7270,9 @@ Array [
>
<span
class="ant-tag"
style="margin-inline-end:0"
>
dog
DOG
</span>
</td>
<td

View File

@ -68,7 +68,9 @@ const TableTransfer = ({ leftColumns, rightColumns, ...restProps }: TableTransfe
style={{ pointerEvents: listDisabled ? 'none' : undefined }}
onRow={({ key, disabled: itemDisabled }) => ({
onClick: () => {
if (itemDisabled || listDisabled) return;
if (itemDisabled || listDisabled) {
return;
}
onItemSelect(key as string, !listSelectedKeys.includes(key as string));
},
})}

View File

@ -67,7 +67,9 @@ const TableTransfer = ({ leftColumns, rightColumns, ...restProps }: TableTransfe
style={{ pointerEvents: listDisabled ? 'none' : undefined }}
onRow={({ key, disabled: itemDisabled }) => ({
onClick: () => {
if (itemDisabled || listDisabled) return;
if (itemDisabled || listDisabled) {
return;
}
onItemSelect(key as string, !listSelectedKeys.includes(key as string));
},
})}
@ -99,7 +101,7 @@ const leftTableColumns: TableColumnsType<DataType> = [
{
dataIndex: 'tag',
title: 'Tag',
render: (tag) => <Tag>{tag}</Tag>,
render: (tag: string) => <Tag style={{ marginInlineEnd: 0 }}>{tag.toUpperCase()}</Tag>,
},
{
dataIndex: 'description',