From e8f894c9d20929dd8468d196a740c4674e554be1 Mon Sep 17 00:00:00 2001 From: cancerai Date: Tue, 14 Apr 2026 18:43:35 +0800 Subject: [PATCH] add: add item window of base --- .../inspectionProfiles/Project_Default.xml | 21 ++++++++ PP-binding/frontend/web/index.html | 50 ++++++++++++++++++- PP-binding/frontend/web/script/index.js | 1 - PP-binding/frontend/web/style/index.css | 27 +++++++++- 4 files changed, 96 insertions(+), 3 deletions(-) create mode 100644 PP-binding/frontend/web/.idea/inspectionProfiles/Project_Default.xml diff --git a/PP-binding/frontend/web/.idea/inspectionProfiles/Project_Default.xml b/PP-binding/frontend/web/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..996a246 --- /dev/null +++ b/PP-binding/frontend/web/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,21 @@ + + + + \ No newline at end of file diff --git a/PP-binding/frontend/web/index.html b/PP-binding/frontend/web/index.html index 8af38e1..83c7490 100644 --- a/PP-binding/frontend/web/index.html +++ b/PP-binding/frontend/web/index.html @@ -31,7 +31,7 @@
-
+
{{手机号}}
{{12345678900}}
{{滴滴打车}}
@@ -81,6 +81,54 @@
添加一条数据
+ +
+ + + + + + + + + + +
\ No newline at end of file diff --git a/PP-binding/frontend/web/script/index.js b/PP-binding/frontend/web/script/index.js index be94530..768ec56 100644 --- a/PP-binding/frontend/web/script/index.js +++ b/PP-binding/frontend/web/script/index.js @@ -1,7 +1,6 @@ window.onload = () => { main() } - function main() { const tableContainer = document.getElementById("table-outer-scrollable-container") const tableItems = tableContainer.children diff --git a/PP-binding/frontend/web/style/index.css b/PP-binding/frontend/web/style/index.css index 39e540f..6153201 100644 --- a/PP-binding/frontend/web/style/index.css +++ b/PP-binding/frontend/web/style/index.css @@ -6,6 +6,7 @@ :root { --color-green: #80c671; --color-red: #d56161; + --add-item-window-title-height: 60px; } body { @@ -195,7 +196,7 @@ body { } .add-item-dialog .title-bar-container { - height: 60px; + height: var(--add-item-window-title-height); background-color: #68686869; padding-left: 10px; padding-right: 10px; @@ -222,4 +223,28 @@ body { position: absolute; left: 50%; transform: translate(-50%, 0%); + font-size: 18px; +} + +.add-item-dialog .main-container { + width: 100%; + height:calc(100% - var(--add-item-window-title-height) - 10px); + display: flex; + flex-direction: column; + align-items: center; +} +.add-item-dialog .main-container label{ + width: 50%; + display: flex; + justify-content: center; + margin-top: 20px; +} +.add-item-dialog .main-container label .label{ + text-align: end; + flex: 1; +} + +.add-item-dialog .main-container label .form{ + flex: 1; + margin-left: 10px; }