@steedos-widgets/amis-object 6.10.54-beta.2 → 6.10.54-beta.21
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-object.umd.css +202 -4
- package/dist/amis-object.umd.js +1 -1
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets.json +5 -5
- package/dist/meta.js +9 -2
- package/package.json +4 -4
package/dist/amis-object.umd.css
CHANGED
|
@@ -1060,6 +1060,7 @@ fieldset.antd-Collapse > legend{
|
|
|
1060
1060
|
margin: 0;
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
|
+
/* 兼容表单事件脚本运行时追加的 SLDS/Bootstrap 按钮,让它们在手机操作抽屉中保持整行动作项样式。 */
|
|
1063
1064
|
.buttons-drawer .antd-ButtonGroup button {
|
|
1064
1065
|
border-color: #c9c9c9;
|
|
1065
1066
|
border-right: none !important;
|
|
@@ -1069,6 +1070,52 @@ fieldset.antd-Collapse > legend{
|
|
|
1069
1070
|
min-height: 50px;
|
|
1070
1071
|
}
|
|
1071
1072
|
|
|
1073
|
+
.buttons-drawer .antd-ButtonGroup .slds-button,
|
|
1074
|
+
.buttons-drawer .antd-ButtonGroup .btn {
|
|
1075
|
+
width: 100% !important;
|
|
1076
|
+
max-width: none !important;
|
|
1077
|
+
min-height: 50px;
|
|
1078
|
+
margin: 0 !important;
|
|
1079
|
+
border-color: #c9c9c9;
|
|
1080
|
+
border-right: none !important;
|
|
1081
|
+
border-left: none !important;
|
|
1082
|
+
border-bottom: none !important;
|
|
1083
|
+
border-radius: 0px !important;
|
|
1084
|
+
background: #fff;
|
|
1085
|
+
color: #151e26;
|
|
1086
|
+
display: flex;
|
|
1087
|
+
align-items: center;
|
|
1088
|
+
justify-content: center;
|
|
1089
|
+
text-align: center;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
.buttons-drawer .antd-ButtonGroup .slds-button > a,
|
|
1093
|
+
.buttons-drawer .antd-ButtonGroup .btn > a {
|
|
1094
|
+
width: 100%;
|
|
1095
|
+
min-height: 50px;
|
|
1096
|
+
display: flex;
|
|
1097
|
+
align-items: center;
|
|
1098
|
+
justify-content: center;
|
|
1099
|
+
color: inherit;
|
|
1100
|
+
text-decoration: none;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
.buttons-drawer .antd-ButtonGroup .slds-button i,
|
|
1104
|
+
.buttons-drawer .antd-ButtonGroup .btn i {
|
|
1105
|
+
margin-right: 3px;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
.buttons-drawer .antd-ButtonGroup .slds-button,
|
|
1109
|
+
.buttons-drawer .antd-ButtonGroup .btn,
|
|
1110
|
+
.buttons-drawer .antd-ButtonGroup .slds-button > a,
|
|
1111
|
+
.buttons-drawer .antd-ButtonGroup .btn > a,
|
|
1112
|
+
.buttons-drawer .antd-ButtonGroup .slds-button span,
|
|
1113
|
+
.buttons-drawer .antd-ButtonGroup .btn span {
|
|
1114
|
+
font-size: 14px;
|
|
1115
|
+
line-height: 21px;
|
|
1116
|
+
font-weight: 400;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1072
1119
|
@media screen and (max-width: 767px) {
|
|
1073
1120
|
/* 手机版Modal全屏 */
|
|
1074
1121
|
.antd-Modal-content {
|
|
@@ -1292,6 +1339,7 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
|
|
|
1292
1339
|
.steedos-header-toolbar-notifications-panel {
|
|
1293
1340
|
margin-bottom: 0px !important;
|
|
1294
1341
|
}
|
|
1342
|
+
|
|
1295
1343
|
.steedos-listview .is-loading .antd-Table-contentWrap {
|
|
1296
1344
|
height: 50px;
|
|
1297
1345
|
}
|
|
@@ -1421,13 +1469,46 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
|
|
|
1421
1469
|
.slds-filters__body .antd-Form-item {
|
|
1422
1470
|
margin-bottom: 0.75rem !important;
|
|
1423
1471
|
}
|
|
1424
|
-
.slds-filters__body .flow-select .antd-TreeSelect-popove {
|
|
1425
|
-
position: relative;
|
|
1426
|
-
}
|
|
1427
1472
|
.slds-filters__body .flow-select .antd-TreeSelect-popover > .antd-Tree {
|
|
1428
1473
|
max-height: 300px;
|
|
1474
|
+
overflow-y: auto;
|
|
1475
|
+
-webkit-overflow-scrolling: touch;
|
|
1476
|
+
overscroll-behavior: contain;
|
|
1477
|
+
touch-action: pan-y;
|
|
1429
1478
|
}
|
|
1430
1479
|
@media (max-width: 767px) {
|
|
1480
|
+
.slds-filters__body .flow-select .antd-ResultBox {
|
|
1481
|
+
align-items: center;
|
|
1482
|
+
}
|
|
1483
|
+
.slds-filters__body .flow-select .antd-ResultBox-value-wrap {
|
|
1484
|
+
flex-wrap: nowrap;
|
|
1485
|
+
overflow: hidden;
|
|
1486
|
+
}
|
|
1487
|
+
.slds-filters__body .flow-select .antd-ResultBox-value {
|
|
1488
|
+
flex: 0 1 auto;
|
|
1489
|
+
min-width: 0;
|
|
1490
|
+
max-width: calc(100% - 30px);
|
|
1491
|
+
}
|
|
1492
|
+
.slds-filters__body .flow-select .antd-ResultBox-valueLabel {
|
|
1493
|
+
overflow: hidden;
|
|
1494
|
+
text-overflow: ellipsis;
|
|
1495
|
+
white-space: nowrap;
|
|
1496
|
+
}
|
|
1497
|
+
.slds-filters__body .flow-select .antd-ResultBox-value + .antd-ResultBox-value {
|
|
1498
|
+
flex: 0 0 auto;
|
|
1499
|
+
max-width: 64px;
|
|
1500
|
+
}
|
|
1501
|
+
.slds-filters__body .flow-select .antd-ResultBox-value-input {
|
|
1502
|
+
flex: 1 1 auto;
|
|
1503
|
+
width: auto;
|
|
1504
|
+
min-width: 0;
|
|
1505
|
+
}
|
|
1506
|
+
.slds-filters__body .flow-select .antd-ResultBox-value + .antd-ResultBox-value-input,
|
|
1507
|
+
.slds-filters__body .flow-select .antd-ResultBox-value + .antd-ResultBox-value + .antd-ResultBox-value-input {
|
|
1508
|
+
flex: 0 0 24px;
|
|
1509
|
+
width: 24px;
|
|
1510
|
+
min-width: 24px;
|
|
1511
|
+
}
|
|
1431
1512
|
.set-next-steps-users {
|
|
1432
1513
|
margin-top: 0.5rem !important;
|
|
1433
1514
|
margin-bottom: 0.5rem !important;
|
|
@@ -2039,6 +2120,63 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
|
|
|
2039
2120
|
.steedos-object-listview .antd-Wrapper .steedos-listview-change-button .antd-DropDown-menu li:hover .steedos-listview-edit-button:hover .fa-edit {
|
|
2040
2121
|
color: #2468f2;
|
|
2041
2122
|
}
|
|
2123
|
+
/*
|
|
2124
|
+
手机端列表视图点"筛选"弹出的筛选面板字号过大(steedos/steedos-plugins#883)
|
|
2125
|
+
amis antd 主题在 max-width: 767px 下把表单的 label / 控件 / input 字号统一提到 --fontSizeLg(16px),
|
|
2126
|
+
筛选面板本质是 crud 里的一个 amis 表单,所以整块被放大,和 13px 的列表内容、14px 的页面基准不协调。
|
|
2127
|
+
这里只针对筛选面板(.slds-filters)覆盖为 --fontSizeMd(14px),不影响记录表单等其它手机端表单。
|
|
2128
|
+
作用域限定在两种列表容器内:.steedos-object-table 是列表视图、相关列表;
|
|
2129
|
+
.steedos-lookup-crud 是 lookup 字段弹窗里的列表,它不在 .steedos-object-table 内,需要单独列出。
|
|
2130
|
+
*/
|
|
2131
|
+
@media (max-width: 767px) {
|
|
2132
|
+
.steedos-object-table .slds-filters,
|
|
2133
|
+
.steedos-lookup-crud .slds-filters {
|
|
2134
|
+
/*
|
|
2135
|
+
steedos/steedos-plugins#885 筛选面板里各控件的提示文字起点不一致、日期区间有值时显示不全。
|
|
2136
|
+
手机端文本框的文字起点是控件左边 + 10px(webapp 的 .antd-Form-item input 左内边距),
|
|
2137
|
+
下拉和日期区间按 amis 手机端默认样式分别是贴边、居中,这里统一对齐到同一起点。
|
|
2138
|
+
*/
|
|
2139
|
+
}
|
|
2140
|
+
.steedos-object-table .slds-filters .antd-Form-item .antd-Form-label,
|
|
2141
|
+
.steedos-lookup-crud .slds-filters .antd-Form-item .antd-Form-label,
|
|
2142
|
+
.steedos-object-table .slds-filters .antd-Form-item .antd-Form-control,
|
|
2143
|
+
.steedos-lookup-crud .slds-filters .antd-Form-item .antd-Form-control,
|
|
2144
|
+
.steedos-object-table .slds-filters .antd-Form-item .antd-Form-value,
|
|
2145
|
+
.steedos-lookup-crud .slds-filters .antd-Form-item .antd-Form-value,
|
|
2146
|
+
.steedos-object-table .slds-filters .antd-Form-item input,
|
|
2147
|
+
.steedos-lookup-crud .slds-filters .antd-Form-item input,
|
|
2148
|
+
.steedos-object-table .slds-filters .antd-Form-item .antd-Select.is-mobile,
|
|
2149
|
+
.steedos-lookup-crud .slds-filters .antd-Form-item .antd-Select.is-mobile {
|
|
2150
|
+
font-size: var(--fontSizeMd);
|
|
2151
|
+
}
|
|
2152
|
+
.steedos-object-table .slds-filters .antd-Form-item .antd-Select.is-mobile .antd-Select-valueWrap,
|
|
2153
|
+
.steedos-lookup-crud .slds-filters .antd-Form-item .antd-Select.is-mobile .antd-Select-valueWrap {
|
|
2154
|
+
text-align: left;
|
|
2155
|
+
padding-left: 10px;
|
|
2156
|
+
}
|
|
2157
|
+
.steedos-object-table .slds-filters .antd-Form-item .antd-DateRangePicker.is-mobile,
|
|
2158
|
+
.steedos-lookup-crud .slds-filters .antd-Form-item .antd-DateRangePicker.is-mobile {
|
|
2159
|
+
justify-content: flex-start;
|
|
2160
|
+
flex-wrap: wrap;
|
|
2161
|
+
height: auto;
|
|
2162
|
+
}
|
|
2163
|
+
.steedos-object-table .slds-filters .antd-Form-item .antd-DateRangePicker.is-mobile .antd-DateRangePicker-input,
|
|
2164
|
+
.steedos-lookup-crud .slds-filters .antd-Form-item .antd-DateRangePicker.is-mobile .antd-DateRangePicker-input {
|
|
2165
|
+
flex: 1 1 auto;
|
|
2166
|
+
width: auto;
|
|
2167
|
+
min-width: 0;
|
|
2168
|
+
padding-left: 0;
|
|
2169
|
+
text-align: left;
|
|
2170
|
+
}
|
|
2171
|
+
.steedos-object-table .slds-filters .antd-Form-item .antd-DateRangePicker.is-mobile .antd-DateRangePicker-input:first-child,
|
|
2172
|
+
.steedos-lookup-crud .slds-filters .antd-Form-item .antd-DateRangePicker.is-mobile .antd-DateRangePicker-input:first-child {
|
|
2173
|
+
flex: 0 0 100%;
|
|
2174
|
+
}
|
|
2175
|
+
.steedos-object-table .slds-filters .antd-Form-item .antd-DateRangePicker.is-mobile .antd-DateRangePicker-input-separator,
|
|
2176
|
+
.steedos-lookup-crud .slds-filters .antd-Form-item .antd-DateRangePicker.is-mobile .antd-DateRangePicker-input-separator {
|
|
2177
|
+
display: none;
|
|
2178
|
+
}
|
|
2179
|
+
}
|
|
2042
2180
|
|
|
2043
2181
|
@media (min-width: 767px) {
|
|
2044
2182
|
/* 列表快速编辑功能样式 */
|
|
@@ -2591,8 +2729,25 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
|
|
|
2591
2729
|
}
|
|
2592
2730
|
.antd-TreeSelect-popover {
|
|
2593
2731
|
min-width: calc(100vw - 32px) !important;
|
|
2594
|
-
max-height: 50vh;
|
|
2732
|
+
max-height: min(50vh, 360px);
|
|
2595
2733
|
overflow-y: auto;
|
|
2734
|
+
-webkit-overflow-scrolling: touch;
|
|
2735
|
+
overscroll-behavior: contain;
|
|
2736
|
+
touch-action: pan-y;
|
|
2737
|
+
}
|
|
2738
|
+
.antd-TreeSelect-popover > .antd-Tree {
|
|
2739
|
+
max-height: min(50vh, 360px) !important;
|
|
2740
|
+
overflow-y: auto;
|
|
2741
|
+
-webkit-overflow-scrolling: touch;
|
|
2742
|
+
overscroll-behavior: contain;
|
|
2743
|
+
touch-action: pan-y;
|
|
2744
|
+
}
|
|
2745
|
+
.flow-select .antd-TreeSelect-popover > .antd-Tree {
|
|
2746
|
+
overflow-y: hidden !important;
|
|
2747
|
+
scrollbar-width: none;
|
|
2748
|
+
}
|
|
2749
|
+
.flow-select .antd-TreeSelect-popover > .antd-Tree::-webkit-scrollbar {
|
|
2750
|
+
display: none;
|
|
2596
2751
|
}
|
|
2597
2752
|
}
|
|
2598
2753
|
|
|
@@ -2869,6 +3024,14 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
|
|
|
2869
3024
|
}
|
|
2870
3025
|
.steedos-amis-instance-view {
|
|
2871
3026
|
font-size: 0.8125rem;
|
|
3027
|
+
--instance-mobile-action-font-size: 14px;
|
|
3028
|
+
--instance-mobile-action-line-height: 21px;
|
|
3029
|
+
}
|
|
3030
|
+
.steedos-amis-instance-view .workflow-form-v2 .steedos-user-selector .ant-input-borderless {
|
|
3031
|
+
font-size: inherit !important;
|
|
3032
|
+
line-height: inherit !important;
|
|
3033
|
+
color: inherit !important;
|
|
3034
|
+
font-weight: 500 !important;
|
|
2872
3035
|
}
|
|
2873
3036
|
.steedos-amis-instance-view .instance-name {
|
|
2874
3037
|
font-size: 20px;
|
|
@@ -2998,6 +3161,25 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
|
|
|
2998
3161
|
.steedos-amis-instance-view .instance-form-view-mobile .antd-Form-item::after {
|
|
2999
3162
|
content: none !important;
|
|
3000
3163
|
}
|
|
3164
|
+
.steedos-amis-instance-view.steedos-mobile-view .steedos-object-record-detail-header,
|
|
3165
|
+
.steedos-amis-instance-view.steedos-mobile-view .steedos-object-record-detail-header .antd-Button,
|
|
3166
|
+
.steedos-amis-instance-view.steedos-mobile-view .steedos-object-record-detail-header .antd-Button > span,
|
|
3167
|
+
.steedos-amis-instance-view.steedos-mobile-view .instance-attachment-toolbar,
|
|
3168
|
+
.steedos-amis-instance-view.steedos-mobile-view .instance-attachment-toolbar .steedos-file-upload,
|
|
3169
|
+
.steedos-amis-instance-view.steedos-mobile-view .instance-attachment-toolbar .ant-upload-wrapper,
|
|
3170
|
+
.steedos-amis-instance-view.steedos-mobile-view .instance-attachment-toolbar .ant-upload,
|
|
3171
|
+
.steedos-amis-instance-view.steedos-mobile-view .instance-attachment-toolbar .ant-upload span,
|
|
3172
|
+
.steedos-amis-instance-view.steedos-mobile-view .approve-button,
|
|
3173
|
+
.steedos-amis-instance-view.steedos-mobile-view .approve-button > span {
|
|
3174
|
+
font-size: var(--instance-mobile-action-font-size) !important;
|
|
3175
|
+
line-height: var(--instance-mobile-action-line-height) !important;
|
|
3176
|
+
}
|
|
3177
|
+
.steedos-amis-instance-view.steedos-mobile-view .workflow-form-v2 .steedos-user-selector,
|
|
3178
|
+
.steedos-amis-instance-view.steedos-mobile-view .workflow-form-v2 .steedos-user-selector *,
|
|
3179
|
+
.steedos-amis-instance-view.steedos-mobile-view .workflow-form-v2 label {
|
|
3180
|
+
font-size: 13px !important;
|
|
3181
|
+
line-height: 19.5px !important;
|
|
3182
|
+
}
|
|
3001
3183
|
.approval-drawer .antd-Form-item {
|
|
3002
3184
|
border-bottom: none !important;
|
|
3003
3185
|
margin-bottom: 0 !important;
|
|
@@ -3029,6 +3211,22 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
|
|
|
3029
3211
|
border-top: 1px solid #e5e7eb !important;
|
|
3030
3212
|
padding-top: 8px !important;
|
|
3031
3213
|
}
|
|
3214
|
+
.approval-drawer .antd-Drawer-footer .antd-Button,
|
|
3215
|
+
.approval-drawer .antd-Drawer-footer .antd-Button > span,
|
|
3216
|
+
.approval-drawer .antd-Form-value,
|
|
3217
|
+
.approval-drawer .antd-Form-value *,
|
|
3218
|
+
.approval-drawer .antd-ListControl,
|
|
3219
|
+
.approval-drawer .antd-ListControl *,
|
|
3220
|
+
.approval-drawer .antd-ListControl-placeholder,
|
|
3221
|
+
.approval-drawer .antd-ListControl-item,
|
|
3222
|
+
.approval-drawer .antd-ListControl-itemLabel,
|
|
3223
|
+
.approval-drawer .antd-RadiosControl,
|
|
3224
|
+
.approval-drawer .antd-RadiosControl *,
|
|
3225
|
+
.approval-drawer .antd-Checkbox,
|
|
3226
|
+
.approval-drawer .antd-Checkbox * {
|
|
3227
|
+
font-size: var(--instance-mobile-action-font-size) !important;
|
|
3228
|
+
line-height: var(--instance-mobile-action-line-height) !important;
|
|
3229
|
+
}
|
|
3032
3230
|
.approval-drawer .antd-RadiosControl {
|
|
3033
3231
|
display: flex;
|
|
3034
3232
|
flex-direction: row;
|