Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
AliHMIMS committed Nov 22, 2022
1 parent 5d2fd87 commit 8ba820d
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 14 deletions.
18 changes: 12 additions & 6 deletions src/components/ComboBox/ComboBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,21 @@ onClickOutside(_dropdown_trigger, () => {
<template>
<div class="dropdown">
<div ref="_dropdown_trigger" class="input-container">
<TextInput :key="refreshInputKey" :model-value="selected" class="input"
:placeholder="placeholder || 'Search items'" @update:model-value="filter" @focus="toggleMenu(true)" />
<TextInput
:key="refreshInputKey" :model-value="selected" class="input"
:placeholder="placeholder || 'Search items'" @update:model-value="filter" @focus="toggleMenu(true)"
/>
<div class="icon-container">
<i class="icon" :class="[shown ? 'i-tabler:chevron-up' : 'i-tabler:chevron-down']"
@click="toggleMenu(!shown)" />
<i
class="icon" :class="[shown ? 'i-tabler:chevron-up' : 'i-tabler:chevron-down']"
@click="toggleMenu(!shown)"
/>
</div>
</div>
<SelectMenu v-show="shown" class="items-menu" :model-value="selectedItem" :items="filteredItems"
@update:modelValue="itemSelected" />
<SelectMenu
v-show="shown" class="items-menu" :model-value="selectedItem" :items="filteredItems"
@update:modelValue="itemSelected"
/>
</div>
</template>

Expand Down
6 changes: 4 additions & 2 deletions src/components/Input/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ const onblur = () => emit('blur');
</script>

<template>
<input :value="inputValue" :type="inputType" :placeholder="placeholder" class="input" v-bind="$attrs" @input="onInput"
@focus="onfocus" @blur="onblur">
<input
:value="inputValue" :type="inputType" :placeholder="placeholder" class="input" v-bind="$attrs" @input="onInput"
@focus="onfocus" @blur="onblur"
>
</template>

<style scoped>
Expand Down
6 changes: 4 additions & 2 deletions src/components/PasswordInput/PasswordInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ const onInput = (emittedValue: string) => {
<i :class="!isPasswordHidden ? 'i-tabler-eye-off' : 'i-tabler-eye'" />
</button>

<Input ref="baseInput" :type="isPasswordHidden ? 'password' : 'text'" :placeholder="placeholder"
:model-value="inputValue" class="input" @update:model-value="onInput" />
<Input
ref="baseInput" :type="isPasswordHidden ? 'password' : 'text'" :placeholder="placeholder"
:model-value="inputValue" class="input" @update:model-value="onInput"
/>
</div>
</template>

Expand Down
6 changes: 4 additions & 2 deletions src/components/StoreSlugInput/StoreSlugInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ const onblur = () => isPopoverDiplayed.value = false;
</div>
</div>
</Transition>
<Input :model-value="inputValue" type="text" class="input" :placeholder="placeholder"
@update:model-value="onInput" @focus="onfocus" @blur="onblur" />
<Input
:model-value="inputValue" type="text" class="input" :placeholder="placeholder"
@update:model-value="onInput" @focus="onfocus" @blur="onblur"
/>
<span class="slug-suffix">{{ slugSuffix }}</span>
</div>
</div>
Expand Down
6 changes: 4 additions & 2 deletions src/components/TextInput/TextInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ const onInput = (value: string) => {
</script>

<template>
<Input :model-value="inputValue" type="text" class="input" :placeholder="placeholder" v-bind="$attrs"
@update:model-value="onInput" />
<Input
:model-value="inputValue" type="text" class="input" :placeholder="placeholder" v-bind="$attrs"
@update:model-value="onInput"
/>
</template>

0 comments on commit 8ba820d

Please sign in to comment.