@steedos-labs/plugin-workflow 3.0.16 → 3.0.19

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.
@@ -625,6 +625,59 @@ tbody .color-priority-muted *{
625
625
  }
626
626
 
627
627
 
628
+ /* 1. 基础设置:合并边框并去掉表格容器的外边框 */
629
+ .instance-form .antd-Table-table {
630
+ border-collapse: collapse;
631
+ border: none !important; /* 强制移除最外层边框 */
632
+ }
633
+
634
+ /* 2. 给所有单元格添加边框(内部边框) */
635
+ .instance-form .antd-Table-table th,
636
+ .instance-form .antd-Table-table td {
637
+ border: 1px solid #000; /* 这里可以修改你想要的颜色,比如 #000 */
638
+ padding: 8px; /* 适当增加间距更美观 */
639
+ }
640
+
641
+ /* 3. 移除最左侧和最右侧的垂直边框 */
642
+ .instance-form .antd-Table-table tr th:first-child,
643
+ .instance-form .antd-Table-table tr td:first-child {
644
+ border-left: none;
645
+ }
646
+ .instance-form .antd-Table-table tr th:last-child,
647
+ .instance-form .antd-Table-table tr td:last-child {
648
+ border-right: none;
649
+ }
650
+
651
+ /* 4. 移除最顶部和最底部的水平边框 */
652
+ .instance-form .antd-Table-table thead tr:first-child th {
653
+ border-top: none;
654
+ }
655
+ .instance-form .antd-Table-table tbody tr:last-child td {
656
+ border-bottom: none;
657
+ }
658
+
659
+ .instance-form .steedos-input-table .antd-Service>.antd-Form-item {
660
+ margin-bottom: 0px !important;
661
+ }
662
+
663
+ .instance-form .ant-select-selector{
664
+ background: transparent !important;
665
+ border: none !important;
666
+ }
667
+
668
+ .instance-form .antd-FileControl-selectBtn{
669
+ border: none;
670
+ background: transparent;
671
+ color: #000;
672
+ }
673
+
674
+
675
+ .instance-form .antd-ImageControl-addBtn{
676
+ border: none;
677
+ background: transparent;
678
+ color: #000;
679
+ }
680
+
628
681
  .instance-form .steedos-input-table .antd-Table-table colgroup col:nth-child(2) {
629
682
  width: 0px !important;
630
683
  min-width: 0px !important;
@@ -134,9 +134,10 @@ function fieldToAmis(fieldName, fieldDef, schema, isColumn = false, isPrint = fa
134
134
 
135
135
  if (fieldDef.formula && (type === 'input-text' || type === 'input-number' || type === 'textarea')) {
136
136
  let formula = fieldDef.formula;
137
+ formula = formula.replace(/numToRMB/g, 'UPPERMONEY');
137
138
  const replaceCallback = (match, p1) => {
138
139
  const cleanP1 = p1.replace(/(/g, '_').replace(/)/g, '');
139
- if (type === 'input-number') {
140
+ if (type === 'input-number' || formula.includes('UPPERMONEY')) {
140
141
  return `(${cleanP1} || 0)`;
141
142
  } else {
142
143
  return `(${cleanP1} || "")`;