¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <uvImage |
| | | :src="src" |
| | | :mode="mode" |
| | | :width="width" |
| | | :height="height" |
| | | :shape="shape" |
| | | :radius="radius" |
| | | :lazyLoad="lazyLoad" |
| | | :showMenuByLongpress="showMenuByLongpress" |
| | | :loadingIcon="loadingIcon" |
| | | :errorIcon="errorIcon" |
| | | :showLoading="showLoading" |
| | | :showError="showError" |
| | | :fade="fade" |
| | | :webp="webp" |
| | | :duration="duration" |
| | | :bgColor="bgColor" |
| | | :customStyle="customStyle" |
| | | @click="$emit('click')" |
| | | @error="$emit('error')" |
| | | @load="$emit('load')" |
| | | > |
| | | <template v-slot:loading> |
| | | <slot name="loading"></slot> |
| | | </template> |
| | | <template v-slot:error> |
| | | <slot name="error"></slot> |
| | | </template> |
| | | </uvImage> |
| | | </template> |
| | | |
| | | <script> |
| | | /** |
| | | * æ¤ç»ä»¶åå¨ççç±æ¯ï¼å¨nvueä¸ï¼u-image被uni-app宿¹å ç¨äºï¼u-imageå¨nvueä¸ç¸å½äºimageç»ä»¶ |
| | | * æä»¥å¨nvueä¸ï¼åå为u--imageï¼å
é¨å
¶å®è¿æ¯u-iamge.vueï¼åªä¸è¿åä¸å±ä¸è½¬ |
| | | */ |
| | | import uvImage from '../u-image/u-image.vue'; |
| | | import props from '../u-image/props.js'; |
| | | export default { |
| | | name: 'u--image', |
| | | mixins: [uni.$u.mpMixin, props, uni.$u.mixin], |
| | | components: { |
| | | uvImage |
| | | }, |
| | | } |
| | | </script> |