first commit
This commit is contained in:
@@ -1 +1,4 @@
|
|||||||
<p>stock works!</p>
|
<nz-table #basicTable [nzData]="listOfData">
|
||||||
|
<thead>
|
||||||
|
|
||||||
|
</thead>
|
||||||
@@ -1,11 +1,51 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
import {NzTableComponent} from "ng-zorro-antd/table";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-stock',
|
selector: 'app-stock',
|
||||||
imports: [],
|
imports: [
|
||||||
|
NzTableComponent
|
||||||
|
],
|
||||||
templateUrl: './stock.html',
|
templateUrl: './stock.html',
|
||||||
styleUrl: './stock.css',
|
styleUrl: './stock.css',
|
||||||
})
|
})
|
||||||
export class Stock {
|
|
||||||
|
|
||||||
|
class StockInfo {
|
||||||
|
id: number;
|
||||||
|
name: string;
|
||||||
|
Duration: string;
|
||||||
|
Caliber: string;
|
||||||
|
Quantity: number;
|
||||||
|
Weight: number;
|
||||||
|
Nec: string;
|
||||||
|
MinimalQuantity: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export class Stock {
|
||||||
|
listOfData: StockInfo[] = [
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
name: 'Stock 1',
|
||||||
|
Duration: '10 days',
|
||||||
|
Caliber: '100g',
|
||||||
|
Quantity: 100,
|
||||||
|
Weight: 1000,
|
||||||
|
Nec: '5kg',
|
||||||
|
MinimalQuantity: 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
name: 'Stock 2',
|
||||||
|
Duration: '20 days',
|
||||||
|
Caliber: '200g',
|
||||||
|
Quantity: 200,
|
||||||
|
Weight: 2000,
|
||||||
|
Nec: '10kg',
|
||||||
|
MinimalQuantity: 10
|
||||||
|
}
|
||||||
|
];
|
||||||
|
delete(){
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user