mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-07 20:37:28 +08:00
[O] Disable on tested
This commit is contained in:
@@ -4,13 +4,15 @@
|
||||
export let placeholder: string
|
||||
export let flex: number = 60
|
||||
|
||||
export let disabled: boolean = false
|
||||
|
||||
export let validate: (value: string) => boolean = () => true
|
||||
</script>
|
||||
|
||||
<div class="field" style="flex: {flex}">
|
||||
<label for={desc}>{desc}</label>
|
||||
<input type="text" placeholder={placeholder} bind:value={value} id="{desc}" on:change
|
||||
class:error={value && !validate(value)}/>
|
||||
class:error={value && !validate(value)} {disabled}/>
|
||||
</div>
|
||||
|
||||
<style lang="sass">
|
||||
|
||||
Reference in New Issue
Block a user