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 = { |
export type GlobalEnum = { |
||||
category: CategoryDTO[]; |
category: CategoryDTO[] |
||||
mark: MarkDTO[]; |
mark: MarkDTO[] |
||||
nutrient: NutrientDTO[]; |
nutrient: NutrientDTO[] |
||||
venderType: CategoryDTO[]; |
venderType: CategoryDTO[] |
||||
mealType: OptionItemInterface[]; |
mealType: OptionItemInterface[] |
||||
menuStatus: OptionItemInterface[]; |
menuStatus: OptionItemInterface[] |
||||
measurementType: CategoryDTO[]; |
measurementType: CategoryDTO[] |
||||
poly: { key: string; name: string }[]; |
poly: { key: string; name: string }[] |
||||
}; |
} |
||||
|
|
||||
export type CategoryDTO = { |
export type CategoryDTO = { |
||||
key: string; |
key: string |
||||
value: string; |
value: string |
||||
}; |
} |
||||
|
|
||||
export type MarkDTO = { |
export type MarkDTO = { |
||||
key: string; |
key: string |
||||
value: string; |
value: string |
||||
}; |
} |
||||
export type NutrientDTO = { |
export type NutrientDTO = { |
||||
key: string; |
key: string |
||||
value: string; |
value: string |
||||
measurement: string; |
measurement: string |
||||
nrv: number; |
nrv: number |
||||
}; |
sort: number |
||||
|
} |
||||
|
@ -1,14 +1,18 @@ |
|||||
import { Component, Input } from "@angular/core"; |
import { Component, Input } from '@angular/core' |
||||
|
|
||||
@Component({ |
@Component({ |
||||
selector: "lib-nutrition-table", |
selector: 'lib-nutrition-table', |
||||
templateUrl: "./nutrition-table.component.html", |
templateUrl: './nutrition-table.component.html', |
||||
styleUrls: ["./nutrition-table.component.less"], |
styleUrls: ['./nutrition-table.component.less'], |
||||
}) |
}) |
||||
export class NutritionTableComponent { |
export class NutritionTableComponent { |
||||
constructor() {} |
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 |
<iframe #iframe style="display: none"> </iframe> |
||||
style="display: none;"> |
|
||||
</iframe> |
|
||||
|
Loading…
Reference in new issue