MY 1 mês atrás
pai
commit
7d121d48fb
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      JLHWEB/src/hooks/useDwLayout.tsx

+ 4 - 0
JLHWEB/src/hooks/useDwLayout.tsx

@@ -355,6 +355,10 @@ export const useDwLayout = (
               </>
               </>
             );
             );
           };
           };
+          item.exportMethod = ({ cellValue, row, column }) => {
+            let _val = cellValue;
+            return _val ? "✔" : "✖";
+          };
         } else if (item.enum && item.enum.length) {
         } else if (item.enum && item.enum.length) {
           /**普通:enum,数值转文本 */
           /**普通:enum,数值转文本 */
           item.render = (scope: any) => {
           item.render = (scope: any) => {