File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Expand file tree Collapse file tree 4 files changed +12
-7
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1+ import FormInput from './form-input.svelte' ;
2+ import FormWrap from './form-wrap.svelte' ;
3+
4+ const Form = { Wrap : FormWrap , Input : FormInput } ;
5+ export default Form ;
6+ export { FormInput , FormWrap } ;
Original file line number Diff line number Diff line change 22 Copyright (c) 2023 by frostime All Rights Reserved.
33 Author : frostime
44 Date : 2023-07-01 19:23:50
5- FilePath : /src/libs/setting-panel.svelte
6- LastEditTime : 2024-06-08 18:25:34
5+ FilePath : /src/libs/components/ setting-panel.svelte
6+ LastEditTime : 2024-08-09 21:41:07
77 Description :
88-->
99<script lang =" ts" >
1010 import { createEventDispatcher } from " svelte" ;
11- import ItemWrap from " ./item-wrap.svelte" ;
12- import InputItem from " ./item-input.svelte" ;
11+ import Form from ' ./Form' ;
1312
1413 export let group: string ;
1514 export let settingItems: ISettingItem [];
3130<div class ="config__tab-container {fn__none }" data-name ={group }>
3231 <slot />
3332 {#each settingItems as item (item .key )}
34- <ItemWrap
33+ <Form . Wrap
3534 title ={item .title }
3635 description ={item .description }
3736 direction ={item ?.direction }
3837 >
39- <InputItem
38+ <Form . Input
4039 type ={item .type }
4140 key ={item .key }
4241 bind:value ={item .value }
4746 on:click ={onClick }
4847 on:changed ={onChanged }
4948 />
50- </ItemWrap >
49+ </Form . Wrap >
5150 {/each }
5251</div >
You can’t perform that action at this time.
0 commit comments