@veritree/ui 0.84.2 → 0.85.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/package.json
CHANGED
|
@@ -42,7 +42,7 @@ export default {
|
|
|
42
42
|
// different type of number input (e.g. 'integer', 'decimal', 'currency')
|
|
43
43
|
format: {
|
|
44
44
|
type: String,
|
|
45
|
-
default: '
|
|
45
|
+
default: 'decimal',
|
|
46
46
|
},
|
|
47
47
|
locale: {
|
|
48
48
|
type: String,
|
|
@@ -149,7 +149,7 @@ export default {
|
|
|
149
149
|
return null; // or any other appropriate value or behavior
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
if (this.format === 'currency') {
|
|
152
|
+
if (this.format === 'currency' || this.format === 'decimal') {
|
|
153
153
|
return parseFloat(number.replace(/,/g, ''));
|
|
154
154
|
}
|
|
155
155
|
|
|
@@ -55,6 +55,10 @@ export default {
|
|
|
55
55
|
type: Boolean,
|
|
56
56
|
default: false,
|
|
57
57
|
},
|
|
58
|
+
stopPropagation: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: false,
|
|
61
|
+
},
|
|
58
62
|
},
|
|
59
63
|
|
|
60
64
|
data() {
|
|
@@ -160,6 +164,9 @@ export default {
|
|
|
160
164
|
},
|
|
161
165
|
|
|
162
166
|
onClick(e) {
|
|
167
|
+
if (this.stopPropagation) {
|
|
168
|
+
e.stopPropagation();
|
|
169
|
+
}
|
|
163
170
|
this.init(e);
|
|
164
171
|
this.$emit('click');
|
|
165
172
|
},
|