@yklyklpackages/message-card 0.6.3 → 0.8.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/dist/components/MessageCard.d.ts +4 -2
- package/dist/components/MessageCard.d.ts.map +1 -1
- package/dist/components/action/dispatcher.d.ts.map +1 -1
- package/dist/components/action/handlers.d.ts +5 -1
- package/dist/components/action/handlers.d.ts.map +1 -1
- package/dist/components/core/ComponentRenderer.d.ts.map +1 -1
- package/dist/components/core/LayoutWrapper.d.ts +1 -0
- package/dist/components/core/LayoutWrapper.d.ts.map +1 -1
- package/dist/components/core/LeafWrapper.d.ts.map +1 -1
- package/dist/components/core/templateAdapter.d.ts.map +1 -1
- package/dist/components/layout/AbsoluteViewLayout.d.ts.map +1 -1
- package/dist/components/layout/AnimationLayout.d.ts.map +1 -1
- package/dist/components/layout/FullRowLayout.d.ts +0 -1
- package/dist/components/layout/FullRowLayout.d.ts.map +1 -1
- package/dist/components/layout/JDHCardLayout.d.ts +23 -0
- package/dist/components/layout/JDHCardLayout.d.ts.map +1 -0
- package/dist/components/layout/MultipleColumnLayout.d.ts +3 -7
- package/dist/components/layout/MultipleColumnLayout.d.ts.map +1 -1
- package/dist/components/layout/RadioGroupLayout.d.ts +2 -0
- package/dist/components/layout/RadioGroupLayout.d.ts.map +1 -0
- package/dist/components/layout/ResponsiveTwoColumnLayout.d.ts +13 -0
- package/dist/components/layout/ResponsiveTwoColumnLayout.d.ts.map +1 -0
- package/dist/components/layout/ScrollViewLayout.d.ts +3 -2
- package/dist/components/layout/ScrollViewLayout.d.ts.map +1 -1
- package/dist/components/message/MessageContainer.d.ts +6 -1
- package/dist/components/message/MessageContainer.d.ts.map +1 -1
- package/dist/components/render/Button/index.d.ts +13 -0
- package/dist/components/render/Button/index.d.ts.map +1 -0
- package/dist/components/render/ButtonJDH.d.ts +13 -0
- package/dist/components/render/ButtonJDH.d.ts.map +1 -0
- package/dist/components/render/Checkbox.d.ts +1 -13
- package/dist/components/render/Checkbox.d.ts.map +1 -1
- package/dist/components/render/ChoiceJDH.d.ts +14 -0
- package/dist/components/render/ChoiceJDH.d.ts.map +1 -0
- package/dist/components/render/Image.d.ts +2 -2
- package/dist/components/render/Image.d.ts.map +1 -1
- package/dist/components/render/Input.d.ts +1 -13
- package/dist/components/render/Input.d.ts.map +1 -1
- package/dist/components/render/InputJDH.d.ts +15 -0
- package/dist/components/render/InputJDH.d.ts.map +1 -0
- package/dist/components/render/Markdown.d.ts +2 -2
- package/dist/components/render/Markdown.d.ts.map +1 -1
- package/dist/components/render/Radio.d.ts +1 -13
- package/dist/components/render/Radio.d.ts.map +1 -1
- package/dist/components/render/Select.d.ts +1 -13
- package/dist/components/render/Select.d.ts.map +1 -1
- package/dist/components/render/Text.d.ts +2 -2
- package/dist/components/render/Text.d.ts.map +1 -1
- package/dist/components/render/TextareaJDH.d.ts +15 -0
- package/dist/components/render/TextareaJDH.d.ts.map +1 -0
- package/dist/components/theme/ScreenTheme375.d.ts.map +1 -1
- package/dist/components/theme/ThemeContext.d.ts.map +1 -1
- package/dist/components/theme/ZhiYiPCTheme.d.ts +4 -0
- package/dist/components/theme/ZhiYiPCTheme.d.ts.map +1 -0
- package/dist/components/theme/defaultTheme.d.ts.map +1 -1
- package/dist/components/types/component.d.ts +1 -6
- package/dist/components/types/component.d.ts.map +1 -1
- package/dist/components/utils/ResponsiveContext.d.ts +1 -0
- package/dist/components/utils/ResponsiveContext.d.ts.map +1 -1
- package/dist/components/utils/styleHelpers.d.ts +56 -19
- package/dist/components/utils/styleHelpers.d.ts.map +1 -1
- package/dist/components/validator/ComponentValidator.d.ts.map +1 -1
- package/dist/index.cjs +6886 -25561
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6899 -25558
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +6817 -25491
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +451 -0
- package/package.json +8 -7
package/dist/style.css
ADDED
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* 在线链接服务仅供平台体验和调试使用,平台不承诺服务的稳定性,企业客户需下载字体包自行发布使用并做好备份。 */
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family: "xmdfont"; /* Project id 5108117 */
|
|
5
|
+
src: url("data:application/x-font-woff;charset=utf-8;base64,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") format("woff");
|
|
6
|
+
}
|
|
7
|
+
.xmdfont {
|
|
8
|
+
font-family: "xmdfont" !important;
|
|
9
|
+
font-size: 24px;
|
|
10
|
+
font-style: normal;
|
|
11
|
+
-webkit-font-smoothing: antialiased;
|
|
12
|
+
-moz-osx-font-smoothing: grayscale;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.xmd-icon-search:before {
|
|
16
|
+
content: "\e6f9";
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.xmd-icon-image:before {
|
|
20
|
+
content: "\e7eb";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.xmd-icon-image-error:before {
|
|
24
|
+
content: "\e7e7";
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.xmd-icon-fullscreen-shrink:before {
|
|
28
|
+
content: "\e676";
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.xmd-icon-fullscreen-expand:before {
|
|
32
|
+
content: "\e675";
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.xmd-icon-copy:before {
|
|
36
|
+
content: "\e7fa";
|
|
37
|
+
}
|
|
38
|
+
.xmd {
|
|
39
|
+
color: var(--xmd-text_color, #000710);
|
|
40
|
+
}
|
|
41
|
+
.xmd-space {
|
|
42
|
+
height: var(--xmd-space_size, 4px);
|
|
43
|
+
}
|
|
44
|
+
.xmd-strong {
|
|
45
|
+
font-weight: bold;
|
|
46
|
+
}
|
|
47
|
+
.xmd-mark {
|
|
48
|
+
background: none;
|
|
49
|
+
text-decoration: underline var(--xmd-primary_color, #02B176);
|
|
50
|
+
}
|
|
51
|
+
.xmd-paragraph {
|
|
52
|
+
font-size: var(--xmd-text_size, 30px);
|
|
53
|
+
line-height: var(--xmd-line_height, 48px);
|
|
54
|
+
}
|
|
55
|
+
.xmd-hr {
|
|
56
|
+
border: dashed var(--xmd-border_color, #e1e4e8);
|
|
57
|
+
margin: var(--xmd-hr_space_size, 16px) 0;
|
|
58
|
+
border-width: 2px 0 0;
|
|
59
|
+
}
|
|
60
|
+
.xmd-link {
|
|
61
|
+
color: var(--xmd-link_color, #0D6C58);
|
|
62
|
+
text-decoration: none;
|
|
63
|
+
}
|
|
64
|
+
.xmd-link-search {
|
|
65
|
+
display: inline-block;
|
|
66
|
+
width: 20px;
|
|
67
|
+
margin-left: 2px;
|
|
68
|
+
margin-right: 4px;
|
|
69
|
+
vertical-align: super;
|
|
70
|
+
line-height: 0;
|
|
71
|
+
}
|
|
72
|
+
.xmd-link-search .xmdfont {
|
|
73
|
+
font-size: 18px;
|
|
74
|
+
line-height: 0;
|
|
75
|
+
color: var(--xmd-link_color, #0D6C58);
|
|
76
|
+
}
|
|
77
|
+
/* ==================== 引用块 ==================== */
|
|
78
|
+
.xmd-blockquote {
|
|
79
|
+
border-left-width: 4px;
|
|
80
|
+
border-left-color: var(--xmd-border_color, #e1e4e8);
|
|
81
|
+
border-left-style: solid;
|
|
82
|
+
padding-left: 16px;
|
|
83
|
+
margin-top: 8px;
|
|
84
|
+
margin-bottom: 8px;
|
|
85
|
+
background-color: var(--xmd-table_bg_color, #ffffff);
|
|
86
|
+
padding-top: 8px;
|
|
87
|
+
padding-bottom: 8px;
|
|
88
|
+
}
|
|
89
|
+
/* ==================== 标题样式 ==================== */
|
|
90
|
+
.xmd-heading1 {
|
|
91
|
+
font-size: 34px;
|
|
92
|
+
font-weight: bold;
|
|
93
|
+
line-height: 54px;
|
|
94
|
+
margin-bottom: var(--xmd-heading_gap, 10px);
|
|
95
|
+
}
|
|
96
|
+
.xmd-heading2 {
|
|
97
|
+
font-size: 34px;
|
|
98
|
+
font-weight: bold;
|
|
99
|
+
line-height: 54px;
|
|
100
|
+
margin-bottom: var(--xmd-heading_gap, 10px);
|
|
101
|
+
}
|
|
102
|
+
.xmd-heading3 {
|
|
103
|
+
font-size: 30px;
|
|
104
|
+
font-weight: bold;
|
|
105
|
+
line-height: 54px;
|
|
106
|
+
margin-bottom: var(--xmd-heading_gap, 10px);
|
|
107
|
+
}
|
|
108
|
+
.xmd-heading4 {
|
|
109
|
+
font-size: 30px;
|
|
110
|
+
font-weight: bold;
|
|
111
|
+
line-height: 48px;
|
|
112
|
+
margin-bottom: var(--xmd-heading_gap, 10px);
|
|
113
|
+
}
|
|
114
|
+
.xmd-heading5 {
|
|
115
|
+
font-size: 30px;
|
|
116
|
+
font-weight: bold;
|
|
117
|
+
line-height: 48px;
|
|
118
|
+
margin-bottom: var(--xmd-heading_gap, 10px);
|
|
119
|
+
}
|
|
120
|
+
.xmd-heading6 {
|
|
121
|
+
font-size: 30px;
|
|
122
|
+
font-weight: bold;
|
|
123
|
+
line-height: 48px;
|
|
124
|
+
margin-bottom: var(--xmd-heading_gap, 10px);
|
|
125
|
+
}
|
|
126
|
+
/* ==================== 列表样式 ==================== */
|
|
127
|
+
.xmd-list-item {
|
|
128
|
+
display: flex;
|
|
129
|
+
flex-direction: row;
|
|
130
|
+
align-items: flex-start;
|
|
131
|
+
}
|
|
132
|
+
.xmd-ordered-list {
|
|
133
|
+
margin-top: var(--xmd-list_gap, 16px);
|
|
134
|
+
margin-bottom: var(--xmd-list_gap, 16px);
|
|
135
|
+
}
|
|
136
|
+
.xmd-ordered-list .xmd-ordered-list-item + .xmd-ordered-list-item {
|
|
137
|
+
margin-top: var(--xmd-ordered_item_gap, 16px);
|
|
138
|
+
}
|
|
139
|
+
.xmd-ordered-list-icon {
|
|
140
|
+
position: relative;
|
|
141
|
+
width: 28px;
|
|
142
|
+
margin-right: 16px;
|
|
143
|
+
flex-shrink: 0;
|
|
144
|
+
font-size: var(--xmd-text_size, 30px);
|
|
145
|
+
line-height: var(--xmd-line_height, 48px);
|
|
146
|
+
}
|
|
147
|
+
.xmd-ordered-list-icon::before {
|
|
148
|
+
content: "";
|
|
149
|
+
}
|
|
150
|
+
.xmd-ordered-list-marker {
|
|
151
|
+
position: absolute;
|
|
152
|
+
top: 50%;
|
|
153
|
+
left: 50%;
|
|
154
|
+
transform: translate(-50%, -50%);
|
|
155
|
+
display: inline-flex;
|
|
156
|
+
justify-content: center;
|
|
157
|
+
align-items: center;
|
|
158
|
+
width: 28px;
|
|
159
|
+
height: 28px;
|
|
160
|
+
border-radius: 6px;
|
|
161
|
+
background-color: var(--xmd-primary_color, #02B176);
|
|
162
|
+
color: var(--xmd-ordered_marker_color, #ffffff);
|
|
163
|
+
font-size: 22px;
|
|
164
|
+
font-weight: 600;
|
|
165
|
+
}
|
|
166
|
+
.xmd-ordered-list-content {
|
|
167
|
+
flex: 1;
|
|
168
|
+
font-size: var(--xmd-text_size, 30px);
|
|
169
|
+
line-height: var(--xmd-line_height, 48px);
|
|
170
|
+
min-width: 0;
|
|
171
|
+
}
|
|
172
|
+
.xmd-bullet-list {
|
|
173
|
+
margin-top: var(--xmd-list_gap, 16px);
|
|
174
|
+
margin-bottom: var(--xmd-list_gap, 16px);
|
|
175
|
+
}
|
|
176
|
+
.xmd-bullet-list.xmd-bullet-indent {
|
|
177
|
+
margin-left: 40px;
|
|
178
|
+
}
|
|
179
|
+
.xmd-bullet-list .xmd-bullet-list-item + .xmd-bullet-list-item {
|
|
180
|
+
margin-top: var(--xmd-bullet_item_gap, 16px);
|
|
181
|
+
}
|
|
182
|
+
.xmd-bullet-list-icon {
|
|
183
|
+
position: relative;
|
|
184
|
+
width: 20px;
|
|
185
|
+
margin-right: 12px;
|
|
186
|
+
flex-shrink: 0;
|
|
187
|
+
font-size: var(--xmd-text_size, 30px);
|
|
188
|
+
line-height: var(--xmd-line_height, 48px);
|
|
189
|
+
}
|
|
190
|
+
.xmd-bullet-list-icon::before {
|
|
191
|
+
content: "";
|
|
192
|
+
}
|
|
193
|
+
.xmd-bullet-list-marker {
|
|
194
|
+
position: absolute;
|
|
195
|
+
top: 50%;
|
|
196
|
+
right: 0;
|
|
197
|
+
transform: translateY(-50%);
|
|
198
|
+
width: 8px;
|
|
199
|
+
height: 8px;
|
|
200
|
+
border-radius: 50%;
|
|
201
|
+
background-color: var(--xmd-bullet_marker_color, #646566);
|
|
202
|
+
}
|
|
203
|
+
.xmd-bullet-list-markerTop {
|
|
204
|
+
background-color: var(--xmd-primary_color, #02B176);
|
|
205
|
+
}
|
|
206
|
+
.xmd-bullet-list-content {
|
|
207
|
+
flex: 1;
|
|
208
|
+
font-size: var(--xmd-text_size, 30px);
|
|
209
|
+
line-height: var(--xmd-line_height, 48px);
|
|
210
|
+
min-width: 0;
|
|
211
|
+
}
|
|
212
|
+
/** ==================== 表格样式 ==================== */
|
|
213
|
+
.xmd-table {
|
|
214
|
+
border-collapse: collapse;
|
|
215
|
+
border-spacing: 0;
|
|
216
|
+
table-layout: fixed;
|
|
217
|
+
background-color: var(--xmd-table_backgroundColor, #ffffff);
|
|
218
|
+
}
|
|
219
|
+
.xmd-table-scroll {
|
|
220
|
+
width: 100%;
|
|
221
|
+
overflow-x: auto;
|
|
222
|
+
overflow-y: visible;
|
|
223
|
+
-webkit-overflow-scrolling: touch;
|
|
224
|
+
scrollbar-width: none; /* firefox */
|
|
225
|
+
-ms-overflow-style: none; /* IE 10+ */
|
|
226
|
+
}
|
|
227
|
+
.xmd-table-scroll::-webkit-scrollbar {
|
|
228
|
+
display: none; /* Chrome Safari */
|
|
229
|
+
}
|
|
230
|
+
.xmd-table-toolbar {
|
|
231
|
+
height: 76px;
|
|
232
|
+
padding: 0 24px;
|
|
233
|
+
display: flex;
|
|
234
|
+
flex-direction: row;
|
|
235
|
+
justify-content: space-between;
|
|
236
|
+
align-items: center;
|
|
237
|
+
background-color: rgba(224, 232, 244, 0.8);
|
|
238
|
+
border-bottom: 1px solid #D2E0F3;
|
|
239
|
+
}
|
|
240
|
+
.xmd-table-toolbar_title {
|
|
241
|
+
font-size: 24px;
|
|
242
|
+
flex: 1;
|
|
243
|
+
display: inline-flex;
|
|
244
|
+
}
|
|
245
|
+
.xmd-table-toolbar_spacer {
|
|
246
|
+
margin-right: 32px;
|
|
247
|
+
}
|
|
248
|
+
.xmd-table-toolbar_spacer:last-child {
|
|
249
|
+
margin-right: 0;
|
|
250
|
+
}
|
|
251
|
+
.xmd-table-wrapper {
|
|
252
|
+
width: 100%;
|
|
253
|
+
margin-bottom: var(--xmd-table_gap);
|
|
254
|
+
border: 1px solid var(--xmd-table_borderColor, #dfe2e5);
|
|
255
|
+
border-radius: 6px;
|
|
256
|
+
overflow: hidden;
|
|
257
|
+
}
|
|
258
|
+
.xmd-table-container {
|
|
259
|
+
position: relative;
|
|
260
|
+
}
|
|
261
|
+
.xmd-table-leftGradient {
|
|
262
|
+
position: absolute;
|
|
263
|
+
left: -2px;
|
|
264
|
+
top: 0;
|
|
265
|
+
bottom: 0;
|
|
266
|
+
width: 28px;
|
|
267
|
+
background: linear-gradient(to right, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.08), transparent);
|
|
268
|
+
}
|
|
269
|
+
.xmd-table-rightGradient {
|
|
270
|
+
position: absolute;
|
|
271
|
+
right: -2px;
|
|
272
|
+
top: 0;
|
|
273
|
+
bottom: 0;
|
|
274
|
+
width: 28px;
|
|
275
|
+
background: linear-gradient(to left, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.08), transparent);
|
|
276
|
+
}
|
|
277
|
+
.xmd-table .xmd-thead {
|
|
278
|
+
background-color: var(--xmd-table_thead_backgroundColor, rgba(231, 240, 254, 0.5));
|
|
279
|
+
}
|
|
280
|
+
.xmd-table .xmd-tr {
|
|
281
|
+
border-top: 1px solid var(--xmd-table_borderColor, #dfe2e5);
|
|
282
|
+
}
|
|
283
|
+
.xmd-table .xmd-tr:last-child {
|
|
284
|
+
border-bottom: none;
|
|
285
|
+
}
|
|
286
|
+
.xmd-table .xmd-td {
|
|
287
|
+
padding: 12px 24px;
|
|
288
|
+
border-right: 1px solid var(--xmd-table_borderColor, #dfe2e5);
|
|
289
|
+
text-align: left;
|
|
290
|
+
}
|
|
291
|
+
.xmd-table .xmd-td:last-child {
|
|
292
|
+
border-right: none;
|
|
293
|
+
}
|
|
294
|
+
.xmd-table .xmd-th {
|
|
295
|
+
padding: 12px 24px;
|
|
296
|
+
border-right: 1px solid var(--xmd-table_borderColor, #dfe2e5);
|
|
297
|
+
text-align: left;
|
|
298
|
+
}
|
|
299
|
+
.xmd-table .xmd-th:last-child {
|
|
300
|
+
border-right: none;
|
|
301
|
+
}
|
|
302
|
+
.xmd-table .xmd-td-text {
|
|
303
|
+
font-size: var(--xmd-table_text_size, 28px);
|
|
304
|
+
color: #000710;
|
|
305
|
+
line-height: var(--xmd-table_line_height, 40px);
|
|
306
|
+
}
|
|
307
|
+
.xmd-table .xmd-th-text {
|
|
308
|
+
font-weight: 600;
|
|
309
|
+
font-size: var(--xmd-table_text_size, 28px);
|
|
310
|
+
color: #000710;
|
|
311
|
+
line-height: var(--xmd-table_line_height, 40px);
|
|
312
|
+
}
|
|
313
|
+
/* ==================== 代码样式 ==================== */
|
|
314
|
+
.xmd-code-container {
|
|
315
|
+
margin-top: 8px;
|
|
316
|
+
margin-bottom: 8px;
|
|
317
|
+
background-color: #f6f8fa;
|
|
318
|
+
border-radius: 6px;
|
|
319
|
+
overflow: hidden;
|
|
320
|
+
}
|
|
321
|
+
.xmd-code-header {
|
|
322
|
+
display: flex;
|
|
323
|
+
flex-direction: row;
|
|
324
|
+
justify-content: space-between;
|
|
325
|
+
align-items: center;
|
|
326
|
+
padding: 8px 12px;
|
|
327
|
+
background-color: #e1e4e8;
|
|
328
|
+
border-bottom: 1px solid var(--border-color, #dfe2e5);
|
|
329
|
+
}
|
|
330
|
+
.xmd-code-lang {
|
|
331
|
+
font-size: 12px;
|
|
332
|
+
color: #586069;
|
|
333
|
+
font-weight: 600;
|
|
334
|
+
}
|
|
335
|
+
.xmd-code-content {
|
|
336
|
+
padding: 12px;
|
|
337
|
+
}
|
|
338
|
+
.xmd-code-text {
|
|
339
|
+
font-family: "SFMono-Regular", "Consolas", "Liberation Mono", "Menlo", monospace;
|
|
340
|
+
font-size: 13px;
|
|
341
|
+
line-height: 19px;
|
|
342
|
+
color: #24292e;
|
|
343
|
+
}
|
|
344
|
+
.xmd-codespan {
|
|
345
|
+
background-color: rgba(27, 31, 35, 0.05);
|
|
346
|
+
padding: 2px 4px;
|
|
347
|
+
border-radius: 3px;
|
|
348
|
+
font-family: "SFMono-Regular", "Consolas", "Liberation Mono", "Menlo", monospace;
|
|
349
|
+
font-size: 85%;
|
|
350
|
+
color: #24292e;
|
|
351
|
+
}
|
|
352
|
+
/* ==================== 图片样式 ==================== */
|
|
353
|
+
.xmd-image-wrapper {
|
|
354
|
+
max-width: 100%;
|
|
355
|
+
border-radius: 4px;
|
|
356
|
+
}
|
|
357
|
+
.xmd-image-placeholder {
|
|
358
|
+
width: 100%;
|
|
359
|
+
height: 240px;
|
|
360
|
+
background-color: #f5f5f5;
|
|
361
|
+
border-radius: 8px;
|
|
362
|
+
display: flex;
|
|
363
|
+
flex-direction: column;
|
|
364
|
+
justify-content: center;
|
|
365
|
+
align-items: center;
|
|
366
|
+
}
|
|
367
|
+
.xmd-image-placeholder-text {
|
|
368
|
+
font-size: 24px;
|
|
369
|
+
color: #999;
|
|
370
|
+
}
|
|
371
|
+
.xmd-image-skeleton {
|
|
372
|
+
display: flex;
|
|
373
|
+
flex-direction: column;
|
|
374
|
+
align-items: center;
|
|
375
|
+
justify-content: center;
|
|
376
|
+
color: #a7a5a5;
|
|
377
|
+
}
|
|
378
|
+
.xmd-image-skeleton-text {
|
|
379
|
+
animation: loading-text 1.5s ease-in-out infinite;
|
|
380
|
+
}
|
|
381
|
+
.xmd-image-failure {
|
|
382
|
+
display: flex;
|
|
383
|
+
flex-direction: column;
|
|
384
|
+
justify-content: center;
|
|
385
|
+
align-items: center;
|
|
386
|
+
width: 100%;
|
|
387
|
+
height: 240px;
|
|
388
|
+
background-color: #fef0f0;
|
|
389
|
+
border-radius: 8px;
|
|
390
|
+
border: 1px solid #fde2e2;
|
|
391
|
+
color: #a7a5a5;
|
|
392
|
+
}
|
|
393
|
+
.xmd-image-failure-text {
|
|
394
|
+
color: #f56c6c;
|
|
395
|
+
font-size: 24px;
|
|
396
|
+
}
|
|
397
|
+
/* ==================== 强调样式 ==================== */
|
|
398
|
+
.xmd-emphasis {
|
|
399
|
+
font-style: normal;
|
|
400
|
+
font-size: var(--xmd-text_size, 30px);
|
|
401
|
+
line-height: var(--xmd-line_height, 48px);
|
|
402
|
+
color: var(--xmd-text_color, #000710);
|
|
403
|
+
background: none;
|
|
404
|
+
}
|
|
405
|
+
/* ==================== loading样式 ==================== */
|
|
406
|
+
.xmd-loading {
|
|
407
|
+
display: inline-flex;
|
|
408
|
+
align-items: center;
|
|
409
|
+
gap: 8px;
|
|
410
|
+
padding: 0 4px;
|
|
411
|
+
vertical-align: middle;
|
|
412
|
+
}
|
|
413
|
+
.xmd-loading-dot {
|
|
414
|
+
width: 10px;
|
|
415
|
+
height: 10px;
|
|
416
|
+
border-radius: 50%;
|
|
417
|
+
background-color: #000;
|
|
418
|
+
opacity: 0.3;
|
|
419
|
+
animation: loading-fade 0.9s infinite ease-in-out;
|
|
420
|
+
}
|
|
421
|
+
.xmd-loading-dot:nth-child(1) {
|
|
422
|
+
animation-delay: 0s;
|
|
423
|
+
}
|
|
424
|
+
.xmd-loading-dot:nth-child(2) {
|
|
425
|
+
animation-delay: 0.3s;
|
|
426
|
+
}
|
|
427
|
+
.xmd-loading-dot:nth-child(3) {
|
|
428
|
+
animation-delay: 0.6s;
|
|
429
|
+
}
|
|
430
|
+
@keyframes loading-fade {
|
|
431
|
+
0% {
|
|
432
|
+
opacity: 0.3;
|
|
433
|
+
}
|
|
434
|
+
33% {
|
|
435
|
+
opacity: 1;
|
|
436
|
+
}
|
|
437
|
+
66%, 100% {
|
|
438
|
+
opacity: 0.3;
|
|
439
|
+
}
|
|
440
|
+
}.aui-button-loading {
|
|
441
|
+
animation: rotation 1s linear infinite; /* 1秒转一圈,线性无限循环 */
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
@keyframes rotation {
|
|
445
|
+
0% {
|
|
446
|
+
transform: rotate(0deg);
|
|
447
|
+
}
|
|
448
|
+
100% {
|
|
449
|
+
transform: rotate(360deg);
|
|
450
|
+
}
|
|
451
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yklyklpackages/message-card",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "A React component library for displaying message cards",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -39,12 +39,17 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@ant-design/icons": "6.x",
|
|
41
41
|
"@eslint/js": "^8.57.0",
|
|
42
|
+
"@jdh-cross/aui-types": "5.1.0",
|
|
43
|
+
"@jdh-cross/markdown": "^0.1.17",
|
|
44
|
+
"@jdh-cross/message-template-engine": "^1.5.1",
|
|
45
|
+
"@jdh/laputa-interface": "^1.4.3",
|
|
42
46
|
"@types/node": "^24.6.0",
|
|
43
47
|
"@types/react": "^18.3.1",
|
|
44
48
|
"@types/react-dom": "^18.3.1",
|
|
45
49
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
46
50
|
"@typescript-eslint/parser": "^6.21.0",
|
|
47
51
|
"@vitejs/plugin-react": "^4.3.4",
|
|
52
|
+
"antd": "5.29.2",
|
|
48
53
|
"axios": "^1.7.9",
|
|
49
54
|
"eslint": "^8.57.0",
|
|
50
55
|
"eslint-config-prettier": "^10.1.8",
|
|
@@ -56,13 +61,9 @@
|
|
|
56
61
|
"qs": "^6.13.1",
|
|
57
62
|
"react": "^18.3.1",
|
|
58
63
|
"react-dom": "^18.3.1",
|
|
64
|
+
"sass-embedded": "^1.98.0",
|
|
59
65
|
"typescript": "~5.9.3",
|
|
60
66
|
"vite": "^5.4.18",
|
|
61
|
-
"vite-plugin-dts": "^3.9.1"
|
|
62
|
-
"@jdh-cross/aui-types": "^4.3.0",
|
|
63
|
-
"@jdh-cross/markdown": "^0.1.3",
|
|
64
|
-
"@jdh-cross/message-template-engine": "^1.3.0",
|
|
65
|
-
"@jdh/laputa-interface": "^1.4.3",
|
|
66
|
-
"antd": "5.29.2"
|
|
67
|
+
"vite-plugin-dts": "^3.9.1"
|
|
67
68
|
}
|
|
68
69
|
}
|