Commit 9cd64785 authored by 靳野's avatar 靳野

feat:完成库存标红提示

parent e035aa9c
......@@ -148,7 +148,12 @@ export function column() {
render: (_, row) => {
// const stockView = row.productStock;
const stockView = (
<Button type="link" onClick={() => this.onShowStockModal(row)} style={{ padding: 0 }}>
<Button
type="link"
danger={row.productStock <= 10}
onClick={() => this.onShowStockModal(row)}
style={{ padding: 0 }}
>
{row.productStock}
</Button>
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment