@tagplus/components 2.0.18 → 2.0.19

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": "2.0.18",
11
+ "version": "2.0.19",
12
12
  "main": "./dist/tp.common.js",
13
13
  "directories": {
14
14
  "lib": "src/lib"
@@ -676,14 +676,16 @@ export default {
676
676
  </script>
677
677
 
678
678
  <style lang="scss" scoped>
679
- ::v-deep .el-input-group__append {
680
- padding: 0px 6px 0px 0px;
681
- border: 0;
682
- width: 58px;
683
- max-width: 58px;
684
- .rightContent {
685
- width: 40px;
686
- max-width: 40px;
679
+ :deep(){
680
+ .el-input-group__append {
681
+ padding: 0px 6px 0px 0px;
682
+ border: 0;
683
+ width: 58px;
684
+ max-width: 58px;
685
+ .rightContent {
686
+ width: 40px;
687
+ max-width: 40px;
688
+ }
687
689
  }
688
690
  }
689
691
 
@@ -169,7 +169,9 @@ export default {
169
169
  this.$emit('open')
170
170
  this.$el.addEventListener('scroll', this.updatePopper)
171
171
  this.$nextTick(() => {
172
- this.$refs.dialog.scrollTop = 0
172
+ if (this.$refs?.dialog) {
173
+ this.$refs.dialog.scrollTop = 0
174
+ }
173
175
  })
174
176
 
175
177
  if (this.appendToBody) {
@@ -730,14 +730,16 @@ export default {
730
730
  </script>
731
731
 
732
732
  <style lang="scss" scoped>
733
- ::v-deep .el-input-group__append {
734
- padding: 0px 6px 0px 0px;
735
- border: 0px;
736
- width: 58px;
737
- max-width: 58px;
738
- .rightContent {
739
- width: 40px;
740
- max-width: 40px;
733
+ :deep(){
734
+ .el-input-group__append {
735
+ padding: 0px 6px 0px 0px;
736
+ border: 0px;
737
+ width: 58px;
738
+ max-width: 58px;
739
+ .rightContent {
740
+ width: 40px;
741
+ max-width: 40px;
742
+ }
741
743
  }
742
744
  }
743
745
 
@@ -143,36 +143,30 @@ export default {
143
143
  .tp-tip-error {
144
144
  background: #f56c6c1a 0% 0% no-repeat padding-box;
145
145
  border: 1px solid #ff6077;
146
- ::v-deep strong,
147
- ::v-deep b {
148
- color: #ff425f;
149
- }
150
- ::v-deep em {
151
- color: #ff425f;
146
+ :deep(){
147
+ strong, b, em {
148
+ color: #ff425f;
149
+ }
152
150
  }
153
151
  }
154
152
 
155
153
  .tp-tip-warning {
156
154
  background: #fff9ea 0% 0% no-repeat padding-box;
157
155
  border: 1px solid #ffc437;
158
- ::v-deep strong,
159
- ::v-deep b {
160
- color: #ffc437;
161
- }
162
- ::v-deep em {
163
- color: #ffc437;
156
+ :deep(){
157
+ strong, b, em {
158
+ color: #ffc437;
159
+ }
164
160
  }
165
161
  }
166
162
 
167
163
  .tp-tip-success {
168
164
  background: #f3fcfc 0% 0% no-repeat padding-box;
169
165
  border: 1px solid #08a19e;
170
- ::v-deep strong,
171
- ::v-deep b {
172
- color: #08a19e;
173
- }
174
- ::v-deep em {
175
- color: #08a19e;
166
+ :deep(){
167
+ strong, b, em {
168
+ color: #08a19e;
169
+ }
176
170
  }
177
171
  }
178
172
 
@@ -14,11 +14,6 @@ export default {
14
14
  allowEmpty: {
15
15
  type: Boolean,
16
16
  default: false
17
- },
18
-
19
- positiveOnly: {
20
- type: Boolean,
21
- default: false
22
17
  }
23
18
  },
24
19
 
@@ -31,7 +26,7 @@ export default {
31
26
  watch: {
32
27
  value: {
33
28
  immediate: true,
34
- handler (newValue) {
29
+ handler (newValue, oldValue) {
35
30
  if (newValue === '' && this.allowEmpty) { this.formattedValue = ''; return }
36
31
  this.formattedValue = formatMoney(newValue, true, this.locale)
37
32
  }
@@ -40,12 +35,6 @@ export default {
40
35
 
41
36
  methods: {
42
37
  input (evt) {
43
- const isNegative = evt.indexOf('-') >= 0
44
-
45
- if (this.positiveOnly === true && isNegative) {
46
- evt = evt.replace('-', '')
47
- }
48
-
49
38
  this.formattedValue = formatMoney(evt, true, this.locale)
50
39
  const moneyFormatado = formatMoney(evt, false, this.locale)
51
40