!function(t){var e={};function o(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=t,o.c=e,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/",o(o.s=1074)}({0:function(t,e,o){"use strict";function r(t,e,o,r,n,i,u,s,a,c){var l,d="function"==typeof t?t.options:t;if(a){d.components||(d.components={});var f=Object.prototype.hasOwnProperty;for(var b in a)f.call(a,b)&&!f.call(d.components,b)&&(d.components[b]=a[b])}if(c&&("function"==typeof c.beforeCreate&&(c.beforeCreate=[c.beforeCreate]),(c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(d.mixins||(d.mixins=[])).push(c)),e&&(d.render=e,d.staticRenderFns=o,d._compiled=!0),r&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),u?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},d._ssrRegister=l):n&&(l=s?function(){n.call(this,this.$root.$options.shadowRoot)}:n),l)if(d.functional){d._injectStyles=l;var p=d.render;d.render=function(t,e){return l.call(e),p(t,e)}}else{var _=d.beforeCreate;d.beforeCreate=_?[].concat(_,l):[l]}return{exports:t,options:d}}o.d(e,"a",(function(){return r}))},1:function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},10:function(t,e,o){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(o(11).default,Vue.prototype.__$appStyle__)},1074:function(t,e,o){"use strict";o.r(e);o(10),o(12);var r=o(351);r.default.mpType="page",r.default.route="pages/componentsC/subsection/subsection",r.default.el="#root",new Vue(r.default)},1075:function(t,e,o){"use strict";o.r(e);var r=o(802),n=o(586);for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);var u=o(0);var s=Object(u.a)(n.default,r.b,r.c,!1,null,"4e6a7f72","df3b14f4",!1,r.a,void 0);(function(t){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(o(932).default,this.options.style):Object.assign(this.options.style,o(932).default)}).call(s),e.default=s.exports},1076:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={props:{list:{type:Array,default:uni.$u.props.subsection.list},current:{type:[String,Number],default:uni.$u.props.subsection.current},activeColor:{type:String,default:uni.$u.props.subsection.activeColor},inactiveColor:{type:String,default:uni.$u.props.subsection.inactiveColor},mode:{type:String,default:uni.$u.props.subsection.mode},fontSize:{type:[String,Number],default:uni.$u.props.subsection.fontSize},bold:{type:Boolean,default:uni.$u.props.subsection.bold},bgColor:{type:String,default:uni.$u.props.subsection.bgColor},keyName:{type:String,default:uni.$u.props.subsection.keyName}}};e.default=r},11:function(t,e,o){"use strict";o.r(e);var r=o(2),n=o.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(i);e.default=n.a},12:function(t,e){if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(o){return e.resolve(t()).then((function(){return o}))}),(function(o){return e.resolve(t()).then((function(){throw o}))}))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){var o=uni.requireGlobal();ArrayBuffer=o.ArrayBuffer,Int8Array=o.Int8Array,Uint8Array=o.Uint8Array,Uint8ClampedArray=o.Uint8ClampedArray,Int16Array=o.Int16Array,Uint16Array=o.Uint16Array,Int32Array=o.Int32Array,Uint32Array=o.Uint32Array,Float32Array=o.Float32Array,Float64Array=o.Float64Array,BigInt64Array=o.BigInt64Array,BigUint64Array=o.BigUint64Array}},2:function(t,e){t.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}},35:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return weex.requireModule(t)}},351:function(t,e,o){"use strict";var r=o(754),n=o(589),i=o(0);var u=Object(i.a)(n.default,r.b,r.c,!1,null,null,"6f9622da",!1,r.a,void 0);(function(t){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(o(933).default,this.options.style):Object.assign(this.options.style,o(933).default)}).call(u),e.default=u.exports},586:function(t,e,o){"use strict";o.r(e);var r=o(587),n=o.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(i);e.default=n.a},587:function(t,e,o){"use strict";(function(t){var r=o(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(o(9)),i=r(o(1076)),u=t("dom"),s=t("animation"),a={name:"u-subsection",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{itemRect:{width:0,height:0}}},watch:{list:function(t,e){this.init()},current:{immediate:!0,handler:function(t){var e,o,r=this,n=null===(e=this.$refs)||void 0===e||null===(o=e["u-subsection__bar"])||void 0===o?void 0:o.ref;uni.$u.sleep(n?0:100).then((function(){s.transition(r.$refs["u-subsection__bar"].ref,{styles:{transform:"translateX(".concat(t*r.itemRect.width,"px)"),transformOrigin:"center center"},duration:300})}))}}},computed:{wrapperStyle:function(){var t={};return"button"===this.mode&&(t.backgroundColor=this.bgColor),t},barStyle:function(){var t={};return t.width="".concat(this.itemRect.width,"px"),t.height="".concat(this.itemRect.height,"px"),"subsection"===this.mode&&(t.backgroundColor=this.activeColor),t},itemStyle:function(t){var e=this;return function(t){var o={};return"subsection"===e.mode&&(o.borderColor=e.activeColor,o.borderWidth="1px",o.borderStyle="solid"),o}},textStyle:function(t){var e=this;return function(t){var o={};return o.fontWeight=e.bold&&e.current===t?"bold":"normal",o.fontSize=uni.$u.addUnit(e.fontSize),"subsection"===e.mode?o.color=e.current===t?"#fff":e.inactiveColor:o.color=e.current===t?e.activeColor:e.inactiveColor,o}}},mounted:function(){this.init()},methods:{init:function(){var t=this;uni.$u.sleep().then((function(){return t.getRect()}))},getText:function(t){return"object"===(0,n.default)(t)?t[this.keyName]:t},getRect:function(){var t=this,e=this.$refs["u-subsection__item--0"][0];e&&u.getComponentRect(e,(function(e){t.itemRect=e.size}))},clickHandler:function(t){this.$emit("change",t)}}};e.default=a}).call(this,o(35).default)},588:function(t,e){t.exports={"u-subsection":{flexDirection:"row",position:"relative",overflow:"hidden"},"u-subsection--button":{height:"32",backgroundColor:"#eeeeef",paddingTop:"3",paddingRight:"3",paddingBottom:"3",paddingLeft:"3",borderRadius:"3",alignItems:"stretch"},"u-subsection--button__bar":{backgroundColor:"#ffffff",borderRadius:"3"},"u-subsection--subsection":{height:"30"},"u-subsection__bar":{position:"absolute"},"u-subsection__bar--first":{borderTopLeftRadius:"3",borderBottomLeftRadius:"3",borderTopRightRadius:"0",borderBottomRightRadius:"0"},"u-subsection__bar--center":{borderTopLeftRadius:"0",borderBottomLeftRadius:"0",borderTopRightRadius:"0",borderBottomRightRadius:"0"},"u-subsection__bar--last":{borderTopLeftRadius:"0",borderBottomLeftRadius:"0",borderTopRightRadius:"3",borderBottomRightRadius:"3"},"u-subsection__item":{flexDirection:"row",flex:1,justifyContent:"center",alignItems:"center",position:"relative"},"u-subsection__item--no-border-right":{borderRightWidth:0},"u-subsection__item--first":{borderTopLeftRadius:"3",borderBottomLeftRadius:"3"},"u-subsection__item--last":{borderTopRightRadius:"3",borderBottomRightRadius:"3"},"u-subsection__item__text":{fontSize:"12",lineHeight:"12",flexDirection:"row",alignItems:"center",transitionProperty:"color",transitionDuration:300},"@VERSION":2}},589:function(t,e,o){"use strict";var r=o(590),n=o.n(r);e.default=n.a},590:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={data:function(){return{current1:0,current2:0,current3:0,current4:1,list:["\u672a\u4ed8\u6b3e","\u5f85\u8bc4\u4ef7","\u5df2\u4ed8\u6b3e"],current:1}},methods:{change1:function(t){this.current1=t},change2:function(t){this.current2=t},change3:function(t){this.current3=t},change4:function(t){this.current4=t}}}},591:function(t,e){t.exports={album:{flexDirection:"row",alignItems:"flex-start"},album__avatar:{backgroundColor:"#f3f4f6",paddingTop:"5",paddingRight:"5",paddingBottom:"5",paddingLeft:"5",borderRadius:"3"},album__content:{marginLeft:"10",flex:1},"@VERSION":2}},754:function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){return r}));var r={uSubsection:o(1075).default},n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[o("view",{staticClass:["u-page"]},[o("view",{staticClass:["u-demo-block"]},[o("u-text",{staticClass:["u-demo-block__title"],appendAsTree:!0,attrs:{append:"tree"}},[t._v("\u57fa\u7840\u4f7f\u7528")]),o("view",{staticClass:["u-demo-block__content"]},[o("u-subsection",{attrs:{list:t.list,mode:"subsection",current:t.current1},on:{change:t.change1}})],1)]),o("view",{staticClass:["u-demo-block"]},[o("u-text",{staticClass:["u-demo-block__title"],appendAsTree:!0,attrs:{append:"tree"}},[t._v("\u6309\u94ae\u6a21\u5f0f")]),o("view",{staticClass:["u-demo-block__content"]},[o("u-subsection",{attrs:{list:t.list,mode:"button",current:t.current2},on:{change:t.change2}})],1)]),o("view",{staticClass:["u-demo-block"]},[o("u-text",{staticClass:["u-demo-block__title"],appendAsTree:!0,attrs:{append:"tree"}},[t._v("\u66f4\u6362\u4e3b\u9898")]),o("view",{staticClass:["u-demo-block__content"]},[o("u-subsection",{attrs:{list:t.list,mode:"subsection",current:t.current3,activeColor:"#f56c6c"},on:{change:t.change3}})],1)]),o("view",{staticClass:["u-demo-block"]},[o("u-text",{staticClass:["u-demo-block__title"],appendAsTree:!0,attrs:{append:"tree"}},[t._v("\u9ed8\u8ba4\u4f4d\u7f6e")]),o("view",{staticClass:["u-demo-block__content"]},[o("u-subsection",{attrs:{list:t.list,mode:"button",current:t.current4,activeColor:"#f9ae3d"},on:{change:t.change4}})],1)])])])},i=[]},802:function(t,e,o){"use strict";o.d(e,"b",(function(){return r})),o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("view",{ref:"u-subsection",staticClass:["u-subsection"],class:["u-subsection--"+t.mode],style:[t.$u.addStyle(t.customStyle),t.wrapperStyle]},[o("view",{ref:"u-subsection__bar",staticClass:["u-subsection__bar"],class:["button"===t.mode&&"u-subsection--button__bar",0===t.current&&"subsection"===t.mode&&"u-subsection__bar--first",t.current>0&&t.current<t.list.length-1&&"subsection"===t.mode&&"u-subsection__bar--center",t.current===t.list.length-1&&"subsection"===t.mode&&"u-subsection__bar--last"],style:[t.barStyle]}),t._l(t.list,(function(e,r){return o("view",{key:r,ref:"u-subsection__item--"+r,refInFor:!0,staticClass:["u-subsection__item"],class:["u-subsection__item--"+r,r<t.list.length-1&&"u-subsection__item--no-border-right",0===r&&"u-subsection__item--first",r===t.list.length-1&&"u-subsection__item--last"],style:[t.itemStyle(r)],on:{click:function(e){t.clickHandler(r)}}},[o("u-text",{staticClass:["u-subsection__item__text"],style:[t.textStyle(r)],appendAsTree:!0,attrs:{append:"tree"}},[t._v(t._s(t.getText(e)))])])}))],2)},n=[]},9:function(t,e){function o(e){return t.exports=o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,o(e)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},932:function(t,e,o){"use strict";o.r(e);var r=o(588),n=o.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(i);e.default=n.a},933:function(t,e,o){"use strict";o.r(e);var r=o(591),n=o.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(i);e.default=n.a}});