@steedos-widgets/amis-object 3.6.3 → 3.6.4-beta.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/amis/AmisInputTable.d.ts +4 -0
- package/dist/amis/AmisRecordDetailHeader.d.ts +24 -0
- package/dist/amis/AmisRecordService.d.ts +5 -0
- package/dist/amis-object.cjs.css +63 -11
- package/dist/amis-object.cjs.js +373 -95
- package/dist/amis-object.cjs.js.map +1 -1
- package/dist/amis-object.esm.css +63 -11
- package/dist/amis-object.esm.js +374 -96
- package/dist/amis-object.esm.js.map +1 -1
- package/dist/amis-object.umd.css +63 -11
- package/dist/amis-object.umd.js +125 -106
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets.json +21 -21
- package/package.json +3 -3
|
@@ -42,10 +42,34 @@ export declare const AmisRecordDetailHeader: (props: any) => Promise<{
|
|
|
42
42
|
className: string;
|
|
43
43
|
}[];
|
|
44
44
|
}[];
|
|
45
|
+
} | {
|
|
46
|
+
type: string;
|
|
47
|
+
visibleOn: string;
|
|
48
|
+
className: string;
|
|
49
|
+
onEvent: {
|
|
50
|
+
click: {
|
|
51
|
+
actions: {
|
|
52
|
+
componentId: string;
|
|
53
|
+
args: {};
|
|
54
|
+
actionType: string;
|
|
55
|
+
}[];
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
body: {
|
|
59
|
+
type: string;
|
|
60
|
+
category: string;
|
|
61
|
+
name: string;
|
|
62
|
+
colorVariant: string;
|
|
63
|
+
className: string;
|
|
64
|
+
}[];
|
|
65
|
+
tpl?: undefined;
|
|
45
66
|
} | {
|
|
46
67
|
type: string;
|
|
47
68
|
className: string;
|
|
48
69
|
tpl: string;
|
|
70
|
+
visibleOn?: undefined;
|
|
71
|
+
onEvent?: undefined;
|
|
72
|
+
body?: undefined;
|
|
49
73
|
})[];
|
|
50
74
|
md: string;
|
|
51
75
|
className: string;
|
|
@@ -8,6 +8,11 @@ export declare const AmisRecordService: (props: any) => Promise<{
|
|
|
8
8
|
componentId: string;
|
|
9
9
|
expression: string;
|
|
10
10
|
script?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
actionType: string;
|
|
13
|
+
expression: string;
|
|
14
|
+
componentId?: undefined;
|
|
15
|
+
script?: undefined;
|
|
11
16
|
} | {
|
|
12
17
|
actionType: string;
|
|
13
18
|
script: string;
|
package/dist/amis-object.cjs.css
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--body-bg: #f9fafb;
|
|
3
|
+
--body-color: #181818;
|
|
4
|
+
--body-size: 14px;
|
|
3
5
|
--Page-main-bg: transparent;
|
|
4
6
|
--Form-mode-default-labelGap: 2px;
|
|
5
7
|
--Form-item-fontSize: 12px;
|
|
@@ -7,13 +9,15 @@
|
|
|
7
9
|
--Form-fontSize: 14px;
|
|
8
10
|
--Form-selectValue-fontSize: 14px;
|
|
9
11
|
--Form-item-gap: 0.75rem;
|
|
12
|
+
/* --Table-color: #303030; */
|
|
13
|
+
/* --Table-thead-color: #303030; */
|
|
10
14
|
--Table-borderColor: #e5e7eb;
|
|
11
15
|
--Table-borderWidth: 1px;
|
|
12
16
|
--Table-fontSize: 13px;
|
|
13
17
|
--Table-fixedRight-boxShadow: none;
|
|
14
18
|
--Table-thead-borderColor: rgb(209 213 219);
|
|
15
19
|
--Table-thead-fontSize: 13px;
|
|
16
|
-
--Table-thead-bg:
|
|
20
|
+
--Table-thead-bg: white;
|
|
17
21
|
--Table-thead-borderColor: var(--Table-borderColor);
|
|
18
22
|
--Table-toolbar-marginY: 0;
|
|
19
23
|
--Table-thead-borderWidth: 1px;
|
|
@@ -55,6 +59,30 @@
|
|
|
55
59
|
--Tabs-link-maxWidth: 180px;
|
|
56
60
|
--Tabs-content-bg: unset;
|
|
57
61
|
--drawer-content-paddingTop: 0;
|
|
62
|
+
--fieldSet-legend-fontWeight: 600;
|
|
63
|
+
--fieldSet-legend-marginTop: 1rem;
|
|
64
|
+
--fieldSet-legend-marginBottom: 1rem;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* 修正手机端字体小的问题 */
|
|
68
|
+
@media (max-width: 767px) {
|
|
69
|
+
|
|
70
|
+
:root {
|
|
71
|
+
--button-size-default-fontSize: var(--fontSizeLg);
|
|
72
|
+
--link-fontSize: var(--fontSizeLg);
|
|
73
|
+
--Table-fontSize: var(--fontSizeLg);
|
|
74
|
+
--Tabs--line-fontSize: var(--fontSizeLg);
|
|
75
|
+
--Tabs--line-active-fontSize: var(--fontSizeLg);
|
|
76
|
+
--Tabs--line-hover-fontSize: var(--fontSizeLg);
|
|
77
|
+
--fieldSet-legend-fontSize: var(--fontSizeLg);
|
|
78
|
+
--Pick-base-value-fontSize: var(--fontSizeLg);
|
|
79
|
+
--dialog-header-fontSize: var(--fontSizeLg);
|
|
80
|
+
--input-default-default-fontSize: var(--fontSizeLg);
|
|
81
|
+
}
|
|
82
|
+
.antd-Form .antd-Form-item input {
|
|
83
|
+
font-size: var(--fontSizeLg);
|
|
84
|
+
padding: 0 0.625rem 0 0.625rem;
|
|
85
|
+
}
|
|
58
86
|
}
|
|
59
87
|
|
|
60
88
|
.steedos-header-container .antd-Nav-Menu {
|
|
@@ -346,10 +374,6 @@ fieldset.antd-Collapse > legend{
|
|
|
346
374
|
}
|
|
347
375
|
/* === end === */
|
|
348
376
|
|
|
349
|
-
.steedos-record-related-crud {
|
|
350
|
-
--Table-thead-bg: white;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
377
|
.steedos-record-related-crud .antd-Table-table > thead > tr > th:not(:last-child) {
|
|
354
378
|
border-right: 0px;
|
|
355
379
|
}
|
|
@@ -358,6 +382,10 @@ fieldset.antd-Collapse > legend{
|
|
|
358
382
|
border-right: 0px;
|
|
359
383
|
}
|
|
360
384
|
|
|
385
|
+
.antd-Table-table > thead > tr > th {
|
|
386
|
+
font-weight: 600;
|
|
387
|
+
}
|
|
388
|
+
|
|
361
389
|
.antd-Table-footToolbar {
|
|
362
390
|
background: white;
|
|
363
391
|
}
|
|
@@ -379,6 +407,20 @@ fieldset.antd-Collapse > legend{
|
|
|
379
407
|
.antd-Tabs-linksWrapper {
|
|
380
408
|
border-right: var(--Table-borderWidth) solid var(--Table-borderColor)
|
|
381
409
|
}
|
|
410
|
+
|
|
411
|
+
.antd-Form-label {
|
|
412
|
+
font-weight: 600;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/* 修正lookup 字段显示没有上下居中的问题 */
|
|
416
|
+
.antd-Picker .antd-Picker-value {
|
|
417
|
+
margin-bottom: 0;
|
|
418
|
+
margin-top: 0;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.antd-Picker .antd-Picker-valueWrap {
|
|
422
|
+
margin-bottom: unset;
|
|
423
|
+
}
|
|
382
424
|
.ant-dropdown{
|
|
383
425
|
z-index: 1400;
|
|
384
426
|
}
|
|
@@ -716,6 +758,9 @@ fieldset.antd-Collapse > legend{
|
|
|
716
758
|
.max-h-\[80vh\] {
|
|
717
759
|
max-height: 80vh
|
|
718
760
|
}
|
|
761
|
+
.min-h-8 {
|
|
762
|
+
min-height: 2rem
|
|
763
|
+
}
|
|
719
764
|
.\!w-10 {
|
|
720
765
|
width: 2.5rem !important
|
|
721
766
|
}
|
|
@@ -1120,6 +1165,10 @@ fieldset.antd-Collapse > legend{
|
|
|
1120
1165
|
--tw-text-opacity: 1;
|
|
1121
1166
|
color: rgb(37 99 235 / var(--tw-text-opacity))
|
|
1122
1167
|
}
|
|
1168
|
+
.text-gray-400 {
|
|
1169
|
+
--tw-text-opacity: 1;
|
|
1170
|
+
color: rgb(156 163 175 / var(--tw-text-opacity))
|
|
1171
|
+
}
|
|
1123
1172
|
.text-gray-500 {
|
|
1124
1173
|
--tw-text-opacity: 1;
|
|
1125
1174
|
color: rgb(107 114 128 / var(--tw-text-opacity))
|
|
@@ -1380,10 +1429,6 @@ fieldset.antd-Collapse > legend{
|
|
|
1380
1429
|
.ant-dropdown-menu-item .antd-Button--default:not(:disabled):not(.is-disabled):hover {
|
|
1381
1430
|
border-width: 0;
|
|
1382
1431
|
}
|
|
1383
|
-
.steedos-record-related-list .antd-Table-contentWrap {
|
|
1384
|
-
border-left-width: 1px;
|
|
1385
|
-
border-right-width: 1px;
|
|
1386
|
-
}
|
|
1387
1432
|
.steedos-record-related-list .antd-Table-headToolbar {
|
|
1388
1433
|
display: none;
|
|
1389
1434
|
}
|
|
@@ -1812,6 +1857,11 @@ body.steedos {
|
|
|
1812
1857
|
/*此样式可能造成ios17系统的iphone svg显示不出来,移除就好了*/
|
|
1813
1858
|
-webkit-overflow-scrolling: unset;
|
|
1814
1859
|
}
|
|
1860
|
+
|
|
1861
|
+
|
|
1862
|
+
.steedos-record-detail-drawer .antd-Drawer-close{
|
|
1863
|
+
display: none !important;
|
|
1864
|
+
}
|
|
1815
1865
|
.steedos-listview .is-loading .antd-Table-contentWrap {
|
|
1816
1866
|
height: 50px;
|
|
1817
1867
|
}
|
|
@@ -1844,7 +1894,7 @@ body.steedos {
|
|
|
1844
1894
|
.steedos-amis-form .antd-Form--horizontal .antd-Tabs .antd-Tabs-content .antd-Tabs-pane .form-content {
|
|
1845
1895
|
display: grid;
|
|
1846
1896
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1847
|
-
row-gap: 0.
|
|
1897
|
+
row-gap: 0.75rem;
|
|
1848
1898
|
-moz-column-gap: 1rem;
|
|
1849
1899
|
column-gap: 1rem;
|
|
1850
1900
|
}
|
|
@@ -1864,7 +1914,7 @@ body.steedos {
|
|
|
1864
1914
|
.steedos-object-form .antd-Tabs-pane.is-active {
|
|
1865
1915
|
display: grid;
|
|
1866
1916
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1867
|
-
row-gap: 0.
|
|
1917
|
+
row-gap: 0.75rem;
|
|
1868
1918
|
-moz-column-gap: 1rem;
|
|
1869
1919
|
column-gap: 1rem;
|
|
1870
1920
|
}
|
|
@@ -1906,6 +1956,8 @@ body.steedos {
|
|
|
1906
1956
|
}
|
|
1907
1957
|
.steedos-amis-form.antd-Form .antd-Form-item > .antd-Form-label {
|
|
1908
1958
|
max-width: var(--Form-mode-default-width);
|
|
1959
|
+
/* 修正手机端字段label太长时会换行的问题 */
|
|
1960
|
+
width: auto;
|
|
1909
1961
|
}
|
|
1910
1962
|
.steedos-amis-form.antd-Form .antd-Select.is-mobile,
|
|
1911
1963
|
.steedos-amis-form.antd-Form .antd-DatePicker.is-mobile {
|