Browse Source

【fix】【AI】App Store,AI重写、校队、翻译输入框,都无法输入文本

tangchao 6 months ago
parent
commit
d89ebaf380

+ 3 - 0
PDF Office/PDF Master/Class/AIInfo/AIConfigWindowController/Views/AIInfoInputView/AIInfoInputView.swift

@@ -154,6 +154,9 @@ class AIInfoInputView: NSView, NibLoadable, NSTextFieldDelegate, NSTextViewDeleg
         self.inputTextCountLabel.formatter = countFormatter
         self.inputTextCountLabel.delegate = self
         
+        if let data = self.fileEmptyTextView.enclosingScrollView?.contentView, data.bounds.equalTo(.zero) == false {
+            self.fileEmptyTextView.frame = data.bounds
+        }
         self.fileEmptyTextView.font = NSFont.SFProTextRegularFont(14)
         self.fileEmptyTextView.delegate = self
         self.fileEmptyTextView.firstResponderHandle = {[unowned self] view, isFirstResponder in

+ 7 - 0
PDF Office/PDF Master/Class/Purchase/DMG/Verification/VerificationManager/AIInfoManager.h

@@ -61,4 +61,11 @@ typedef void(^AIActivityComplention)(NSDictionary *info, NSError *error);
 @property (nonatomic, readonly) int pre_creditToken;
 
 @end
+
+#if DEBUG
+@interface AIInfoManager (KMTest)
+
+@end
+#endif
+
 NS_ASSUME_NONNULL_END

+ 10 - 0
PDF Office/PDF Master/Class/Purchase/DMG/Verification/VerificationManager/AIInfoManager.m

@@ -504,3 +504,13 @@ static AIInfoManager *__Manager = nil;
 }
 
 @end
+
+#if DEBUG
+@implementation AIInfoManager (KMTest)
+
+//- (AIInfo *)aiInfo {
+//    return [[AIInfo alloc] initWithDict:@{@"1" : @"1"}];
+//}
+
+@end
+#endif

+ 1 - 0
PDF Office/PDF Master/Class/README.md

@@ -113,6 +113,7 @@
 ## AI
 - 概括 & 重写 & 校对 & 翻译
 * AIConfigWindowController 
+- AI 购买窗口 AIPurchaseWindowController
 
 ## 合并