@antv/dumi-theme-antv 0.3.0-beta.2 → 0.3.0-beta.21

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.
Files changed (89) hide show
  1. package/dist/builtins/Playground/index.d.ts +3 -6
  2. package/dist/builtins/Playground/index.js +27 -7
  3. package/dist/context.d.ts +2 -1
  4. package/dist/layouts/DocLayout.js +25 -16
  5. package/dist/layouts/entry/Index.js +21 -12
  6. package/dist/layouts/entry/Manual.js +6 -4
  7. package/dist/pages/404.js +7 -4
  8. package/dist/pages/Example/index.js +31 -55
  9. package/dist/pages/Example/index.module.less +50 -8
  10. package/dist/pages/Example/utils.d.ts +1 -0
  11. package/dist/pages/Example/utils.js +9 -0
  12. package/dist/pages/Examples/components/ExampleTopicMenu/components/LeftMenu/index.js +6 -1
  13. package/dist/pages/Examples/components/GalleryPageContent/DemoCard/index.js +11 -6
  14. package/dist/pages/Examples/index.js +24 -4
  15. package/dist/pages/Examples/index.module.less +15 -0
  16. package/dist/pages/Examples/types.d.ts +7 -6
  17. package/dist/plugin/examples.d.ts +14 -5
  18. package/dist/plugin/examples.js +17 -3
  19. package/dist/plugin/index.js +31 -8
  20. package/dist/plugin/utils.js +3 -2
  21. package/dist/slots/Article/index.d.ts +3 -0
  22. package/dist/slots/Article/index.js +11 -0
  23. package/dist/slots/Article/index.module.less +8 -0
  24. package/dist/slots/Banner/Notification.d.ts +10 -0
  25. package/dist/slots/Banner/Notification.js +43 -0
  26. package/dist/slots/Banner/Notification.module.less +120 -0
  27. package/dist/slots/Banner/index.d.ts +26 -0
  28. package/dist/slots/Banner/index.js +184 -0
  29. package/dist/slots/Banner/index.module.less +449 -0
  30. package/dist/slots/Cases/index.d.ts +1 -0
  31. package/dist/slots/Cases/index.js +13 -7
  32. package/dist/slots/Cases/index.module.less +2 -1
  33. package/dist/slots/CodeEditor/Toolbar.js +17 -22
  34. package/dist/slots/CodeEditor/index.d.ts +4 -0
  35. package/dist/slots/CodeEditor/index.js +71 -23
  36. package/dist/slots/CodeEditor/utils.js +2 -2
  37. package/dist/slots/CodePreview/CodeHeader.js +15 -14
  38. package/dist/slots/CodePreview/index.d.ts +8 -0
  39. package/dist/slots/CodePreview/index.js +15 -6
  40. package/dist/slots/CodePreview/index.module.less +17 -7
  41. package/dist/slots/CodeRunner/index.d.ts +5 -2
  42. package/dist/slots/CodeRunner/index.js +19 -8
  43. package/dist/slots/CodeRunner/utils.d.ts +3 -2
  44. package/dist/slots/CodeRunner/utils.js +1 -1
  45. package/dist/slots/Companies/index.d.ts +1 -1
  46. package/dist/slots/{TOC.d.ts → ContentTable/index.d.ts} +2 -1
  47. package/dist/slots/{TOC.js → ContentTable/index.js} +2 -1
  48. package/dist/slots/ContentTable/index.module.less +11 -0
  49. package/dist/slots/Detail/News.d.ts +1 -0
  50. package/dist/slots/Detail/News.js +3 -2
  51. package/dist/slots/Detail/index.d.ts +1 -0
  52. package/dist/slots/Detail/index.js +4 -2
  53. package/dist/slots/ExampleSider/index.d.ts +4 -38
  54. package/dist/slots/ExampleSider/index.js +28 -49
  55. package/dist/slots/ExampleSider/index.module.less +1 -1
  56. package/dist/slots/Features/FeatureCard.d.ts +1 -0
  57. package/dist/slots/Features/index.js +7 -3
  58. package/dist/slots/Features/index.module.less +1 -1
  59. package/dist/slots/Footer/index.js +34 -14
  60. package/dist/slots/Header/LogoWhite.js +1 -2
  61. package/dist/slots/Header/Navs.d.ts +10 -1
  62. package/dist/slots/Header/Navs.js +36 -19
  63. package/dist/slots/Header/Products/NavigatorBanner.js +4 -3
  64. package/dist/slots/Header/Products/Product.js +7 -3
  65. package/dist/slots/Header/Products/index.js +5 -3
  66. package/dist/slots/Header/Search.js +5 -3
  67. package/dist/slots/Header/index.d.ts +7 -2
  68. package/dist/slots/Header/index.js +135 -30
  69. package/dist/slots/Loading/index.d.ts +6 -1
  70. package/dist/slots/Loading/index.js +24 -10
  71. package/dist/slots/Loading/index.module.less +276 -9
  72. package/dist/slots/ManualContent/NavigatorBanner.js +5 -3
  73. package/dist/slots/ManualContent/ReadingTime.js +6 -2
  74. package/dist/slots/ManualContent/index.js +143 -126
  75. package/dist/slots/ManualContent/index.module.less +52 -33
  76. package/dist/slots/ManualContent/utils.d.ts +18 -0
  77. package/dist/slots/ManualContent/utils.js +64 -0
  78. package/dist/slots/SEO.d.ts +10 -0
  79. package/dist/slots/SEO.js +59 -0
  80. package/dist/slots/_.less +1 -1
  81. package/dist/slots/hooks.d.ts +4 -4
  82. package/dist/slots/hooks.js +5 -8
  83. package/dist/slots/utils.d.ts +4 -19
  84. package/dist/slots/utils.js +82 -119
  85. package/dist/types.d.ts +83 -0
  86. package/dist/typings.d.ts +0 -116
  87. package/package.json +9 -5
  88. package/dist/slots/Loading.d.ts +0 -5
  89. package/dist/slots/Loading.js +0 -8
