shaogen1995 11 ay önce
ebeveyn
işleme
ae84add713

+ 4 - 1
src/components/UpXlsx.tsx

@@ -28,7 +28,10 @@ function UpXlsx({ url, xlsxResInfoFu, dirCode, existSn }: Props, ref: any) {
         const filesInfo = e.target.files[0]
 
         // 校验格式
-        if (!filesInfo.name.endsWith('.xlsx')) return MessageFu.warning('只支持.xlsx格式!')
+        if (!filesInfo.name.endsWith('.xlsx')) {
+          e.target.value = ''
+          return MessageFu.warning('只支持.xlsx格式!')
+        }
 
         // 校验大小
         if (filesInfo.size > 5 * 1024 * 1024) {

+ 15 - 0
src/components/ZRichTexts/index.module.scss

@@ -35,6 +35,21 @@
         display: none;
       }
 
+      button {
+        &:nth-of-type(7) {
+          display: none !important;
+        }
+        &:nth-of-type(8) {
+          display: none !important;
+        }
+        &:nth-of-type(18) {
+          display: none !important;
+        }
+        &:nth-of-type(19) {
+          display: none !important;
+        }
+      }
+
       .bf-container {
         height: 100%;
       }