Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Jul 11, 2024
1 parent 8926912 commit ad9ba58
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 59 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

## Version History

### v3.49.0

- :rocket: Add ability to specify a search icon for TablerInput

### v3.48.0

- :rocket: Setup default stroke state
Expand Down
37 changes: 26 additions & 11 deletions components/input/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,25 @@
<TablerLabel :label='label' :description='description' :required='required'><slot/></TablerLabel>
<div class='col-12'>
<template v-if='!rows || rows <= 1'>
<input
:disabled='disabled'
v-model='current'
@keyup.enter='$emit("submit")'
:type='computed_type'
:class='{
"is-invalid": errorstr
}'
class="form-control"
:placeholder='placeholder||label||""'
/>
<div class='input-icon'>
<span v-if='icon' class="input-icon-addon">
<IconSearch v-if='icon === "search"' :size='20' :stroke='1'/>
</span>
<input
:disabled='disabled'
v-model='current'
@keyup.enter='$emit("submit")'
:type='computed_type'
:class='{
"is-invalid": errorstr
}'
class="form-control"
:placeholder='placeholder||label||""'
/>
<span v-if='$slots.posticon' class="input-icon-addon">
<slot name='prepost'/>
</span>
</div>
</template>
<template v-else>
<textarea
Expand All @@ -37,6 +45,9 @@

<script>
import TablerLabel from '../internal/Label.vue';
import {
IconSearch
} from '@tabler/icons-vue';
export default {
name: 'TablerInput',
Expand All @@ -46,6 +57,9 @@ export default {
type: [String, Number],
required: true
},
icon: {
type: String,
},
required: {
type: Boolean,
default: false,
Expand Down Expand Up @@ -130,6 +144,7 @@ export default {
}
},
components: {
IconSearch,
TablerLabel
}
}
Expand Down
96 changes: 48 additions & 48 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ad9ba58

Please sign in to comment.