2014-12-06 17:34:00 +00:00
|
|
|
export default {
|
2014-12-17 19:44:48 +00:00
|
|
|
setup() {
|
|
|
|
if (this.properties.min) {
|
|
|
|
this.minimum = Number(this.properties.min.textValue);
|
|
|
|
} else if (this.properties.exact) {
|
|
|
|
this.minimum = Number(this.properties.exact.textValue);
|
2014-12-06 17:34:00 +00:00
|
|
|
} else {
|
2014-12-17 19:44:48 +00:00
|
|
|
this.minimum = 0;
|
2014-12-06 17:34:00 +00:00
|
|
|
}
|
|
|
|
|
2014-12-17 19:44:48 +00:00
|
|
|
if (this.properties.max) {
|
|
|
|
this.maximum = Number(this.properties.max.textValue);
|
|
|
|
} else if (this.properties.exact) {
|
|
|
|
this.maximum = Number(this.properties.exact.textValue);
|
2014-12-06 17:34:00 +00:00
|
|
|
} else {
|
2014-12-17 19:44:48 +00:00
|
|
|
this.maximum = -1;
|
2014-12-06 17:34:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|