@tak-ps/vue-tabler 3.62.1 → 3.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/components/input/Input.vue +12 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<template v-if='!rows || rows <= 1'>
|
|
13
13
|
<div class='input-icon'>
|
|
14
14
|
<span
|
|
15
|
-
v-if='icon'
|
|
15
|
+
v-if='icon || $slots.icon'
|
|
16
16
|
class='input-icon-addon'
|
|
17
17
|
>
|
|
18
18
|
<IconSearch
|
|
@@ -21,15 +21,19 @@
|
|
|
21
21
|
:stroke='1'
|
|
22
22
|
/>
|
|
23
23
|
<IconLock
|
|
24
|
-
v-if='icon === "lock"'
|
|
24
|
+
v-else-if='icon === "lock"'
|
|
25
25
|
:size='20'
|
|
26
26
|
:stroke='1'
|
|
27
27
|
/>
|
|
28
28
|
<IconUser
|
|
29
|
-
v-if='icon === "user"'
|
|
29
|
+
v-else-if='icon === "user"'
|
|
30
30
|
:size='20'
|
|
31
31
|
:stroke='1'
|
|
32
32
|
/>
|
|
33
|
+
<slot
|
|
34
|
+
v-else-if='$slots.icon'
|
|
35
|
+
name='icon'
|
|
36
|
+
/>
|
|
33
37
|
</span>
|
|
34
38
|
<input
|
|
35
39
|
ref='text-input'
|
|
@@ -162,11 +166,6 @@ export default {
|
|
|
162
166
|
current: this.modelValue === undefined ? '' : this.modelValue
|
|
163
167
|
}
|
|
164
168
|
},
|
|
165
|
-
mounted: function() {
|
|
166
|
-
if (this.autofocus) {
|
|
167
|
-
this.$refs['text-input'].focus();
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
169
|
computed: {
|
|
171
170
|
errorstr: function() {
|
|
172
171
|
if (this.error) return this.error;
|
|
@@ -214,6 +213,11 @@ export default {
|
|
|
214
213
|
this.$emit('update:modelValue', this.current);
|
|
215
214
|
}
|
|
216
215
|
}
|
|
216
|
+
},
|
|
217
|
+
mounted: function() {
|
|
218
|
+
if (this.autofocus) {
|
|
219
|
+
this.$refs['text-input'].focus();
|
|
220
|
+
}
|
|
217
221
|
}
|
|
218
222
|
}
|
|
219
223
|
</script>
|