wangliang_wd

feat:调整动态卡图片标签

@@ -187,30 +187,30 @@ struct createImg { @@ -187,30 +187,30 @@ struct createImg {
187 187
188 @Builder 188 @Builder
189 longPicTip(weight: number, height: number) { 189 longPicTip(weight: number, height: number) {
190 - Flex({ direction: FlexDirection.Row }) {  
191 - Image($r('app.media.icon_long_pic'))  
192 - .width(12)  
193 - .height(12)  
194 - .margin({ right: 4 })  
195 - Text('长图')  
196 - .fontSize(10)  
197 - .fontWeight(400)  
198 - .textShadow({  
199 - radius: 1,  
200 - color: `rgba(0,0,0,0.5)`,  
201 - offsetY:1,  
202 - offsetX:1  
203 - })  
204 - .fontColor(0xffffff)  
205 - .fontFamily('PingFang SC')  
206 - .visibility(  
207 - weight / height > 2 || height / weight > 2  
208 - ? Visibility.Visible : Visibility.None  
209 - )  
210 - }  
211 - .width(48)  
212 - .align(Alignment.BottomEnd)  
213 - .padding({ bottom: 8 }) 190 + // Flex({ direction: FlexDirection.Row }) {
  191 + // Image($r('app.media.icon_long_pic'))
  192 + // .width(12)
  193 + // .height(12)
  194 + // .margin({ right: 4 })
  195 + // Text('长图')
  196 + // .fontSize(10)
  197 + // .fontWeight(400)
  198 + // .textShadow({
  199 + // radius: 1,
  200 + // color: `rgba(0,0,0,0.5)`,
  201 + // offsetY:1,
  202 + // offsetX:1
  203 + // })
  204 + // .fontColor(0xffffff)
  205 + // .fontFamily('PingFang SC')
  206 + // .visibility(
  207 + // weight / height > 2 || height / weight > 2
  208 + // ? Visibility.Visible : Visibility.None
  209 + // )
  210 + // }
  211 + // .width(48)
  212 + // .align(Alignment.BottomEnd)
  213 + // .padding({ bottom: 8 })
214 } 214 }
215 215
216 build() { 216 build() {