@fibrae/semi-ui-svelte 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/README.zh-CN.md +8 -4
- package/dist/components/anchor/interface.d.ts +14 -0
- package/dist/components/audio-player/interface.d.ts +5 -0
- package/dist/components/auto-complete/interface.d.ts +29 -0
- package/dist/components/avatar/interface.d.ts +24 -0
- package/dist/components/backtop/interface.d.ts +2 -0
- package/dist/components/badge/interface.d.ts +7 -0
- package/dist/components/banner/interface.d.ts +7 -0
- package/dist/components/breadcrumb/interface.d.ts +10 -0
- package/dist/components/button/interface.d.ts +18 -0
- package/dist/components/calendar/interface.d.ts +16 -0
- package/dist/components/card/interface.d.ts +18 -0
- package/dist/components/carousel/interface.d.ts +16 -0
- package/dist/components/cascader/cascader.svelte +1 -0
- package/dist/components/cascader/interface.d.ts +57 -0
- package/dist/components/checkbox/interface.d.ts +19 -0
- package/dist/components/code-highlight/interface.d.ts +3 -0
- package/dist/components/collapse/interface.d.ts +16 -0
- package/dist/components/collapsible/interface.d.ts +10 -0
- package/dist/components/color-picker/interface.d.ts +10 -0
- package/dist/components/config-provider/interface.d.ts +7 -0
- package/dist/components/cropper/interface.d.ts +11 -0
- package/dist/components/date-picker/interface.d.ts +47 -0
- package/dist/components/descriptions/interface.d.ts +6 -0
- package/dist/components/divider/interface.d.ts +4 -0
- package/dist/components/dropdown/interface.d.ts +8 -0
- package/dist/components/empty/interface.d.ts +7 -0
- package/dist/components/feedback/interface.d.ts +16 -0
- package/dist/components/float-button/interface.d.ts +14 -0
- package/dist/components/form/interface.d.ts +47 -0
- package/dist/components/form/label.svelte +2 -2
- package/dist/components/grid/interface.d.ts +13 -0
- package/dist/components/highlight/interface.d.ts +7 -0
- package/dist/components/hot-keys/interface.d.ts +3 -0
- package/dist/components/image/interface.d.ts +59 -0
- package/dist/components/input/interface.d.ts +67 -0
- package/dist/components/input-number/interface.d.ts +24 -0
- package/dist/components/json-viewer/interface.d.ts +7 -0
- package/dist/components/layout/interface.d.ts +3 -0
- package/dist/components/list/interface.d.ts +18 -0
- package/dist/components/locale/interface.d.ts +4 -0
- package/dist/components/lottie/interface.d.ts +2 -0
- package/dist/components/markdown-render/interface.d.ts +5 -0
- package/dist/components/modal/interface.d.ts +29 -0
- package/dist/components/navigation/interface.d.ts +47 -0
- package/dist/components/overflow-list/interface.d.ts +11 -0
- package/dist/components/pagination/interface.d.ts +12 -0
- package/dist/components/pincode/interface.d.ts +8 -0
- package/dist/components/popconfirm/interface.d.ts +12 -0
- package/dist/components/popover/interface.d.ts +30 -0
- package/dist/components/progress/interface.d.ts +13 -0
- package/dist/components/radio/interface.d.ts +22 -0
- package/dist/components/rating/interface.d.ts +12 -0
- package/dist/components/resizable/interface.d.ts +30 -0
- package/dist/components/scroll-list/interface.d.ts +6 -0
- package/dist/components/select/interface.d.ts +63 -0
- package/dist/components/side-sheet/interface.d.ts +19 -0
- package/dist/components/skeleton/interface.d.ts +7 -0
- package/dist/components/slider/interface.d.ts +23 -0
- package/dist/components/space/interface.d.ts +4 -0
- package/dist/components/spin/interface.d.ts +7 -0
- package/dist/components/steps/interface.d.ts +9 -0
- package/dist/components/switch/interface.d.ts +7 -0
- package/dist/components/table/interface.d.ts +48 -0
- package/dist/components/tabs/interface.d.ts +29 -0
- package/dist/components/tag/interface.d.ts +22 -0
- package/dist/components/tag-input/interface.d.ts +29 -0
- package/dist/components/time-picker/interface.d.ts +31 -0
- package/dist/components/timeline/interface.d.ts +5 -0
- package/dist/components/tooltip/interface.d.ts +20 -0
- package/dist/components/tooltip/tooltip.svelte +3 -0
- package/dist/components/transfer/interface.d.ts +18 -0
- package/dist/components/tree/interface.d.ts +45 -0
- package/dist/components/tree-select/interface.d.ts +55 -0
- package/dist/components/typography/interface.d.ts +33 -0
- package/dist/components/upload/interface.d.ts +64 -0
- package/dist/components/user-guide/interface.d.ts +15 -0
- package/dist/components/video-player/interface.d.ts +22 -0
- package/dist/styles.css +1 -1
- package/docs/advanced/dark-mode.md +288 -0
- package/docs/basic/button.md +605 -0
- package/docs/basic/divider.md +103 -0
- package/docs/basic/float-button.md +246 -0
- package/docs/basic/grid.md +427 -0
- package/docs/basic/layout.md +459 -0
- package/docs/basic/resizable.md +584 -0
- package/docs/basic/space.md +163 -0
- package/docs/basic/tokens.md +425 -0
- package/docs/basic/typography.md +615 -0
- package/docs/changes-from-semi.md +105 -0
- package/docs/ecosystem/tailwind.md +210 -0
- package/docs/experience/accessibility.md +82 -0
- package/docs/experience/content-guidelines.md +819 -0
- package/docs/experience/internationalization.md +7 -0
- package/docs/feedback/banner.md +198 -0
- package/docs/feedback/feedback.md +294 -0
- package/docs/feedback/notification.md +401 -0
- package/docs/feedback/popconfirm.md +243 -0
- package/docs/feedback/progress.md +389 -0
- package/docs/feedback/skeleton.md +388 -0
- package/docs/feedback/spin.md +172 -0
- package/docs/feedback/toast.md +393 -0
- package/docs/input/auto-complete.md +399 -0
- package/docs/input/cascader.md +1558 -0
- package/docs/input/checkbox.md +408 -0
- package/docs/input/color-picker.md +175 -0
- package/docs/input/date-picker.md +942 -0
- package/docs/input/form.md +2550 -0
- package/docs/input/input-number.md +451 -0
- package/docs/input/input.md +640 -0
- package/docs/input/pincode.md +191 -0
- package/docs/input/radio.md +337 -0
- package/docs/input/rating.md +214 -0
- package/docs/input/select.md +1230 -0
- package/docs/input/slider.md +347 -0
- package/docs/input/switch.md +206 -0
- package/docs/input/tag-input.md +465 -0
- package/docs/input/time-picker.md +358 -0
- package/docs/input/transfer.md +1061 -0
- package/docs/input/tree-select.md +1300 -0
- package/docs/input/upload.md +1811 -0
- package/docs/llms.txt +147 -0
- package/docs/navigation/anchor.md +377 -0
- package/docs/navigation/backtop.md +100 -0
- package/docs/navigation/breadcrumb.md +284 -0
- package/docs/navigation/navigation.md +851 -0
- package/docs/navigation/pagination.md +217 -0
- package/docs/navigation/steps.md +315 -0
- package/docs/navigation/tabs.md +754 -0
- package/docs/navigation/tree.md +1956 -0
- package/docs/other/config-provider.md +599 -0
- package/docs/other/locale.md +353 -0
- package/docs/plus/audio-player.md +155 -0
- package/docs/plus/code-highlight.md +150 -0
- package/docs/plus/drag-move.md +214 -0
- package/docs/plus/hot-keys.md +174 -0
- package/docs/plus/json-viewer.md +392 -0
- package/docs/plus/lottie.md +176 -0
- package/docs/plus/markdown-render.md +240 -0
- package/docs/plus/video-player.md +325 -0
- package/docs/show/avatar.md +475 -0
- package/docs/show/badge.md +276 -0
- package/docs/show/calendar.md +352 -0
- package/docs/show/card.md +485 -0
- package/docs/show/carousel.md +592 -0
- package/docs/show/collapse.md +289 -0
- package/docs/show/collapsible.md +216 -0
- package/docs/show/cropper.md +285 -0
- package/docs/show/descriptions.md +325 -0
- package/docs/show/dropdown.md +466 -0
- package/docs/show/empty.md +225 -0
- package/docs/show/highlight.md +144 -0
- package/docs/show/image.md +433 -0
- package/docs/show/list.md +927 -0
- package/docs/show/modal.md +517 -0
- package/docs/show/overflow-list.md +272 -0
- package/docs/show/popover.md +534 -0
- package/docs/show/scroll-list.md +156 -0
- package/docs/show/side-sheet.md +274 -0
- package/docs/show/table.md +5437 -0
- package/docs/show/tag.md +428 -0
- package/docs/show/timeline.md +277 -0
- package/docs/show/tooltip.md +442 -0
- package/docs/show/user-guide.md +419 -0
- package/docs/start/getting-started.md +234 -0
- package/docs/start/introduction.md +57 -0
- package/docs/start/overview.md +21 -0
- package/package.json +5 -4
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
# Dark Mode
|
|
2
|
+
|
|
3
|
+
> Every Semi color variable has a light and a dark value, so a page can switch between light and dark mode.
|
|
4
|
+
|
|
5
|
+
Package: `@fibrae/semi-ui-svelte`. Web page: https://semi-design-next.pages.dev/en-US/svelte/advanced/dark-mode/
|
|
6
|
+
|
|
7
|
+
## Dark mode
|
|
8
|
+
|
|
9
|
+
🤩 Every Semi color variable has a light and a dark value, which can be easily switched.\
|
|
10
|
+
🌒 Semi also supports the use of dark mode in a partial area of the page.
|
|
11
|
+
|
|
12
|
+
## Recommended settings
|
|
13
|
+
|
|
14
|
+
Semi will automatically mount the global color palette on the root element (`:root`). We have built in some commonly used CSS Tokens. For detailed Token details, please refer to [Design Variables](../basic/tokens.md) We recommend that you configure `color` and `background-color` on the body, your business components can automatically inherit the default background color and text color from the body, and adaptive light/dark color switching
|
|
15
|
+
|
|
16
|
+
```css
|
|
17
|
+
// css
|
|
18
|
+
body {
|
|
19
|
+
color: var(--semi-color-text-0);
|
|
20
|
+
background-color: var(--semi-color-bg-0);
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## How to switch
|
|
25
|
+
|
|
26
|
+
To use Dark Mode, you could simply add `[theme-mode='dark']` to `body` in any way you prefer. The attribute works on any ancestor element. The variables are declared on `:root` and declared again on the element carrying `theme-mode='dark'`, so read them on `body` or a descendant to get the dark values. Here is a quick idea:
|
|
27
|
+
|
|
28
|
+
```js
|
|
29
|
+
const body = document.body;
|
|
30
|
+
if (body.hasAttribute('theme-mode')) {
|
|
31
|
+
body.removeAttribute('theme-mode');
|
|
32
|
+
} else {
|
|
33
|
+
body.setAttribute('theme-mode', 'dark');
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
For instance:
|
|
38
|
+
|
|
39
|
+
```svelte
|
|
40
|
+
<script lang="ts">
|
|
41
|
+
import { Button } from '@fibrae/semi-ui-svelte';
|
|
42
|
+
|
|
43
|
+
const switchMode = () => {
|
|
44
|
+
const body = document.body;
|
|
45
|
+
if (body.hasAttribute('theme-mode')) {
|
|
46
|
+
body.removeAttribute('theme-mode');
|
|
47
|
+
} else {
|
|
48
|
+
body.setAttribute('theme-mode', 'dark');
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
</script>
|
|
52
|
+
|
|
53
|
+
<Button onclick={switchMode}>Switch Mode</Button>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Customize the colors of both modes
|
|
57
|
+
|
|
58
|
+
Override the `--semi-*` color variables in your own stylesheet: light values on `:root`, dark values on `[theme-mode='dark']`. Semi's styles sit in `@layer semi`, so your unlayered rules always win without `!important`:
|
|
59
|
+
|
|
60
|
+
```css
|
|
61
|
+
:root {
|
|
62
|
+
--semi-color-primary: var(--semi-violet-5);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
[theme-mode='dark'] {
|
|
66
|
+
--semi-color-primary: var(--semi-violet-4);
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
With partial light/dark mode, the `.semi-always-light` and `.semi-always-dark` elements declare the color variables again; to make an override reach those areas too, add the two classes to the selectors above.
|
|
71
|
+
|
|
72
|
+
## Keep Consistency with System Theme
|
|
73
|
+
|
|
74
|
+
If you want the mode of the site to change with the system setting, you may find this property [Prefers-color-scheme ](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme) helpful. To change system setting in macOS, go to System Preferences -> General -> Appearance
|
|
75
|
+
|
|
76
|
+
You could add a listener for this property using js. Here is another example:
|
|
77
|
+
|
|
78
|
+
```js
|
|
79
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
80
|
+
|
|
81
|
+
function matchMode(e) {
|
|
82
|
+
const body = document.body;
|
|
83
|
+
if (e.matches) {
|
|
84
|
+
if (!body.hasAttribute('theme-mode')) {
|
|
85
|
+
body.setAttribute('theme-mode', 'dark');
|
|
86
|
+
}
|
|
87
|
+
} else {
|
|
88
|
+
if (body.hasAttribute('theme-mode')) {
|
|
89
|
+
body.removeAttribute('theme-mode');
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
matchMode(mql);
|
|
95
|
+
mql.addEventListener('change', matchMode);
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Block Dark/Light Mode
|
|
99
|
+
|
|
100
|
+
Semi 2.0 natively supports block dark/bright color mode, and you can add `.semi-always-dark` or `.semi-always-light` to areas that require block dark or bright colors as needed.
|
|
101
|
+
|
|
102
|
+
> Note: pop-up layers render in body, outside the element carrying `.semi-always-dark` or `.semi-always-light`. When the pop-up layer of Tooltip, Popover, Dropdown, or the dropdown of Select and similar components opens, it takes the class of the innermost `.semi-always-dark` or `.semi-always-light` element around its trigger, so it uses the same mode as the area of the trigger. Modal, SideSheet, Toast and Notification do not follow a trigger; they render in body by default and use the page theme.
|
|
103
|
+
|
|
104
|
+
```svelte
|
|
105
|
+
<script lang="ts">
|
|
106
|
+
import { IconBell, IconCamera, IconEdit, IconHelpCircle, IconHistogram, IconHome, IconList, IconLive, IconSemiLogo, IconSetting } from '@fibrae/semi-icons-svelte';
|
|
107
|
+
import { Avatar, Badge, Breadcrumb, Button, Layout, Nav, Pagination, Popover, Rating, Steps, Tag, Timeline, Tooltip, type StepData, type TimelineData } from '@fibrae/semi-ui-svelte';
|
|
108
|
+
|
|
109
|
+
const rowStyle = 'margin: 16px 10px';
|
|
110
|
+
const badgeStyle = 'width: 42px; height: 42px; border-radius: 4px; display: inline-block';
|
|
111
|
+
const tagStyle = 'margin-inline-end: 8px; margin-block-end: 8px';
|
|
112
|
+
const sideIcons = { Home: IconHome, Histogram: IconHistogram, Live: IconLive, Setting: IconSetting };
|
|
113
|
+
const exampleIcons = { user: IconEdit, union: IconCamera, 'approve-management': IconList };
|
|
114
|
+
|
|
115
|
+
const steps = (description: string): StepData[] => [
|
|
116
|
+
{ title: 'Finished', description },
|
|
117
|
+
{ title: 'In Progress', description },
|
|
118
|
+
{ title: 'Waiting', description },
|
|
119
|
+
];
|
|
120
|
+
const timeline: TimelineData[] = [
|
|
121
|
+
{ time: '2019-07-14 10:35', content: '审核中', type: 'ongoing' },
|
|
122
|
+
{ time: '2019-06-13 16:17', content: '发布成功', type: 'success' },
|
|
123
|
+
{ time: '2019-05-14 18:34', content: '审核失败', type: 'error' },
|
|
124
|
+
];
|
|
125
|
+
|
|
126
|
+
let mode = $state('semi-always-dark');
|
|
127
|
+
|
|
128
|
+
const switchMode = () => {
|
|
129
|
+
mode = mode === 'semi-always-dark' ? 'semi-always-light' : 'semi-always-dark';
|
|
130
|
+
};
|
|
131
|
+
</script>
|
|
132
|
+
|
|
133
|
+
{#snippet topHeader()}
|
|
134
|
+
<Nav.Header>
|
|
135
|
+
<IconSemiLogo style="width: 96px; height: 36px; font-size: 36px" />
|
|
136
|
+
</Nav.Header>
|
|
137
|
+
{/snippet}
|
|
138
|
+
|
|
139
|
+
{#snippet topFooter()}
|
|
140
|
+
<Nav.Footer>
|
|
141
|
+
<Button aria-label="通知" style="color: var(--semi-color-text-2); margin-inline-end: 12px" theme="borderless">
|
|
142
|
+
{#snippet icon()}<IconBell size="large" />{/snippet}
|
|
143
|
+
</Button>
|
|
144
|
+
<Button aria-label="帮助" style="color: var(--semi-color-text-2); margin-inline-end: 12px" theme="borderless">
|
|
145
|
+
{#snippet icon()}<IconHelpCircle size="large" />{/snippet}
|
|
146
|
+
</Button>
|
|
147
|
+
<Avatar color="orange" size="small">YJ</Avatar>
|
|
148
|
+
</Nav.Footer>
|
|
149
|
+
{/snippet}
|
|
150
|
+
|
|
151
|
+
{#snippet tipContent()}hi semi-design{/snippet}
|
|
152
|
+
|
|
153
|
+
<Button style="margin-block-end: 4px" onclick={switchMode}>Switch Content Mode</Button>
|
|
154
|
+
<Layout style="border: 1px solid var(--semi-color-border)">
|
|
155
|
+
<Layout.Header style="background-color: var(--semi-color-bg-1)">
|
|
156
|
+
<div>
|
|
157
|
+
<Nav aria-label="顶部导航" footer={topFooter} header={topHeader} mode="horizontal" selectedKeys={['Home']}>
|
|
158
|
+
<!-- Nav renders its children straight into the list, so other content needs its own li -->
|
|
159
|
+
<li style="display: contents">
|
|
160
|
+
<span style="color: var(--semi-color-text-2)">
|
|
161
|
+
<span style="margin-inline-end: 24px; color: var(--semi-color-text-0); font-weight: 600"> 模版推荐 </span>
|
|
162
|
+
<span style="margin-inline-end: 24px">所有模版</span>
|
|
163
|
+
<span>我的模版</span>
|
|
164
|
+
</span>
|
|
165
|
+
</li>
|
|
166
|
+
</Nav>
|
|
167
|
+
</div>
|
|
168
|
+
</Layout.Header>
|
|
169
|
+
<Layout>
|
|
170
|
+
<Layout.Sider style="background-color: var(--semi-color-bg-1)">
|
|
171
|
+
<Nav
|
|
172
|
+
aria-label="侧边导航"
|
|
173
|
+
footer={{ collapseButton: true }}
|
|
174
|
+
items={[
|
|
175
|
+
{ itemKey: 'Home', text: '首页' },
|
|
176
|
+
{ itemKey: 'Histogram', text: '基础数据' },
|
|
177
|
+
{ itemKey: 'Live', text: '测试功能' },
|
|
178
|
+
{ itemKey: 'Setting', text: '设置' },
|
|
179
|
+
]}
|
|
180
|
+
selectedKeys={['Home']}
|
|
181
|
+
style="max-width: 220px; height: 100%"
|
|
182
|
+
>
|
|
183
|
+
{#snippet icon({ item })}
|
|
184
|
+
{@const Icon = sideIcons[item.itemKey as keyof typeof sideIcons]}
|
|
185
|
+
<Icon size="large" />
|
|
186
|
+
{/snippet}
|
|
187
|
+
</Nav>
|
|
188
|
+
</Layout.Sider>
|
|
189
|
+
<Layout.Content class={mode} style="padding: 24px; background-color: var(--semi-color-bg-1)">
|
|
190
|
+
<Breadcrumb routes={['首页', '当这个页面标题很长时需要省略', '上一页', '详情页']} style="margin-block-end: 24px" />
|
|
191
|
+
<div style="border-radius: 10px; border: 1px solid var(--semi-color-border); height: 700px; padding: 32px">
|
|
192
|
+
<div style={rowStyle}>
|
|
193
|
+
<Nav
|
|
194
|
+
aria-label="示例导航"
|
|
195
|
+
items={[
|
|
196
|
+
{ itemKey: 'user', text: 'Option1' },
|
|
197
|
+
{ itemKey: 'union', text: 'Option2' },
|
|
198
|
+
{ itemKey: 'approve-management', text: 'Group3', items: ['3-1', '3-2'] },
|
|
199
|
+
]}
|
|
200
|
+
mode="horizontal"
|
|
201
|
+
>
|
|
202
|
+
{#snippet icon({ item })}
|
|
203
|
+
{@const Icon = exampleIcons[item.itemKey as keyof typeof exampleIcons]}
|
|
204
|
+
<Icon />
|
|
205
|
+
{/snippet}
|
|
206
|
+
</Nav>
|
|
207
|
+
<br />
|
|
208
|
+
<br />
|
|
209
|
+
<Pagination showSizeChanger total={80} />
|
|
210
|
+
<br />
|
|
211
|
+
<Steps current={1} dataSource={steps('This is a description.')} />
|
|
212
|
+
<br />
|
|
213
|
+
<Steps current={1} dataSource={steps('This is a description')} status="error" />
|
|
214
|
+
</div>
|
|
215
|
+
<div style={rowStyle}>
|
|
216
|
+
<div style="display: flex">
|
|
217
|
+
<div style="padding: 8px">
|
|
218
|
+
<Badge count={5} theme="solid">
|
|
219
|
+
<Avatar color="blue" shape="square" style={badgeStyle}>XZ</Avatar>
|
|
220
|
+
</Badge>
|
|
221
|
+
</div>
|
|
222
|
+
<div style="padding: 8px">
|
|
223
|
+
<Badge count={5} theme="light">
|
|
224
|
+
<Avatar color="cyan" shape="square" style={badgeStyle}>YB</Avatar>
|
|
225
|
+
</Badge>
|
|
226
|
+
</div>
|
|
227
|
+
<div style="padding: 8px">
|
|
228
|
+
<Badge count={5} theme="inverted">
|
|
229
|
+
<Avatar color="indigo" shape="square" style={badgeStyle}>LX</Avatar>
|
|
230
|
+
</Badge>
|
|
231
|
+
</div>
|
|
232
|
+
<div style="padding: 8px">
|
|
233
|
+
<Badge dot theme="solid">
|
|
234
|
+
<Avatar color="light-blue" shape="square" style={badgeStyle}>YZ</Avatar>
|
|
235
|
+
</Badge>
|
|
236
|
+
</div>
|
|
237
|
+
<div style="padding: 8px">
|
|
238
|
+
<Badge dot theme="light">
|
|
239
|
+
<Avatar color="teal" shape="square" style={badgeStyle}>HW</Avatar>
|
|
240
|
+
</Badge>
|
|
241
|
+
</div>
|
|
242
|
+
<div style="padding: 8px; border-radius: 4px; background-color: var(--semi-color-fill-0)">
|
|
243
|
+
<Badge dot theme="inverted">
|
|
244
|
+
<Avatar color="green" shape="square" style={badgeStyle}>XM</Avatar>
|
|
245
|
+
</Badge>
|
|
246
|
+
</div>
|
|
247
|
+
</div>
|
|
248
|
+
<br />
|
|
249
|
+
<div>
|
|
250
|
+
<Tag color="grey" style={tagStyle}>grey tag</Tag>
|
|
251
|
+
<Tag color="blue" style={tagStyle}>blue tag</Tag>
|
|
252
|
+
<Tag color="blue" style={tagStyle} type="ghost">ghost tag</Tag>
|
|
253
|
+
<Tag color="blue" style={tagStyle} type="solid">solid tag</Tag>
|
|
254
|
+
<Tag color="red" style={tagStyle}>red tag</Tag>
|
|
255
|
+
<Tag color="green" style={tagStyle}>green tag</Tag>
|
|
256
|
+
<Tag color="orange" style={tagStyle}>orange tag</Tag>
|
|
257
|
+
<Tag color="teal" style={tagStyle}>teal tag</Tag>
|
|
258
|
+
<Tag color="violet" style={tagStyle}>violet tag</Tag>
|
|
259
|
+
<Tag color="white" style={tagStyle}>white tag</Tag>
|
|
260
|
+
</div>
|
|
261
|
+
<br />
|
|
262
|
+
<div style="display: flex; align-items: center">
|
|
263
|
+
<Popover content={tipContent} style="padding: 8px">
|
|
264
|
+
<Tag style="margin-inline-end: 8px">I am Popover</Tag>
|
|
265
|
+
</Popover>
|
|
266
|
+
<Tooltip content={tipContent}>
|
|
267
|
+
<Tag style="margin-inline-end: 8px">I am Tooltip</Tag>
|
|
268
|
+
</Tooltip>
|
|
269
|
+
<Rating size="small" style="margin-inline-end: 8px" value={3} />
|
|
270
|
+
</div>
|
|
271
|
+
<br />
|
|
272
|
+
<Timeline dataSource={timeline} />
|
|
273
|
+
</div>
|
|
274
|
+
</div>
|
|
275
|
+
</Layout.Content>
|
|
276
|
+
</Layout>
|
|
277
|
+
<Layout.Footer style="display: flex; justify-content: space-between; padding: 20px; color: var(--semi-color-text-2); background-color: var(--semi-grey-0)">
|
|
278
|
+
<span style="display: flex; align-items: center">
|
|
279
|
+
<IconSemiLogo size="large" style="margin-inline-end: 8px" />
|
|
280
|
+
<span>Copyright © 2019 Semi Design Next. All Rights Reserved. </span>
|
|
281
|
+
</span>
|
|
282
|
+
<span>
|
|
283
|
+
<span style="margin-inline-end: 24px">平台客服</span>
|
|
284
|
+
<span>反馈建议</span>
|
|
285
|
+
</span>
|
|
286
|
+
</Layout.Footer>
|
|
287
|
+
</Layout>
|
|
288
|
+
```
|