diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ab4e4ba..e3949679 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,11 @@ ## 0.3.13 - [!] Fix the `slot` bug about [`wxc-tab-bar`](https://github.com/alibaba/weex-ui/blob/master/packages/wxc-tab-bar/README.md). +- [!] [wxc-indexlist](https://github.com/alibaba/weex-ui/blob/master/packages/wxc-indexlist/README.md) supports fully custom style. +- [+] Add a post about `[Weex + Ui - Weex Conf 2018](https://alibaba.github.io/weex-ui/#/cn/weex-ui-weex-conf-2018)`. ## 0.3.12 -- [+] Adding happypack to improve the speed of build. +- [+] Add `happypack` to improve the speed of build. - [+] Add a show case of [weex-ui](https://github.com/tw93/weex-ui-demo). - [+] [wxc-stepper](https://github.com/alibaba/weex-ui/blob/master/packages/wxc-stepper/README.md) supports dynamic modification of default values [issue126](https://github.com/alibaba/weex-ui/issues/126). - [!] Fix the style bug about [wxc-grid-select](https://github.com/alibaba/weex-ui/blob/master/packages/wxc-grid-select/README.md) [issue123](https://github.com/alibaba/weex-ui/issues/123). diff --git a/build/index.native.js b/build/index.native.js index 322d0ab2..00d56184 100644 --- a/build/index.native.js +++ b/build/index.native.js @@ -9874,6 +9874,9 @@ exports.default = { this.$refs['search-input'].blur(); }, onFocus: function onFocus() { + if (this.isDisabled) { + return; + } this.showCancel = true; this.detectShowClose(); this.$emit('wxcSearchbarInputOnFocus', { value: this.value }); @@ -11622,6 +11625,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de // // // +// var dom = weex.requireModule('dom'); var animation = weex.requireModule('animation'); @@ -12401,7 +12405,8 @@ module.exports = { }, "tab-page-wrap": { "width": "750", - "flex": 1 + "flex": 1, + "overflow": "hidden" }, "tab-container": { "flex": 1, diff --git a/build/index.web.js b/build/index.web.js index 81387591..9b75696d 100644 --- a/build/index.web.js +++ b/build/index.web.js @@ -2100,7 +2100,7 @@ exports = module.exports = __webpack_require__(1)(true); // module -exports.push([module.i, "\n.wxc-search-bar[data-v-3c9bb53e] {\n padding-left: 0.26667rem;\n padding-right: 0.26667rem;\n background-color: #ffffff;\n width: 10rem;\n height: 1.12rem;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -webkit-flex-direction: row;\n flex-direction: row;\n}\n.wxc-search-bar-yellow[data-v-3c9bb53e] {\n background-color: #ffc900;\n}\n.search-bar-input[data-v-3c9bb53e] {\n position: absolute;\n top: 0.13333rem;\n padding-top: 0;\n padding-bottom: 0;\n padding-right: 0.53333rem;\n padding-left: 0.8rem;\n font-size: 0.34667rem;\n width: 8.32rem;\n height: 0.85333rem;\n line-height: 0.85333rem;\n background-color: #E5E5E5;\n border-radius: 0.08rem;\n}\n.search-bar-input-yellow[data-v-3c9bb53e] {\n background-color: #fff6d6;\n placeholder-color: #666666;\n}\n.search-bar-input-yellow[data-v-3c9bb53e]::-webkit-input-placeholder {\n color: #666666;\n}\n.search-bar-input-yellow[data-v-3c9bb53e]:-moz-placeholder {\n color: #666666;\n}\n.search-bar-input-yellow[data-v-3c9bb53e]::-moz-placeholder {\n color: #666666;\n}\n.search-bar-input-yellow[data-v-3c9bb53e]:-ms-input-placeholder {\n color: #666666;\n}\n.search-bar-input-yellow[data-v-3c9bb53e]:placeholder-shown {\n color: #666666;\n}\n.search-bar-ICON[data-v-3c9bb53e] {\n position: absolute;\n width: 0.4rem;\n height: 0.4rem;\n left: 0.45333rem;\n top: 0.37333rem;\n}\n.search-bar-close[data-v-3c9bb53e] {\n position: absolute;\n width: 0.4rem;\n height: 0.4rem;\n right: 1.6rem;\n top: 0.37333rem;\n}\n.search-bar-button[data-v-3c9bb53e] {\n width: 1.25333rem;\n height: 0.48rem;\n font-size: 0.4rem;\n text-align: center;\n background-color: #ffffff;\n margin-top: 0.21333rem;\n margin-right: 0;\n color: #333333;\n position: absolute;\n right: 0.10667rem;\n top: 0.12rem;\n}\n.search-bar-button-yellow[data-v-3c9bb53e] {\n background-color: #FFC900;\n}\n.input-has-dep[data-v-3c9bb53e] {\n padding-left: 3.2rem;\n width: 9.46667rem;\n}\n.bar-dep[data-v-3c9bb53e] {\n width: 2.26667rem;\n padding-right: 0.16rem;\n padding-left: 0.16rem;\n height: 0.56rem;\n -webkit-box-align: center;\n -webkit-align-items: center;\n align-items: center;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -webkit-flex-direction: row;\n flex-direction: row;\n position: absolute;\n left: 0.32rem;\n top: 0.29333rem;\n border-right-style: solid;\n border-right-width: 1px;\n border-right-color: #C7C7C7;\n}\n.bar-dep-yellow[data-v-3c9bb53e] {\n border-right-color: #C7C7C7;\n}\n.dep-text[data-v-3c9bb53e] {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n flex: 1;\n text-align: center;\n font-size: 0.34667rem;\n color: #666666;\n margin-right: 0.08rem;\n lines: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: 1;\n}\n.dep-arrow[data-v-3c9bb53e] {\n width: 0.32rem;\n height: 0.32rem;\n}\n.ICON-has-dep[data-v-3c9bb53e] {\n left: 2.85333rem;\n}\n.disabled-input[data-v-3c9bb53e] {\n width: 10rem;\n height: 0.85333rem;\n position: absolute;\n left: 0;\n background-color: transparent;\n}\n.has-dep-disabled[data-v-3c9bb53e] {\n width: 7.33333rem;\n left: 2.66667rem;\n}\n", "", {"version":3,"sources":["/Users/Tw93/www/github/weex-ui/packages/wxc-searchbar/index.vue?3bfc830f","/Users/Tw93/www/github/weex-ui/packages/wxc-searchbar/"],"names":[],"mappings":";AAiEA;EACA,yBAAA;EACA,0BAAA;EACA,0BAAA;EACA,aAAA;EACA,gBAAA;EACA,+BAAA;EAAA,8BAAA;EAAA,4BAAA;UAAA,oBAAA;CACA;AAEA;EACA,0BAAA;CACA;AAEA;EACA,mBAAA;EACA,gBAAA;EACA,eAAA;EACA,kBAAA;EACA,0BAAA;EACA,qBAAA;EACA,sBAAA;EACA,eAAA;EACA,mBAAA;EACA,wBAAA;EACA,0BAAA;EACA,uBAAA;CACA;AAEA;EACA,0BAAA;EACA,2BAAA;CACA;AChGA;EAAA,eAAA;CAAA;AAAA;EAAA,eAAA;CAAA;AAAA;EAAA,eAAA;CAAA;AAAA;EAAA,eAAA;CAAA;AAAA;EAAA,eAAA;CAAA;ADkGA;EACA,mBAAA;EACA,cAAA;EACA,eAAA;EACA,iBAAA;EACA,gBAAA;CACA;AAEA;EACA,mBAAA;EACA,cAAA;EACA,eAAA;EACA,cAAA;EACA,gBAAA;CACA;AAEA;EACA,kBAAA;EACA,gBAAA;EACA,kBAAA;EACA,mBAAA;EACA,0BAAA;EACA,uBAAA;EACA,gBAAA;EACA,eAAA;EACA,mBAAA;EACA,kBAAA;EACA,aAAA;CACA;AAEA;EACA,0BAAA;CACA;AAEA;EACA,qBAAA;EACA,kBAAA;CACA;AAEA;EACA,kBAAA;EACA,uBAAA;EACA,sBAAA;EACA,gBAAA;EACA,0BAAA;EAAA,4BAAA;UAAA,oBAAA;EACA,+BAAA;EAAA,8BAAA;EAAA,4BAAA;UAAA,oBAAA;EACA,mBAAA;EACA,cAAA;EACA,gBAAA;EACA,0BAAA;EACA,wBAAA;EACA,4BAAA;CACA;AAEA;EACA,4BAAA;CACA;AAEA;EACA,oBAAA;EAAA,gBAAA;UAAA,QAAA;EACA,mBAAA;EACA,sBAAA;EACA,eAAA;EACA,sBAAA;EACA,SAAA;EACA,wBAAA;ECnKA,iBAAA;EAAA,wBAAA;EAAA,sBAAA;CDoKA;AAEA;EACA,eAAA;EACA,gBAAA;CACA;AAEA;EACA,iBAAA;CACA;AAEA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,QAAA;EACA,8BAAA;CACA;AAEA;EACA,kBAAA;EACA,iBAAA;CACA","file":"index.vue","sourcesContent":["\n\n\n\n\n\n\n\n\n",null],"sourceRoot":""}]); +exports.push([module.i, "\n.wxc-search-bar[data-v-3c9bb53e] {\n padding-left: 0.26667rem;\n padding-right: 0.26667rem;\n background-color: #ffffff;\n width: 10rem;\n height: 1.12rem;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -webkit-flex-direction: row;\n flex-direction: row;\n}\n.wxc-search-bar-yellow[data-v-3c9bb53e] {\n background-color: #ffc900;\n}\n.search-bar-input[data-v-3c9bb53e] {\n position: absolute;\n top: 0.13333rem;\n padding-top: 0;\n padding-bottom: 0;\n padding-right: 0.53333rem;\n padding-left: 0.8rem;\n font-size: 0.34667rem;\n width: 8.32rem;\n height: 0.85333rem;\n line-height: 0.85333rem;\n background-color: #E5E5E5;\n border-radius: 0.08rem;\n}\n.search-bar-input-yellow[data-v-3c9bb53e] {\n background-color: #fff6d6;\n placeholder-color: #666666;\n}\n.search-bar-input-yellow[data-v-3c9bb53e]::-webkit-input-placeholder {\n color: #666666;\n}\n.search-bar-input-yellow[data-v-3c9bb53e]:-moz-placeholder {\n color: #666666;\n}\n.search-bar-input-yellow[data-v-3c9bb53e]::-moz-placeholder {\n color: #666666;\n}\n.search-bar-input-yellow[data-v-3c9bb53e]:-ms-input-placeholder {\n color: #666666;\n}\n.search-bar-input-yellow[data-v-3c9bb53e]:placeholder-shown {\n color: #666666;\n}\n.search-bar-ICON[data-v-3c9bb53e] {\n position: absolute;\n width: 0.4rem;\n height: 0.4rem;\n left: 0.45333rem;\n top: 0.37333rem;\n}\n.search-bar-close[data-v-3c9bb53e] {\n position: absolute;\n width: 0.4rem;\n height: 0.4rem;\n right: 1.6rem;\n top: 0.37333rem;\n}\n.search-bar-button[data-v-3c9bb53e] {\n width: 1.25333rem;\n height: 0.48rem;\n font-size: 0.4rem;\n text-align: center;\n background-color: #ffffff;\n margin-top: 0.21333rem;\n margin-right: 0;\n color: #333333;\n position: absolute;\n right: 0.10667rem;\n top: 0.12rem;\n}\n.search-bar-button-yellow[data-v-3c9bb53e] {\n background-color: #FFC900;\n}\n.input-has-dep[data-v-3c9bb53e] {\n padding-left: 3.2rem;\n width: 9.46667rem;\n}\n.bar-dep[data-v-3c9bb53e] {\n width: 2.26667rem;\n padding-right: 0.16rem;\n padding-left: 0.16rem;\n height: 0.56rem;\n -webkit-box-align: center;\n -webkit-align-items: center;\n align-items: center;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -webkit-flex-direction: row;\n flex-direction: row;\n position: absolute;\n left: 0.32rem;\n top: 0.29333rem;\n border-right-style: solid;\n border-right-width: 1px;\n border-right-color: #C7C7C7;\n}\n.bar-dep-yellow[data-v-3c9bb53e] {\n border-right-color: #C7C7C7;\n}\n.dep-text[data-v-3c9bb53e] {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n flex: 1;\n text-align: center;\n font-size: 0.34667rem;\n color: #666666;\n margin-right: 0.08rem;\n lines: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: 1;\n}\n.dep-arrow[data-v-3c9bb53e] {\n width: 0.32rem;\n height: 0.32rem;\n}\n.ICON-has-dep[data-v-3c9bb53e] {\n left: 2.85333rem;\n}\n.disabled-input[data-v-3c9bb53e] {\n width: 10rem;\n height: 0.85333rem;\n position: absolute;\n left: 0;\n background-color: transparent;\n}\n.has-dep-disabled[data-v-3c9bb53e] {\n width: 7.33333rem;\n left: 2.66667rem;\n}\n", "", {"version":3,"sources":["/Users/Tw93/www/github/weex-ui/packages/wxc-searchbar/index.vue?54117ad4","/Users/Tw93/www/github/weex-ui/packages/wxc-searchbar/"],"names":[],"mappings":";AAiEA;EACA,yBAAA;EACA,0BAAA;EACA,0BAAA;EACA,aAAA;EACA,gBAAA;EACA,+BAAA;EAAA,8BAAA;EAAA,4BAAA;UAAA,oBAAA;CACA;AAEA;EACA,0BAAA;CACA;AAEA;EACA,mBAAA;EACA,gBAAA;EACA,eAAA;EACA,kBAAA;EACA,0BAAA;EACA,qBAAA;EACA,sBAAA;EACA,eAAA;EACA,mBAAA;EACA,wBAAA;EACA,0BAAA;EACA,uBAAA;CACA;AAEA;EACA,0BAAA;EACA,2BAAA;CACA;AChGA;EAAA,eAAA;CAAA;AAAA;EAAA,eAAA;CAAA;AAAA;EAAA,eAAA;CAAA;AAAA;EAAA,eAAA;CAAA;AAAA;EAAA,eAAA;CAAA;ADkGA;EACA,mBAAA;EACA,cAAA;EACA,eAAA;EACA,iBAAA;EACA,gBAAA;CACA;AAEA;EACA,mBAAA;EACA,cAAA;EACA,eAAA;EACA,cAAA;EACA,gBAAA;CACA;AAEA;EACA,kBAAA;EACA,gBAAA;EACA,kBAAA;EACA,mBAAA;EACA,0BAAA;EACA,uBAAA;EACA,gBAAA;EACA,eAAA;EACA,mBAAA;EACA,kBAAA;EACA,aAAA;CACA;AAEA;EACA,0BAAA;CACA;AAEA;EACA,qBAAA;EACA,kBAAA;CACA;AAEA;EACA,kBAAA;EACA,uBAAA;EACA,sBAAA;EACA,gBAAA;EACA,0BAAA;EAAA,4BAAA;UAAA,oBAAA;EACA,+BAAA;EAAA,8BAAA;EAAA,4BAAA;UAAA,oBAAA;EACA,mBAAA;EACA,cAAA;EACA,gBAAA;EACA,0BAAA;EACA,wBAAA;EACA,4BAAA;CACA;AAEA;EACA,4BAAA;CACA;AAEA;EACA,oBAAA;EAAA,gBAAA;UAAA,QAAA;EACA,mBAAA;EACA,sBAAA;EACA,eAAA;EACA,sBAAA;EACA,SAAA;EACA,wBAAA;ECnKA,iBAAA;EAAA,wBAAA;EAAA,sBAAA;CDoKA;AAEA;EACA,eAAA;EACA,gBAAA;CACA;AAEA;EACA,iBAAA;CACA;AAEA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,QAAA;EACA,8BAAA;CACA;AAEA;EACA,kBAAA;EACA,iBAAA;CACA","file":"index.vue","sourcesContent":["\n\n\n\n\n\n\n\n\n",null],"sourceRoot":""}]); // exports @@ -2338,7 +2338,7 @@ exports = module.exports = __webpack_require__(1)(true); // module -exports.push([module.i, "\n.wxc-tab-page[data-v-9576a0a4] {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.tab-title-list[data-v-9576a0a4] {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -webkit-flex-direction: row;\n flex-direction: row;\n -webkit-justify-content: space-around;\n justify-content: space-around;\n}\n.title-item[data-v-9576a0a4] {\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n justify-content: center;\n -webkit-box-align: center;\n -webkit-align-items: center;\n align-items: center;\n border-bottom-style: solid;\n}\n.tab-page-wrap[data-v-9576a0a4] {\n width: 10rem;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n flex: 1;\n}\n.tab-container[data-v-9576a0a4] {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n flex: 1;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -webkit-flex-direction: row;\n flex-direction: row;\n position: absolute;\n}\n.tab-text[data-v-9576a0a4] {\n lines: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: 1;\n}\n.desc-tag[data-v-9576a0a4] {\n position: absolute;\n top: 0.13333rem;\n right: 0.26667rem;\n border-bottom-right-radius: 0.18667rem;\n border-bottom-left-radius: 0;\n border-top-left-radius: 0.18667rem;\n border-top-right-radius: 0.18667rem;\n background-color: #FF5E00;\n height: 0.34667rem;\n -webkit-box-align: center;\n -webkit-align-items: center;\n align-items: center;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n justify-content: center;\n padding-left: 0.08rem;\n padding-right: 0.08rem;\n}\n.dot[data-v-9576a0a4] {\n width: 0.16rem;\n height: 0.16rem;\n border-bottom-right-radius: 0.16rem;\n border-bottom-left-radius: 0.16rem;\n border-top-left-radius: 0.16rem;\n border-top-right-radius: 0.16rem;\n position: absolute;\n top: 0.13333rem;\n right: 0.53333rem;\n background-color: #FF5E00;\n}\n.desc-text[data-v-9576a0a4] {\n font-size: 0.24rem;\n color: #ffffff;\n}\n.icon-font[data-v-9576a0a4] {\n margin-bottom: 0.10667rem;\n}\n", "", {"version":3,"sources":["/Users/Tw93/www/github/weex-ui/packages/wxc-tab-bar/index.vue?fac6469c","/Users/Tw93/www/github/weex-ui/packages/wxc-tab-bar/"],"names":[],"mappings":";AA8CA;EACA,mBAAA;EACA,OAAA;EACA,QAAA;EACA,SAAA;EACA,UAAA;CACA;AAEA;EACA,+BAAA;EAAA,8BAAA;EAAA,4BAAA;UAAA,oBAAA;EACA,sCAAA;UAAA,8BAAA;CACA;AAEA;EACA,yBAAA;EAAA,gCAAA;UAAA,wBAAA;EACA,0BAAA;EAAA,4BAAA;UAAA,oBAAA;EACA,2BAAA;CACA;AAEA;EACA,aAAA;EACA,oBAAA;EAAA,gBAAA;UAAA,QAAA;CACA;AAEA;EACA,oBAAA;EAAA,gBAAA;UAAA,QAAA;EACA,+BAAA;EAAA,8BAAA;EAAA,4BAAA;UAAA,oBAAA;EACA,mBAAA;CACA;AAEA;EACA,SAAA;EACA,wBAAA;EC9EA,iBAAA;EAAA,wBAAA;EAAA,sBAAA;CD+EA;AAEA;EACA,mBAAA;EACA,gBAAA;EACA,kBAAA;EACA,uCAAA;EACA,6BAAA;EACA,mCAAA;EACA,oCAAA;EACA,0BAAA;EACA,mBAAA;EACA,0BAAA;EAAA,4BAAA;UAAA,oBAAA;EACA,yBAAA;EAAA,gCAAA;UAAA,wBAAA;EACA,sBAAA;EACA,uBAAA;CACA;AAEA;EACA,eAAA;EACA,gBAAA;EACA,oCAAA;EACA,mCAAA;EACA,gCAAA;EACA,iCAAA;EACA,mBAAA;EACA,gBAAA;EACA,kBAAA;EACA,0BAAA;CACA;AAEA;EACA,mBAAA;EACA,eAAA;CACA;AAEA;EACA,0BAAA;CACA","file":"index.vue","sourcesContent":["\n\n\n\n\n\n\n\n\n",null],"sourceRoot":""}]); +exports.push([module.i, "\n.wxc-tab-page[data-v-9576a0a4] {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.tab-title-list[data-v-9576a0a4] {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -webkit-flex-direction: row;\n flex-direction: row;\n -webkit-justify-content: space-around;\n justify-content: space-around;\n}\n.title-item[data-v-9576a0a4] {\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n justify-content: center;\n -webkit-box-align: center;\n -webkit-align-items: center;\n align-items: center;\n border-bottom-style: solid;\n}\n.tab-page-wrap[data-v-9576a0a4] {\n width: 10rem;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n flex: 1;\n overflow: hidden;\n}\n.tab-container[data-v-9576a0a4] {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n flex: 1;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -webkit-flex-direction: row;\n flex-direction: row;\n position: absolute;\n}\n.tab-text[data-v-9576a0a4] {\n lines: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: 1;\n}\n.desc-tag[data-v-9576a0a4] {\n position: absolute;\n top: 0.13333rem;\n right: 0.26667rem;\n border-bottom-right-radius: 0.18667rem;\n border-bottom-left-radius: 0;\n border-top-left-radius: 0.18667rem;\n border-top-right-radius: 0.18667rem;\n background-color: #FF5E00;\n height: 0.34667rem;\n -webkit-box-align: center;\n -webkit-align-items: center;\n align-items: center;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n justify-content: center;\n padding-left: 0.08rem;\n padding-right: 0.08rem;\n}\n.dot[data-v-9576a0a4] {\n width: 0.16rem;\n height: 0.16rem;\n border-bottom-right-radius: 0.16rem;\n border-bottom-left-radius: 0.16rem;\n border-top-left-radius: 0.16rem;\n border-top-right-radius: 0.16rem;\n position: absolute;\n top: 0.13333rem;\n right: 0.53333rem;\n background-color: #FF5E00;\n}\n.desc-text[data-v-9576a0a4] {\n font-size: 0.24rem;\n color: #ffffff;\n}\n.icon-font[data-v-9576a0a4] {\n margin-bottom: 0.10667rem;\n}\n", "", {"version":3,"sources":["/Users/Tw93/www/github/weex-ui/packages/wxc-tab-bar/index.vue?f55a01de","/Users/Tw93/www/github/weex-ui/packages/wxc-tab-bar/"],"names":[],"mappings":";AA8CA;EACA,mBAAA;EACA,OAAA;EACA,QAAA;EACA,SAAA;EACA,UAAA;CACA;AAEA;EACA,+BAAA;EAAA,8BAAA;EAAA,4BAAA;UAAA,oBAAA;EACA,sCAAA;UAAA,8BAAA;CACA;AAEA;EACA,yBAAA;EAAA,gCAAA;UAAA,wBAAA;EACA,0BAAA;EAAA,4BAAA;UAAA,oBAAA;EACA,2BAAA;CACA;AAEA;EACA,aAAA;EACA,oBAAA;EAAA,gBAAA;UAAA,QAAA;EACA,iBAAA;CACA;AAEA;EACA,oBAAA;EAAA,gBAAA;UAAA,QAAA;EACA,+BAAA;EAAA,8BAAA;EAAA,4BAAA;UAAA,oBAAA;EACA,mBAAA;CACA;AAEA;EACA,SAAA;EACA,wBAAA;EC/EA,iBAAA;EAAA,wBAAA;EAAA,sBAAA;CDgFA;AAEA;EACA,mBAAA;EACA,gBAAA;EACA,kBAAA;EACA,uCAAA;EACA,6BAAA;EACA,mCAAA;EACA,oCAAA;EACA,0BAAA;EACA,mBAAA;EACA,0BAAA;EAAA,4BAAA;UAAA,oBAAA;EACA,yBAAA;EAAA,gCAAA;UAAA,wBAAA;EACA,sBAAA;EACA,uBAAA;CACA;AAEA;EACA,eAAA;EACA,gBAAA;EACA,oCAAA;EACA,mCAAA;EACA,gCAAA;EACA,iCAAA;EACA,mBAAA;EACA,gBAAA;EACA,kBAAA;EACA,0BAAA;CACA;AAEA;EACA,mBAAA;EACA,eAAA;CACA;AAEA;EACA,0BAAA;CACA","file":"index.vue","sourcesContent":["\n\n\n\n\n\n\n\n\n",null],"sourceRoot":""}]); // exports @@ -7694,6 +7694,9 @@ exports.default = { this.$refs['search-input'].blur(); }, onFocus: function onFocus() { + if (this.isDisabled) { + return; + } this.showCancel = true; this.detectShowClose(); this.$emit('wxcSearchbarInputOnFocus', { value: this.value }); @@ -9442,6 +9445,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de // // // +// var dom = weex.requireModule('dom'); var animation = weex.requireModule('animation'); @@ -14587,7 +14591,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c staticClass: "icon-font weex-el weex-text", style: ({ fontFamily: 'wxcIconFont', - fontSize: _vm._px2rem(_vm.tabStyles.iconFontSize + 'px', 75), + fontSize: _vm._px2rem(_vm._px2rem(_vm.tabStyles.iconFontSize + 'px', 75), 75), color: _vm.currentPage == index ? _vm.tabStyles.activeIconFontColor : _vm.tabStyles.iconFontColor }), attrs: { @@ -14596,11 +14600,11 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c }, [_vm._v(_vm._s(v.codePoint))]) : _vm._e(), _vm._v(" "), (!_vm.titleUseSlot) ? _c('p', { staticClass: "tab-text weex-el weex-text", style: ({ - fontSize: _vm._px2rem(_vm.tabStyles.fontSize + 'px', 75), + fontSize: _vm._px2rem(_vm._px2rem(_vm.tabStyles.fontSize + 'px', 75), 75), fontWeight: _vm.currentPage == index && _vm.tabStyles.isActiveTitleBold ? 'bold' : 'normal', color: _vm.currentPage == index ? _vm.tabStyles.activeTitleColor : _vm.tabStyles.titleColor, - paddingLeft: _vm._px2rem(_vm.tabStyles.textPaddingLeft + 'px', 75), - paddingRight: _vm._px2rem(_vm.tabStyles.textPaddingRight + 'px', 75) + paddingLeft: _vm._px2rem(_vm._px2rem(_vm.tabStyles.textPaddingLeft + 'px', 75), 75), + paddingRight: _vm._px2rem(_vm._px2rem(_vm.tabStyles.textPaddingRight + 'px', 75), 75) }), attrs: { "weex-type": "text" @@ -15800,7 +15804,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c staticClass: "icon-font weex-el weex-text", style: ({ fontFamily: 'wxcIconFont', - fontSize: _vm._px2rem(_vm._px2rem(_vm.tabStyles.iconFontSize + 'px', 75), 75), + fontSize: _vm._px2rem(_vm.tabStyles.iconFontSize + 'px', 75), color: _vm.currentPage == index ? _vm.tabStyles.activeIconFontColor : _vm.tabStyles.iconFontColor }), attrs: { @@ -15809,11 +15813,11 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c }, [_vm._v(_vm._s(v.codePoint))]) : _vm._e(), _vm._v(" "), (!_vm.titleUseSlot) ? _c('p', { staticClass: "tab-text weex-el weex-text", style: ({ - fontSize: _vm._px2rem(_vm._px2rem(_vm.tabStyles.fontSize + 'px', 75), 75), + fontSize: _vm._px2rem(_vm.tabStyles.fontSize + 'px', 75), fontWeight: _vm.currentPage == index && _vm.tabStyles.isActiveTitleBold ? 'bold' : 'normal', color: _vm.currentPage == index ? _vm.tabStyles.activeTitleColor : _vm.tabStyles.titleColor, - paddingLeft: _vm._px2rem(_vm._px2rem(_vm.tabStyles.textPaddingLeft + 'px', 75), 75), - paddingRight: _vm._px2rem(_vm._px2rem(_vm.tabStyles.textPaddingRight + 'px', 75), 75) + paddingLeft: _vm._px2rem(_vm.tabStyles.textPaddingLeft + 'px', 75), + paddingRight: _vm._px2rem(_vm.tabStyles.textPaddingRight + 'px', 75) }), attrs: { "weex-type": "text" diff --git a/docs/_coverpage.md b/docs/_coverpage.md index d455a4d6..c0b35dcd 100644 --- a/docs/_coverpage.md +++ b/docs/_coverpage.md @@ -1,6 +1,6 @@ -# Weex Ui 0.3.12 +# Weex Ui 0.3.13 > A rich interaction, lightweight, high performance UI library. diff --git a/docs/_sidebar.md b/docs/_sidebar.md index ddb31fbb..f27efd97 100644 --- a/docs/_sidebar.md +++ b/docs/_sidebar.md @@ -1,3 +1,4 @@ +- [**Weex + Ui - Weex Conf 2018**](docs/weex-ui-weex-conf-2018) - Layout - [wxc-button](packages/wxc-button/) - [wxc-cell](packages/wxc-cell/) diff --git a/docs/dist/index.min.css b/docs/dist/index.min.css index b8814067..0b678e0e 100644 --- a/docs/dist/index.min.css +++ b/docs/dist/index.min.css @@ -1,2 +1,2 @@ -@import url("//fonts.lug.ustc.edu.cn/css?family=Roboto+Mono|Source+Sans+Pro:300,400,600");*{-webkit-font-smoothing:antialiased;-webkit-overflow-scrolling:touch;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-text-size-adjust:none;-webkit-touch-callout:none;box-sizing:border-box}body:not(.ready){overflow:hidden}body:not(.ready) .app-nav,body:not(.ready)>nav,body:not(.ready) [data-cloak]{display:none}div#app{font-size:30px;font-weight:lighter;margin:40vh auto;text-align:center}div#app:empty:before{content:"Loading..."}.emoji{height:19.2px;height:1.2rem;vertical-align:middle}.progress{background-color:#42b983;background-color:var(--theme-color,#42b983);height:2px;left:0;position:fixed;right:0;top:0;transition:width .2s,opacity .4s;width:0;z-index:5}.search .search-keyword,.search a:hover{color:#42b983;color:var(--theme-color,#42b983)}.search .search-keyword{font-style:normal;font-weight:700}body,html{height:100%}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:#34495e;font-family:Source Sans Pro,Helvetica Neue,Arial,sans-serif;font-size:15px;letter-spacing:0;margin:0;overflow-x:hidden}img{max-width:100%}a[disabled]{cursor:not-allowed;opacity:.6}kbd{border:1px solid #ccc;border-radius:3px;display:inline-block;font-size:12px!important;line-height:12px;margin-bottom:3px;padding:3px 5px;vertical-align:middle}li input[type=checkbox]{margin:0 .2em .25em -1.6em;vertical-align:middle}.app-nav{left:0;margin:25px 60px 0 0;position:absolute;right:0;text-align:right;z-index:2}.app-nav p{margin:0}.app-nav>a{margin:0 16px;margin:0 1rem;padding:5px 0}.app-nav li,.app-nav ul{display:inline-block;list-style:none;margin:0}.app-nav a{color:inherit;font-size:16px;text-decoration:none;transition:color .3s}.app-nav a.active,.app-nav a:hover{color:#42b983;color:var(--theme-color,#42b983)}.app-nav a.active{border-bottom:2px solid #42b983;border-bottom:2px solid var(--theme-color,#42b983)}.app-nav li{display:inline-block;margin:0 16px;margin:0 1rem;padding:5px 0;position:relative}.app-nav li ul{background-color:#fff;border:1px solid #ddd;border-bottom-color:#ccc;border-radius:4px;box-sizing:border-box;display:none;max-height:calc(100vh - 61px);overflow-y:scroll;padding:10px 0;position:absolute;right:-15px;text-align:left;top:100%;white-space:nowrap}.app-nav li ul li{display:block;font-size:14px;line-height:16px;line-height:1rem;margin:0;margin:8px 14px;white-space:nowrap}.app-nav li ul a{display:block;font-size:inherit;margin:0;padding:0}.app-nav li ul a.active{border-bottom:0}.app-nav li:hover ul{display:block}.app-nav.no-badge{margin-right:25px}.github-corner{border-bottom:0;position:fixed;right:0;text-decoration:none;top:0;z-index:1}.github-corner svg{color:#fff;fill:#42b983;fill:var(--theme-color,#42b983);height:80px;width:80px}.github-corner:hover .octo-arm{-webkit-animation:a .56s ease-in-out;animation:a .56s ease-in-out}main{display:block;position:relative;width:100vw;height:100%;z-index:0}.anchor{display:inline-block;text-decoration:none;transition:all .3s}.anchor span{color:#34495e}.anchor:hover{text-decoration:underline}.sidebar{border-right:1px solid rgba(0,0,0,.07);overflow-y:auto;padding:40px 0 0;top:0;bottom:0;left:0;position:absolute;transition:-webkit-transform .25s ease-out;transition:transform .25s ease-out;transition:transform .25s ease-out,-webkit-transform .25s ease-out;width:300px;z-index:3}.sidebar>h1{margin:0 auto 16px;margin:0 auto 1rem;font-size:24px;font-size:1.5rem;font-weight:300;text-align:center}.sidebar>h1 a{color:inherit;text-decoration:none}.sidebar>h1 .app-nav{display:block;position:static}.sidebar .sidebar-nav{line-height:2em;padding-bottom:40px}.sidebar ul{margin:0;padding:0}.sidebar li>p{font-weight:700;margin:0}.sidebar ul,.sidebar ul li{list-style:none}.sidebar ul li a{border-bottom:none;display:block}.sidebar ul li ul{padding-left:20px}.sidebar::-webkit-scrollbar{width:4px}.sidebar::-webkit-scrollbar-thumb{background:transparent;border-radius:4px}.sidebar:hover::-webkit-scrollbar-thumb{background:hsla(0,0%,53%,.4)}.sidebar:hover::-webkit-scrollbar-track{background:hsla(0,0%,53%,.1)}.sidebar-toggle{background-color:transparent;background-color:hsla(0,0%,100%,.8);border:0;outline:none;padding:10px;bottom:0;left:0;position:absolute;text-align:center;transition:opacity .3s;width:30px;width:284px;z-index:4}.sidebar-toggle .sidebar-toggle-button:hover{opacity:.4}.sidebar-toggle span{background-color:#42b983;background-color:var(--theme-color,#42b983);display:block;margin-bottom:4px;width:16px;height:2px}body.sticky .sidebar,body.sticky .sidebar-toggle{position:fixed}.content{padding-top:60px;top:0;right:0;bottom:0;left:300px;position:absolute;transition:left .25s ease}.markdown-section{margin:0 auto;max-width:800px;padding:40px 15px 40px;position:relative}.markdown-section>*{box-sizing:border-box;font-size:inherit}.markdown-section>:first-child{margin-top:0!important}.markdown-section hr{border:none;border-bottom:1px solid #eee;margin:2em 0}.markdown-section table{border-collapse:collapse;border-spacing:0;display:block;margin-bottom:16px;margin-bottom:1rem;overflow:auto;width:100%}.markdown-section th{font-weight:700}.markdown-section td,.markdown-section th{border:1px solid #ddd;padding:6px 13px}.markdown-section tr{border-top:1px solid #ccc}.markdown-section p.tip,.markdown-section tr:nth-child(2n){background-color:#f8f8f8}.markdown-section p.tip{border-bottom-right-radius:2px;border-left:4px solid #f66;border-top-right-radius:2px;margin:2em 0;padding:12px 24px 12px 30px;position:relative}.markdown-section p.tip code{background-color:#efefef}.markdown-section p.tip em{color:#34495e}.markdown-section p.tip:before{background-color:#f66;border-radius:100%;color:#fff;content:"!";font-family:Dosis,Source Sans Pro,Helvetica Neue,Arial,sans-serif;font-size:14px;font-weight:700;left:-12px;line-height:20px;position:absolute;width:20px;height:20px;text-align:center;top:14px}.markdown-section p.warn{background:rgba(66,185,131,.1);border-radius:2px;padding:16px;padding:1rem}body.close .sidebar{-webkit-transform:translateX(-300px);transform:translateX(-300px)}body.close .sidebar-toggle{width:auto}body.close .content{left:0}@media print{.app-nav,.github-corner,.sidebar,.sidebar-toggle{display:none}}@media screen and (max-width:768px){.github-corner,.sidebar,.sidebar-toggle{position:fixed}.app-nav{margin-top:16px}.app-nav li ul{top:30px}main{height:auto;overflow-x:hidden}.sidebar{left:-300px;transition:-webkit-transform .25s ease-out;transition:transform .25s ease-out;transition:transform .25s ease-out,-webkit-transform .25s ease-out}.content{left:0;max-width:100vw;position:static;padding-top:20px;transition:-webkit-transform .25s ease;transition:transform .25s ease;transition:transform .25s ease,-webkit-transform .25s ease}.app-nav,.github-corner{transition:-webkit-transform .25s ease-out;transition:transform .25s ease-out;transition:transform .25s ease-out,-webkit-transform .25s ease-out}.sidebar-toggle{background-color:transparent;width:auto}body.close .sidebar{-webkit-transform:translateX(300px);transform:translateX(300px)}body.close .sidebar-toggle{background-color:hsla(0,0%,100%,.8);transition:background-color 1s;width:284px}body.close .content{-webkit-transform:translateX(300px);transform:translateX(300px)}body.close .app-nav,body.close .github-corner{display:none}.github-corner .octo-arm{-webkit-animation:a .56s ease-in-out;animation:a .56s ease-in-out}.github-corner:hover .octo-arm{-webkit-animation:none;animation:none}}@-webkit-keyframes a{0%,to{-webkit-transform:rotate(0);transform:rotate(0)}20%,60%{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-webkit-transform:rotate(10deg);transform:rotate(10deg)}}@keyframes a{0%,to{-webkit-transform:rotate(0);transform:rotate(0)}20%,60%{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-webkit-transform:rotate(10deg);transform:rotate(10deg)}}section.cover{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-position:50%;background-repeat:no-repeat;background-size:cover;height:100vh;display:none}section.cover .cover-main{-webkit-box-flex:1;-ms-flex:1;flex:1;margin:-20px 16px 0;text-align:center;z-index:1}section.cover a{color:inherit}section.cover a,section.cover a:hover{text-decoration:none}section.cover p{line-height:24px;line-height:1.5rem;margin:1em 0}section.cover h1{color:inherit;font-size:40px;font-size:2.5rem;font-weight:300;margin:10px 0 40px;margin:.625rem 0 2.5rem;position:relative;text-align:center}section.cover h1 a{display:block}section.cover h1 small{bottom:-7px;bottom:-.4375rem;font-size:16px;font-size:1rem;position:absolute}section.cover blockquote{font-size:24px;font-size:1.5rem;text-align:center}section.cover ul{line-height:1.8;list-style-type:none;margin:1em auto;max-width:500px;padding:0}section.cover .cover-main>p:last-child a{border-color:#42b983;border:1px solid var(--theme-color,#42b983);border-radius:2rem;box-sizing:border-box;color:#42b983;color:var(--theme-color,#42b983);display:inline-block;font-size:16.8px;font-size:1.05rem;letter-spacing:1.6px;letter-spacing:.1rem;margin-right:16px;margin-right:1rem;padding:.75em 32px;padding:.75em 2rem;text-decoration:none;transition:all .15s ease}section.cover .cover-main>p:last-child a:last-child{background-color:#42b983;background-color:var(--theme-color,#42b983);color:#fff;margin-right:0}section.cover .cover-main>p:last-child a:last-child:hover{color:inherit;opacity:.8}section.cover .cover-main>p:last-child a:hover{color:inherit}section.cover blockquote>p>a{border-bottom:2px solid #42b983;border-bottom:2px solid var(--theme-color,#42b983);transition:color .3s}section.cover blockquote>p>a:hover{color:#42b983;color:var(--theme-color,#42b983)}section.cover.show{display:-webkit-box;display:-ms-flexbox;display:flex}section.cover.has-mask .mask{background-color:#fff;opacity:.8;position:absolute;width:100%;height:100%;top:0;bottom: 0;}.sidebar,body{background-color:#fff}.sidebar{color:#364149}.sidebar li{margin:6px 0 6px 15px}.sidebar ul li a{color:#505d6b;font-size:14px;font-weight:400;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.sidebar ul li a:hover{text-decoration:underline}.sidebar ul li ul{padding:0}.sidebar ul li.active>a{border-right:2px solid;color:#42b983;color:var(--theme-color,#42b983);font-weight:600}.app-sub-sidebar li:before{content:"-";padding-right:4px;float:left}.markdown-section h1,.markdown-section h2,.markdown-section h3,.markdown-section h4,.markdown-section strong{color:#2c3e50;font-weight:600}.markdown-section a{color:#42b983;color:var(--theme-color,#42b983);font-weight:600}.markdown-section h1{font-size:32px;font-size:2rem;margin:0 0 16px;margin:0 0 1rem}.markdown-section h2{font-size:28px;font-size:1.75rem;margin:45px 0 12.8px;margin:45px 0 .8rem}.markdown-section h3{font-size:24px;font-size:1.5rem;margin:40px 0 9.6px;margin:40px 0 .6rem}.markdown-section h4{font-size:20px;font-size:1.25rem}.markdown-section h5,.markdown-section h6{font-size:16px;font-size:1rem}.markdown-section h6{color:#777}.markdown-section figure,.markdown-section p{margin:1.2em 0}.markdown-section ol,.markdown-section p,.markdown-section ul{line-height:25.6px;line-height:1.6rem;word-spacing:.8px;word-spacing:.05rem}.markdown-section ol,.markdown-section ul{padding-left:24px;padding-left:1.5rem}.markdown-section blockquote{border-left:4px solid #42b983;border-left:4px solid var(--theme-color,#42b983);color:#858585;margin:2em 0;padding-left:20px}.markdown-section blockquote p{font-weight:600;margin-left:0}.markdown-section iframe{margin:1em 0}.markdown-section em{color:#7f8c8d}.markdown-section code{border-radius:2px;color:#e96900;font-size:12.8px;font-size:.8rem;margin:0 2px;padding:3px 5px;white-space:pre-wrap}.markdown-section code,.markdown-section pre{background-color:#f8f8f8;font-family:Roboto Mono,Monaco,courier,monospace}.markdown-section pre{-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial;line-height:24px;line-height:1.5rem;margin:1.2em 0;overflow:auto;padding:0 22.4px;padding:0 1.4rem;position:relative;word-wrap:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#8e908c}.token.namespace{opacity:.7}.token.boolean,.token.number{color:#c76b29}.token.punctuation{color:#525252}.token.property{color:#c08b30}.token.tag{color:#2973b7}.token.string{color:#42b983;color:var(--theme-color,#42b983)}.token.selector{color:#6679cc}.token.attr-name{color:#2973b7}.language-css .token.string,.style .token.string,.token.entity,.token.url{color:#22a2c9}.token.attr-value,.token.control,.token.directive,.token.unit{color:#42b983;color:var(--theme-color,#42b983)}.token.keyword{color:#e96900}.token.atrule,.token.regex,.token.statement{color:#22a2c9}.token.placeholder,.token.variable{color:#3d8fd1}.token.deleted{text-decoration:line-through}.token.inserted{border-bottom:1px dotted #202746;text-decoration:none}.token.italic{font-style:italic}.token.bold,.token.important{font-weight:700}.token.important{color:#c94922}.token.entity{cursor:help}.markdown-section pre>code{-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial;background-color:#f8f8f8;border-radius:2px;color:#525252;display:block;font-family:Roboto Mono,Monaco,courier,monospace;font-size:12.8px;font-size:.8rem;line-height:inherit;margin:0 2px;max-width:inherit;overflow:inherit;padding:2.2em 5px;white-space:inherit}.markdown-section code:after,.markdown-section code:before{letter-spacing:.8px;letter-spacing:.05rem}code .token{-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial;min-height:24px;min-height:1.5rem}pre:after{color:#ccc;content:attr(data-lang);font-size:9.6px;font-size:.6rem;font-weight:600;height:15px;line-height:15px;padding:5px 10px 0;position:absolute;right:0;text-align:right;top:0}.community-img{width:300px;height:0;display:block;overflow:hidden;box-shadow:0 0 0 0, 0 6px 12px rgba(0, 0, 0, .5);margin:0 auto;position:fixed;top:36px;right:-56px;z-index:101;transition:.4s all ease-in-out;transform:scale(0) perspective(600px) rotateX(45deg)}.community-img.active{right:10px;height:340px;top:76px;transform:none}.show_community{cursor: pointer}.weex-ui-demo .has-mask{background:linear-gradient(to left bottom, rgb(255, 245, 179) 0, rgb(190, 179, 255) 100%) center center / cover}.weex-ui-demo section.cover.has-mask .cover-main{display:flex;display:-webkit-flex;margin:0 auto;text-align:center;z-index:1;width:800px;-webkit-box-flex:0;-ms-flex:0;flex:0}.weex-ui-demo .cover-main .phone{border-radius:40px;margin:100px 60px 0;overflow:hidden;transition:all .5s ease;width:300px;height:600px;position:relative}.weex-ui-demo .cover-main .phone iframe{border:0;width:100%;height:100%}.weex-ui-demo .cover-main .phone.view{transform:rotateX(0deg) rotateY(0deg) rotateZ(0deg);box-shadow:0 3px 0 #BBB, 0 4px 0 #BBB, 0 7px 0 #BBB, 0 7px 0 #BBB, 0 6px 16px #666}.weex-ui-demo .cover-main .weex-info{text-align:left;display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:800px;width:340px}.weex-ui-demo .cover-main .return-button{position:relative;bottom:60px;display:inline-block;width:45px;height:45px;color:#999;font-size:12px;border-radius:50%;border:4px solid rgba(0, 0, 0, .3);text-decoration:none;line-height:40px;text-align:center;cursor:pointer}.weex-ui-demo .cover-main .weex-info .weex-title{font-weight:400;font-size:2.5rem;color:#34495e;line-height:1;margin:0}.weex-ui-demo .cover-main .weex-info .comp-desc{line-height:1.8rem;font-weight:400;font-size:1.2rem}.weex-ui-demo .cover-main .try-text{color:#F7C242;position:absolute;bottom:10px;right:60px}.docsify-copy-code-button{background:#ccc;color:#fff;position:absolute;top:0;right:0;outline:0;border:0;border-radius:0;cursor:pointer;z-index:1;padding:10px;transition:all .25s ease;opacity:0}.docsify-copy-code-button::after{content:"Copied!";position:absolute;right:100%;top:0;background:#ccc;color:#fff;padding:5px;margin:5px 10px 0;font-size:11px;z-index:0;transition:all .25s ease;transform:translateX(120%) scale(0);border-radius:3px}.docsify-copy-code-button.success::after{transform:translateX(0) scale(1)}pre[v-pre]:hover .docsify-copy-code-button{opacity:1}.tool-docs-header{position:absolute;top:50px;right:0}.tool-tip{display:inline-block;position:relative}.tool-tip::after{background-color:#323a45;border-radius:2px;color:#fff;content:attr(data-tooltip-title) " ";font-weight:normal;min-width:106px;padding:4px 6px;text-align:center;text-transform:none}.tool-tip::before{width:0;height:0;content:""}.tool-tip::before,.tool-tip::after{position:absolute;transition:opacity 250ms ease 0ms, transform 250ms ease 0ms;transform-style:preserve-3d;opacity:0;z-index:-1}.tool-tip[data-tooltip-position="top"]::after{left:50%}.tool-tip[data-tooltip-position="top"]::after{transform:translate3d(-50%, 10px, 0)}.tool-tip[data-tooltip-position="top"]::after{bottom:calc(100% + 10px)}.tool-tip[data-tooltip-position="top"]::before{border-left:7px solid transparent;border-right:7px solid transparent;left:50%}.tool-tip[data-tooltip-position="top"]::before{transform:translate3d(-50%, 10px, 0)}.tool-tip[data-tooltip-position="top"]::before{border-top:7px solid #323a45;bottom:calc(100% + 3px)}.tool-tip:hover::before,.tool-tip:hover::after{opacity:1;z-index:100}.tool-tip[data-tooltip-position="top"]:hover::before,.tool-tip[data-tooltip-position="bottom"]:hover::before,.tool-tip[data-tooltip-position="top"]:hover::after,.tool-tip[data-tooltip-position="bottom"]:hover::after{transform:translate3d(-50%, 0, 0)} +@import url("//fonts.lug.ustc.edu.cn/css?family=Roboto+Mono|Source+Sans+Pro:300,400,600");*{-webkit-font-smoothing:antialiased;-webkit-overflow-scrolling:touch;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-text-size-adjust:none;-webkit-touch-callout:none;box-sizing:border-box}body:not(.ready){overflow:hidden}body:not(.ready) .app-nav,body:not(.ready)>nav,body:not(.ready) [data-cloak]{display:none}div#app{font-size:30px;font-weight:lighter;margin:40vh auto;text-align:center}div#app:empty:before{content:"Loading..."}.emoji{height:19.2px;height:1.2rem;vertical-align:middle}.progress{background-color:#42b983;background-color:var(--theme-color,#42b983);height:2px;left:0;position:fixed;right:0;top:0;transition:width .2s,opacity .4s;width:0;z-index:5}.search .search-keyword,.search a:hover{color:#42b983;color:var(--theme-color,#42b983)}.search .search-keyword{font-style:normal;font-weight:700}body,html{height:100%}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:#34495e;font-family:Source Sans Pro,Helvetica Neue,Arial,sans-serif;font-size:15px;letter-spacing:0;margin:0;overflow-x:hidden}img{max-width:100%}a[disabled]{cursor:not-allowed;opacity:.6}video{max-width: 100%}kbd{border:1px solid #ccc;border-radius:3px;display:inline-block;font-size:12px!important;line-height:12px;margin-bottom:3px;padding:3px 5px;vertical-align:middle}li input[type=checkbox]{margin:0 .2em .25em -1.6em;vertical-align:middle}.app-nav{left:0;margin:25px 60px 0 0;position:absolute;right:0;text-align:right;z-index:2}.app-nav p{margin:0}.app-nav>a{margin:0 16px;margin:0 1rem;padding:5px 0}.app-nav li,.app-nav ul{display:inline-block;list-style:none;margin:0}.app-nav a{color:inherit;font-size:16px;text-decoration:none;transition:color .3s}.app-nav a.active,.app-nav a:hover{color:#42b983;color:var(--theme-color,#42b983)}.app-nav a.active{border-bottom:2px solid #42b983;border-bottom:2px solid var(--theme-color,#42b983)}.app-nav li{display:inline-block;margin:0 16px;margin:0 1rem;padding:5px 0;position:relative}.app-nav li ul{background-color:#fff;border:1px solid #ddd;border-bottom-color:#ccc;border-radius:4px;box-sizing:border-box;display:none;max-height:calc(100vh - 61px);overflow-y:scroll;padding:10px 0;position:absolute;right:-15px;text-align:left;top:100%;white-space:nowrap}.app-nav li ul li{display:block;font-size:14px;line-height:16px;line-height:1rem;margin:0;margin:8px 14px;white-space:nowrap}.app-nav li ul a{display:block;font-size:inherit;margin:0;padding:0}.app-nav li ul a.active{border-bottom:0}.app-nav li:hover ul{display:block}.app-nav.no-badge{margin-right:25px}.github-corner{border-bottom:0;position:fixed;right:0;text-decoration:none;top:0;z-index:1}.github-corner svg{color:#fff;fill:#42b983;fill:var(--theme-color,#42b983);height:80px;width:80px}.github-corner:hover .octo-arm{-webkit-animation:a .56s ease-in-out;animation:a .56s ease-in-out}main{display:block;position:relative;width:100vw;height:100%;z-index:0}.anchor{display:inline-block;text-decoration:none;transition:all .3s}.anchor span{color:#34495e}.anchor:hover{text-decoration:underline}.sidebar{border-right:1px solid rgba(0,0,0,.07);overflow-y:auto;padding:40px 0 0;top:0;bottom:0;left:0;position:absolute;transition:-webkit-transform .25s ease-out;transition:transform .25s ease-out;transition:transform .25s ease-out,-webkit-transform .25s ease-out;width:300px;z-index:3}.sidebar>h1{margin:0 auto 16px;margin:0 auto 1rem;font-size:24px;font-size:1.5rem;font-weight:300;text-align:center}.sidebar>h1 a{color:inherit;text-decoration:none}.sidebar>h1 .app-nav{display:block;position:static}.sidebar .sidebar-nav{line-height:2em;padding-bottom:40px}.sidebar ul{margin:0;padding:0}.sidebar li>p{font-weight:700;margin:0}.sidebar ul,.sidebar ul li{list-style:none}.sidebar ul li a{border-bottom:none;display:block}.sidebar ul li ul{padding-left:20px}.sidebar::-webkit-scrollbar{width:4px}.sidebar::-webkit-scrollbar-thumb{background:transparent;border-radius:4px}.sidebar:hover::-webkit-scrollbar-thumb{background:hsla(0,0%,53%,.4)}.sidebar:hover::-webkit-scrollbar-track{background:hsla(0,0%,53%,.1)}.sidebar-toggle{background-color:transparent;background-color:hsla(0,0%,100%,.8);border:0;outline:none;padding:10px;bottom:0;left:0;position:absolute;text-align:center;transition:opacity .3s;width:30px;width:284px;z-index:4}.sidebar-toggle .sidebar-toggle-button:hover{opacity:.4}.sidebar-toggle span{background-color:#42b983;background-color:var(--theme-color,#42b983);display:block;margin-bottom:4px;width:16px;height:2px}body.sticky .sidebar,body.sticky .sidebar-toggle{position:fixed}.content{padding-top:60px;top:0;right:0;bottom:0;left:300px;position:absolute;transition:left .25s ease}.markdown-section{margin:0 auto;max-width:800px;padding:40px 15px 40px;position:relative}.markdown-section>*{box-sizing:border-box;font-size:inherit}.markdown-section>:first-child{margin-top:0!important}.markdown-section hr{border:none;border-bottom:1px solid #eee;margin:2em 0}.markdown-section table{border-collapse:collapse;border-spacing:0;display:block;margin-bottom:16px;margin-bottom:1rem;overflow:auto;width:100%}.markdown-section th{font-weight:700}.markdown-section td,.markdown-section th{border:1px solid #ddd;padding:6px 13px}.markdown-section tr{border-top:1px solid #ccc}.markdown-section p.tip,.markdown-section tr:nth-child(2n){background-color:#f8f8f8}.markdown-section p.tip{border-bottom-right-radius:2px;border-left:4px solid #f66;border-top-right-radius:2px;margin:2em 0;padding:12px 24px 12px 30px;position:relative}.markdown-section p.tip code{background-color:#efefef}.markdown-section p.tip em{color:#34495e}.markdown-section p.tip:before{background-color:#f66;border-radius:100%;color:#fff;content:"!";font-family:Dosis,Source Sans Pro,Helvetica Neue,Arial,sans-serif;font-size:14px;font-weight:700;left:-12px;line-height:20px;position:absolute;width:20px;height:20px;text-align:center;top:14px}.markdown-section p.warn{background:rgba(66,185,131,.1);border-radius:2px;padding:16px;padding:1rem}body.close .sidebar{-webkit-transform:translateX(-300px);transform:translateX(-300px)}body.close .sidebar-toggle{width:auto}body.close .content{left:0}@media print{.app-nav,.github-corner,.sidebar,.sidebar-toggle{display:none}}@media screen and (max-width:768px){.github-corner,.sidebar,.sidebar-toggle{position:fixed}.app-nav{margin-top:16px}.app-nav li ul{top:30px}main{height:auto;overflow-x:hidden}.sidebar{left:-300px;transition:-webkit-transform .25s ease-out;transition:transform .25s ease-out;transition:transform .25s ease-out,-webkit-transform .25s ease-out}.content{left:0;max-width:100vw;position:static;padding-top:20px;transition:-webkit-transform .25s ease;transition:transform .25s ease;transition:transform .25s ease,-webkit-transform .25s ease}.app-nav,.github-corner{transition:-webkit-transform .25s ease-out;transition:transform .25s ease-out;transition:transform .25s ease-out,-webkit-transform .25s ease-out}.sidebar-toggle{background-color:transparent;width:auto}body.close .sidebar{-webkit-transform:translateX(300px);transform:translateX(300px)}body.close .sidebar-toggle{background-color:hsla(0,0%,100%,.8);transition:background-color 1s;width:284px}body.close .content{-webkit-transform:translateX(300px);transform:translateX(300px)}body.close .app-nav,body.close .github-corner{display:none}.github-corner .octo-arm{-webkit-animation:a .56s ease-in-out;animation:a .56s ease-in-out}.github-corner:hover .octo-arm{-webkit-animation:none;animation:none}}@-webkit-keyframes a{0%,to{-webkit-transform:rotate(0);transform:rotate(0)}20%,60%{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-webkit-transform:rotate(10deg);transform:rotate(10deg)}}@keyframes a{0%,to{-webkit-transform:rotate(0);transform:rotate(0)}20%,60%{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-webkit-transform:rotate(10deg);transform:rotate(10deg)}}section.cover{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-position:50%;background-repeat:no-repeat;background-size:cover;height:100vh;display:none}section.cover .cover-main{-webkit-box-flex:1;-ms-flex:1;flex:1;margin:-20px 16px 0;text-align:center;z-index:1}section.cover a{color:inherit}section.cover a,section.cover a:hover{text-decoration:none}section.cover p{line-height:24px;line-height:1.5rem;margin:1em 0}section.cover h1{color:inherit;font-size:40px;font-size:2.5rem;font-weight:300;margin:10px 0 40px;margin:.625rem 0 2.5rem;position:relative;text-align:center}section.cover h1 a{display:block}section.cover h1 small{bottom:-7px;bottom:-.4375rem;font-size:16px;font-size:1rem;position:absolute}section.cover blockquote{font-size:24px;font-size:1.5rem;text-align:center}section.cover ul{line-height:1.8;list-style-type:none;margin:1em auto;max-width:500px;padding:0}section.cover .cover-main>p:last-child a{border-color:#42b983;border:1px solid var(--theme-color,#42b983);border-radius:2rem;box-sizing:border-box;color:#42b983;color:var(--theme-color,#42b983);display:inline-block;font-size:16.8px;font-size:1.05rem;letter-spacing:1.6px;letter-spacing:.1rem;margin-right:16px;margin-right:1rem;padding:.75em 32px;padding:.75em 2rem;text-decoration:none;transition:all .15s ease}section.cover .cover-main>p:last-child a:last-child{background-color:#42b983;background-color:var(--theme-color,#42b983);color:#fff;margin-right:0}section.cover .cover-main>p:last-child a:last-child:hover{color:inherit;opacity:.8}section.cover .cover-main>p:last-child a:hover{color:inherit}section.cover blockquote>p>a{border-bottom:2px solid #42b983;border-bottom:2px solid var(--theme-color,#42b983);transition:color .3s}section.cover blockquote>p>a:hover{color:#42b983;color:var(--theme-color,#42b983)}section.cover.show{display:-webkit-box;display:-ms-flexbox;display:flex}section.cover.has-mask .mask{background-color:#fff;opacity:.8;position:absolute;width:100%;height:100%;top:0;bottom: 0;}.sidebar,body{background-color:#fff}.sidebar{color:#364149}.sidebar li{margin:6px 0 6px 15px}.sidebar ul li a{color:#505d6b;font-size:14px;font-weight:400;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.sidebar ul li a:hover{text-decoration:underline}.sidebar ul li ul{padding:0}.sidebar ul li.active>a{border-right:2px solid;color:#42b983;color:var(--theme-color,#42b983);font-weight:600}.app-sub-sidebar li:before{content:"-";padding-right:4px;float:left}.markdown-section h1,.markdown-section h2,.markdown-section h3,.markdown-section h4,.markdown-section strong{color:#2c3e50;font-weight:600}.markdown-section a{color:#42b983;color:var(--theme-color,#42b983);font-weight:600}.markdown-section h1{font-size:32px;font-size:2rem;margin:0 0 16px;margin:0 0 1rem}.markdown-section h2{font-size:28px;font-size:1.75rem;margin:45px 0 12.8px;margin:45px 0 .8rem}.markdown-section h3{font-size:24px;font-size:1.5rem;margin:40px 0 9.6px;margin:40px 0 .6rem}.markdown-section h4{font-size:20px;font-size:1.25rem}.markdown-section h5,.markdown-section h6{font-size:16px;font-size:1rem}.markdown-section h6{color:#777}.markdown-section figure,.markdown-section p{margin:1.2em 0}.markdown-section ol,.markdown-section p,.markdown-section ul{line-height:25.6px;line-height:1.6rem;word-spacing:.8px;word-spacing:.05rem}.markdown-section ol,.markdown-section ul{padding-left:24px;padding-left:1.5rem}.markdown-section blockquote{border-left:4px solid #42b983;border-left:4px solid var(--theme-color,#42b983);color:#858585;margin:2em 0;padding-left:20px}.markdown-section blockquote p{font-weight:600;margin-left:0}.markdown-section iframe{margin:1em 0}.markdown-section em{color:#7f8c8d}.markdown-section code{border-radius:2px;color:#e96900;font-size:12.8px;font-size:.8rem;margin:0 2px;padding:3px 5px;white-space:pre-wrap}.markdown-section code,.markdown-section pre{background-color:#f8f8f8;font-family:Roboto Mono,Monaco,courier,monospace}.markdown-section pre{-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial;line-height:24px;line-height:1.5rem;margin:1.2em 0;overflow:auto;padding:0 22.4px;padding:0 1.4rem;position:relative;word-wrap:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#8e908c}.token.namespace{opacity:.7}.token.boolean,.token.number{color:#c76b29}.token.punctuation{color:#525252}.token.property{color:#c08b30}.token.tag{color:#2973b7}.token.string{color:#42b983;color:var(--theme-color,#42b983)}.token.selector{color:#6679cc}.token.attr-name{color:#2973b7}.language-css .token.string,.style .token.string,.token.entity,.token.url{color:#22a2c9}.token.attr-value,.token.control,.token.directive,.token.unit{color:#42b983;color:var(--theme-color,#42b983)}.token.keyword{color:#e96900}.token.atrule,.token.regex,.token.statement{color:#22a2c9}.token.placeholder,.token.variable{color:#3d8fd1}.token.deleted{text-decoration:line-through}.token.inserted{border-bottom:1px dotted #202746;text-decoration:none}.token.italic{font-style:italic}.token.bold,.token.important{font-weight:700}.token.important{color:#c94922}.token.entity{cursor:help}.markdown-section pre>code{-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial;background-color:#f8f8f8;border-radius:2px;color:#525252;display:block;font-family:Roboto Mono,Monaco,courier,monospace;font-size:12.8px;font-size:.8rem;line-height:inherit;margin:0 2px;max-width:inherit;overflow:inherit;padding:2.2em 5px;white-space:inherit}.markdown-section code:after,.markdown-section code:before{letter-spacing:.8px;letter-spacing:.05rem}code .token{-moz-osx-font-smoothing:initial;-webkit-font-smoothing:initial;min-height:24px;min-height:1.5rem}pre:after{color:#ccc;content:attr(data-lang);font-size:9.6px;font-size:.6rem;font-weight:600;height:15px;line-height:15px;padding:5px 10px 0;position:absolute;right:0;text-align:right;top:0}.community-img{width:300px;height:0;display:block;overflow:hidden;box-shadow:0 0 0 0, 0 6px 12px rgba(0, 0, 0, .5);margin:0 auto;position:fixed;top:36px;right:-56px;z-index:101;transition:.4s all ease-in-out;transform:scale(0) perspective(600px) rotateX(45deg)}.community-img.active{right:10px;height:340px;top:76px;transform:none}.show_community{cursor: pointer}.weex-ui-demo .has-mask{background:linear-gradient(to left bottom, rgb(255, 245, 179) 0, rgb(190, 179, 255) 100%) center center / cover}.weex-ui-demo section.cover.has-mask .cover-main{display:flex;display:-webkit-flex;margin:0 auto;text-align:center;z-index:1;width:800px;-webkit-box-flex:0;-ms-flex:0;flex:0}.weex-ui-demo .cover-main .phone{border-radius:40px;margin:100px 60px 0;overflow:hidden;transition:all .5s ease;width:300px;height:600px;position:relative}.weex-ui-demo .cover-main .phone iframe{border:0;width:100%;height:100%}.weex-ui-demo .cover-main .phone.view{transform:rotateX(0deg) rotateY(0deg) rotateZ(0deg);box-shadow:0 3px 0 #BBB, 0 4px 0 #BBB, 0 7px 0 #BBB, 0 7px 0 #BBB, 0 6px 16px #666}.weex-ui-demo .cover-main .weex-info{text-align:left;display:flex;flex-direction:column;align-items:stretch;justify-content:center;height:800px;width:340px}.weex-ui-demo .cover-main .return-button{position:relative;bottom:60px;display:inline-block;width:45px;height:45px;color:#999;font-size:12px;border-radius:50%;border:4px solid rgba(0, 0, 0, .3);text-decoration:none;line-height:40px;text-align:center;cursor:pointer}.weex-ui-demo .cover-main .weex-info .weex-title{font-weight:400;font-size:2.5rem;color:#34495e;line-height:1;margin:0}.weex-ui-demo .cover-main .weex-info .comp-desc{line-height:1.8rem;font-weight:400;font-size:1.2rem}.weex-ui-demo .cover-main .try-text{color:#F7C242;position:absolute;bottom:10px;right:60px}.docsify-copy-code-button{background:#ccc;color:#fff;position:absolute;top:0;right:0;outline:0;border:0;border-radius:0;cursor:pointer;z-index:1;padding:10px;transition:all .25s ease;opacity:0}.docsify-copy-code-button::after{content:"Copied!";position:absolute;right:100%;top:0;background:#ccc;color:#fff;padding:5px;margin:5px 10px 0;font-size:11px;z-index:0;transition:all .25s ease;transform:translateX(120%) scale(0);border-radius:3px}.docsify-copy-code-button.success::after{transform:translateX(0) scale(1)}pre[v-pre]:hover .docsify-copy-code-button{opacity:1}.tool-docs-header{position:absolute;top:50px;right:0}.tool-tip{display:inline-block;position:relative}.tool-tip::after{background-color:#323a45;border-radius:2px;color:#fff;content:attr(data-tooltip-title) " ";font-weight:normal;min-width:106px;padding:4px 6px;text-align:center;text-transform:none}.tool-tip::before{width:0;height:0;content:""}.tool-tip::before,.tool-tip::after{position:absolute;transition:opacity 250ms ease 0ms, transform 250ms ease 0ms;transform-style:preserve-3d;opacity:0;z-index:-1}.tool-tip[data-tooltip-position="top"]::after{left:50%}.tool-tip[data-tooltip-position="top"]::after{transform:translate3d(-50%, 10px, 0)}.tool-tip[data-tooltip-position="top"]::after{bottom:calc(100% + 10px)}.tool-tip[data-tooltip-position="top"]::before{border-left:7px solid transparent;border-right:7px solid transparent;left:50%}.tool-tip[data-tooltip-position="top"]::before{transform:translate3d(-50%, 10px, 0)}.tool-tip[data-tooltip-position="top"]::before{border-top:7px solid #323a45;bottom:calc(100% + 3px)}.tool-tip:hover::before,.tool-tip:hover::after{opacity:1;z-index:100}.tool-tip[data-tooltip-position="top"]:hover::before,.tool-tip[data-tooltip-position="bottom"]:hover::before,.tool-tip[data-tooltip-position="top"]:hover::after,.tool-tip[data-tooltip-position="bottom"]:hover::after{transform:translate3d(-50%, 0, 0)} diff --git a/docs/weex-ui-weex-conf-2018.md b/docs/weex-ui-weex-conf-2018.md index 82b0c12e..f671c618 100644 --- a/docs/weex-ui-weex-conf-2018.md +++ b/docs/weex-ui-weex-conf-2018.md @@ -1,5 +1,7 @@ ## Weex + Ui - Weex Conf 2018 +*Welcome to [translate](https://github.com/alibaba/weex-ui/blob/master/docs/weex-ui-weex-conf-2018.md) this article.* + 本文是2018年 Weex Conf 中议题《Weex + Ui》的内容文档整理,主要给大家介绍飞猪 Weex 技术体系从无到有的过程,包括 Weex Ui 组件库的开发和发展,重点分享在 Weex Ui 层建设的一些经验。 文章较长,首先放上 Weex Ui 的开源地址,欢迎大家提PR,同时也可以通过 Star 来表示你的喜欢。 diff --git a/example/ep-slider/index.vue b/example/ep-slider/index.vue index f0b4c9f3..04ab5ecb 100644 --- a/example/ep-slider/index.vue +++ b/example/ep-slider/index.vue @@ -38,6 +38,7 @@ :key="index" :ext-id="index" :class="['slider',`slider${index}`]" + url="https://h5.m.taobao.com/trip/weex-ui/demo/index.native-min.js" @wxcPanItemPan="wxcPanItemPan" @wxcPanItemClick="wxcPanItemClick" :slot="`card${index}_${autoSliderId}`" diff --git a/package.json b/package.json index 11eac398..56e193a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "weex-ui", - "version": "0.3.13beta3", + "version": "0.3.13", "description": "A rich interaction, lightweight, high performance UI library based on Weex", "main": "index.js", "lib": "vue", diff --git a/packages/utils/index.js b/packages/utils/index.js index 4545eca4..b5ef990e 100644 --- a/packages/utils/index.js +++ b/packages/utils/index.js @@ -70,7 +70,7 @@ const Utils = { return parsedUrl.toString(); }, goToH5Page (jumpUrl, animated = false, callback = null) { - const Navigator = weex.requireModule('navigator') + const Navigator = weex.requireModule('navigator'); const jumpUrlObj = new Utils.UrlParser(jumpUrl, true); const url = Utils.appendProtocol(jumpUrlObj.toString()); Navigator.push({