{"dependencies":[{"ETag":"99914B932BD37A50B983C5E7C90AE93B","name":"0.json","size":2,"type":"json","url":"https://gw.alipayobjects.com/os/herbox/5f5dac74-5b95-46c4-a9b1-7919a6670713/0.json"}],"sourceCode":{"app.acss":"page {\n background-color: #F7F7F7;\n border: 1px solid rgba(0,0,0,0);\n box-sizing: border-box;\n}\n\n.page {\n font-family: -apple-system-font,Helvetica Neue,Helvetica,sans-serif;\n font-size: 24rpx;\n padding: 32rpx;\n flex: 1;\n}\n\n.page-description {\n margin-bottom: 32rpx;\n}\n\n.page-section {\n background: #fff;\n margin-bottom: 32rpx;\n}\n\n.page-section-title {\n padding: 16rpx 32rpx;\n}\n\n.page-section-demo {\n padding: 32rpx;\n}\n\n.page-section-btns {\n border-top: 1px solid #ddd;\n display: flex;\n justify-content: space-around;\n align-items: center;\n}\n\n.page-section-btns > view {\n flex: 1;\n height: 84rpx;\n display: flex;\n align-items: center;\n justify-content: space-around;\n color: #49a9ee;\n}\n.page-section-btns > view + view {\n border-left: 1px solid #ddd;\n}\n\nbutton {\n margin-top:20rpx;\n margin-bottom:20rpx;\n}\n\n.bc_blue {\n background-color: #49A9EE;\n}\n\n.bc_red {\n background-color: #F04134;\n}\n\n.bc_yellow {\n background-color: #FFBF00;\n}\n\n.bc_green {\n background-color: #00A854;\n}\n\n.form-row {\n display: flex;\n align-items: center;\n padding: 0 30rpx;\n height: 88rpx;\n align-items: center;\n}\n\n.form-row-label {\n width: 180rpx;\n font-size: 34rpx;\n margin-right: 10rpx;\n text-align: left;\n color: #000;\n}\n\n.form-row-content {\n flex: 1;\n font-size: 34rpx;\n}\n\n.form-line {\n height: 1px;\n background-color: #ddd;\n margin-left: 30rpx;\n}\n","app.js":"App({\n onLaunch(options) {\n console.log('app onLaunch: options: ', options);\n },\n onShow() {\n console.log('app onShow');\n },\n onHide() {\n console.log('app onHide');\n },\n onError(msg) {\n console.log('app OnError: ', msg);\n },\n globalData: 'I am global data',\n});\n","app.json":"{\n \"pages\": [\n \"demo/index\"\n ],\n \"window\": {\n \"defaultTitle\": \"Demo\",\n \"enableWK\": \"YES\",\n \"enableDSL\": true\n }\n}\n","demo/index.acss":".page-section-demo {\n display: flex;\n justify-content: space-around;\n}\n.image {\n background-color: red;\n width: 100px;\n height: 100px;\n}\n","demo/index.axml":"<view class=\"page\">\n <view class=\"page-description\">图片</view>\n <view class=\"page-section\" a:for=\"{{array}}\" a:for-item=\"item\">\n <view class=\"page-section-title\">{{item.text}}</view>\n <view class=\"page-section-demo\" onTap=\"onTap\">\n <image class=\"image\"\n data-name=\"{{item.mode}}\"\n onTap=\"onTap\"\n mode=\"{{item.mode}}\" src=\"{{src}}\" onError=\"imageError\" onLoad=\"imageLoad\" />\n </view>\n </view>\n</view>\n","demo/index.js":"Page({\n data: {\n array: [{\n mode: 'scaleToFill',\n text: 'scaleToFill:不保持纵横比缩放图片,使图片完全适应',\n }, {\n mode: 'aspectFit',\n text: 'aspectFit:保持纵横比缩放图片,使图片的长边能完全显示出来',\n }, {\n mode: 'aspectFill',\n text: 'aspectFill:保持纵横比缩放图片,只保证图片的短边能完全显示出来',\n }, {\n mode: 'widthFix',\n text: 'widthFix:宽度不变,高度自动变化,保持原图宽高比不变',\n }, {\n mode: 'top',\n text: 'top:不缩放图片,只显示图片的顶部区域',\n }, {\n mode: 'bottom',\n text: 'bottom:不缩放图片,只显示图片的底部区域',\n }, {\n mode: 'center',\n text: 'center:不缩放图片,只显示图片的中间区域',\n }, {\n mode: 'left',\n text: 'left:不缩放图片,只显示图片的左边区域',\n }, {\n mode: 'right',\n text: 'right:不缩放图片,只显示图片的右边边区域',\n }, {\n mode: 'top left',\n text: 'top left:不缩放图片,只显示图片的左上边区域',\n }, {\n mode: 'top right',\n text: 'top right:不缩放图片,只显示图片的右上边区域',\n }, {\n mode: 'bottom left',\n text: 'bottom left:不缩放图片,只显示图片的左下边区域',\n }, {\n mode: 'bottom right',\n text: 'bottom right:不缩放图片,只显示图片的右下边区域',\n }],\n src: 'https://gw.alipayobjects.com/mdn/rms_eb2664/afts/img/A*bFuBQZuNErMAAAAAAAAAAABkARQnAQ',\n },\n imageError(e) {\n console.log('image 发生 error 事件,携带值为', e.detail.errMsg);\n },\n onTap(e) {\n console.log('image 发生 tap 事件', e);\n },\n imageLoad(e) {\n console.log('image 加载成功', e);\n },\n});\n","demo/index.json":"{\n \"defaultTitle\": \"Image\"\n}"},"dist":[{"ETag":"B173D02181335AB3DF6950B1C6F1AA57","name":"0.json","size":75488,"type":"json","url":"https://gw.alipayobjects.com/os/herbox/f4ee69a3-56b7-4d86-b1b0-cd79611e4463/0.json"}]}