Skip to content

Commit

Permalink
fix(docs): add input
Browse files Browse the repository at this point in the history
  • Loading branch information
koory1st committed Nov 17, 2023
1 parent ea26f31 commit 00f2038
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs/src/routes/component/input/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script>
import Example from '$lib/example.svelte';
import { getContext } from 'svelte';
import { SvelCol, SvelInput, SvelRow } from '@svelement-ui/all';
import { SvelButton, SvelCol, SvelInput, SvelRow } from '@svelement-ui/all';
import { Calendar, Search, SvelIcon } from '@svelement-ui/icon';
let langFn = getContext('langFn');
Expand Down Expand Up @@ -208,9 +208,19 @@
<svelte:fragment slot="prepend">Http://</svelte:fragment>
</SvelInput>
</div>
<div>
<div class="mt-4">
<SvelInput bind:value={input1} placeholder="Please input">
<svelte:fragment slot="append">.com</svelte:fragment>
</SvelInput>
</div>
<div class="mt-4">
<!-- todo: add select-->
<SvelInput bind:value={input1} placeholder="Please input">
<SvelButton slot="append">
<SvelIcon>
<Search />
</SvelIcon>
</SvelButton>
</SvelInput>
</div>
</Example>

0 comments on commit 00f2038

Please sign in to comment.