diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 59d9a3a..0000000 --- a/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# Editor configuration, see https://editorconfig.org -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -insert_final_newline = true -trim_trailing_whitespace = true - -[*.ts] -quote_type = single - -[*.md] -max_line_length = off -trim_trailing_whitespace = false diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..9f0dd71 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,8 @@ +{ + "singleQuote": true, + "trailingComma": "all", + "useTabs": true, + "tabWidth": 4, + "semi": false, + "printWidth": 120 +} \ No newline at end of file diff --git a/README.md b/README.md index a31d4b3..0ef067e 100644 --- a/README.md +++ b/README.md @@ -50,4 +50,9 @@ 2. 权限 3. 详情&编辑食谱 -> 显示类型优化 & 分析 4. 菜品分类 -5. 食材批量删除 \ No newline at end of file +5. 食材批量删除 + +# 12/09 + +1. 新增菜品报错,编辑没有问题 +2. \ No newline at end of file diff --git a/projects/admin/src/app/components/dish-form/dish-form.component.html b/projects/admin/src/app/components/dish-form/dish-form.component.html index 2bf8580..e041490 100644 --- a/projects/admin/src/app/components/dish-form/dish-form.component.html +++ b/projects/admin/src/app/components/dish-form/dish-form.component.html @@ -1,10 +1,29 @@
| - {{item.name}} - | -||
|---|---|---|
| - 营养成分表 - | -||
| - 名称 - | -- 每100克(g) - | -- 营养参考值%(NVR%) - | -
| {{ th.name }} | -{{ th.nutrition }} | -{{ th.nvr }} | -
| + {{ item.name }} + | +||
|---|---|---|
| 营养成分表 | +||
| 名称 | +每100克(g) | +营养参考值%(NVR%) | +
| {{ th.name }} | +{{ th.nutrition }} | +{{ th.nvr }} | +
|
-
+
+
-
\ No newline at end of file
+
+
|
|---|