@tagplus/components 0.2.102 → 0.2.105
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 +172 -55
- package/dist/tp.common.js.map +1 -1
- package/dist/tp.css +1 -1
- package/dist/tp.umd.js +172 -55
- 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/Autosuggest/Autosuggest.vue +2 -11
- package/src/components/InputNumber/InputNumber.vue +16 -0
- package/src/components/InputNumber/index.js +3 -0
- package/src/components/Multisuggest/Multisuggest.vue +5 -2
- package/src/components/index.js +3 -1
package/package.json
CHANGED
|
@@ -302,11 +302,7 @@ export default {
|
|
|
302
302
|
} else if (this.value && typeof this.value === 'object') {
|
|
303
303
|
if (!this.value[this.valueKey]) {
|
|
304
304
|
if (process.env.DEBUG === 'true') {
|
|
305
|
-
|
|
306
|
-
'Autosuggest this.value doesn\'t have a valueKey \'' +
|
|
307
|
-
this.valueKey +
|
|
308
|
-
'\' key'
|
|
309
|
-
)
|
|
305
|
+
console.error(`Autosuggest '${this.$options.name}' option doesn't have a valueKey '${this.valueKey}' key`)
|
|
310
306
|
}
|
|
311
307
|
} else {
|
|
312
308
|
newVal = this.value[this.valueKey]
|
|
@@ -462,12 +458,7 @@ export default {
|
|
|
462
458
|
} else if (val && typeof val === 'object') {
|
|
463
459
|
// Se val for Object converte para outro tipo
|
|
464
460
|
if (!this.value[this.valueKey]) {
|
|
465
|
-
|
|
466
|
-
console.log(
|
|
467
|
-
'Autosuggest this.value doesn\'t have a valueKey \'' +
|
|
468
|
-
this.valueKey +
|
|
469
|
-
'\' key'
|
|
470
|
-
)
|
|
461
|
+
console.error(`Autosuggest '${this.$options.name}' option doesn't have a valueKey '${this.valueKey}' key`)
|
|
471
462
|
} else {
|
|
472
463
|
// Se mandou a label no objeto value
|
|
473
464
|
if (this.value[this.labelKey]) {
|
|
@@ -368,7 +368,7 @@ export default {
|
|
|
368
368
|
this.value.forEach((item) => {
|
|
369
369
|
if (!item[this.valueKey]) {
|
|
370
370
|
if (process.env.DEBUG === 'true') {
|
|
371
|
-
|
|
371
|
+
console.error(`Multisuggest '${this.$options.name}' option doesn't have a valueKey '${this.valueKey}' key`)
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
})
|
|
@@ -466,6 +466,9 @@ export default {
|
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
})
|
|
469
|
+
}else if(process.env.DEBUG === 'true'){
|
|
470
|
+
console.log(`'${this.$options.name}' recebeu valor em formato inválido.`)
|
|
471
|
+
console.log(this.value)
|
|
469
472
|
}
|
|
470
473
|
|
|
471
474
|
this.selectedLabels = this.selectedLabelsArray
|
|
@@ -527,7 +530,7 @@ export default {
|
|
|
527
530
|
else if (val && typeof val === 'object') {
|
|
528
531
|
// Se val for Object converte para outro tipo
|
|
529
532
|
if (!val[this.valueKey]) {
|
|
530
|
-
|
|
533
|
+
console.error(`Multisuggest '${this.$options.name}' option doesn't have a valueKey '${this.valueKey}' key`)
|
|
531
534
|
} else {
|
|
532
535
|
// Se mandou a label no objeto value
|
|
533
536
|
if (val[this.labelKey]) {
|
package/src/components/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import Loader from './Loader'
|
|
|
8
8
|
import Skeleton from './Skeleton'
|
|
9
9
|
import Tip from './Tip'
|
|
10
10
|
import Multisuggest from './Multisuggest'
|
|
11
|
+
import InputNumber from './InputNumber'
|
|
11
12
|
|
|
12
13
|
export {
|
|
13
14
|
Autosuggest,
|
|
@@ -19,5 +20,6 @@ export {
|
|
|
19
20
|
Loader,
|
|
20
21
|
Skeleton,
|
|
21
22
|
Tip,
|
|
22
|
-
Multisuggest
|
|
23
|
+
Multisuggest,
|
|
24
|
+
InputNumber
|
|
23
25
|
}
|