Commit fa99f46e authored by 靳野's avatar 靳野

feat:默认升序排列

parent 9cd64785
...@@ -145,6 +145,7 @@ export function column() { ...@@ -145,6 +145,7 @@ export function column() {
dataIndex: 'stock', dataIndex: 'stock',
align: 'center', align: 'center',
sorter: (a, b) => a.stock - b.stock, sorter: (a, b) => a.stock - b.stock,
defaultSortOrder: 'ascend',
render: (_, row) => { render: (_, row) => {
// const stockView = row.productStock; // const stockView = row.productStock;
const stockView = ( const stockView = (
......
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