@steedos-widgets/amis-object 1.3.0-beta.9 → 1.3.0

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.
@@ -266,6 +266,19 @@ fieldset.antd-Collapse > legend{
266
266
  top: unset
267
267
  }
268
268
 
269
+ /*
270
+ .antd-Crud-toolbar .antd-Crud-toolbar-item中每个.antd-Button--size-default 使用了变量 var(--button-size-default-marginRight) 右侧会有margin,
271
+ 移除最后一个(按元素的所在位置其实是每一个,因为有float right所以界面上显示的是最后一个)按钮的右侧margin来实现整行左右边距对齐
272
+ */
273
+ .antd-Crud .antd-Crud-toolbar .antd-Crud-toolbar-item.antd-Crud-toolbar-item--right:not(.antd-Crud-toolbar-item.antd-Crud-toolbar-item--right + .antd-Crud-toolbar-item.antd-Crud-toolbar-item--right) .antd-Button{
274
+ margin-right: 0;
275
+ }
276
+
277
+ /* crud中的顶部选中项未垂直居中 */
278
+ .antd-Crud .antd-Crud-selection{
279
+ margin-bottom: var(--gap-xs);
280
+ }
281
+
269
282
  .ant-dropdown-menu {
270
283
  border: 1px solid #e5e5e5;
271
284
  border-radius: 0.25rem;
@@ -400,6 +413,9 @@ fieldset.antd-Collapse > legend{
400
413
  margin-top: 0.5rem;
401
414
  margin-bottom: 0.5rem
402
415
  }
416
+ .mr-0 {
417
+ margin-right: 0px
418
+ }
403
419
  .mb-3 {
404
420
  margin-bottom: 0.75rem
405
421
  }
@@ -538,6 +554,9 @@ fieldset.antd-Collapse > legend{
538
554
  .w-6 {
539
555
  width: 1.5rem
540
556
  }
557
+ .w-\[240px\] {
558
+ width: 240px
559
+ }
541
560
  .w-20 {
542
561
  width: 5rem
543
562
  }
@@ -1031,9 +1050,6 @@ fieldset.antd-Collapse > legend{
1031
1050
  --tw-bg-opacity: 1;
1032
1051
  background-color: rgb(243 244 246 / var(--tw-bg-opacity))
1033
1052
  }
1034
- .sm\:p-0 {
1035
- padding: 0px
1036
- }
1037
1053
  .sm\:p-3 {
1038
1054
  padding: 0.75rem
1039
1055
  }
@@ -1050,11 +1066,6 @@ fieldset.antd-Collapse > legend{
1050
1066
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
1051
1067
  }
1052
1068
  }
1053
- @media (min-width: 768px) {
1054
- .md\:border-b {
1055
- border-bottom-width: 1px
1056
- }
1057
- }
1058
1069
  @media (min-width: 1024px) {
1059
1070
  .lg\:z-50 {
1060
1071
  z-index: 50
@@ -1179,17 +1190,68 @@ fieldset.antd-Collapse > legend{
1179
1190
  display: none;
1180
1191
  }
1181
1192
  }
1193
+ .steedos-select-user {
1194
+ margin-left: 330px;
1195
+ min-height: 300px;
1196
+ }
1182
1197
  .steedos-select-user .antd-Table {
1183
1198
  margin-bottom: 0;
1184
1199
  position: unset;
1185
1200
  }
1186
- .steedos-select-user .antd-Table .antd-Table-content {
1187
- max-height: calc(100vh - 343px);
1201
+ @media (min-width: 768px) {
1202
+ .steedos-select-user .antd-Table .antd-Table-content {
1203
+ max-height: calc(100vh - 343px);
1204
+ }
1205
+ .steedos-select-user .antd-Table .antd-SearchBox {
1206
+ margin-top: 0;
1207
+ }
1188
1208
  }
1189
- .steedos-select-user .antd-Table .antd-SearchBox {
1190
- margin-top: 0;
1209
+ .steedos-select-user .steedos-select-user-tree {
1210
+ max-height: 100%;
1211
+ position: absolute;
1212
+ left: -330px;
1213
+ width: 320px;
1214
+ bottom: 0;
1215
+ top: 0;
1216
+ overflow: auto;
1217
+ min-height: 300px;
1191
1218
  }
1192
1219
  @media (max-width: 768px) {
1220
+ .steedos-select-user .steedos-select-user-tree {
1221
+ position: absolute;
1222
+ left: 0;
1223
+ width: 240px;
1224
+ bottom: 0;
1225
+ top: 0;
1226
+ overflow: auto;
1227
+ z-index: 100;
1228
+ background: white;
1229
+ }
1230
+ .steedos-select-user {
1231
+ margin: 0;
1232
+ height: calc(100% - 10px);
1233
+ }
1234
+ .steedos-select-user .steedos-select-user-sidebar {
1235
+ margin-right: -24px;
1236
+ transition: 0.5s ease transform;
1237
+ z-index: 1000;
1238
+ transform: translate(-100%, 0);
1239
+ -webkit-transform: translate(-100%, 0);
1240
+ -moz-transform: translate(-100%, 0);
1241
+ -ms-transform: translate(-100%, 0);
1242
+ -o-transform: translate(-100%, 0);
1243
+ }
1244
+ .steedos-select-user .steedos-select-user-sidebar.steedos-select-user-sidebar-open .steedos-select-user-tree {
1245
+ border-right: #e5e7eb 1px solid;
1246
+ padding-right: 20px;
1247
+ }
1248
+ .steedos-select-user .steedos-select-user-sidebar.steedos-select-user-sidebar-open {
1249
+ transform: translate(0, 0);
1250
+ -webkit-transform: translate(0, 0);
1251
+ -moz-transform: translate(0, 0);
1252
+ -ms-transform: translate(0, 0);
1253
+ -o-transform: translate(0, 0);
1254
+ }
1193
1255
  .antd-Crud-toolbar {
1194
1256
  flex-basis: 0;
1195
1257
  flex-grow: 1;
@@ -1233,6 +1295,21 @@ fieldset.antd-Collapse > legend{
1233
1295
  /* 显示的行数 */
1234
1296
  -webkit-box-orient: vertical;
1235
1297
  }
1298
+ /* 魔方定义的按钮,统一把 .antd-Button--size-default 的右侧margin值 var(--button-size-default-marginRight) 去除 */
1299
+ .steedos-object-button .antd-Button {
1300
+ margin-right: 0px;
1301
+ }
1302
+ .steedos-object-button.antd-Button {
1303
+ margin-right: 0px;
1304
+ }
1305
+ /* 魔方定义的按钮,连续的按钮左侧加间隔分开,第一个按钮不会识别此样式 */
1306
+ .steedos-object-button + .steedos-object-button {
1307
+ margin-left: 4px;
1308
+ }
1309
+ /* 魔方定义的按钮,如果是显示在下拉菜单作为菜单按钮则不能加间隔 */
1310
+ .antd-ButtonGroup--vertical .steedos-object-button + .steedos-object-button {
1311
+ margin-left: 0px;
1312
+ }
1236
1313
 
1237
1314
 
1238
1315
  .steedos-dropdown-button-overlay .ant-dropdown-menu-item {
@@ -1353,9 +1430,25 @@ fieldset.antd-Collapse > legend{
1353
1430
 
1354
1431
  @media (max-width: 767px) {
1355
1432
  .steedos-amis-form.antd-Form {
1356
- /* start ======== 移动端给部分input加边框,并使输入框上下居中*/
1433
+ /* start ======== 移动端参照电脑端样式*/
1357
1434
  /* =========end */
1358
1435
  }
1436
+ .steedos-amis-form.antd-Form .antd-Picker-valueWrap {
1437
+ display: flex;
1438
+ }
1439
+ .steedos-amis-form.antd-Form .antd-Form-item > .antd-Form-label {
1440
+ max-width: var(--Form-mode-default-width);
1441
+ }
1442
+ .steedos-amis-form.antd-Form .antd-Select.is-mobile {
1443
+ border-width: var(--Form-select-borderWidth);
1444
+ border-style: var(--select-base-default-top-border-style) var(--select-base-default-right-border-style) var(--select-base-default-bottom-border-style) var(--select-base-default-left-border-style);
1445
+ border-color: var(--Form-select-borderColor);
1446
+ padding: var(--select-base-default-paddingTop) var(--select-base-default-paddingRight) var(--select-base-default-paddingBottom) var(--select-base-default-paddingLeft);
1447
+ min-height: var(--Form-selectOption-height);
1448
+ }
1449
+ .steedos-amis-form.antd-Form .antd-Form-item::after {
1450
+ border-bottom: unset;
1451
+ }
1359
1452
  .steedos-amis-form.antd-Form .antd-Form-item .antd-Form-control > .antd-TextControl-input,
1360
1453
  .steedos-amis-form.antd-Form .antd-Form-item div.antd-TextareaControl {
1361
1454
  border: var(--Form-input-borderWidth) solid var(--Form-input-borderColor);
@@ -1381,8 +1474,16 @@ fieldset.antd-Collapse > legend{
1381
1474
  height: 100%;
1382
1475
  }
1383
1476
  .steedos-amis-form.antd-Form .antd-Form-item {
1384
- margin-top: 0;
1477
+ display: block;
1478
+ margin-top: 0.25rem;
1479
+ margin-bottom: 0.25rem;
1385
1480
  align-items: center;
1481
+ padding: 0;
1482
+ }
1483
+ .steedos-amis-form.antd-Form .antd-Form-item .antd-Form-static {
1484
+ padding-top: var(--Form-label-paddingTop);
1485
+ padding-bottom: var(--Form-label-paddingTop);
1486
+ min-height: var(--Form-input-height);
1386
1487
  }
1387
1488
  }
1388
1489
 
@@ -1424,14 +1525,24 @@ fieldset.antd-Collapse > legend{
1424
1525
  width: 100%;
1425
1526
  }
1426
1527
  @media (max-width: 768px) {
1427
- .steedos-object-listview .antd-Crud .antd-Table-headToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child {
1528
+ .steedos-object-table .antd-Crud .antd-Table-headToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child {
1529
+ width: 100%;
1530
+ margin-top: 8px;
1531
+ }
1532
+ .steedos-object-table .antd-Crud .antd-Table-headToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child .antd-TooltipWrapper {
1533
+ width: 100%;
1534
+ }
1535
+ .steedos-object-table .antd-Crud .antd-Table-headToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child .antd-TooltipWrapper .antd-SearchBox.is-active {
1536
+ width: 100%;
1537
+ }
1538
+ .antd-Modal .antd-Modal-body .antd-Crud .antd-Table-headToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child {
1428
1539
  width: 100%;
1429
1540
  margin-top: 8px;
1430
1541
  }
1431
- .steedos-object-listview .antd-Crud .antd-Table-headToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child .antd-TooltipWrapper {
1542
+ .antd-Modal .antd-Modal-body .antd-Crud .antd-Table-headToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child .antd-TooltipWrapper {
1432
1543
  width: 100%;
1433
1544
  }
1434
- .steedos-object-listview .antd-Crud .antd-Table-headToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child .antd-TooltipWrapper .antd-SearchBox.is-active {
1545
+ .antd-Modal .antd-Modal-body .antd-Crud .antd-Table-headToolbar .antd-Crud-toolbar .antd-Crud-toolbar-item--right:last-child .antd-TooltipWrapper .antd-SearchBox.is-active {
1435
1546
  width: 100%;
1436
1547
  }
1437
1548
  }