AI键移除 放在顶部KBToolBar

This commit is contained in:
2025-12-19 20:08:13 +08:00
parent 7587fe6714
commit 70520fb7d9
5 changed files with 19 additions and 23 deletions

View File

@@ -13,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
@protocol KBToolBarDelegate <NSObject>
@optional
/// 左侧 4 个功能按钮点击index: 0~3
/// 左侧功能按钮点击index 从 0 开始
- (void)toolBar:(KBToolBar *)toolBar didTapActionAtIndex:(NSInteger)index;
/// 右侧设置按钮点击
- (void)toolBarDidTapSettings:(KBToolBar *)toolBar;
@@ -21,12 +21,12 @@ NS_ASSUME_NONNULL_BEGIN
- (void)toolBarDidTapUndo:(KBToolBar *)toolBar;
@end
/// 顶部工具栏:左侧 4 个按钮,右侧 1 个设置按钮
/// 顶部工具栏:左侧按钮数量可变,右侧为设置/撤销等功能区
@interface KBToolBar : UIView
@property (nonatomic, weak, nullable) id<KBToolBarDelegate> delegate;
/// 左侧 4 个按钮的标题。默认值:@[@"Item1", @"Item2", @"Item3", @"Item4"]。
/// 左侧按钮的标题(数量由数组决定)。默认值:@[@"Recharge Now", @"AI"]。
@property (nonatomic, copy) NSArray<NSString *> *leftButtonTitles;
/// 暴露按钮以便外部定制(只读;首次访问时懒加载创建)