!function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=1012)}({0:function(e,t,r){"use strict";function o(e,t,r,o,n,i,a,s,u,l){var c,d="function"==typeof e?e.options:e;if(u){d.components||(d.components={});var f=Object.prototype.hasOwnProperty;for(var p in u)f.call(u,p)&&!f.call(d.components,p)&&(d.components[p]=u[p])}if(l&&("function"==typeof l.beforeCreate&&(l.beforeCreate=[l.beforeCreate]),(l.beforeCreate||(l.beforeCreate=[])).unshift((function(){this[l.__module]=this})),(d.mixins||(d.mixins=[])).push(l)),t&&(d.render=t,d.staticRenderFns=r,d._compiled=!0),o&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=c):n&&(c=s?function(){n.call(this,this.$root.$options.shadowRoot)}:n),c)if(d.functional){d._injectStyles=c;var g=d.render;d.render=function(e,t){return c.call(t),g(e,t)}}else{var _=d.beforeCreate;d.beforeCreate=_?[].concat(_,c):[c]}return{exports:e,options:d}}r.d(t,"a",(function(){return o}))},1:function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},10:function(e,t,r){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(r(11).default,Vue.prototype.__$appStyle__)},1012:function(e,t,r){"use strict";r.r(t);r(10),r(12);var o=r(331);o.default.mpType="page",o.default.route="pages/componentsB/progress/progress",o.default.el="#root",new Vue(o.default)},1013:function(e,t,r){"use strict";r.r(t);var o=r(787),n=r(469);for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i);var a=r(0);var s=Object(a.a)(n.default,o.b,o.c,!1,null,"79f12130","a414246c",!1,o.a,void 0);(function(e){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(r(893).default,this.options.style):Object.assign(this.options.style,r(893).default)}).call(s),t.default=s.exports},1014:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={props:{activeColor:{type:String,default:uni.$u.props.lineProgress.activeColor},inactiveColor:{type:String,default:uni.$u.props.lineProgress.color},percentage:{type:[String,Number],default:uni.$u.props.lineProgress.inactiveColor},showText:{type:Boolean,default:uni.$u.props.lineProgress.showText},height:{type:[String,Number],default:uni.$u.props.lineProgress.height}}};t.default=o},11:function(e,t,r){"use strict";r.r(t);var o=r(2),n=r.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return o[e]}))}(i);t.default=n.a},12:function(e,t){if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){var r=uni.requireGlobal();ArrayBuffer=r.ArrayBuffer,Int8Array=r.Int8Array,Uint8Array=r.Uint8Array,Uint8ClampedArray=r.Uint8ClampedArray,Int16Array=r.Int16Array,Uint16Array=r.Uint16Array,Int32Array=r.Int32Array,Uint32Array=r.Uint32Array,Float32Array=r.Float32Array,Float64Array=r.Float64Array,BigInt64Array=r.BigInt64Array,BigUint64Array=r.BigUint64Array}},2:function(e,t){e.exports={"u-line-1":{lines:1,textOverflow:"ellipsis",overflow:"hidden",flex:1},"u-line-2":{lines:2,textOverflow:"ellipsis",overflow:"hidden",flex:1},"u-line-3":{lines:3,textOverflow:"ellipsis",overflow:"hidden",flex:1},"u-line-4":{lines:4,textOverflow:"ellipsis",overflow:"hidden",flex:1},"u-line-5":{lines:5,textOverflow:"ellipsis",overflow:"hidden",flex:1},"u-border":{borderWidth:"0.5",borderColor:"#dadbde",borderStyle:"solid"},"u-border-top":{borderTopWidth:"0.5",borderColor:"#dadbde",borderTopStyle:"solid"},"u-border-left":{borderLeftWidth:"0.5",borderColor:"#dadbde",borderLeftStyle:"solid"},"u-border-right":{borderRightWidth:"0.5",borderColor:"#dadbde",borderRightStyle:"solid"},"u-border-bottom":{borderBottomWidth:"0.5",borderColor:"#dadbde",borderBottomStyle:"solid"},"u-border-top-bottom":{borderTopWidth:"0.5",borderBottomWidth:"0.5",borderColor:"#dadbde",borderTopStyle:"solid",borderBottomStyle:"solid"},"u-reset-button":{paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0},"u-hover-class":{opacity:.7},"u-primary-light":{color:"#ecf5ff"},"u-warning-light":{color:"#fdf6ec"},"u-success-light":{color:"#f5fff0"},"u-error-light":{color:"#fef0f0"},"u-info-light":{color:"#f4f4f5"},"u-primary-light-bg":{backgroundColor:"#ecf5ff"},"u-warning-light-bg":{backgroundColor:"#fdf6ec"},"u-success-light-bg":{backgroundColor:"#f5fff0"},"u-error-light-bg":{backgroundColor:"#fef0f0"},"u-info-light-bg":{backgroundColor:"#f4f4f5"},"u-primary-dark":{color:"#398ade"},"u-warning-dark":{color:"#f1a532"},"u-success-dark":{color:"#53c21d"},"u-error-dark":{color:"#e45656"},"u-info-dark":{color:"#767a82"},"u-primary-dark-bg":{backgroundColor:"#398ade"},"u-warning-dark-bg":{backgroundColor:"#f1a532"},"u-success-dark-bg":{backgroundColor:"#53c21d"},"u-error-dark-bg":{backgroundColor:"#e45656"},"u-info-dark-bg":{backgroundColor:"#767a82"},"u-primary-disabled":{color:"#9acafc"},"u-warning-disabled":{color:"#f9d39b"},"u-success-disabled":{color:"#a9e08f"},"u-error-disabled":{color:"#f7b2b2"},"u-info-disabled":{color:"#c4c6c9"},"u-primary":{color:"#3c9cff"},"u-warning":{color:"#f9ae3d"},"u-success":{color:"#5ac725"},"u-error":{color:"#f56c6c"},"u-info":{color:"#909399"},"u-primary-bg":{backgroundColor:"#3c9cff"},"u-warning-bg":{backgroundColor:"#f9ae3d"},"u-success-bg":{backgroundColor:"#5ac725"},"u-error-bg":{backgroundColor:"#f56c6c"},"u-info-bg":{backgroundColor:"#909399"},"u-main-color":{color:"#303133"},"u-content-color":{color:"#606266"},"u-tips-color":{color:"#909193"},"u-light-color":{color:"#c0c4cc"},"u-block":{paddingTop:"14",paddingRight:"14",paddingBottom:"14",paddingLeft:"14"},"u-block__section":{marginBottom:"10"},"u-block__title":{marginTop:"10",fontSize:"15",color:"#606266",marginBottom:"10"},"u-cell-icon":{width:"36rpx",height:"36rpx",marginRight:"8rpx"},"u-page":{paddingTop:"15",paddingRight:"15",paddingBottom:"40",paddingLeft:"15"},"u-demo-block":{flex:1,marginBottom:"23"},"u-demo-block__content":{flexDirection:"column"},"u-demo-block__title":{fontSize:"14",color:"#8f9ca2",marginBottom:"8",flexDirection:"row"},"@VERSION":2}},331:function(e,t,r){"use strict";var o=r(734),n=r(472),i=r(0);var a=Object(i.a)(n.default,o.b,o.c,!1,null,null,"09826fbb",!1,o.a,void 0);(function(e){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(r(894).default,this.options.style):Object.assign(this.options.style,r(894).default)}).call(a),t.default=a.exports},35:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return weex.requireModule(e)}},469:function(e,t,r){"use strict";r.r(t);var o=r(470),n=r.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return o[e]}))}(i);t.default=n.a},470:function(e,t,r){"use strict";(function(e){var o=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(1014)),i=e("dom"),a={name:"u-line-progress",mixins:[uni.$u.mpMixin,uni.$u.mixin,n.default],data:function(){return{lineWidth:0}},watch:{percentage:function(e){this.resizeProgressWidth()}},computed:{progressStyle:function(){var e={};return e.width=this.lineWidth,e.backgroundColor=this.activeColor,e.height=uni.$u.addUnit(this.height),e},innserPercentage:function(){return uni.$u.range(0,100,this.percentage)}},mounted:function(){this.init()},methods:{init:function(){var e=this;uni.$u.sleep(20).then((function(){e.resizeProgressWidth()}))},getProgressWidth:function(){var e=this;return new Promise((function(t){i.getComponentRect(e.$refs["u-line-progress__background"],(function(e){t(e.size)}))}))},resizeProgressWidth:function(){var e=this;this.getProgressWidth().then((function(t){var r=t.width;e.lineWidth=r*e.innserPercentage/100+"px"}))}}};t.default=a}).call(this,r(35).default)},471:function(e,t){e.exports={"u-line-progress":{alignItems:"stretch",position:"relative",flexDirection:"row",flex:1,overflow:"hidden",borderRadius:"100"},"u-line-progress__background":{backgroundColor:"#ececec",borderRadius:"100",flex:1},"u-line-progress__line":{position:"absolute",top:0,left:0,bottom:0,alignItems:"center",flexDirection:"row",color:"#ffffff",borderRadius:"100",transitionProperty:"width",transitionDuration:500,transitionTimingFunction:"ease",transitionDelay:0,justifyContent:"flex-end"},"u-line-progress__text":{fontSize:"10",alignItems:"center",textAlign:"right",color:"#FFFFFF",marginRight:"5",transform:"scale(0.9)"},"@VERSION":2}},472:function(e,t,r){"use strict";var o=r(473),n=r.n(o);t.default=n.a},473:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={data:function(){return{androidNvue:!1,percentage1:30,percentage2:40,percentage3:50,percentage4:60,percentage5:70,percentage6:50}},onLoad:function(){var e=this;this.androidNvue="android"===uni.$u.os(),uni.$u.sleep(2500).then((function(){e.percentage1=120}))},methods:{computedWidth:function(e){this.percentage6="plus"===e?uni.$u.range(0,100,this.percentage6+10):uni.$u.range(0,100,this.percentage6-10)}}};t.default=o},474:function(e,t){e.exports={"u-percentage-slot":{paddingTop:"1",paddingRight:"5",paddingBottom:"1",paddingLeft:"5",backgroundColor:"#f9ae3d",color:"#ffffff",borderRadius:"100",fontSize:"10",marginRight:"-5"},"u-demo-block__content":{flexDirection:"column",flexWrap:"nowrap",alignItems:"stretch"},"button-group":{flexDirection:"row",justifyContent:"center"},"button-group__circle":{width:"50",height:"50",backgroundColor:"#dbfbdb",borderRadius:"100",justifyContent:"center",alignItems:"center",marginTop:"30",marginRight:"30",marginBottom:"30",marginLeft:"30"},"button-group__circle__text":{color:"#19be6b",fontSize:"13"},"@VERSION":2}},734:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return o}));var o={uLineProgress:r(1013).default},n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[r("view",{staticClass:["u-page"]},[r("view",{staticClass:["u-demo-block"]},[r("u-text",{staticClass:["u-demo-block__title"],appendAsTree:!0,attrs:{append:"tree"}},[e._v("\u57fa\u7840\u529f\u80fd")]),r("view",{staticClass:["u-demo-block__content"]},[r("u-line-progress",{attrs:{percentage:e.percentage1}})],1)]),r("view",{staticClass:["u-demo-block"]},[r("u-text",{staticClass:["u-demo-block__title"],appendAsTree:!0,attrs:{append:"tree"}},[e._v("\u4e0d\u663e\u793a\u767e\u5206\u6bd4")]),r("view",{staticClass:["u-demo-block__content"]},[r("u-line-progress",{attrs:{showText:!1,percentage:e.percentage2}})],1)]),r("view",{staticClass:["u-demo-block"]},[r("u-text",{staticClass:["u-demo-block__title"],appendAsTree:!0,attrs:{append:"tree"}},[e._v("\u81ea\u5b9a\u4e49\u9ad8\u5ea6")]),r("view",{staticClass:["u-demo-block__content"]},[r("u-line-progress",{attrs:{height:"8",showText:!1,percentage:e.percentage3}})],1)]),r("view",{staticClass:["u-demo-block"]},[r("u-text",{staticClass:["u-demo-block__title"],appendAsTree:!0,attrs:{append:"tree"}},[e._v("\u81ea\u5b9a\u4e49\u989c\u8272")]),r("view",{staticClass:["u-demo-block__content"]},[r("u-line-progress",{attrs:{height:"8",showText:!1,percentage:e.percentage4,activeColor:"#3c9cff",inactiveColor:"#f3f4f6"}})],1)]),e.androidNvue?e._e():r("view",{staticClass:["u-demo-block"]},[r("u-text",{staticClass:["u-demo-block__title"],appendAsTree:!0,attrs:{append:"tree"}},[e._v("\u81ea\u5b9a\u4e49\u6837\u5f0f(\u4e0d\u652f\u6301\u5b89\u5353\u73af\u5883\u7684nvue)")]),r("view",{staticClass:["u-demo-block__content"]},[r("u-line-progress",{attrs:{height:"8",showText:!1,percentage:e.percentage5,activeColor:"#3c9cff",inactiveColor:"#f3f4f6"}},[r("u-text",{staticClass:["u-percentage-slot"],appendAsTree:!0,attrs:{append:"tree"}},[e._v(e._s(e.percentage4)+"%")])])],1)]),r("view",{staticClass:["u-demo-block"]},[r("u-text",{staticClass:["u-demo-block__title"],appendAsTree:!0,attrs:{append:"tree"}},[e._v("\u624b\u52a8\u52a0\u51cf")]),r("view",{staticClass:["u-demo-block__content"]},[r("u-line-progress",{attrs:{height:"8",showText:!1,percentage:e.percentage6,activeColor:"#3c9cff",inactiveColor:"#f3f4f6"}}),r("view",{staticClass:["button-group"]},[r("view",{staticClass:["button-group__circle"],attrs:{hoverClass:"u-hover-class"},on:{click:function(t){e.computedWidth("minus")}}},[r("u-text",{staticClass:["button-group__circle__text"],appendAsTree:!0,attrs:{append:"tree"}},[e._v("\u51cf\u5c11")])]),r("view",{staticClass:["button-group__circle"],attrs:{hoverClass:"u-hover-class"},on:{click:function(t){e.computedWidth("plus")}}},[r("u-text",{staticClass:["button-group__circle__text"],appendAsTree:!0,attrs:{append:"tree"}},[e._v("\u589e\u52a0")])])])],1)])])])},i=[]},787:function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){}));var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("view",{staticClass:["u-line-progress"],style:[e.$u.addStyle(e.customStyle)]},[r("view",{ref:"u-line-progress__background",staticClass:["u-line-progress__background"],style:[{backgroundColor:e.inactiveColor,height:e.$u.addUnit(e.height)}]}),r("view",{staticClass:["u-line-progress__line"],style:[e.progressStyle]},[e._t("default",[e.showText&&e.percentage>=10?r("u-text",{staticClass:["u-line-progress__text"],appendAsTree:!0,attrs:{append:"tree"}},[e._v(e._s(e.innserPercentage+"%"))]):e._e()])],2)])},n=[]},893:function(e,t,r){"use strict";r.r(t);var o=r(471),n=r.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return o[e]}))}(i);t.default=n.a},894:function(e,t,r){"use strict";r.r(t);var o=r(474),n=r.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return o[e]}))}(i);t.default=n.a}});