@tagplus/components 4.7.13 → 4.7.14
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/dist/tp.common.js +1 -1
- package/dist/tp.common.js.map +1 -1
- package/dist/tp.css +1 -0
- package/dist/tp.umd.js +1 -1
- package/dist/tp.umd.js.map +1 -1
- package/dist/tp.umd.min.js +1 -1
- package/dist/tp.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/InputNumber/InputNumber.vue +30 -2
package/package.json
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
inputNumberSize ? 'el-input-number--' + inputNumberSize : '',
|
|
6
6
|
{ 'is-disabled': inputNumberDisabled },
|
|
7
7
|
{ 'is-without-controls': !controls },
|
|
8
|
-
{ 'is-controls-right': controlsAtRight }
|
|
8
|
+
{ 'is-controls-right': controlsAtRight },
|
|
9
|
+
{ 'prepend-fix': prepend }
|
|
9
10
|
]"
|
|
10
11
|
@dragstart.prevent
|
|
11
12
|
>
|
|
@@ -45,7 +46,14 @@
|
|
|
45
46
|
@focus="handleFocus"
|
|
46
47
|
@input="handleInput"
|
|
47
48
|
@change="handleInputChange"
|
|
48
|
-
|
|
49
|
+
>
|
|
50
|
+
<template
|
|
51
|
+
v-if="prepend"
|
|
52
|
+
slot="prepend"
|
|
53
|
+
>
|
|
54
|
+
{{ prepend }}
|
|
55
|
+
</template>
|
|
56
|
+
</el-input>
|
|
49
57
|
</div>
|
|
50
58
|
</template>
|
|
51
59
|
|
|
@@ -137,6 +145,12 @@ export default {
|
|
|
137
145
|
stringDefaultsZero: {
|
|
138
146
|
type: Boolean,
|
|
139
147
|
default: true
|
|
148
|
+
},
|
|
149
|
+
// Customizado - Prepende para o componente de input
|
|
150
|
+
// Não funcionar com o controls="true"
|
|
151
|
+
prepend: {
|
|
152
|
+
type: String,
|
|
153
|
+
default: ''
|
|
140
154
|
}
|
|
141
155
|
},
|
|
142
156
|
|
|
@@ -428,3 +442,17 @@ export default {
|
|
|
428
442
|
}
|
|
429
443
|
}
|
|
430
444
|
</script>
|
|
445
|
+
<style lang="scss" scoped>
|
|
446
|
+
.prepend-fix {
|
|
447
|
+
.el-input-group--prepend {
|
|
448
|
+
display: inline-table;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
:deep() {
|
|
452
|
+
input {
|
|
453
|
+
text-align: left;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
}
|
|
458
|
+
</style>
|