@steedos-widgets/amis-object 1.3.3 → 1.3.4-beta.10

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.
@@ -6,9 +6,11 @@ export declare const AmisObjectListView: (props: any) => Promise<{
6
6
  showIcon: boolean;
7
7
  className: string;
8
8
  data?: undefined;
9
+ style?: undefined;
9
10
  } | {
10
11
  type: string;
11
12
  data: any;
13
+ style: any;
12
14
  className: string;
13
15
  body: {
14
16
  type: string;
@@ -4,10 +4,6 @@ export declare const AmisObjectTable: (props: any) => Promise<{
4
4
  className: string;
5
5
  id: string;
6
6
  name: string;
7
- data: {
8
- objectName: any;
9
- recordPermissions: any;
10
- uiSchema: any;
11
- };
12
- body: {};
7
+ data: any;
8
+ body: any;
13
9
  }>;
@@ -88,6 +88,7 @@ export declare const AmisRecordDetailHeader: (props: any) => Promise<{
88
88
  }[] | {
89
89
  type: string;
90
90
  icon: string;
91
+ visibleOn: string;
91
92
  onEvent: {
92
93
  click: {
93
94
  actions: {
@@ -1,6 +1,6 @@
1
1
  :root {
2
+ --body-bg: #f9fafb;
2
3
  --Page-main-bg: transparent;
3
- --fontFamilyBase: -apple-system,BlinkMacSystemFont,Helvetica,Arial,Microsoft Yahei,SimHei;
4
4
  --Form-item-fontSize: 12px;
5
5
  --Form-fontSize: 14px;
6
6
  --Form-selectValue-fontSize: 14px;
@@ -57,7 +57,7 @@ fieldset.antd-Collapse {
57
57
  margin-bottom: 1rem;
58
58
  }
59
59
 
60
- fieldset.antd-Collapse > legend.antd-Collapse-header {
60
+ /* fieldset.antd-Collapse > legend.antd-Collapse-header {
61
61
  border-left: 0;
62
62
  background: rgb(241 245 249);
63
63
  padding: 0.5rem;
@@ -67,7 +67,7 @@ fieldset.antd-Collapse > legend.antd-Collapse-header {
67
67
 
68
68
  fieldset.antd-Collapse > legend.antd-Collapse-header > .antd-Collapse-arrow:before {
69
69
  border-color: initial
70
- }
70
+ } */
71
71
 
72
72
  .amis-scope .antd-Select-option > label {
73
73
  display: block;
@@ -96,10 +96,6 @@ fieldset.antd-Collapse > legend.antd-Collapse-header > .antd-Collapse-arrow:befo
96
96
  display: none;
97
97
  }
98
98
 
99
- body {
100
- font-family: -apple-system,BlinkMacSystemFont,Helvetica,Arial,Microsoft Yahei,SimHei;
101
- }
102
-
103
99
  @media (max-width: 768px){
104
100
  .ant-modal.antd-Modal--lg, .ant-modal.antd-Modal--xl, .ant-modal.antd-Modal--full{
105
101
  top: 0px !important;
@@ -275,8 +271,25 @@ fieldset.antd-Collapse > legend{
275
271
  }
276
272
 
277
273
  /* crud中的顶部选中项未垂直居中 */
278
- .antd-Crud .antd-Crud-selection{
279
- margin-bottom: var(--gap-xs);
274
+ .antd-Crud .antd-Crud-selection{
275
+ padding: var(--gap-sm);
276
+ border-bottom: 1px solid var(--Table-thead-borderColor);
277
+ margin-bottom: 0;
278
+ }
279
+
280
+ .bg-white {
281
+ color: var(--body-color);
282
+ }
283
+
284
+ .antd-SearchBox.is-mobile {
285
+ border: var(--Form-input-borderWidth) solid transparent;
286
+ border-radius: var(--Form-input-borderRadius);
287
+ }
288
+
289
+ .antd-Picker .antd-Picker-input .antd-Picker-values .antd-Picker-value{
290
+ /* lookup字段值选中项值字符很多超长时换行,包括单选和多选 */
291
+ white-space: break-spaces;
292
+ word-break: break-all;
280
293
  }
281
294
 
282
295
  .ant-dropdown-menu {
@@ -326,6 +339,34 @@ fieldset.antd-Collapse > legend{
326
339
  .antd-ButtonGroup > .antd-Button {
327
340
  max-width: none !important;
328
341
  }
342
+
343
+
344
+ /* env.notify时的toast样式参考amis toast,而不是使用antd本身的样式效果 */
345
+ .ant-message {
346
+ top: var(--gap-base);
347
+ left: 50%;
348
+ transform: translateX(-50%);
349
+ max-width: var(--Toast-width);
350
+ }
351
+
352
+ .ant-message .ant-message-notice {
353
+ padding: 2px 0;
354
+ max-width: var(--Toast-width);
355
+ margin: 0 4px;
356
+ }
357
+
358
+ .ant-message .ant-message-notice .ant-message-notice-content {
359
+ width: 100%;
360
+ padding: var(--Toast-paddingY) var(--Toast-paddingX);
361
+ border-radius: var(--Toast-borderRadius);
362
+ }
363
+
364
+ .ant-message .ant-message-notice .ant-message-notice-content .ant-message-custom-content {
365
+ display: flex;
366
+ align-items: center;
367
+ justify-content: start;
368
+ text-align: left;
369
+ }
329
370
  /* @tailwind base; */
330
371
  .container {
331
372
  width: 100%
@@ -413,6 +454,9 @@ fieldset.antd-Collapse > legend{
413
454
  margin-top: 0.5rem;
414
455
  margin-bottom: 0.5rem
415
456
  }
457
+ .ml-1 {
458
+ margin-left: 0.25rem
459
+ }
416
460
  .mr-0 {
417
461
  margin-right: 0px
418
462
  }
@@ -557,8 +601,8 @@ fieldset.antd-Collapse > legend{
557
601
  .w-\[240px\] {
558
602
  width: 240px
559
603
  }
560
- .w-20 {
561
- width: 5rem
604
+ .w-10 {
605
+ width: 2.5rem
562
606
  }
563
607
  .w-12 {
564
608
  width: 3rem
@@ -566,9 +610,6 @@ fieldset.antd-Collapse > legend{
566
610
  .w-1\/3 {
567
611
  width: 33.333333%
568
612
  }
569
- .w-10 {
570
- width: 2.5rem
571
- }
572
613
  .\!w-10 {
573
614
  width: 2.5rem !important
574
615
  }
@@ -735,10 +776,6 @@ fieldset.antd-Collapse > legend{
735
776
  .\!border-none {
736
777
  border-style: none !important
737
778
  }
738
- .border-slate-300 {
739
- --tw-border-opacity: 1;
740
- border-color: rgb(203 213 225 / var(--tw-border-opacity))
741
- }
742
779
  .border-gray-300 {
743
780
  --tw-border-opacity: 1;
744
781
  border-color: rgb(209 213 219 / var(--tw-border-opacity))
@@ -747,10 +784,6 @@ fieldset.antd-Collapse > legend{
747
784
  --tw-border-opacity: 1;
748
785
  border-color: rgb(14 165 233 / var(--tw-border-opacity))
749
786
  }
750
- .border-slate-200 {
751
- --tw-border-opacity: 1;
752
- border-color: rgb(226 232 240 / var(--tw-border-opacity))
753
- }
754
787
  .border-gray-200 {
755
788
  --tw-border-opacity: 1;
756
789
  border-color: rgb(229 231 235 / var(--tw-border-opacity))
@@ -857,6 +890,9 @@ fieldset.antd-Collapse > legend{
857
890
  .pb-4 {
858
891
  padding-bottom: 1rem
859
892
  }
893
+ .pl-0 {
894
+ padding-left: 0px
895
+ }
860
896
  .text-left {
861
897
  text-align: left
862
898
  }
@@ -940,9 +976,9 @@ fieldset.antd-Collapse > legend{
940
976
  --tw-text-opacity: 1;
941
977
  color: rgb(37 99 235 / var(--tw-text-opacity))
942
978
  }
943
- .text-slate-700 {
979
+ .text-gray-700 {
944
980
  --tw-text-opacity: 1;
945
- color: rgb(51 65 85 / var(--tw-text-opacity))
981
+ color: rgb(55 65 81 / var(--tw-text-opacity))
946
982
  }
947
983
  .text-sky-500 {
948
984
  --tw-text-opacity: 1;
@@ -1001,6 +1037,9 @@ fieldset.antd-Collapse > legend{
1001
1037
  --tw-bg-opacity: 1;
1002
1038
  background-color: rgb(240 249 255 / var(--tw-bg-opacity))
1003
1039
  }
1040
+ .hover\:font-bold:hover {
1041
+ font-weight: 700
1042
+ }
1004
1043
  .focus\:outline-none:focus {
1005
1044
  outline: 2px solid transparent;
1006
1045
  outline-offset: 2px
@@ -1045,6 +1084,9 @@ fieldset.antd-Collapse > legend{
1045
1084
  .sm\:border {
1046
1085
  border-width: 1px
1047
1086
  }
1087
+ .sm\:border-r {
1088
+ border-right-width: 1px
1089
+ }
1048
1090
  .sm\:border-gray-300 {
1049
1091
  --tw-border-opacity: 1;
1050
1092
  border-color: rgb(209 213 219 / var(--tw-border-opacity))
@@ -1313,6 +1355,127 @@ fieldset.antd-Collapse > legend{
1313
1355
  .antd-ButtonGroup--vertical .steedos-object-button + .steedos-object-button {
1314
1356
  margin-left: 0px;
1315
1357
  }
1358
+ .whitespace-nowrap-table-cell-text-overflow-ellipsis-content {
1359
+ overflow: hidden;
1360
+ text-overflow: ellipsis;
1361
+ }
1362
+ .whitespace-nowrap-table-cell-text-overflow-ellipsis-content > .antd-Form-static {
1363
+ /*上面的样式无法解决url类型字段省略号问题*/
1364
+ overflow: hidden;
1365
+ text-overflow: ellipsis;
1366
+ }
1367
+ .whitespace-nowrap-table-cell-text-overflow-ellipsis-content > .antd-Form-static > .antd-Form-control .antd-TplField > span > a {
1368
+ /*上面的样式无法解决附件类型字段省略号问题*/
1369
+ overflow: hidden;
1370
+ text-overflow: ellipsis;
1371
+ }
1372
+ .whitespace-nowrap-table-cell-text-overflow-ellipsis .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap > div {
1373
+ /*各种字段类型在不支持快速编辑的单元格中文字超长时显示省略号*/
1374
+ overflow: hidden;
1375
+ text-overflow: ellipsis;
1376
+ }
1377
+ .whitespace-nowrap-table-cell-text-overflow-ellipsis .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap > div > .antd-Form-static {
1378
+ /*上面的样式无法解决url类型字段省略号问题*/
1379
+ overflow: hidden;
1380
+ text-overflow: ellipsis;
1381
+ }
1382
+ .whitespace-nowrap-table-cell-text-overflow-ellipsis .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap > div > .antd-Form-static > .antd-Form-control .antd-TplField > span > a {
1383
+ /*上面的样式无法解决附件类型字段省略号问题*/
1384
+ overflow: hidden;
1385
+ text-overflow: ellipsis;
1386
+ }
1387
+ .whitespace-nowrap-table-cell-text-overflow-ellipsis .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap.antd-Field--quickEditable {
1388
+ /*各种字段类型在支持快速编辑的单元格中文字超长时显示省略号*/
1389
+ }
1390
+ .whitespace-nowrap-table-cell-text-overflow-ellipsis .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap.antd-Field--quickEditable > div > div {
1391
+ /*这里写在第二层div中是因为第一层div是display: flex;无法实现省略号*/
1392
+ overflow: hidden;
1393
+ text-overflow: ellipsis;
1394
+ }
1395
+ .whitespace-nowrap-table-cell-text-overflow-ellipsis .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap.antd-Field--quickEditable > div > div > .antd-Form-static {
1396
+ /*上面的样式无法解决url类型字段省略号问题*/
1397
+ overflow: hidden;
1398
+ text-overflow: ellipsis;
1399
+ }
1400
+ .whitespace-nowrap-table-cell-text-overflow-ellipsis .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap.antd-Field--quickEditable > div > div > .antd-Form-static > .antd-Form-control .antd-TplField > span > a {
1401
+ /*上面的样式无法解决附件类型字段省略号问题*/
1402
+ overflow: hidden;
1403
+ text-overflow: ellipsis;
1404
+ }
1405
+ @media (min-width: 767px) {
1406
+ .steedos-object-table {
1407
+ /*对象表格组件各种字段类型文字超长时显示省略号*/
1408
+ }
1409
+ .steedos-object-table .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap > div {
1410
+ /*各种字段类型在不支持快速编辑的单元格中文字超长时显示省略号*/
1411
+ overflow: hidden;
1412
+ text-overflow: ellipsis;
1413
+ }
1414
+ .steedos-object-table .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap > div > .antd-Form-static {
1415
+ /*上面的样式无法解决url类型字段省略号问题*/
1416
+ overflow: hidden;
1417
+ text-overflow: ellipsis;
1418
+ }
1419
+ .steedos-object-table .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap > div > .antd-Form-static > .antd-Form-control .antd-TplField > span > a {
1420
+ /*上面的样式无法解决附件类型字段省略号问题*/
1421
+ overflow: hidden;
1422
+ text-overflow: ellipsis;
1423
+ }
1424
+ .steedos-object-table .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap.antd-Field--quickEditable {
1425
+ /*各种字段类型在支持快速编辑的单元格中文字超长时显示省略号*/
1426
+ }
1427
+ .steedos-object-table .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap.antd-Field--quickEditable > div > div {
1428
+ /*这里写在第二层div中是因为第一层div是display: flex;无法实现省略号*/
1429
+ overflow: hidden;
1430
+ text-overflow: ellipsis;
1431
+ }
1432
+ .steedos-object-table .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap.antd-Field--quickEditable > div > div > .antd-Form-static {
1433
+ /*上面的样式无法解决url类型字段省略号问题*/
1434
+ overflow: hidden;
1435
+ text-overflow: ellipsis;
1436
+ }
1437
+ .steedos-object-table .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap.antd-Field--quickEditable > div > div > .antd-Form-static > .antd-Form-control .antd-TplField > span > a {
1438
+ /*上面的样式无法解决附件类型字段省略号问题*/
1439
+ overflow: hidden;
1440
+ text-overflow: ellipsis;
1441
+ }
1442
+ }
1443
+ .antd-Modal .antd-Modal-body {
1444
+ /*lookup字段弹出窗口中各种字段类型的列文字超长时显示省略号*/
1445
+ }
1446
+ .antd-Modal .antd-Modal-body .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap > div {
1447
+ /*各种字段类型在不支持快速编辑的单元格中文字超长时显示省略号*/
1448
+ overflow: hidden;
1449
+ text-overflow: ellipsis;
1450
+ }
1451
+ .antd-Modal .antd-Modal-body .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap > div > .antd-Form-static {
1452
+ /*上面的样式无法解决url类型字段省略号问题*/
1453
+ overflow: hidden;
1454
+ text-overflow: ellipsis;
1455
+ }
1456
+ .antd-Modal .antd-Modal-body .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap > div > .antd-Form-static > .antd-Form-control .antd-TplField > span > a {
1457
+ /*上面的样式无法解决附件类型字段省略号问题*/
1458
+ overflow: hidden;
1459
+ text-overflow: ellipsis;
1460
+ }
1461
+ .antd-Modal .antd-Modal-body .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap.antd-Field--quickEditable {
1462
+ /*各种字段类型在支持快速编辑的单元格中文字超长时显示省略号*/
1463
+ }
1464
+ .antd-Modal .antd-Modal-body .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap.antd-Field--quickEditable > div > div {
1465
+ /*这里写在第二层div中是因为第一层div是display: flex;无法实现省略号*/
1466
+ overflow: hidden;
1467
+ text-overflow: ellipsis;
1468
+ }
1469
+ .antd-Modal .antd-Modal-body .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap.antd-Field--quickEditable > div > div > .antd-Form-static {
1470
+ /*上面的样式无法解决url类型字段省略号问题*/
1471
+ overflow: hidden;
1472
+ text-overflow: ellipsis;
1473
+ }
1474
+ .antd-Modal .antd-Modal-body .antd-Crud .antd-Table .antd-Table-content tbody td.whitespace-nowrap.antd-Field--quickEditable > div > div > .antd-Form-static > .antd-Form-control .antd-TplField > span > a {
1475
+ /*上面的样式无法解决附件类型字段省略号问题*/
1476
+ overflow: hidden;
1477
+ text-overflow: ellipsis;
1478
+ }
1316
1479
 
1317
1480
 
1318
1481
  .steedos-dropdown-button-overlay .ant-dropdown-menu-item {
@@ -1359,10 +1522,11 @@ fieldset.antd-Collapse > legend{
1359
1522
  width: 100% !important;
1360
1523
  }
1361
1524
 
1362
- /* 修正手机版 body上的sidebar导致y滚动条异常 */
1363
- .sidebar{
1364
- padding-bottom: 0px !important;
1365
- }
1525
+ }
1526
+
1527
+ /* 修正手机版 body上的sidebar导致y滚动条异常 */
1528
+ .sidebar{
1529
+ padding-bottom: 0px !important;
1366
1530
  }
1367
1531
  .steedos-listview .is-loading .antd-Table-contentWrap {
1368
1532
  height: 50px;
@@ -1406,9 +1570,6 @@ fieldset.antd-Collapse > legend{
1406
1570
  .steedos-amis-form.antd-Form .antd-Collapse-content {
1407
1571
  padding: 0.5rem;
1408
1572
  }
1409
- .steedos-amis-form.antd-Form .antd-Form-label {
1410
- margin-bottom: 0;
1411
- }
1412
1573
  .steedos-object-form .antd-ComboControl .antd-Combo .antd-Form-row {
1413
1574
  display: grid;
1414
1575
  grid-template-columns: repeat(1, minmax(0, 1fr));
@@ -1429,6 +1590,9 @@ fieldset.antd-Collapse > legend{
1429
1590
  .steedos-object-form .steedos-markdown .antd-Tabs-pane.is-active {
1430
1591
  display: block;
1431
1592
  }
1593
+ .antd-Select-popover .antd-Select-menu .antd-Select-option .antd-Checkbox--checkbox {
1594
+ white-space: nowrap;
1595
+ }
1432
1596
  .antd-Select-popover .antd-Select-menu .antd-Select-option .antd-Checkbox--checkbox > span {
1433
1597
  vertical-align: text-top;
1434
1598
  }
@@ -1486,6 +1650,14 @@ fieldset.antd-Collapse > legend{
1486
1650
  align-items: center;
1487
1651
  padding: 0;
1488
1652
  }
1653
+ .steedos-amis-form.antd-Form .antd-Form-item .antd-NumberControl .antd-Number {
1654
+ border: var(--Number-borderWidth) solid var(--Form-input-borderColor);
1655
+ }
1656
+ .steedos-amis-form.antd-Form .antd-Form-item .antd-PickerControl.is-mobile .antd-Picker-input {
1657
+ border-width: var(--Pick-base-top-border-width) var(--Pick-base-right-border-width) var(--Pick-base-bottom-border-width) var(--Pick-base-left-border-width);
1658
+ border-style: var(--Pick-base-top-border-style) var(--Pick-base-right-border-style) var(--Pick-base-bottom-border-style) var(--Pick-base-left-border-style);
1659
+ border-color: var(--Pick-base-top-border-color) var(--Pick-base-right-border-color) var(--Pick-base-bottom-border-color) var(--Pick-base-left-border-color);
1660
+ }
1489
1661
  .steedos-amis-form.antd-Form .antd-Form-item .antd-Form-static {
1490
1662
  padding-top: var(--Form-label-paddingTop);
1491
1663
  padding-bottom: var(--Form-label-paddingTop);
@@ -1554,15 +1726,15 @@ fieldset.antd-Collapse > legend{
1554
1726
  }
1555
1727
 
1556
1728
  @media (min-width: 767px) {
1557
- .steedos-object-table tbody td.antd-Field--quickEditable div {
1729
+ .steedos-object-table tbody td.antd-Field--quickEditable > div {
1558
1730
  display: flex;
1559
1731
  align-items: center;
1560
1732
  justify-content: space-between;
1561
1733
  }
1562
- .steedos-object-table tbody td.antd-Field--quickEditable div .antd-Field-quickEditBtn {
1734
+ .steedos-object-table tbody td.antd-Field--quickEditable > div .antd-Field-quickEditBtn {
1563
1735
  padding-right: 13px;
1564
1736
  }
1565
- .steedos-object-table tbody td.antd-Field--quickEditable div .antd-Field-quickEditBtn svg {
1737
+ .steedos-object-table tbody td.antd-Field--quickEditable > div .antd-Field-quickEditBtn svg {
1566
1738
  display: none;
1567
1739
  }
1568
1740
  .steedos-object-table tbody td.antd-Field--quickEditable:hover div .antd-Field-quickEditBtn {
@@ -1643,11 +1815,6 @@ fieldset.antd-Collapse > legend{
1643
1815
  padding-left: 0;
1644
1816
  padding-right: 0;
1645
1817
  }
1646
- .steedos-global-footer .antd-Nav-Menu-item,
1647
- .steedos-global-footer .antd-Nav-Menu-submenu-title,
1648
- .steedos-global-footer .antd-Nav-Menu-overflow-item-rest {
1649
- background-color: rgb(243 244 246) !important;
1650
- }
1651
1818
  .steedos-global-footer .antd-Nav-Menu-submenu-selected {
1652
1819
  border-bottom: none !important;
1653
1820
  }
@@ -1658,7 +1825,7 @@ fieldset.antd-Collapse > legend{
1658
1825
  background-color: unset;
1659
1826
  fill: #64748b;
1660
1827
  }
1661
- .steedos-global-footer .antd-Nav-Menu-item-selected .text-slate-700 {
1828
+ .steedos-global-footer .antd-Nav-Menu-item-selected .text-gray-700 {
1662
1829
  color: #0970d1 !important;
1663
1830
  }
1664
1831
  .steedos-global-footer .antd-Nav-Menu-item-selected svg {
@@ -1669,6 +1836,9 @@ fieldset.antd-Collapse > legend{
1669
1836
  .antd-Nav-Menu-overflow-item {
1670
1837
  height: 100% !important;
1671
1838
  }
1839
+ .steedos-global-footer .antd-Nav-Menu-item.antd-Nav-Menu-item-selected {
1840
+ background: transparent;
1841
+ }
1672
1842
  .steedos-global-footer-popup .antd-Nav-Menu-item-wrap {
1673
1843
  align-items: center;
1674
1844
  }
@@ -1710,7 +1880,6 @@ fieldset.antd-Collapse > legend{
1710
1880
  max-width: 100% !important;
1711
1881
  }
1712
1882
  .steedos-global-footer-root .antd-Nav-Menu-horizontal.antd-Nav-Menu-light {
1713
- background-color: rgb(243 244 246);
1714
1883
  justify-content: space-evenly;
1715
1884
  height: 100%;
1716
1885
  }