@@ -0,0 +1,449 @@
1
+ @import '../_.less';
2
+
3
+ .wrapper {
4
+ min-height: 650px;
5
+ max-height: 803px;
6
+ background: linear-gradient(225deg, #ffffff, #f0f5ff);
7
+ height: calc(94vh);
8
+ position: relative;
9
+ overflow: hidden;
10
+
11
+ .content {
12
+ .container1440;
13
+ height: 100%;
14
+ position: relative;
15
+ }
16
+
17
+ .text {
18
+ position: relative;
19
+ top: 26%;
20
+ z-index: 1;
21
+ margin-left: 4.5%;
22
+
23
+ .title {
24
+ font-size: 3.4em; //2.875em;
25
+ font-weight: 800;
26
+ color: rgba(0, 0, 0, 1);
27
+ position: relative;
28
+ }
29
+
30
+ .description {
31
+ margin-top: 0.83%; //12px;
32
+ margin-bottom: 0px;
33
+ color: rgba(106, 123, 140, 1);
34
+ font-size: 1.14em;
35
+ font-weight: 200;
36
+ position: relative;
37
+ width: 40%;
38
+ max-width: 700px;
39
+ }
40
+
41
+ .buttons {
42
+ display: flex;
43
+ margin-top: 5.56%;
44
+
45
+ .buttonLink+.buttonLink {
46
+ margin-left: 16px;
47
+ }
48
+
49
+ .buttonLink {
50
+ cursor: pointer;
51
+ border-radius: 50px;
52
+ min-width: 134px;
53
+ padding-left: 15px;
54
+ padding-right: 15px;
55
+ height: 40px;
56
+ z-index: 10;
57
+ position: relative;
58
+ transition: all 0.3s;
59
+ border: 1px solid @primary-color;
60
+ color: @primary-color;
61
+ background: transparent;
62
+ text-align: center;
63
+ font-size: 1.14em;
64
+ line-height: 40px;
65
+
66
+ &:hover {
67
+ color: tint(@primary-color, 25%);
68
+ border: 1px solid tint(@primary-color, 25%);
69
+ background-color: fade(@primary-color, 3%);
70
+ }
71
+
72
+ &.primary {
73
+ border: none;
74
+ outline: none;
75
+ color: #fff;
76
+ background: linear-gradient(60deg,
77
+ fade(@primary-color, 70%),
78
+ shade(@primary-color, 20%));
79
+ opacity: 0.8;
80
+ box-shadow: 0 8px 10px fade(@primary-color, 20%);
81
+
82
+ &:hover {
83
+ opacity: 1;
84
+ }
85
+ }
86
+ }
87
+
88
+ .videoButtonWrapper {
89
+ margin-left: 16px;
90
+ width: fit-content;
91
+ height: fit-content;
92
+
93
+ .videoButton {
94
+ width: 40px;
95
+ height: 40px;
96
+ background-size: contain;
97
+ border: 1px solid @primary-color;
98
+ border-radius: 20px;
99
+ transition: all 0.15s;
100
+ display: flex;
101
+ cursor: pointer;
102
+ overflow: hidden;
103
+
104
+ .videoButtonIcon {
105
+ margin-left: 12px;
106
+ font-size: 16px;
107
+ color: @primary-color;
108
+ line-height: 44px;
109
+ }
110
+
111
+ .videoButtonText {
112
+ line-height: 40px;
113
+ margin-left: 10px;
114
+ color: @primary-color;
115
+ }
116
+
117
+ &:hover {
118
+ width: 134px;
119
+ }
120
+ }
121
+ }
122
+
123
+ .githubWrapper {
124
+ margin-left: 16px;
125
+ display: flex;
126
+
127
+ :global {
128
+ .gh-btn {
129
+ width: 40px;
130
+ height: 40px;
131
+ border-radius: 20px;
132
+ padding: 9px;
133
+ border: 1px solid #ced4d9;
134
+ background: transparent;
135
+ text-decoration: none;
136
+ white-space: nowrap;
137
+ display: flex;
138
+ cursor: pointer;
139
+ float: left;
140
+ transition: all 0.15s;
141
+
142
+ &:hover {
143
+ background: #f2f4f5;
144
+ }
145
+
146
+ .gh-ico {
147
+ width: 16px;
148
+ height: 16px;
149
+ margin-left: 2px;
150
+ margin-top: 2px;
151
+ background-image: url(https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*Nk9mQ48ZoZMAAAAAAAAAAABkARQnAQ);
152
+ background-size: 100% 100%;
153
+ background-repeat: no-repeat;
154
+ box-sizing: border-box;
155
+ cursor: pointer;
156
+ color: #333;
157
+ }
158
+
159
+ .gh-text {
160
+ display: none;
161
+ }
162
+ }
163
+
164
+ .gh-count {
165
+ position: relative;
166
+ display: none;
167
+ /* hidden to start */
168
+ margin-left: 52px;
169
+ margin-top: 7px;
170
+ border: 1px solid #d4d4d4;
171
+ padding: 2px 10px;
172
+ font-weight: 700;
173
+ height: 65%;
174
+ border-radius: 5px;
175
+ color: rgb(49, 70, 89);
176
+
177
+ &:hover {
178
+ background: #f2f4f5;
179
+ transition: all 0.15s;
180
+ }
181
+ }
182
+
183
+ .gh-count:hover,
184
+ .gh-count:focus {
185
+ color: #4183c4;
186
+ }
187
+
188
+ .gh-count:before,
189
+ .gh-count:after {
190
+ content: '';
191
+ position: absolute;
192
+ display: inline-block;
193
+ width: 0;
194
+ height: 0;
195
+ border-color: transparent;
196
+ border-style: solid;
197
+ }
198
+
199
+ .gh-count:before {
200
+ top: 50%;
201
+ left: -3px;
202
+ margin-top: -5px;
203
+ border-width: 4px 4px 4px 0;
204
+ border-right-color: #fafafa;
205
+ }
206
+
207
+ .gh-count:after {
208
+ top: 50%;
209
+ border-width: 5px 5px 5px 0;
210
+ border-right-color: #d4d4d4;
211
+ left: -5px;
212
+ z-index: -1;
213
+ margin-top: -6px;
214
+ }
215
+ }
216
+ }
217
+ }
218
+ }
219
+
220
+ .notifications {
221
+ width: 80%;
222
+ display: flex;
223
+ bottom: 40px;
224
+ position: absolute;
225
+ z-index: 3;
226
+ margin-left: 4.5%;
227
+ }
228
+
229
+ .teaser {
230
+ display: flex;
231
+ position: absolute;
232
+ right: 0;
233
+ margin-top: -300px;
234
+ width: 52%;
235
+ max-width: 598px;
236
+ height: 324px;
237
+ margin: auto;
238
+ margin-top: 0;
239
+ top: 0;
240
+ bottom: 0;
241
+
242
+ .teaserimg {
243
+ width: 100%;
244
+ height: auto;
245
+ position: relative;
246
+ }
247
+ }
248
+
249
+ .backLeftBottom {
250
+ position: absolute;
251
+ left: -8%;
252
+ bottom: -20px;
253
+ }
254
+ }
255
+
256
+ .videoModal {
257
+ :global {
258
+ .video-react-big-play-button {
259
+ display: none !important;
260
+ }
261
+
262
+ .video-react-control-bar {
263
+ border-radius: 0 0 4px 4px;
264
+ }
265
+
266
+ .video-react {
267
+ border-radius: 4px;
268
+
269
+ .video-react-video {
270
+ border-radius: 4px;
271
+ }
272
+ }
273
+
274
+ .ant-modal-close {
275
+ right: -50px;
276
+ top: -12px;
277
+ color: #fff;
278
+ }
279
+
280
+ .anticon-info-circle {
281
+ display: none !important;
282
+ }
283
+
284
+ .ant-modal-confirm-btns {
285
+ display: none !important;
286
+ }
287
+
288
+ .ant-modal-confirm-title {
289
+ display: none !important;
290
+ }
291
+
292
+ .ant-modal-close {
293
+ display: block !important;
294
+ }
295
+
296
+ .ant-modal-body {
297
+ padding: 0 !important;
298
+
299
+ .ant-modal-confirm-content {
300
+ margin: 0 !important;
301
+ }
302
+ }
303
+ }
304
+ }
305
+
306
+ @media (max-width: 1144px) {
307
+ .wrapper {
308
+ .teaser {
309
+ transition: 0.3s all;
310
+ margin: auto;
311
+ margin-top: 0;
312
+ top: 0;
313
+ bottom: 0;
314
+ }
315
+ }
316
+ }
317
+
318
+ @media (max-width: 900px) {
319
+ .wrapper {
320
+ .content {
321
+ width: 91.46%;
322
+ margin-left: 4.27%;
323
+ margin-bottom: 5%;
324
+ position: relative;
325
+ }
326
+
327
+ .text {
328
+ top: 16.7%;
329
+ text-align: center;
330
+ margin-left: 0;
331
+
332
+ .title {
333
+ font-size: 2.857em;
334
+ margin-left: 0;
335
+ }
336
+
337
+ .description {
338
+ width: 100%;
339
+ max-width: 100%;
340
+ margin-left: 0;
341
+ font-size: 1em;
342
+ }
343
+
344
+ .buttons {
345
+ display: inline-flex;
346
+
347
+ .more {
348
+ font-size: 1em;
349
+ }
350
+
351
+ .githubIframe {
352
+ height: 40px;
353
+ }
354
+
355
+ .videoButtonWrapper {
356
+ width: fit-content;
357
+ height: fit-content;
358
+ }
359
+ }
360
+ }
361
+
362
+ .notifications {
363
+ width: 100%;
364
+ display: block;
365
+ bottom: 20px;
366
+ height: 48px;
367
+ overflow: hidden;
368
+ }
369
+
370
+ .teaser {
371
+ width: 100%;
372
+ max-width: 1200px;
373
+ margin-top: auto;
374
+ margin-left: unset;
375
+ margin-right: unset;
376
+ right: unset;
377
+ top: 30%;
378
+ display: flex;
379
+ justify-content: center;
380
+
381
+ .teaserimg {
382
+ width: 40%;
383
+ margin-left: unset;
384
+ margin-right: unset;
385
+ }
386
+ }
387
+ }
388
+ }
389
+
390
+ @media (max-width: 786px) {
391
+ .wrapper {
392
+ .text {
393
+ .buttons {
394
+ .videoButtonWrapper {
395
+ display: none;
396
+ }
397
+ }
398
+ }
399
+ }
400
+ }
401
+
402
+ @media (max-width: 510px) {
403
+ .wrapper {
404
+ .text {
405
+ .buttons {
406
+ margin-top: 70%;
407
+
408
+ .githubWrapper {
409
+ display: none;
410
+ }
411
+ }
412
+ }
413
+
414
+ .teaser {
415
+ width: 100%;
416
+ top: 5%;
417
+
418
+ .teaserimg {
419
+ width: 100%;
420
+ }
421
+ }
422
+
423
+ .backLeftBottom {
424
+ display: none;
425
+ }
426
+ }
427
+ }
428
+
429
+ @media (max-width: 480px) {
430
+ .wrapper {
431
+ .text {
432
+ height: 70%;
433
+
434
+ .buttons {
435
+ bottom: 10px;
436
+ margin-top: unset;
437
+ z-index: 1;
438
+ position: absolute;
439
+ left: 0;
440
+ width: 100%;
441
+ justify-content: center;
442
+ }
443
+ }
444
+
445
+ .teaser {
446
+ top: 14%;
447
+ }
448
+ }
449
+ }
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { IC } from '../../types';
2
3
  import 'slick-carousel/slick/slick.css';
3
4
  import 'slick-carousel/slick/slick-theme.css';
4
5
  interface Case {
@@ -2,12 +2,13 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
 
3
3
  import React from 'react';
4
4
  import { ArrowLeftOutlined, ArrowRightOutlined } from '@ant-design/icons';
5
- import { Link } from 'dumi';
5
+ import { Link, FormattedMessage } from 'dumi';
6
6
  import Slider from 'react-slick';
7
7
  import cx from 'classnames';
8
+ import { useLocale } from 'dumi';
9
+ import { ic } from "../hooks";
8
10
  import 'slick-carousel/slick/slick.css';
9
11
  import 'slick-carousel/slick/slick-theme.css';
10
- import { useT, ic } from "../hooks";
11
12
  import styles from "./index.module.less";
12
13
  export var Cases = function Cases(_ref) {
13
14
  var _ref$cases = _ref.cases,
@@ -15,6 +16,7 @@ export var Cases = function Cases(_ref) {
15
16
  _ref$style = _ref.style,
16
17
  style = _ref$style === void 0 ? {} : _ref$style,
17
18
  className = _ref.className;
19
+ var lang = useLocale().id;
18
20
  var slider = React.useRef(null);
19
21
 
20
22
  var clickPrevious = function clickPrevious() {
@@ -68,15 +70,19 @@ export var Cases = function Cases(_ref) {
68
70
  href: app.link,
69
71
  target: "_blank",
70
72
  rel: "noopener noreferrer"
71
- }, useT('查看详情')) : /*#__PURE__*/React.createElement(Link, {
73
+ }, /*#__PURE__*/React.createElement(FormattedMessage, {
74
+ id: "\u67E5\u770B\u8BE6\u60C5"
75
+ })) : /*#__PURE__*/React.createElement(Link, {
72
76
  className: styles.detail,
73
- to: app.link ? app.link : ''
74
- }, useT('查看详情')));
77
+ to: app.link[lang] ? app.link[lang] : app.link
78
+ }, /*#__PURE__*/React.createElement(FormattedMessage, {
79
+ id: "\u67E5\u770B\u8BE6\u60C5"
80
+ })));
75
81
  return /*#__PURE__*/React.createElement("div", {
76
82
  className: styles.appWrapper,
77
83
  key: ic(app.title)
78
84
  }, /*#__PURE__*/React.createElement("img", {
79
- className: styles.appTeaser,
85
+ className: cx(styles.appTeaser, 'index-cases-image'),
80
86
  src: app.image,
81
87
  alt: ic(app.title)
82
88
  }), /*#__PURE__*/React.createElement("div", {
@@ -84,7 +90,7 @@ export var Cases = function Cases(_ref) {
84
90
  }, /*#__PURE__*/React.createElement("div", {
85
91
  className: styles.appContent
86
92
  }, /*#__PURE__*/React.createElement("img", {
87
- className: styles.appLogo,
93
+ className: cx(styles.appLogo, 'index-case-logo'),
88
94
  src: app.logo,
89
95
  alt: "logo",
90
96
  style: {
@@ -18,7 +18,8 @@
18
18
  width: 83.88%;
19
19
  height: 100%;
20
20
  overflow-y: hidden;
21
- display: flex;
21
+ display: flex !important;
22
+ align-items: center;
22
23
 
23
24
  .appLeft {
24
25
  margin-left: 3.06%;
@@ -19,14 +19,13 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
19
19
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
20
20
 
21
21
  import React, { useEffect, useState } from 'react';
22
- import { CodeSandboxOutlined, PlayCircleOutlined, ThunderboltOutlined, FullscreenExitOutlined, FullscreenOutlined } from '@ant-design/icons';
22
+ import { CodeSandboxOutlined, PlayCircleOutlined, ThunderboltOutlined } from '@ant-design/icons';
23
23
  import { Typography, Tooltip } from 'antd';
24
- import { useLocale } from 'dumi';
24
+ import { useLocale, FormattedMessage } from 'dumi';
25
25
  import { getParameters } from 'codesandbox/lib/api/define';
26
26
  import stackblitzSdk from '@stackblitz/sdk';
27
27
  import { ping } from "../utils";
28
28
  import { extractImportDeps, getCodeSandboxConfig, getStackblitzConfig, getRiddleConfig } from "./utils";
29
- import { useT } from "../hooks";
30
29
  import styles from "./Toolbar.module.less";
31
30
  var Paragraph = Typography.Paragraph;
32
31
  export var EDITOR_TABS;
@@ -68,8 +67,8 @@ export var Toolbar = function Toolbar(_ref) {
68
67
  updateRiddleVisible = _useState2[1];
69
68
 
70
69
  useEffect(function () {
71
- ping(function (status) {
72
- updateRiddleVisible(status === 'responded');
70
+ ping().then(function (status) {
71
+ return updateRiddleVisible(status === 'responded');
73
72
  });
74
73
  }, []);
75
74
  return /*#__PURE__*/React.createElement("div", {
@@ -93,20 +92,26 @@ export var Toolbar = function Toolbar(_ref) {
93
92
  name: "data",
94
93
  value: JSON.stringify(riddlePrefillConfig)
95
94
  }), /*#__PURE__*/React.createElement(Tooltip, {
96
- title: useT('在 Riddle 中打开')
95
+ title: /*#__PURE__*/React.createElement(FormattedMessage, {
96
+ id: "\u5728 Riddle \u4E2D\u6253\u5F00"
97
+ })
97
98
  }, /*#__PURE__*/React.createElement("input", {
98
99
  type: "submit",
99
100
  value: "Create New Riddle with Prefilled Data",
100
101
  className: styles.riddle
101
102
  }))) : null, /*#__PURE__*/React.createElement(Tooltip, {
102
- title: useT('在 StackBlitz 中打开')
103
+ title: /*#__PURE__*/React.createElement(FormattedMessage, {
104
+ id: "\u5728 StackBlitz \u4E2D\u6253\u5F00"
105
+ })
103
106
  }, /*#__PURE__*/React.createElement(ThunderboltOutlined, {
104
107
  className: styles.stackblitz,
105
108
  onClick: function onClick() {
106
109
  stackblitzSdk.openProject(stackblitzPrefillConfig);
107
110
  }
108
111
  })), /*#__PURE__*/React.createElement(Tooltip, {
109
- title: useT('在 CodeSandbox 中打开')
112
+ title: /*#__PURE__*/React.createElement(FormattedMessage, {
113
+ id: "\u5728 CodeSandbox \u4E2D\u6253\u5F00"
114
+ })
110
115
  }, /*#__PURE__*/React.createElement("form", {
111
116
  action: "https://codesandbox.io/api/v1/sandboxes/define",
112
117
  method: "POST",
@@ -129,20 +134,10 @@ export var Toolbar = function Toolbar(_ref) {
129
134
  style: {
130
135
  marginLeft: 6
131
136
  }
132
- }), onToggleFullscreen ? /*#__PURE__*/React.createElement(Tooltip, {
133
- title: isFullScreen ? useT('离开全屏') : useT('进入全屏')
134
- }, isFullScreen ? /*#__PURE__*/React.createElement(FullscreenExitOutlined, {
135
- onClick: onToggleFullscreen,
136
- style: {
137
- marginLeft: 12
138
- }
139
- }) : /*#__PURE__*/React.createElement(FullscreenOutlined, {
140
- onClick: onToggleFullscreen,
141
- style: {
142
- marginLeft: 12
143
- }
144
- })) : null, /*#__PURE__*/React.createElement(Tooltip, {
145
- title: useT('执行代码')
137
+ }), /*#__PURE__*/React.createElement(Tooltip, {
138
+ title: /*#__PURE__*/React.createElement(FormattedMessage, {
139
+ id: "\u6267\u884C\u4EE3\u7801"
140
+ })
146
141
  }, /*#__PURE__*/React.createElement(PlayCircleOutlined, {
147
142
  onClick: onExecuteCode,
148
143
  style: {
@@ -4,6 +4,10 @@ export declare type CodeEditorProps = {
4
4
  * 标题
5
5
  */
6
6
  title?: string;
7
+ /**
8
+ * 示例的 id
9
+ */
10
+ exampleId: string;
7
11
  /**
8
12
  * 输入的源码
9
13
  */