@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/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "email": "bruno@tagplus.com.br"
9
9
  }
10
10
  ],
11
- "version": "4.7.13",
11
+ "version": "4.7.14",
12
12
  "main": "./dist/tp.common.js",
13
13
  "directories": {
14
14
  "lib": "src/lib"
@@ -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>