Skip to content

Commit d3a7bb5

Browse files
committed
fix: input
1 parent c71ba03 commit d3a7bb5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/components/atoms/input/input.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ import HInput from './input.vue';
9999
template: `
100100
<div>
101101
<h-input type="text" icon="fas fa-user" behavior="default" placeholder="default" />
102-
<h-input type="text" icon="fas fa-user" behavior="block" placeholder="block" />
102+
<h-input type="text" icon="fas fa-user" block placeholder="block" />
103103
<h-input type="text" icon="fas fa-user" is-disabled placeholder="is-disabled" />
104104
</div>
105105
`,

src/components/atoms/input/input.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
[`h-input--behavior-${behavior}`]: behavior != 'default',
77
[`h-input--behavior-has-error`]: _hasError,
88
[`h-input--behavior-is-disabled`]: isDisabled,
9+
[`h-input--behavior-block`]: block,
910
[`h-input--icon-left`]: iconLeft,
1011
[`h-input--icon-right`]: iconRight,
1112
[`h-input--size-${size}`]: size,
@@ -76,6 +77,10 @@ export default {
7677
'block',
7778
]),
7879
},
80+
block: {
81+
type: Boolean,
82+
default: false,
83+
},
7984
value: {
8085
type: [String, Number],
8186
default: null,

0 commit comments

Comments
 (0)