@steedos-widgets/amis-object 3.6.2-beta.3 → 3.6.2-beta.5
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 +1 -0
- package/dist/amis/AmisRecordDetail.d.ts +4 -4
- package/dist/amis/AmisRecordDetailHeader.d.ts +1 -49
- package/dist/amis/AmisRecordDetailMini.d.ts +31 -0
- package/dist/amis/AmisRecordService.d.ts +20 -4
- package/dist/amis/index.d.ts +1 -0
- package/dist/amis-object.cjs.css +113 -6
- package/dist/amis-object.cjs.js +634 -255
- package/dist/amis-object.cjs.js.map +1 -1
- package/dist/amis-object.esm.css +113 -6
- package/dist/amis-object.esm.js +635 -257
- package/dist/amis-object.esm.js.map +1 -1
- package/dist/amis-object.umd.css +113 -6
- package/dist/amis-object.umd.js +197 -174
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets.json +21 -21
- package/dist/meta.js +505 -393
- package/dist/metas/AmisRecordDetailMini.d.ts +2 -0
- package/package.json +3 -3
|
@@ -23,10 +23,10 @@ export declare const AmisRecordDetail: (props: any) => Promise<{
|
|
|
23
23
|
objectApiName: string;
|
|
24
24
|
recordId: string;
|
|
25
25
|
id: string;
|
|
26
|
+
showButtons: any;
|
|
27
|
+
showBackButton: any;
|
|
26
28
|
})[];
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"_master.recordId": string;
|
|
30
|
-
};
|
|
29
|
+
objectApiName: string;
|
|
30
|
+
recordId: string;
|
|
31
31
|
onEvent: any;
|
|
32
32
|
}>;
|
|
@@ -49,14 +49,10 @@ export declare const AmisRecordDetailHeader: (props: any) => Promise<{
|
|
|
49
49
|
className: string;
|
|
50
50
|
}[];
|
|
51
51
|
}[];
|
|
52
|
-
className?: undefined;
|
|
53
|
-
tpl?: undefined;
|
|
54
52
|
} | {
|
|
55
53
|
type: string;
|
|
56
54
|
className: string;
|
|
57
55
|
tpl: string;
|
|
58
|
-
onEvent?: undefined;
|
|
59
|
-
body?: undefined;
|
|
60
56
|
})[];
|
|
61
57
|
md: string;
|
|
62
58
|
className: string;
|
|
@@ -80,51 +76,7 @@ export declare const AmisRecordDetailHeader: (props: any) => Promise<{
|
|
|
80
76
|
} | {
|
|
81
77
|
body: {
|
|
82
78
|
type: string;
|
|
83
|
-
items:
|
|
84
|
-
type: string;
|
|
85
|
-
name: any;
|
|
86
|
-
objectName: any;
|
|
87
|
-
visibleOn: any;
|
|
88
|
-
className: string;
|
|
89
|
-
}[] | {
|
|
90
|
-
type: string;
|
|
91
|
-
icon: string;
|
|
92
|
-
visibleOn: string;
|
|
93
|
-
onEvent: {
|
|
94
|
-
click: {
|
|
95
|
-
actions: {
|
|
96
|
-
actionType: string;
|
|
97
|
-
drawer: {
|
|
98
|
-
type: string;
|
|
99
|
-
title: string;
|
|
100
|
-
id: string;
|
|
101
|
-
body: {
|
|
102
|
-
type: string;
|
|
103
|
-
id: string;
|
|
104
|
-
vertical: boolean;
|
|
105
|
-
tiled: boolean;
|
|
106
|
-
buttons: {
|
|
107
|
-
type: string;
|
|
108
|
-
name: any;
|
|
109
|
-
objectName: any;
|
|
110
|
-
visibleOn: any;
|
|
111
|
-
}[];
|
|
112
|
-
btnLevel: string;
|
|
113
|
-
className: string;
|
|
114
|
-
btnClassName: string;
|
|
115
|
-
size: string;
|
|
116
|
-
}[];
|
|
117
|
-
position: string;
|
|
118
|
-
closeOnOutside: boolean;
|
|
119
|
-
resizable: boolean;
|
|
120
|
-
className: string;
|
|
121
|
-
bodyClassName: string;
|
|
122
|
-
actions: any[];
|
|
123
|
-
};
|
|
124
|
-
}[];
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
};
|
|
79
|
+
items: any[];
|
|
128
80
|
};
|
|
129
81
|
md: string;
|
|
130
82
|
columnClassName?: undefined;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import './AmisRecordDetailMini.less';
|
|
2
|
+
export declare const AmisRecordDetailMini: (props: any) => Promise<{
|
|
3
|
+
type: string;
|
|
4
|
+
wrapWithPanel: boolean;
|
|
5
|
+
actions: any[];
|
|
6
|
+
initApi: {
|
|
7
|
+
method: string;
|
|
8
|
+
url: string;
|
|
9
|
+
cache: number;
|
|
10
|
+
requestAdaptor: string;
|
|
11
|
+
adaptor: string;
|
|
12
|
+
data: {
|
|
13
|
+
query: string;
|
|
14
|
+
};
|
|
15
|
+
headers: {
|
|
16
|
+
Authorization: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
body: {
|
|
20
|
+
type: string;
|
|
21
|
+
className: string;
|
|
22
|
+
body: {
|
|
23
|
+
type: string;
|
|
24
|
+
showButtons: boolean;
|
|
25
|
+
showBackButton: boolean;
|
|
26
|
+
objectApiName: string;
|
|
27
|
+
recordId: string;
|
|
28
|
+
}[];
|
|
29
|
+
hiddenOn: string;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
export declare const AmisRecordService: (props: any) => Promise<{
|
|
2
2
|
type: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
className: string;
|
|
4
|
+
api: {
|
|
5
|
+
method: string;
|
|
6
|
+
url: string;
|
|
7
|
+
cache: number;
|
|
8
|
+
requestAdaptor: string;
|
|
9
|
+
adaptor: string;
|
|
10
|
+
data: {
|
|
11
|
+
query: string;
|
|
12
|
+
};
|
|
13
|
+
headers: {
|
|
14
|
+
Authorization: string;
|
|
15
|
+
};
|
|
7
16
|
};
|
|
17
|
+
body: {
|
|
18
|
+
type: string;
|
|
19
|
+
className: string;
|
|
20
|
+
body: any[];
|
|
21
|
+
hiddenOn: string;
|
|
22
|
+
};
|
|
23
|
+
data: any;
|
|
8
24
|
style: any;
|
|
9
25
|
onEvent: any;
|
|
10
26
|
}>;
|
package/dist/amis/index.d.ts
CHANGED
package/dist/amis-object.cjs.css
CHANGED
|
@@ -321,6 +321,26 @@ fieldset.antd-Collapse > legend{
|
|
|
321
321
|
overflow: hidden;
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
+
|
|
325
|
+
/* === amis 3.6 子表组件showIndex设置为false隐藏索引列后,且有嵌套行存在时,第一列样式顶部都多了空白半行 start === */
|
|
326
|
+
.antd-InputTable .antd-Table-primayCell .antd-Table-indent{
|
|
327
|
+
display: none;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.antd-InputTable .antd-Table-primayCell .antd-Table-expandSpace{
|
|
331
|
+
display: none;
|
|
332
|
+
}
|
|
333
|
+
/* === end === */
|
|
334
|
+
|
|
335
|
+
/* === amis 3.6 子表组件showIndex设置为false隐藏索引列后,children子行缩进样式末生效 start === */
|
|
336
|
+
.antd-InputTable .antd-Table-tr--2th .antd-Table-primayCell .antd-Table-expandSpace{
|
|
337
|
+
display: block;
|
|
338
|
+
height: 1rem;
|
|
339
|
+
float: left;
|
|
340
|
+
}
|
|
341
|
+
/* === end === */
|
|
342
|
+
|
|
343
|
+
|
|
324
344
|
.ant-dropdown-menu {
|
|
325
345
|
border: 1px solid #e5e5e5;
|
|
326
346
|
border-radius: 0.25rem;
|
|
@@ -751,6 +771,9 @@ fieldset.antd-Collapse > legend{
|
|
|
751
771
|
.justify-between {
|
|
752
772
|
justify-content: space-between
|
|
753
773
|
}
|
|
774
|
+
.gap-2 {
|
|
775
|
+
gap: 0.5rem
|
|
776
|
+
}
|
|
754
777
|
.gap-x-3 {
|
|
755
778
|
-moz-column-gap: 0.75rem;
|
|
756
779
|
column-gap: 0.75rem
|
|
@@ -783,8 +806,8 @@ fieldset.antd-Collapse > legend{
|
|
|
783
806
|
.whitespace-nowrap {
|
|
784
807
|
white-space: nowrap
|
|
785
808
|
}
|
|
786
|
-
.break-
|
|
787
|
-
|
|
809
|
+
.break-words {
|
|
810
|
+
overflow-wrap: break-word
|
|
788
811
|
}
|
|
789
812
|
.rounded {
|
|
790
813
|
border-radius: 0.25rem
|
|
@@ -926,6 +949,9 @@ fieldset.antd-Collapse > legend{
|
|
|
926
949
|
.pt-0 {
|
|
927
950
|
padding-top: 0px
|
|
928
951
|
}
|
|
952
|
+
.pb-0 {
|
|
953
|
+
padding-bottom: 0px
|
|
954
|
+
}
|
|
929
955
|
.pl-1\.5 {
|
|
930
956
|
padding-left: 0.375rem
|
|
931
957
|
}
|
|
@@ -938,9 +964,6 @@ fieldset.antd-Collapse > legend{
|
|
|
938
964
|
.pl-5 {
|
|
939
965
|
padding-left: 1.25rem
|
|
940
966
|
}
|
|
941
|
-
.pb-0 {
|
|
942
|
-
padding-bottom: 0px
|
|
943
|
-
}
|
|
944
967
|
.pb-16 {
|
|
945
968
|
padding-bottom: 4rem
|
|
946
969
|
}
|
|
@@ -1165,6 +1188,11 @@ fieldset.antd-Collapse > legend{
|
|
|
1165
1188
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
|
1166
1189
|
}
|
|
1167
1190
|
}
|
|
1191
|
+
@media (min-width: 768px) {
|
|
1192
|
+
.md\:p-2 {
|
|
1193
|
+
padding: 0.5rem
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1168
1196
|
@media (min-width: 1024px) {
|
|
1169
1197
|
.lg\:z-50 {
|
|
1170
1198
|
z-index: 50
|
|
@@ -1894,8 +1922,14 @@ body.steedos {
|
|
|
1894
1922
|
}
|
|
1895
1923
|
/* amis3.2版本快速编辑单元格样式:end */
|
|
1896
1924
|
.steedos-object-table thead tr th:nth-last-child(2),
|
|
1925
|
+
.steedos-object-table colgroup col:nth-last-child(2),
|
|
1926
|
+
.steedos-object-table tbody tr td:nth-last-child(2) {
|
|
1927
|
+
padding: 0;
|
|
1928
|
+
border: 0;
|
|
1929
|
+
}
|
|
1897
1930
|
.steedos-object-table colgroup col:nth-last-child(2) {
|
|
1898
|
-
|
|
1931
|
+
width: 0.5px !important;
|
|
1932
|
+
min-width: 0.5px !important;
|
|
1899
1933
|
}
|
|
1900
1934
|
.steedos-object-table tbody td.antd-Field--quickEditable .antd-Field-quickEditBtn {
|
|
1901
1935
|
padding-right: 13px;
|
|
@@ -2034,6 +2068,62 @@ body.steedos {
|
|
|
2034
2068
|
}
|
|
2035
2069
|
}
|
|
2036
2070
|
|
|
2071
|
+
.compact-layouts {
|
|
2072
|
+
display: grid;
|
|
2073
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
2074
|
+
row-gap: 0rem;
|
|
2075
|
+
-moz-column-gap: 1rem;
|
|
2076
|
+
column-gap: 1rem;
|
|
2077
|
+
}
|
|
2078
|
+
.compact-layouts .antd-Form-item {
|
|
2079
|
+
margin-bottom: 0px;
|
|
2080
|
+
}
|
|
2081
|
+
.compact-layouts .antd-Form-label {
|
|
2082
|
+
margin-bottom: 0px;
|
|
2083
|
+
}
|
|
2084
|
+
.compact-layouts .antd-PopOver {
|
|
2085
|
+
min-width: 420px;
|
|
2086
|
+
max-width: 420px;
|
|
2087
|
+
}
|
|
2088
|
+
.compact-layouts .antd-PopOver .antd-Panel {
|
|
2089
|
+
overflow-y: auto;
|
|
2090
|
+
height: 100%;
|
|
2091
|
+
}
|
|
2092
|
+
.compact-layouts .steedos-field-lookup-each .antd-Form-static {
|
|
2093
|
+
overflow: visible;
|
|
2094
|
+
text-overflow: clip;
|
|
2095
|
+
white-space: normal;
|
|
2096
|
+
}
|
|
2097
|
+
.compact-layouts .antd-Form-static,
|
|
2098
|
+
.compact-layouts .antd-MultilineText-display {
|
|
2099
|
+
overflow: hidden;
|
|
2100
|
+
text-overflow: ellipsis;
|
|
2101
|
+
white-space: nowrap;
|
|
2102
|
+
}
|
|
2103
|
+
.steedos-field-lookup-wrapper .antd-PopOver {
|
|
2104
|
+
min-width: 420px;
|
|
2105
|
+
max-width: 420px;
|
|
2106
|
+
}
|
|
2107
|
+
.steedos-record-detail-popover > .antd-Panel-body {
|
|
2108
|
+
padding: 0px;
|
|
2109
|
+
}
|
|
2110
|
+
.steedos-record-detail-popover > .antd-Panel-body > .antd-Form {
|
|
2111
|
+
display: block;
|
|
2112
|
+
}
|
|
2113
|
+
.steedos-record-detail-popover .compact-layouts {
|
|
2114
|
+
display: grid;
|
|
2115
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
2116
|
+
}
|
|
2117
|
+
.steedos-record-detail-popover .compact-layouts .antd-Form-item {
|
|
2118
|
+
padding: 0px;
|
|
2119
|
+
display: block;
|
|
2120
|
+
}
|
|
2121
|
+
.steedos-record-detail-popover .compact-layouts .antd-Form-item .antd-Form-label {
|
|
2122
|
+
max-width: 100%;
|
|
2123
|
+
}
|
|
2124
|
+
.steedos-record-detail-popover .compact-layouts .antd-Form-item .antd-Form-item-controlBox {
|
|
2125
|
+
max-width: 100%;
|
|
2126
|
+
}
|
|
2037
2127
|
@media (max-width: 768px) {
|
|
2038
2128
|
.record-detail-header-name {
|
|
2039
2129
|
display: -webkit-box;
|
|
@@ -2042,6 +2132,22 @@ body.steedos {
|
|
|
2042
2132
|
-webkit-line-clamp: 2;
|
|
2043
2133
|
-webkit-box-orient: vertical;
|
|
2044
2134
|
}
|
|
2135
|
+
.compact-layouts {
|
|
2136
|
+
display: block;
|
|
2137
|
+
}
|
|
2138
|
+
.compact-layouts .antd-Form-item {
|
|
2139
|
+
padding: 0px;
|
|
2140
|
+
display: block;
|
|
2141
|
+
}
|
|
2142
|
+
.compact-layouts .antd-Form-item .antd-Form-label {
|
|
2143
|
+
max-width: 100%;
|
|
2144
|
+
}
|
|
2145
|
+
.compact-layouts .antd-Form-item .antd-Form-item-controlBox {
|
|
2146
|
+
max-width: 100%;
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
.steedos-field-lookup-wrapper {
|
|
2150
|
+
display: block !important;
|
|
2045
2151
|
}
|
|
2046
2152
|
|
|
2047
2153
|
.steedos-context-bar .antd-Nav-list {
|
|
@@ -2316,3 +2422,4 @@ body.sidebar #sidebar {
|
|
|
2316
2422
|
border: none;
|
|
2317
2423
|
color: #000;
|
|
2318
2424
|
}
|
|
2425
|
+
|