Skip to content

Commit d526674

Browse files
committed
Release build (v1.0.0).
1 parent d0e33da commit d526674

File tree

3 files changed

+29
-59
lines changed

3 files changed

+29
-59
lines changed

dist/vue-simple-progress.js

Lines changed: 27 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ exports = module.exports = __webpack_require__(4)();
147147

148148

149149
// module
150-
exports.push([module.i, ".vue-simple-progress-bar{transition:all .3s linear}", ""]);
150+
exports.push([module.i, ".vue-simple-progress-bar{transition:all .15s linear}", ""]);
151151

152152
// exports
153153

@@ -538,18 +538,17 @@ var isNumber = function isNumber(n) {
538538
exports.default = {
539539
name: 'vue-simple-progress',
540540
props: {
541-
'size': {
542-
default: 32
541+
'pct': {
542+
default: 0
543543
},
544-
'line-size': {
545-
type: Number,
546-
default: 3
544+
'size': {
545+
default: 'tiny'
547546
},
548-
'line-bg-color': {
547+
'bg-color': {
549548
type: String,
550549
default: '#eee'
551550
},
552-
'line-fg-color': {
551+
'bar-color': {
553552
type: String,
554553
default: '#2196f3' },
555554
'text': {
@@ -569,56 +568,22 @@ exports.default = {
569568
size_px: function size_px() {
570569
switch (this.size) {
571570
case 'tiny':
572-
return 12;
573-
case 'small':
574-
return 16;
575-
case 'medium':
576-
return 32;
577-
case 'large':
578-
return 48;
579-
case 'big':
580-
return 64;
581-
case 'huge':
582-
return 96;
583-
case 'massive':
584-
return 128;
585-
}
586-
587-
return isNumber(this.size) ? this.size : 32;
588-
},
589-
line_size_px: function line_size_px() {
590-
switch (this.size) {
591-
case 'tiny':
592-
return 1;
593-
case 'small':
594571
return 2;
595-
case 'medium':
596-
return 3;
597-
case 'large':
598-
return 3;
599-
case 'big':
600-
return 4;
601-
case 'huge':
602-
return 4;
603-
case 'massive':
604-
return 5;
605-
}
606-
607-
return isNumber(this.lineSize) ? this.lineSize : 4;
608-
},
609-
text_margin_top: function text_margin_top() {
610-
switch (this.size) {
611-
case 'tiny':
612572
case 'small':
573+
return 4;
613574
case 'medium':
575+
return 8;
614576
case 'large':
577+
return 12;
615578
case 'big':
579+
return 16;
616580
case 'huge':
581+
return 32;
617582
case 'massive':
618-
return Math.min(Math.max(Math.ceil(this.size_px / 8), 3), 12);
583+
return 64;
619584
}
620585

621-
return isNumber(this.spacing) ? this.spacing : 4;
586+
return isNumber(this.size) ? this.size : 32;
622587
},
623588
text_font_size: function text_font_size() {
624589
switch (this.size) {
@@ -636,11 +601,13 @@ exports.default = {
636601
},
637602
progress_style: function progress_style() {
638603
return {
639-
'margin': '0 auto',
640-
'border-radius': '100%',
641-
'border': this.line_size_px + 'px solid ' + this.lineBgColor,
642-
'border-top': this.line_size_px + 'px solid ' + this.lineFgColor,
643-
'width': this.size_px + '%',
604+
'background': this.bgColor
605+
};
606+
},
607+
bar_style: function bar_style() {
608+
return {
609+
'background': this.barColor,
610+
'width': this.pct + '%',
644611
'height': this.size_px + 'px'
645612
};
646613
},
@@ -660,12 +627,15 @@ exports.default = {
660627

661628
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
662629
return _c('div', [_c('div', {
663-
staticClass: "vue-simple-progress-bar",
630+
staticClass: "vue-simple-progress",
664631
style: (_vm.progress_style)
665-
}), _vm._v(" "), (_vm.message.length > 0) ? _c('div', {
632+
}, [_c('div', {
633+
staticClass: "vue-simple-progress-bar",
634+
style: (_vm.bar_style)
635+
}), _vm._v(" "), (_vm.text.length > 0) ? _c('div', {
666636
staticClass: "vue-simple-progress-text",
667637
style: (_vm.text_style)
668-
}, [_vm._v(_vm._s(_vm.message))]) : _vm._e()])
638+
}, [_vm._v(_vm._s(_vm.text))]) : _vm._e()])])
669639
},staticRenderFns: []}
670640

671641
/***/ })

dist/vue-simple-progress.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/examples.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)