Skip to content

Commit

Permalink
Merge pull request #22 from Lemonnnnnnnnnnn/master
Browse files Browse the repository at this point in the history
优化复选框绑定以提高互动性
  • Loading branch information
Lemonnnnnnnnnnn authored Mar 11, 2024
2 parents 8cdfff1 + 958e239 commit 527daf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/routes/request/components/CheckListModal.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<script lang="ts">
import Dialog, { Title, Content, Header } from '@smui/dialog';
import type { RequestString } from '@/types/public';
import { tweened } from 'svelte/motion';
import { cubicOut } from 'svelte/easing';
import Checkbox from '@smui/checkbox';
import Button from '@smui/button';
import { invoke } from '@tauri-apps/api';
Expand Down Expand Up @@ -66,7 +64,7 @@
{#each checkList as log}
<div style="display:flex; align-items:start;justify-content:space-between">
<div style="display:flex; gap:6px">
<Checkbox checked={log.checked} />
<Checkbox bind:checked={log.checked} />
<div>
<div style="font-weight:bold">{log.name}</div>
<div>{log.full_path.replaceAll('\\', '/')}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
>
{#each checkList as log}
<div style="display:flex; gap:6px; align-items:center">
<Checkbox checked={log.checked} />
<Checkbox bind:checked={log.checked} />
<span>{log.interface.title}</span>
<span>{log.interface.path}</span>
</div>
Expand Down

0 comments on commit 527daf4

Please sign in to comment.