@@ -1,4 +1,4 @@
-export type BtnClassName = 'btnDeafault' | 'btnPrimary' | 'btnDanger'
+export type BtnClassName = 'btnDeafault' | 'btnPrimary' | 'btnDanger' | 'operBtn'
export interface BtnList {
lable: string; // 按钮名字
callback: Function;
@@ -17,6 +17,8 @@ function getClassName(val: string): BtnClassName {
result = 'btnDanger'
} else if (val === '') {
result = 'btnDeafault'
+ } else if (val.includes('add')) {
+ result = 'operBtn'
} else {
result = 'btnPrimary'
}