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

feat:完成库存标红提示

parent e035aa9c
...@@ -148,7 +148,12 @@ export function column() { ...@@ -148,7 +148,12 @@ export function column() {
render: (_, row) => { render: (_, row) => {
// const stockView = row.productStock; // const stockView = row.productStock;
const stockView = ( 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} {row.productStock}
</Button> </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