ls-pro-common 1.1.0 → 1.1.2
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/common.css +138 -1
- package/dist/common.js +1 -1
- package/dist/common.js.LICENSE.txt +5 -3
- package/dist/common.min.css +138 -1
- package/dist/common.min.js +1 -1
- package/dist/common.min.js.LICENSE.txt +5 -3
- package/es/components/AreaCascader.js +35 -48
- package/es/components/AreaCascaderPanel.d.ts +5 -0
- package/es/components/AreaCascaderPanel.js +230 -0
- package/es/components/DescritionCard.js +14 -19
- package/es/components/DtlLayout.js +25 -38
- package/es/components/IconSelector.js +27 -50
- package/es/components/ImageSelector.js +89 -139
- package/es/components/InputMultiLine.js +33 -45
- package/es/components/InputTable.d.ts +2 -0
- package/es/components/InputTable.js +118 -160
- package/es/components/Loading.js +3 -6
- package/es/components/common.less +158 -1
- package/es/hooks/useDtl/index.d.ts +2 -0
- package/es/hooks/useDtl/index.js +676 -941
- package/es/hooks/usePermission/index.js +0 -9
- package/es/hooks/useSingle/index.d.ts +2 -0
- package/es/hooks/useSingle/index.js +440 -599
- package/es/http/index.js +113 -149
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -2
- package/es/service/BaseService.js +121 -195
- package/es/utils/index.js +12 -111
- package/lib/components/404.js +1 -6
- package/lib/components/AreaCascader.js +37 -63
- package/lib/components/AreaCascaderPanel.d.ts +5 -0
- package/lib/components/AreaCascaderPanel.js +239 -0
- package/lib/components/DescritionCard.js +16 -33
- package/lib/components/DtlLayout.js +27 -49
- package/lib/components/IconSelector.js +29 -64
- package/lib/components/ImageSelector.js +91 -162
- package/lib/components/InputMultiLine.js +35 -61
- package/lib/components/InputTable.d.ts +2 -0
- package/lib/components/InputTable.js +120 -185
- package/lib/components/Loading.js +4 -16
- package/lib/components/common.less +158 -1
- package/lib/hooks/useDtl/index.d.ts +2 -0
- package/lib/hooks/useDtl/index.js +677 -957
- package/lib/hooks/usePermission/index.js +0 -12
- package/lib/hooks/useSingle/index.d.ts +2 -0
- package/lib/hooks/useSingle/index.js +441 -614
- package/lib/http/index.js +111 -158
- package/lib/index.d.ts +2 -1
- package/lib/index.js +9 -20
- package/lib/service/BaseService.js +121 -201
- package/lib/utils/index.js +13 -209
- package/package.json +2 -2
package/dist/common.css
CHANGED
|
@@ -40,6 +40,64 @@ body {
|
|
|
40
40
|
--ant-info-color-deprecated-bg: #e6f4ff;
|
|
41
41
|
--ant-info-color-deprecated-border: #94c8ff;
|
|
42
42
|
}
|
|
43
|
+
body.theme-yellow {
|
|
44
|
+
--ant-primary-color: #fa8500;
|
|
45
|
+
--ant-primary-color-hover: #ffa229;
|
|
46
|
+
--ant-primary-color-active: #d46a00;
|
|
47
|
+
--ant-primary-color-outline: rgba(250, 133, 0, 0.2);
|
|
48
|
+
--ant-primary-bg: #fff;
|
|
49
|
+
--ant-primary-side: #fff7e6;
|
|
50
|
+
--ant-primary-0: #ffd9ad;
|
|
51
|
+
--ant-primary-1: #fff7e6;
|
|
52
|
+
--ant-primary-2: #ffe0a3;
|
|
53
|
+
--ant-primary-3: #ffce7a;
|
|
54
|
+
--ant-primary-4: #ffba52;
|
|
55
|
+
--ant-primary-5: #ffa229;
|
|
56
|
+
--ant-primary-6: #fa8500;
|
|
57
|
+
--ant-primary-7: #d46a00;
|
|
58
|
+
--ant-primary-color-deprecated-pure: #ffd9ad;
|
|
59
|
+
--ant-primary-color-deprecated-l-35: #ffd9ad;
|
|
60
|
+
--ant-primary-color-deprecated-l-20: #ffb561;
|
|
61
|
+
--ant-primary-color-deprecated-t-20: #fb9d33;
|
|
62
|
+
--ant-primary-color-deprecated-t-50: #fdc280;
|
|
63
|
+
--ant-primary-color-deprecated-f-12: rgba(250, 133, 0, 0.12);
|
|
64
|
+
--ant-primary-color-active-deprecated-f-30: rgba(255, 247, 230, 0.3);
|
|
65
|
+
--ant-primary-color-active-deprecated-d-02: #fff4dc;
|
|
66
|
+
--ant-success-color: #52c41a;
|
|
67
|
+
--ant-success-color-hover: #73d13d;
|
|
68
|
+
--ant-success-color-active: #389e0d;
|
|
69
|
+
--ant-success-color-outline: rgba(82, 196, 26, 0.2);
|
|
70
|
+
--ant-success-color-deprecated-bg: #f6ffed;
|
|
71
|
+
--ant-success-color-deprecated-border: #b7eb8f;
|
|
72
|
+
--ant-error-color: #ff4d4f;
|
|
73
|
+
--ant-error-color-hover: #ff7875;
|
|
74
|
+
--ant-error-color-active: #d9363e;
|
|
75
|
+
--ant-error-color-outline: rgba(255, 77, 79, 0.2);
|
|
76
|
+
--ant-error-color-deprecated-bg: #fff2f0;
|
|
77
|
+
--ant-error-color-deprecated-border: #ffccc7;
|
|
78
|
+
--ant-warning-color: #faad14;
|
|
79
|
+
--ant-warning-color-hover: #ffc53d;
|
|
80
|
+
--ant-warning-color-active: #d48806;
|
|
81
|
+
--ant-warning-color-outline: rgba(250, 173, 20, 0.2);
|
|
82
|
+
--ant-warning-color-deprecated-bg: #fffbe6;
|
|
83
|
+
--ant-warning-color-deprecated-border: #ffe58f;
|
|
84
|
+
--ant-info-color: #fa8500;
|
|
85
|
+
--ant-info-color-deprecated-bg: #fff7e6;
|
|
86
|
+
--ant-info-color-deprecated-border: #ffce7a;
|
|
87
|
+
--antd-wave-shadow-color: #fa8500;
|
|
88
|
+
}
|
|
89
|
+
body.theme-yellow .ant-table-cell a,
|
|
90
|
+
body.theme-yellow .ant-pro-table-alert-info-content a {
|
|
91
|
+
color: var(--ant-primary-color);
|
|
92
|
+
}
|
|
93
|
+
body.theme-yellow .ant-table-cell a:hover,
|
|
94
|
+
body.theme-yellow .ant-pro-table-alert-info-content a:hover {
|
|
95
|
+
color: var(--ant-primary-color-hover);
|
|
96
|
+
}
|
|
97
|
+
body.theme-yellow .ant-table-cell a:active,
|
|
98
|
+
body.theme-yellow .ant-pro-table-alert-info-content a:active {
|
|
99
|
+
color: var(--ant-primary-color-active);
|
|
100
|
+
}
|
|
43
101
|
.dtl-layout {
|
|
44
102
|
position: absolute;
|
|
45
103
|
top: 0;
|
|
@@ -255,6 +313,79 @@ a:hover {
|
|
|
255
313
|
.ant-row {
|
|
256
314
|
width: 100%;
|
|
257
315
|
}
|
|
316
|
+
.ant-popover {
|
|
317
|
+
max-width: min-content !important;
|
|
318
|
+
}
|
|
319
|
+
.ls-area-cascaded-box {
|
|
320
|
+
width: 600px;
|
|
321
|
+
display: flex;
|
|
322
|
+
flex-direction: column;
|
|
323
|
+
transition: all 0.3s;
|
|
324
|
+
}
|
|
325
|
+
.ls-area-cascaded-box .ls-area-cascaded-header {
|
|
326
|
+
width: 100%;
|
|
327
|
+
padding: 2px 0 6px;
|
|
328
|
+
border-bottom: 1px solid #f0f0f0;
|
|
329
|
+
display: flex;
|
|
330
|
+
flex-direction: row;
|
|
331
|
+
justify-content: space-around;
|
|
332
|
+
justify-content: center;
|
|
333
|
+
}
|
|
334
|
+
.ls-area-cascaded-box .ls-area-cascaded-header .ls-word-box-display {
|
|
335
|
+
margin: 0 10px;
|
|
336
|
+
font-size: 14px;
|
|
337
|
+
font-weight: 100;
|
|
338
|
+
}
|
|
339
|
+
.ls-area-cascaded-box .ls-area-cascaded-header .ls-word-box-display button {
|
|
340
|
+
border: none;
|
|
341
|
+
background-color: var(--ant-primary-2, #f0f9ff);
|
|
342
|
+
}
|
|
343
|
+
.ls-area-cascaded-box .ls-area-cascaded-header .ls-word-box-display button[disabled] {
|
|
344
|
+
background-color: #fafafa !important;
|
|
345
|
+
}
|
|
346
|
+
.ls-area-cascaded-box .ls-area-cascaded-header .ls-word-box-display button[disabled] .ls-myself-select-title-style {
|
|
347
|
+
color: var(--ant-primary-4, #a3d7ff);
|
|
348
|
+
transition: all 0.3s;
|
|
349
|
+
}
|
|
350
|
+
.ls-area-cascaded-box .ls-area-cascaded-header .ls-word-box-display .ls-myself-select-title-style {
|
|
351
|
+
color: var(--ant-primary-color, #459adc);
|
|
352
|
+
font-size: 14px;
|
|
353
|
+
font-weight: 600;
|
|
354
|
+
transition: all 0.3s;
|
|
355
|
+
}
|
|
356
|
+
.ls-area-cascaded-box .ls-area-cascaded-header .ls-icon-box-display {
|
|
357
|
+
display: flex;
|
|
358
|
+
align-items: center;
|
|
359
|
+
}
|
|
360
|
+
.ls-area-cascaded-box .ls-area-cascaded-body {
|
|
361
|
+
width: 100%;
|
|
362
|
+
min-height: 100px;
|
|
363
|
+
max-height: 350px;
|
|
364
|
+
overflow: auto;
|
|
365
|
+
padding: 8px 12px 4px;
|
|
366
|
+
display: grid;
|
|
367
|
+
grid-template-columns: repeat(4, 1fr);
|
|
368
|
+
gap: 4px;
|
|
369
|
+
justify-content: start;
|
|
370
|
+
align-content: flex-start;
|
|
371
|
+
align-items: center;
|
|
372
|
+
}
|
|
373
|
+
.ls-area-cascaded-box .ls-area-cascaded-body .ls-area-cascaded-span {
|
|
374
|
+
text-align: center;
|
|
375
|
+
padding: 6px 10px;
|
|
376
|
+
overflow: hidden;
|
|
377
|
+
text-overflow: ellipsis;
|
|
378
|
+
white-space: nowrap;
|
|
379
|
+
cursor: pointer;
|
|
380
|
+
}
|
|
381
|
+
.ls-area-cascaded-box .ls-area-cascaded-body .ls-area-cascaded-span.ls-area-selected,
|
|
382
|
+
.ls-area-cascaded-box .ls-area-cascaded-body .ls-area-cascaded-span:hover {
|
|
383
|
+
color: var(--ant-primary-color, #459adc);
|
|
384
|
+
transition: all 0.3s;
|
|
385
|
+
}
|
|
386
|
+
.ls-area-box-position .ls-ant-select-dropdown {
|
|
387
|
+
top: 36px !important;
|
|
388
|
+
}
|
|
258
389
|
|
|
259
390
|
.pro-table-tooltip-text span {
|
|
260
391
|
color: #fff;
|
|
@@ -300,6 +431,7 @@ a:hover {
|
|
|
300
431
|
height: 100%;
|
|
301
432
|
display: flex;
|
|
302
433
|
flex-direction: column;
|
|
434
|
+
overflow-x: hidden;
|
|
303
435
|
}
|
|
304
436
|
.ant-pro-table-srcoll .ant-card .ant-table-wrapper {
|
|
305
437
|
flex: 1;
|
|
@@ -1269,7 +1401,7 @@ mark {
|
|
|
1269
1401
|
text-align: center;
|
|
1270
1402
|
text-transform: none;
|
|
1271
1403
|
vertical-align: -0.125em;
|
|
1272
|
-
text-rendering:
|
|
1404
|
+
text-rendering: optimizelegibility;
|
|
1273
1405
|
-webkit-font-smoothing: antialiased;
|
|
1274
1406
|
-moz-osx-font-smoothing: grayscale;
|
|
1275
1407
|
}
|
|
@@ -1285,6 +1417,10 @@ mark {
|
|
|
1285
1417
|
.anticon .anticon-icon {
|
|
1286
1418
|
display: block;
|
|
1287
1419
|
}
|
|
1420
|
+
.anticon > .anticon {
|
|
1421
|
+
line-height: 0;
|
|
1422
|
+
vertical-align: 0;
|
|
1423
|
+
}
|
|
1288
1424
|
.anticon[tabindex] {
|
|
1289
1425
|
cursor: pointer;
|
|
1290
1426
|
}
|
|
@@ -2326,6 +2462,7 @@ html {
|
|
|
2326
2462
|
height: 100%;
|
|
2327
2463
|
display: flex;
|
|
2328
2464
|
flex-direction: column;
|
|
2465
|
+
overflow-x: hidden;
|
|
2329
2466
|
}
|
|
2330
2467
|
.ant-pro-table-srcoll .ant-card .ant-table-wrapper {
|
|
2331
2468
|
flex: 1;
|