|
@@ -13,6 +13,7 @@ public class ComponentAlertProperty: NSObject {
|
|
|
public var messageType: ComponentMessageType = .info
|
|
|
public var title: String? //传nil时表示不显示Title
|
|
|
public var subTitle: String? //副文本信息
|
|
|
+ public var iconImage: NSImage?
|
|
|
public var detailButtonString: String? //传nil时表示不显示
|
|
|
public var cancelButtonString: String? //传nil时表示不显示
|
|
|
|
|
@@ -21,12 +22,14 @@ public class ComponentAlertProperty: NSObject {
|
|
|
public init(messageType: ComponentMessageType = .info,
|
|
|
title: String? = nil,
|
|
|
subTitle: String? = nil,
|
|
|
+ iconImage: NSImage?
|
|
|
detailButtonString: String? = nil,
|
|
|
cancelButtonString: String? = nil) {
|
|
|
|
|
|
self.messageType = messageType
|
|
|
self.title = title
|
|
|
self.subTitle = subTitle
|
|
|
+ self.iconImage = iconImage
|
|
|
self.detailButtonString = detailButtonString
|
|
|
self.cancelButtonString = cancelButtonString
|
|
|
|