|
@@ -15,7 +15,7 @@ import { BtnClassName, BtnList, ButtonListKey } from './interface';
|
|
|
export function getClassName(val: string): BtnClassName {
|
|
export function getClassName(val: string): BtnClassName {
|
|
|
let result: BtnClassName = 'btnDeafault'
|
|
let result: BtnClassName = 'btnDeafault'
|
|
|
const btnDanger = ['disable', 'cancle', 'cancel', 'delete', 'logout', 'locked', 'refuse']
|
|
const btnDanger = ['disable', 'cancle', 'cancel', 'delete', 'logout', 'locked', 'refuse']
|
|
|
- const operBtn = ['add', 'modify', 'reset', 'credit', 'payment', 'confirm_withdrawal', 'complete_stocking', 'upload_logistics',
|
|
|
|
|
|
|
+ const operBtn = ['add', 'modify', 'reset', 'credit', 'payment', 'confirm_withdrawal', 'complete_stocking', 'upload_logistics', 'buy', 'listed', 'delisting',
|
|
|
'receipt', 'confirm_pickup']
|
|
'receipt', 'confirm_pickup']
|
|
|
const map = new Map<BtnClassName, string[]>([
|
|
const map = new Map<BtnClassName, string[]>([
|
|
|
['btnDanger', btnDanger],
|
|
['btnDanger', btnDanger],
|