@jetlinks-web/components 3.0.0-rc → 3.0.1-rc
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/es/EditTable/components/Search/sort.js +1 -1
- package/es/FullPage/FullPage.js +1 -1
- package/es/ProTable/ProTable.js +8 -4
- package/es/Search/Advanced/SaveHistory.js +1 -1
- package/es/Search/Advanced/index.js +7 -6
- package/es/Search/Item.js +1 -1
- package/es/Skeleton/components/DashBoardCard.js +57 -0
- package/es/Skeleton/components/DashBoardChart.js +93 -0
- package/es/Skeleton/components/Detail.js +104 -0
- package/es/Skeleton/components/Drawer.js +82 -0
- package/es/Skeleton/components/Item.js +60 -0
- package/es/Skeleton/components/List.js +46 -0
- package/es/Skeleton/components/ListCard.js +56 -0
- package/es/Skeleton/components/ListCardItem.js +87 -0
- package/es/Skeleton/components/ListTable.js +67 -0
- package/es/Skeleton/components/Page.js +63 -0
- package/es/Skeleton/components/Search.js +54 -0
- package/es/Skeleton/components/Tree.js +65 -0
- package/es/Skeleton/index.js +15 -0
- package/es/Skeleton/skeleton.js +49 -0
- package/es/Skeleton/style/Skeleton.less +166 -0
- package/es/Skeleton/style/index.js +1 -0
- package/es/Title/style/index.css +4 -0
- package/es/Title/style/index.less +3 -1
- package/es/components.js +2 -1
- package/es/style/index.css +141 -0
- package/es/style/index.less +1 -0
- package/es/style.js +2 -1
- package/lib/EditTable/components/Search/sort.js +1 -1
- package/lib/FullPage/FullPage.js +1 -1
- package/lib/ProTable/ProTable.js +8 -4
- package/lib/Search/Advanced/SaveHistory.js +1 -1
- package/lib/Search/Advanced/index.js +7 -6
- package/lib/Search/Item.js +1 -1
- package/lib/Skeleton/components/DashBoardCard.js +57 -0
- package/lib/Skeleton/components/DashBoardChart.js +93 -0
- package/lib/Skeleton/components/Detail.js +104 -0
- package/lib/Skeleton/components/Drawer.js +82 -0
- package/lib/Skeleton/components/Item.js +60 -0
- package/lib/Skeleton/components/List.js +46 -0
- package/lib/Skeleton/components/ListCard.js +56 -0
- package/lib/Skeleton/components/ListCardItem.js +87 -0
- package/lib/Skeleton/components/ListTable.js +67 -0
- package/lib/Skeleton/components/Page.js +63 -0
- package/lib/Skeleton/components/Search.js +54 -0
- package/lib/Skeleton/components/Tree.js +65 -0
- package/lib/Skeleton/index.js +75 -0
- package/lib/Skeleton/skeleton.js +49 -0
- package/lib/Skeleton/style/Skeleton.less +166 -0
- package/lib/Skeleton/style/index.js +3 -0
- package/lib/Title/style/index.css +4 -0
- package/lib/Title/style/index.less +3 -1
- package/lib/components.js +7 -0
- package/lib/style/index.css +141 -0
- package/lib/style/index.less +1 -0
- package/lib/style.js +2 -1
- package/package.json +173 -173
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
@j-skeleton-size-lg: 36px;
|
|
2
|
+
@j-skeleton-size-sm: 16px;
|
|
3
|
+
@j-skeleton-size: 24px;
|
|
4
|
+
@j-skeleton-border-radius: 8px;
|
|
5
|
+
@j-skeleton-bg: #f0f2f5;
|
|
6
|
+
@j-skeleton-bg-1: #e6e8eb;
|
|
7
|
+
@j-skeleton-border: 4px solid @j-skeleton-bg;
|
|
8
|
+
|
|
9
|
+
.j-skeleton-flex {
|
|
10
|
+
display: flex;
|
|
11
|
+
gap: 24px;
|
|
12
|
+
margin-bottom: 16px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.j-skeleton-flex-between {
|
|
16
|
+
.j-skeleton-flex();
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
align-items: center;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.j-skeleton-flex-column {
|
|
22
|
+
.j-skeleton-flex();
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.j-skeleton {
|
|
27
|
+
height: 100%;
|
|
28
|
+
&-item {
|
|
29
|
+
background: linear-gradient(90deg, @j-skeleton-bg 25%, @j-skeleton-bg-1 50%, @j-skeleton-bg 75%);
|
|
30
|
+
background-size: 400% 100%;
|
|
31
|
+
border-radius: @j-skeleton-border-radius;
|
|
32
|
+
height: @j-skeleton-size;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-item-active {
|
|
36
|
+
animation: wave 1.8s ease-in-out infinite;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-item-lg {
|
|
40
|
+
height: @j-skeleton-size-lg;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&-item-sm {
|
|
44
|
+
height: @j-skeleton-size-sm;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@keyframes wave {
|
|
48
|
+
0% { background-position: 200% 0 }
|
|
49
|
+
100% { background-position: -200% 0 }
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&-dashboard-card {
|
|
53
|
+
.j-skeleton-flex();
|
|
54
|
+
border: @j-skeleton-border;
|
|
55
|
+
border-radius: @j-skeleton-border-radius;
|
|
56
|
+
height: 100%;
|
|
57
|
+
padding: 24px;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-tabs {
|
|
62
|
+
display: flex;
|
|
63
|
+
gap: 16px;
|
|
64
|
+
margin: 60px 0 20px 0;
|
|
65
|
+
border-bottom: @j-skeleton-border;
|
|
66
|
+
padding: 16px 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&-desc {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
margin-bottom: 24px;
|
|
73
|
+
|
|
74
|
+
&-content {
|
|
75
|
+
display: grid;
|
|
76
|
+
grid-template-columns: repeat(3, 1fr);
|
|
77
|
+
gap: 36px;
|
|
78
|
+
margin-top: 24px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&-item {
|
|
82
|
+
display: flex;
|
|
83
|
+
gap: 16px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&-box {
|
|
88
|
+
border-bottom: @j-skeleton-border;
|
|
89
|
+
padding: 16px 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&-table-cell {
|
|
93
|
+
display: grid;
|
|
94
|
+
grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) 200px;
|
|
95
|
+
gap: 24px;
|
|
96
|
+
padding: 12px 6px;
|
|
97
|
+
border-radius: 8px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&-table-header {
|
|
101
|
+
background-color: lightgrey;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&-table-action {
|
|
105
|
+
width: 200px;
|
|
106
|
+
display: grid;
|
|
107
|
+
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
|
|
108
|
+
gap: 24px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&-cards {
|
|
112
|
+
display: grid;
|
|
113
|
+
grid-template-columns: repeat(3, 1fr);
|
|
114
|
+
gap: 16px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&-card {
|
|
118
|
+
.j-skeleton-card-content {
|
|
119
|
+
display: flex;
|
|
120
|
+
gap: 16px;
|
|
121
|
+
border: 2px solid #f0f2f5;
|
|
122
|
+
border-radius: 8px;
|
|
123
|
+
padding: 24px;
|
|
124
|
+
margin-bottom: 16px;
|
|
125
|
+
|
|
126
|
+
.j-skeleton-image {
|
|
127
|
+
width: 100px;
|
|
128
|
+
height: 100px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.j-skeleton-right {
|
|
132
|
+
flex: 1;
|
|
133
|
+
min-width: 200px;
|
|
134
|
+
|
|
135
|
+
.j-skeleton-right-content {
|
|
136
|
+
display: flex;
|
|
137
|
+
gap: 16px;
|
|
138
|
+
margin-top: 16px;
|
|
139
|
+
|
|
140
|
+
.j-skeleton-right-content-item {
|
|
141
|
+
flex: 1;
|
|
142
|
+
min-width: 100px;
|
|
143
|
+
display: flex;
|
|
144
|
+
flex-direction: column;
|
|
145
|
+
gap: 16px;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.j-skeleton-action {
|
|
152
|
+
display: flex;
|
|
153
|
+
justify-content: flex-end;
|
|
154
|
+
gap: 16px;
|
|
155
|
+
|
|
156
|
+
.btn {
|
|
157
|
+
flex: 1;
|
|
158
|
+
min-width: 100px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.delete {
|
|
162
|
+
flex: 0 0 100px;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
|
|
2
|
+
/* stylelint-disable no-duplicate-selectors */
|
|
3
|
+
/* stylelint-disable */
|
|
4
|
+
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
|
|
1
5
|
.j-title {
|
|
2
6
|
display: flex;
|
|
3
7
|
align-items: center;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import 'ant-design-vue/es/style/themes/index.less';
|
|
2
|
+
|
|
1
3
|
.j-title {
|
|
2
4
|
display: flex;
|
|
3
5
|
align-items: center;
|
|
@@ -17,7 +19,7 @@
|
|
|
17
19
|
left: 0;
|
|
18
20
|
width: 4px;
|
|
19
21
|
height: 100%;
|
|
20
|
-
background-color:
|
|
22
|
+
background-color: @primary-color;
|
|
21
23
|
border-radius: 0 3px 3px 0;
|
|
22
24
|
content: ' ';
|
|
23
25
|
}
|
package/lib/components.js
CHANGED
|
@@ -137,6 +137,12 @@ Object.defineProperty(exports, "Search", {
|
|
|
137
137
|
return _Search.default;
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
|
+
Object.defineProperty(exports, "Skeleton", {
|
|
141
|
+
enumerable: true,
|
|
142
|
+
get: function get() {
|
|
143
|
+
return _Skeleton.default;
|
|
144
|
+
}
|
|
145
|
+
});
|
|
140
146
|
Object.defineProperty(exports, "TimeFormat", {
|
|
141
147
|
enumerable: true,
|
|
142
148
|
get: function get() {
|
|
@@ -178,5 +184,6 @@ var _Markdown = _interopRequireDefault(require("./Markdown"));
|
|
|
178
184
|
var _AutoComplete = _interopRequireDefault(require("./AutoComplete"));
|
|
179
185
|
var _Title = _interopRequireDefault(require("./Title"));
|
|
180
186
|
var _FlameGraph = _interopRequireDefault(require("./FlameGraph"));
|
|
187
|
+
var _Skeleton = _interopRequireDefault(require("./Skeleton"));
|
|
181
188
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
182
189
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
package/lib/style/index.css
CHANGED
|
@@ -5232,3 +5232,144 @@ span.ant-radio + * {
|
|
|
5232
5232
|
left: 0;
|
|
5233
5233
|
width: 200px;
|
|
5234
5234
|
}
|
|
5235
|
+
.j-skeleton-flex {
|
|
5236
|
+
display: flex;
|
|
5237
|
+
gap: 24px;
|
|
5238
|
+
margin-bottom: 16px;
|
|
5239
|
+
}
|
|
5240
|
+
.j-skeleton-flex-between {
|
|
5241
|
+
display: flex;
|
|
5242
|
+
gap: 24px;
|
|
5243
|
+
margin-bottom: 16px;
|
|
5244
|
+
justify-content: space-between;
|
|
5245
|
+
align-items: center;
|
|
5246
|
+
}
|
|
5247
|
+
.j-skeleton-flex-column {
|
|
5248
|
+
display: flex;
|
|
5249
|
+
gap: 24px;
|
|
5250
|
+
margin-bottom: 16px;
|
|
5251
|
+
justify-content: space-between;
|
|
5252
|
+
}
|
|
5253
|
+
.j-skeleton {
|
|
5254
|
+
height: 100%;
|
|
5255
|
+
}
|
|
5256
|
+
.j-skeleton-item {
|
|
5257
|
+
background: linear-gradient(90deg, #f0f2f5 25%, #e6e8eb 50%, #f0f2f5 75%);
|
|
5258
|
+
background-size: 400% 100%;
|
|
5259
|
+
border-radius: 8px;
|
|
5260
|
+
height: 24px;
|
|
5261
|
+
}
|
|
5262
|
+
.j-skeleton-item-active {
|
|
5263
|
+
animation: wave 1.8s ease-in-out infinite;
|
|
5264
|
+
}
|
|
5265
|
+
.j-skeleton-item-lg {
|
|
5266
|
+
height: 36px;
|
|
5267
|
+
}
|
|
5268
|
+
.j-skeleton-item-sm {
|
|
5269
|
+
height: 16px;
|
|
5270
|
+
}
|
|
5271
|
+
@keyframes wave {
|
|
5272
|
+
0% {
|
|
5273
|
+
background-position: 200% 0;
|
|
5274
|
+
}
|
|
5275
|
+
100% {
|
|
5276
|
+
background-position: -200% 0;
|
|
5277
|
+
}
|
|
5278
|
+
}
|
|
5279
|
+
.j-skeleton-dashboard-card {
|
|
5280
|
+
display: flex;
|
|
5281
|
+
gap: 24px;
|
|
5282
|
+
margin-bottom: 16px;
|
|
5283
|
+
border: 4px solid #f0f2f5;
|
|
5284
|
+
border-radius: 8px;
|
|
5285
|
+
height: 100%;
|
|
5286
|
+
padding: 24px;
|
|
5287
|
+
flex-direction: column;
|
|
5288
|
+
}
|
|
5289
|
+
.j-skeleton-tabs {
|
|
5290
|
+
display: flex;
|
|
5291
|
+
gap: 16px;
|
|
5292
|
+
margin: 60px 0 20px 0;
|
|
5293
|
+
border-bottom: 4px solid #f0f2f5;
|
|
5294
|
+
padding: 16px 0;
|
|
5295
|
+
}
|
|
5296
|
+
.j-skeleton-desc {
|
|
5297
|
+
display: flex;
|
|
5298
|
+
flex-direction: column;
|
|
5299
|
+
margin-bottom: 24px;
|
|
5300
|
+
}
|
|
5301
|
+
.j-skeleton-desc-content {
|
|
5302
|
+
display: grid;
|
|
5303
|
+
grid-template-columns: repeat(3, 1fr);
|
|
5304
|
+
gap: 36px;
|
|
5305
|
+
margin-top: 24px;
|
|
5306
|
+
}
|
|
5307
|
+
.j-skeleton-desc-item {
|
|
5308
|
+
display: flex;
|
|
5309
|
+
gap: 16px;
|
|
5310
|
+
}
|
|
5311
|
+
.j-skeleton-box {
|
|
5312
|
+
border-bottom: 4px solid #f0f2f5;
|
|
5313
|
+
padding: 16px 0;
|
|
5314
|
+
}
|
|
5315
|
+
.j-skeleton-table-cell {
|
|
5316
|
+
display: grid;
|
|
5317
|
+
grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) 200px;
|
|
5318
|
+
gap: 24px;
|
|
5319
|
+
padding: 12px 6px;
|
|
5320
|
+
border-radius: 8px;
|
|
5321
|
+
}
|
|
5322
|
+
.j-skeleton-table-header {
|
|
5323
|
+
background-color: lightgrey;
|
|
5324
|
+
}
|
|
5325
|
+
.j-skeleton-table-action {
|
|
5326
|
+
width: 200px;
|
|
5327
|
+
display: grid;
|
|
5328
|
+
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
|
|
5329
|
+
gap: 24px;
|
|
5330
|
+
}
|
|
5331
|
+
.j-skeleton-cards {
|
|
5332
|
+
display: grid;
|
|
5333
|
+
grid-template-columns: repeat(3, 1fr);
|
|
5334
|
+
gap: 16px;
|
|
5335
|
+
}
|
|
5336
|
+
.j-skeleton-card .j-skeleton-card-content {
|
|
5337
|
+
display: flex;
|
|
5338
|
+
gap: 16px;
|
|
5339
|
+
border: 2px solid #f0f2f5;
|
|
5340
|
+
border-radius: 8px;
|
|
5341
|
+
padding: 24px;
|
|
5342
|
+
margin-bottom: 16px;
|
|
5343
|
+
}
|
|
5344
|
+
.j-skeleton-card .j-skeleton-card-content .j-skeleton-image {
|
|
5345
|
+
width: 100px;
|
|
5346
|
+
height: 100px;
|
|
5347
|
+
}
|
|
5348
|
+
.j-skeleton-card .j-skeleton-card-content .j-skeleton-right {
|
|
5349
|
+
flex: 1;
|
|
5350
|
+
min-width: 200px;
|
|
5351
|
+
}
|
|
5352
|
+
.j-skeleton-card .j-skeleton-card-content .j-skeleton-right .j-skeleton-right-content {
|
|
5353
|
+
display: flex;
|
|
5354
|
+
gap: 16px;
|
|
5355
|
+
margin-top: 16px;
|
|
5356
|
+
}
|
|
5357
|
+
.j-skeleton-card .j-skeleton-card-content .j-skeleton-right .j-skeleton-right-content .j-skeleton-right-content-item {
|
|
5358
|
+
flex: 1;
|
|
5359
|
+
min-width: 100px;
|
|
5360
|
+
display: flex;
|
|
5361
|
+
flex-direction: column;
|
|
5362
|
+
gap: 16px;
|
|
5363
|
+
}
|
|
5364
|
+
.j-skeleton-card .j-skeleton-action {
|
|
5365
|
+
display: flex;
|
|
5366
|
+
justify-content: flex-end;
|
|
5367
|
+
gap: 16px;
|
|
5368
|
+
}
|
|
5369
|
+
.j-skeleton-card .j-skeleton-action .btn {
|
|
5370
|
+
flex: 1;
|
|
5371
|
+
min-width: 100px;
|
|
5372
|
+
}
|
|
5373
|
+
.j-skeleton-card .j-skeleton-action .delete {
|
|
5374
|
+
flex: 0 0 100px;
|
|
5375
|
+
}
|
package/lib/style/index.less
CHANGED
package/lib/style.js
CHANGED