25 changed files with 15385 additions and 255 deletions
File diff suppressed because it is too large
@ -1,28 +1,29 @@ |
|||
import { OptionItemInterface } from "@cdk/types"; |
|||
import { OptionItemInterface } from '@cdk/types' |
|||
|
|||
export type GlobalEnum = { |
|||
category: CategoryDTO[]; |
|||
mark: MarkDTO[]; |
|||
nutrient: NutrientDTO[]; |
|||
venderType: CategoryDTO[]; |
|||
mealType: OptionItemInterface[]; |
|||
menuStatus: OptionItemInterface[]; |
|||
measurementType: CategoryDTO[]; |
|||
poly: { key: string; name: string }[]; |
|||
}; |
|||
category: CategoryDTO[] |
|||
mark: MarkDTO[] |
|||
nutrient: NutrientDTO[] |
|||
venderType: CategoryDTO[] |
|||
mealType: OptionItemInterface[] |
|||
menuStatus: OptionItemInterface[] |
|||
measurementType: CategoryDTO[] |
|||
poly: { key: string; name: string }[] |
|||
} |
|||
|
|||
export type CategoryDTO = { |
|||
key: string; |
|||
value: string; |
|||
}; |
|||
key: string |
|||
value: string |
|||
} |
|||
|
|||
export type MarkDTO = { |
|||
key: string; |
|||
value: string; |
|||
}; |
|||
key: string |
|||
value: string |
|||
} |
|||
export type NutrientDTO = { |
|||
key: string; |
|||
value: string; |
|||
measurement: string; |
|||
nrv: number; |
|||
}; |
|||
key: string |
|||
value: string |
|||
measurement: string |
|||
nrv: number |
|||
sort: number |
|||
} |
|||
|
@ -1,14 +1,18 @@ |
|||
import { Component, Input } from "@angular/core"; |
|||
import { Component, Input } from '@angular/core' |
|||
|
|||
@Component({ |
|||
selector: "lib-nutrition-table", |
|||
templateUrl: "./nutrition-table.component.html", |
|||
styleUrls: ["./nutrition-table.component.less"], |
|||
selector: 'lib-nutrition-table', |
|||
templateUrl: './nutrition-table.component.html', |
|||
styleUrls: ['./nutrition-table.component.less'], |
|||
}) |
|||
export class NutritionTableComponent { |
|||
constructor() {} |
|||
|
|||
@Input() nutritions: any[] = []; |
|||
@Input() nutritions: any[] = [] |
|||
|
|||
@Input() dark = false; |
|||
@Input() dark = false |
|||
|
|||
ngOnInit() { |
|||
console.log('this.nutritions', this.nutritions) |
|||
} |
|||
} |
|||
|
@ -1,3 +1 @@ |
|||
<iframe #iframe |
|||
style="display: none;"> |
|||
</iframe> |
|||
<iframe #iframe style="display: none"> </iframe> |
|||
|
Loading…
Reference in new issue