mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
commit
dbffde90c5
@ -20,7 +20,7 @@ Segmented Controls. This component is available since `antd@4.20.0`.
|
|||||||
<!-- prettier-ignore -->
|
<!-- prettier-ignore -->
|
||||||
<code src="./demo/basic.tsx">Basic</code>
|
<code src="./demo/basic.tsx">Basic</code>
|
||||||
<code src="./demo/block.tsx">Block Segmented</code>
|
<code src="./demo/block.tsx">Block Segmented</code>
|
||||||
<code src="./demo/disabled.tsx">Basic</code>
|
<code src="./demo/disabled.tsx">Disabled</code>
|
||||||
<code src="./demo/controlled.tsx">Controlled mode</code>
|
<code src="./demo/controlled.tsx">Controlled mode</code>
|
||||||
<code src="./demo/custom.tsx">Custom Render</code>
|
<code src="./demo/custom.tsx">Custom Render</code>
|
||||||
<code src="./demo/dynamic.tsx">Dynamic</code>
|
<code src="./demo/dynamic.tsx">Dynamic</code>
|
||||||
|
@ -58,9 +58,8 @@ function genSizeStyle(token: SelectToken, suffix?: string): CSSObject {
|
|||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
height: '100%',
|
height: '100%',
|
||||||
// Multiple is little different that horizontal is follow the vertical
|
// Multiple is little different that horizontal is follow the vertical
|
||||||
padding: `${unit(token.calc(selectItemDist).sub(FIXED_ITEM_MARGIN).equal())} ${unit(
|
paddingInline: token.calc(FIXED_ITEM_MARGIN).mul(2).equal(),
|
||||||
token.calc(FIXED_ITEM_MARGIN).mul(2).equal(),
|
paddingBlock: token.calc(selectItemDist).sub(FIXED_ITEM_MARGIN).equal(),
|
||||||
)}`,
|
|
||||||
borderRadius: token.borderRadius,
|
borderRadius: token.borderRadius,
|
||||||
|
|
||||||
[`${componentCls}-show-search&`]: {
|
[`${componentCls}-show-search&`]: {
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
|
||||||
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Ant Design Visual Diff Report</title>
|
<title>Ant Design Visual Diff Report</title>
|
||||||
@ -10,6 +11,7 @@
|
|||||||
padding-top: 16px;
|
padding-top: 16px;
|
||||||
padding-bottom: 16px;
|
padding-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Table Styles */
|
/* Table Styles */
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -21,6 +23,7 @@
|
|||||||
padding: 8px;
|
padding: 8px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
border-bottom: 1px solid #ddd;
|
border-bottom: 1px solid #ddd;
|
||||||
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
th {
|
th {
|
||||||
@ -67,8 +70,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
|
||||||
|
<body>
|
||||||
{{reportContent}}
|
{{reportContent}}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user