当前位置: 首页 > wzjs >正文

网站后台如何备份专业优定软件网站建设

网站后台如何备份,专业优定软件网站建设,宁波网站seo,都哪些网站可以做gif摘要: 图片组件(A_Image):可设置图片地址、图片宽度、图片高度、圆角类型及是否显示外框线。圆角类型支持普通圆角、圆形及无圆角。 一、组件调用方式 1.极简调用 只需要输入A_Image,然后给src(图片地址)属性赋值即可…

摘要:

图片组件(A_Image):可设置图片地址、图片宽度、图片高度、圆角类型及是否显示外框线。圆角类型支持普通圆角、圆形及无圆角。

一、组件调用方式

1.极简调用

只需要输入A_Image,然后给src(图片地址)属性赋值即可。默认宽度和高度均为300vp,方角。

2.更多属性

输入A_Image,然后给src(图片地址)属性赋值,可设置图片宽度(imageWidth)、图片高度(imageHeight)、圆角类型(radius)和使用外框线(imageOutline)。

3.圆形图片

输入A_Image,然后给src(图片地址)属性赋值,可设置图片宽度(imageWidth),将圆角类型 radius设置为 circle(圆形)。如下图所示:

页面调用代码如下:

  GridCol({ span: 4 }) {A_Image({src: 'https://cdn.aigcoder.com/sample/Image/image1.jpeg',imageWidth: 300,imageHeight: 300,})}GridCol({ span: 4 }) {A_Image({src: 'https://cdn.aigcoder.com/sample/Image/image4.jpeg',imageWidth: 240,imageHeight: 160,radius: 'radius',imageOutline: true})}GridCol({ span: 4 }) {A_Image({src: 'https://cdn.aigcoder.com/sample/Image/image2.jpeg',imageWidth: 120,imageHeight: 300,radius: 'circle',})}

本地模拟器下浅色模式和深色模式运行效果如下:

二、在线排版

1.极简调用

1.1、将图片组件拖拽到页面排版区

1.2、设置图片地址

1.3、保存设置

2.更多属性

2.1、将图片组件拖拽到页面排版区

2.2、设置图片地址、宽度、高度、圆角类型、显示外框线

2.3、保存设置

3.圆形图片

3.1、将图片组件拖拽到页面排版区

3.2、设置宽度,圆角设置为圆形

3.3、保存设置

生成纯血鸿蒙代码:

三、组件源码

图片组件的完整源码如下:

/** Copyright (c) 2024 AIGCoder.com(AI极客)* Licensed under the Apache License, Version 2.0 (the "License");* you may not use this file except in compliance with the License.* You may obtain a copy of the License at**     http://www.apache.org/licenses/LICENSE-2.0** Unless required by applicable law or agreed to in writing, software* distributed under the License is distributed on an "AS IS" BASIS,* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.* See the License for the specific language governing permissions and* limitations under the License.*//**调用示例一:极简调用A_Image({src: 'https://cdn.aigcoder.com/sample/Image/image1.jpeg'})调用示例二:更多属性A_Image({src: 'https://cdn.aigcoder.com/sample/Image/image4.jpeg',imageWidth: 300,imageHeight: 200,radius: 'radius',imageOutline: true})*/import { ColorConstants } from "../../constants/ColorConstants"
import { FloatConstants } from "../../constants/FloatConstants"
import { GirdConstants } from "../../constants/GirdConstants"/*** 【图片】* src:图片地址(支持远程图片和本地资源)* imageWidth:图片宽度* imageHeight:图片高度* radius:圆角类型(支持radius,circle,normal)* imageOutline:是否显示外框线*/
@Component
export struct A_Image {@Prop src: string = ''@Prop imageWidth?: number@Prop imageHeight?: number@Prop radius?: string = 'normal'@Prop imageOutline?: boolean = false@State compWidth: number = 150@State compHeight: number = 150aboutToAppear(): void {if(this.imageWidth !== undefined){this.compWidth = this.imageWidth}if(this.imageHeight !== undefined){this.compHeight = this.imageHeight}if(!(this.src.startsWith("http://") || this.src.startsWith("https://"))){this.src = this.src === '' ? 'app.media.mdi_image' : 'app.media.' + this.src}}build() {Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center}){Image((this.src.startsWith("http://") || this.src.startsWith("https://")) ? this.src : $r(this.src)).width(GirdConstants.FULL_PERCENT).height(GirdConstants.FULL_PERCENT).objectFit(ImageFit.Cover).opacity((this.src === '') ? 0.6 : 1).borderRadius((this.radius == 'radius') ? FloatConstants.RADIUS_ICON : ((this.radius == 'circle') ? this.compWidth/2 : 0))}.width(this.compWidth).height(this.radius == 'circle' ? this.compWidth : this.compHeight).padding(this.imageOutline ? FloatConstants.SPACE_S : 0).backgroundColor(ColorConstants.CARD_BG).borderRadius((this.radius == 'radius') ? FloatConstants.RADIUS_ICON : ((this.radius == 'circle') ? this.compWidth/2 : 0))}
}

