@tagplus/components 4.7.12 → 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.12",
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>
@@ -5,50 +5,50 @@
5
5
  type="flex"
6
6
  align="middle"
7
7
  :class="tptipclasses"
8
+ class="text-black"
8
9
  >
9
- <el-col
10
- :sm="24"
11
- :lg="3"
12
- >
13
- <div style="display: flex; min-width:25px; justify-content: center; margin:15px; padding: auto">
14
- <em class="far fa-lightbulb-on" />
15
- </div>
10
+ <el-col :xs="3" :sm="1" style="align-self: start;">
11
+ <em class="far fa-lightbulb-on" />
16
12
  </el-col>
17
13
 
18
- <el-col
19
- :sm="24"
20
- :lg="21"
21
- >
14
+ <el-col :xs="21" :sm="23">
22
15
  <div
23
16
  :id="`${_id}-text`"
24
- style="margin:15px; margin-left:0px"
25
17
  v-html="text"
26
18
  />
27
19
  </el-col>
28
20
  </el-row>
21
+
29
22
  <el-row
30
23
  v-else
31
24
  :id="`${_id}`"
32
25
  type="flex"
33
26
  align="middle"
34
- justify="space-between"
35
- :class="tptipclasses">
36
- <el-col
37
- :span="17"
38
- >
39
- <el-row align="middle" type="flex" style="min-width:25px; margin:15px; padding: auto">
27
+ justify="center"
28
+ :class="tptipclasses"
29
+ class="text-black"
30
+ >
31
+
32
+ <el-col :xs="3" :sm="1">
33
+ <el-row type="flex" justify="start">
40
34
  <em class="far fa-lightbulb-on" />
41
- <b class="tp-title">{{ title }}</b>
42
35
  </el-row>
43
36
  </el-col>
44
- <el-col :span="3" class="flexContent justify-content-end">
45
- <em class="fa fa-ellipsis-h tp-close-button" @click="closed = !closed" />
37
+
38
+ <el-col :xs="18" :sm="22">
39
+ <b class="tp-title">{{ title }}</b>
40
+ </el-col>
41
+
42
+ <el-col :xs="3" :sm="1">
43
+ <el-row type="flex" justify="end">
44
+ <em v-if="closed" class="fa fa-plus tp-close-button" @click="closed = !closed" />
45
+ <em v-else class="fa fa-minus tp-close-button" @click="closed = !closed" />
46
+ </el-row>
46
47
  </el-col>
47
48
 
48
- <el-col :class="'tp-text ' + (closed ? 'tp-vanish' : '' )" :span="24">
49
+ <el-col :xs="18" :sm="22" :class="'tp-text ' + (closed ? 'tp-vanish' : '' )">
49
50
  <div
50
51
  :id="`${_id}-text`"
51
- style="margin:15px; margin-left:0px"
52
52
  v-html="text"
53
53
  />
54
54
  </el-col>
@@ -171,13 +171,11 @@ export default {
171
171
  }
172
172
 
173
173
  .tp-close-button {
174
- padding: 10px;
175
174
  cursor: pointer;
176
175
  }
177
176
 
178
177
  .tp-title {
179
178
  font-size: 16px;
180
- padding-left: 16px;
181
179
  }
182
180
 
183
181
  .tp-text {