Skip to content

Commit 15e31a2

Browse files
committed
feat: add custom tab label
1 parent 63f323f commit 15e31a2

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77
[dependencies]
8-
leptos = { version = "0.6.5", features = ["csr", "nightly"] }
8+
leptos = { version = "0.6.6", features = ["csr", "nightly"] }
99
leptos_devtools = { git = "https://github.com/luoxiaozero/leptos-devtools" }
1010
serde = { version = "1.0.192", features = ["derive"] }
1111
serde-wasm-bindgen = "0.6.3"
1212
wasm-bindgen = { version ="0.2.91", features = ["serde-serialize"] }
1313
js-sys = "0.3.68"
14-
leptos-use = { version = "0.10.2", features = ["serde", "serde_json"]}
14+
leptos-use = { version = "0.10.3", features = ["serde", "serde_json"]}
1515
leptos_icons = "0.3.0" # https://carlosted.github.io/icondata/
1616
serde_json = "1.0.113"
1717
wasm-bindgen-futures = "0.4.39"
1818
monaco = "0.4.0"
1919
tauri-sys = { git = "https://github.com/JonasKruckenberg/tauri-sys", features = ["all"] }
20-
thaw = { version = "0.2.0-beta", features = ["csr"] }
20+
thaw = { version = "0.2.1", features = ["csr"] }
2121
common = { path = "common" }
2222
futures = "0.3.30"
2323
async-stream = "0.3.5"

src-tauri/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ edition = "2021"
1010
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1111

1212
[build-dependencies]
13-
tauri-build = { version = "1.5", features = [] }
13+
tauri-build = { version = "1.5.1", features = [] }
1414

1515
[dependencies]
1616
common = { path = "../common" }
17-
tauri = { version = "1.5.2", features = [ "shell-open", "fs-all"] }
17+
tauri = { version = "1.6.0", features = [ "shell-open", "fs-all"] }
1818
serde = { version = "1.0.193", features = ["derive"] }
1919
serde_json = "1.0.108"
20-
tokio = "1.34.0"
20+
tokio = "1.36.0"
2121
tokio-postgres = "0.7.10"
2222
chrono = "0.4.31"
2323
sled = "0.34.7"
24-
tauri-plugin-context-menu = "0.7.0"
24+
tauri-plugin-context-menu = "0.7.1"
2525

2626

2727

src/app.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use leptos::*;
2-
use thaw::{Button, Tab, Tabs};
2+
use thaw::{Button, Tab, TabLabel, Tabs};
33

44
use crate::{
55
enums::QueryTableLayout,
@@ -40,6 +40,12 @@ pub fn App() -> impl IntoView {
4040
children=move |index| {
4141
view! {
4242
<Tab key=index.to_string()>
43+
<TabLabel class="p-0" slot>
44+
<div class="flex flex-row items-center justify-between w-20">
45+
<div>{(index + 1).to_string()}</div>
46+
<button class="rounded-md text-xs">X</button>
47+
</div>
48+
</TabLabel>
4349
<QueryEditor/>
4450
<QueryTable/>
4551
</Tab>

0 commit comments

Comments
 (0)