四、资源下载 

AIGCoder.com-AI极客


    文章转载自:

    http://nguR304K.srmpc.cn
    http://G96ORdnw.srmpc.cn
    http://GvfTQg95.srmpc.cn
    http://4TG6Y9VJ.srmpc.cn
    http://K3gCEiqk.srmpc.cn
    http://sjL9Tf1H.srmpc.cn
    http://vp64JE9V.srmpc.cn
    http://87Upn0Do.srmpc.cn
    http://To4viELo.srmpc.cn
    http://mCTRlBt4.srmpc.cn
    http://J2DRv7y4.srmpc.cn
    http://P1FGEFdR.srmpc.cn
    http://mImqa28p.srmpc.cn
    http://MVekKHKE.srmpc.cn
    http://dwLVnYGW.srmpc.cn
    http://jxE07mIf.srmpc.cn
    http://rKbJtErx.srmpc.cn
    http://aXMAd2X0.srmpc.cn
    http://iN7ZGLPe.srmpc.cn
    http://DaNI91Ly.srmpc.cn
    http://R8LAhEuP.srmpc.cn
    http://Z5BqOsrr.srmpc.cn
    http://kyi7MQ49.srmpc.cn
    http://qQnvk9hi.srmpc.cn
    http://3bmcA7DJ.srmpc.cn
    http://lYzZiC2k.srmpc.cn
    http://YFYfWFOs.srmpc.cn
    http://u5xCYKW1.srmpc.cn
    http://eh1lBOrg.srmpc.cn
    http://Hy6VsfEN.srmpc.cn
    http://www.dtcms.com/wzjs/652496.html

    相关文章:

  1. 模板网站制作电子商务网站的建设开发工具
  2. 提供网站建设工具的公司中国建设银官方网站
  3. 网站vi设计公司WordPress更新时间
  4. 洛阳有建社网站的吗住房和建设局
  5. 网站建设注册网络销售渠道
  6. 网站建设前台后台中华建设网
  7. 做特卖网站有哪些大连网站建设与维护题库
  8. 网站的域名是什么意思可以接外包的网站
  9. 慈溪网站建设哪家好泰安房产网签查询系统
  10. 微站官网天津建设工程信息网官网首页
  11. 保定建站公司模板网站建设的流程和内容
  12. 企业为什么要做建站学的建筑专业后悔一辈子
  13. 网站建设自适应网站常州市新北区建设局网站
  14. 文本网站代码空两格怎么做曲靖网站推广
  15. 自己电脑做网站好吗网站流量如何做
  16. 小学做试卷的网站年终总结汇报ppt模板免费
  17. 怎么看网站是不是用凡客做的怎样做品牌推广网站
  18. 漳州做网站最便宜wordpress后台添加自定义输入框
  19. 如何在百度举报网站成都环境设计公司
  20. 酒水招商网站大全邢台短视频优化
  21. 实验中心网站建设千博企业网站管理系统2013
  22. 上海外贸网站seo网站优化培训公司
  23. 网站做担保交易 是否资质wordpress 作品相册
  24. 开发一个微信公众号关键词优化需要从哪些方面开展?
  25. 开发网站网络公司wordpress构架都是模板
  26. qq空间做网站芜湖市住房和城乡建设厅网站
  27. 自己电脑做服务器搭建网站文件大小 wordpress
  28. 网站制作厂家电话多少站长工具whois查询
  29. 云南手机网站开发方正悠黑使用网站建设侵权么
  30. 做投资网站安徽智能网站建设推荐