Open tw93 opened 6 years ago
详细可见 https://github.com/alibaba/weex-ui/issues/175
0.5.1
0.18.0
weex-toolkit
v1.2.7 weexpack : v1.1.5 weex-debugger : v1.0.3 weex-builder : v0.3.15 weex-previewer : v1.4.4
环境:mac os 10.13.2 问题描述: import {WxcButton, WxcDialog} from 'weex-ui' components: {'base_list': BaseList, WxcButton, WxcDialog},
mac os 10.13.2
import {WxcButton, WxcDialog} from 'weex-ui'
components: {'base_list': BaseList, WxcButton, WxcDialog},
UI: <template> <div> <base_list :isShowResult="isShowResult" :refreshing="refreshing" :isShowLoading="isShowLoading" :refreshText="refreshText" @refresh="getOrderList" @loadMore="loadMore"> <cell slot="item" v-for="item in list" :key="item.orderId"> <div class="order_item" v-on:click="orderItemClick(item.orderId)"> <div class="order_div_header"> <div class="order_div_shop_name"> <text class="order_text_shop_name" v-on:click="orderShopClick(item.shopName,item.shopId)">{{item.shopName}}</text> <image class="order_img_shop_name" src="http://ldapp.oss-cn-shanghai.aliyuncs.com/image/right_arrow_ccc.png"></image> </div> <text class="order_text_status_name">{{item.statusName}}</text> </div> <div class="order_line"/> <div class="order_div_content"> <div class="order_div_content_products"> <div v-for="(product,index) in item.orderItems" :key="product.id"> <image class="order_img_product" :src="product.imageUrl" v-if="index<3"/> </div> </div> <image resize="contain" class="order_img_product_arrow" v-if="item.orderItems.length>3" src="http://ldapp.oss-cn-shanghai.aliyuncs.com/image/product_more.png"/> <div class="order_div_product_detail"> <text class="order_text_product_amount">¥{{item.totalAmount}}</text> <text class="order_text_product_num">共{{item.goodsCount}}件</text> <text class="order_text_product_arrive" v-if="item.deliveryTypeName">{{item.deliveryTypeName}}</text> </div> </div> <div class="order_line"/> <div class="order_div_footer"> <text class="order_text_time">{{formatOrderTime(item.orderTime)}}</text> <div class="order_div_button"> <div v-for="button in item.buttonAction" :key="button.name"> <wxc-button :text="button.name" type="normal" :text-style="orderBtnTextStyle" :btn-style="orderBtnStyle" @wxcButtonClicked="orderBtnClick(item.orderId,button)"/> </div> </div> </div> </div> </cell> </base_list> <wxc-dialog title="提示" content="你确定要取消订单吗?" main-btn-color="#42BD56" :show="orderCancelDialogShow" @wxcDialogCancelBtnClicked="wxcDialogOrderCancelBtnClicked" @wxcDialogConfirmBtnClicked="wxcDialogOrderConfirmBtnClicked"> </wxc-dialog> <wxc-dialog title="提示" content="你确定已经收到货了吗?" main-btn-color="#42BD56" :show="orderLogisticsDialogShow" @wxcDialogCancelBtnClicked="wxcDialogLogisticsCancelBtnClicked" @wxcDialogConfirmBtnClicked="wxcDialogLogisticsConfirmBtnClicked"> </wxc-dialog> </div> </template>
发现一个问题 ,同时使用两个WxcDialog后,会编译速度变慢,电脑风扇疯狂运转,并且一直卡在13%,如下图:
目前发现如果只使用一个WxcDialog节点,编译速度就正常了。暂时没发现其他weex-ui组件会这样。 望解答,或者有更好的方法,请指导!
详细可见 https://github.com/alibaba/weex-ui/issues/175
1.Your development environment(weex、weex-toolkit、system and more).
0.5.1
0.18.0
weex-toolkit
环境:
mac os 10.13.2
问题描述:import {WxcButton, WxcDialog} from 'weex-ui'
components: {'base_list': BaseList, WxcButton, WxcDialog},
发现一个问题 ,同时使用两个WxcDialog后,会编译速度变慢,电脑风扇疯狂运转,并且一直卡在13%,如下图: