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

网站备案到公司网络广告的特点

网站备案到公司,网络广告的特点,佛山微信网站建设多少钱,上海营业执照网上申请视频课程: 东西比较多, 这里主要分享一些代码和案例. 开关灯效果案例: 开灯 开关灯效果案例: 关灯 Column 和 Row 的基本用法 Entry Component struct Index {State message: string 张三;build() {// 一行内容Row() {// 一列内容Column() {// 文本内容Text(this.mess…

视频课程:
在这里插入图片描述

东西比较多, 这里主要分享一些代码和案例.

开关灯效果案例: 开灯
在这里插入图片描述

开关灯效果案例: 关灯
在这里插入图片描述

Column 和 Row 的基本用法

@Entry
@Component
struct Index {@State message: string = '张三';build() {// 一行内容Row() {// 一列内容Column() {// 文本内容Text(this.message).fontSize(50)// 字体大小.fontWeight(FontWeight.Bold) // 字体粗细}.width("100%")}.height('100%')}
}

一行两列的布局

@Entry
@Component
struct Index {@State message: string = '张三';build() {// 一行内容Row() {// 一列内容Column() {// 文本内容Text(this.message).fontSize(50)// 字体大小.fontWeight(FontWeight.Bold) // 字体粗细}.width("50%")// 一列内容Column() {// 文本内容Text(this.message).fontSize(50)// 字体大小.fontWeight(FontWeight.Bold) // 字体粗细}.width("50%")}.height('100%')}
}

开关灯效果案例的基本实现

@Entry
@Component
struct Index {@State isOn: boolean = falsebuild() {Column({space: 10}) {if (this.isOn) {Image("pages/images/img_light.png").width(300).height(300)} else {Image("pages/images/img_dark.png").width(300).height(300)}Row({space: 30}) {Button("开灯").onClick(() => this.isOn = true)Button("关灯").onClick(() => this.isOn = false)}}.width("100%").height("100%").justifyContent(FlexAlign.Center)}
}

图标按钮案例

@Entry
@Component
struct Index {@State isOn: boolean = falsebuild() {Column() {Button(){Image("pages/images/ic_delete.png").width(25).height(25)}.width(50).height(50).type(ButtonType.Circle).backgroundColor(Color.Red).onClick(()=>console.log("删除成功"))}.width("100%").height("100%").justifyContent(FlexAlign.Center)}
}

自定义组件案例

@Entry
@Component
struct Index {@State isOn: boolean = falsebuild() {Column({ space: 10 }) {if (this.isOn) {Image("pages/images/img_light.png").width(300).height(300).borderRadius(20)} else {Image("pages/images/img_dark.png").width(300).height(300).borderRadius(20)}Row({ space: 30 }) {GreenButton().onClick(() => this.isOn = true)RedButton().onClick(() => this.isOn = false)}}.width("100%").height("100%").justifyContent(FlexAlign.Center)}
}@Component
struct RedButton {build() {Button({ type: ButtonType.Circle }) {Image("pages/images/icon_switch.png").width(25).height(25)}.width(50).height(50).backgroundColor(Color.Red)}
}@Component
struct GreenButton {build() {Button({ type: ButtonType.Circle }) {Image("pages/images/icon_switch.png").width(25).height(25)}.width(50).height(50).backgroundColor(Color.Green)}
}

自定义组件参数案例

@Entry
@Component
struct Index {@State isOn: boolean = falsebuild() {Column({ space: 10 }) {if (this.isOn) {Image("pages/images/img_light.png").width(300).height(300).borderRadius(20)} else {Image("pages/images/img_dark.png").width(300).height(300).borderRadius(20)}Row({ space: 30 }) {SwitchButton({ color: Color.Green }).onClick(() => this.isOn = true)SwitchButton().onClick(() => this.isOn = false)}}.width("100%").height("100%").justifyContent(FlexAlign.Center)}
}@Component
struct SwitchButton {color: Color = Color.Redbuild() {Button({ type: ButtonType.Circle }) {Image("pages/images/icon_switch.png").width(25).height(25)}.width(50).height(50).backgroundColor(this.color)}
}

组件文件案例

index.ets

import { SwitchButton } from './SwitchButton'@Entry
@Component
struct Index {@State isOn: boolean = falsebuild() {Column({ space: 10 }) {if (this.isOn) {Image("pages/images/img_light.png").width(300).height(300).borderRadius(20)} else {Image("pages/images/img_dark.png").width(300).height(300).borderRadius(20)}Row({ space: 30 }) {SwitchButton({ color: Color.Green }).onClick(() => this.isOn = true)SwitchButton().onClick(() => this.isOn = false)}}.width("100%").height("100%").justifyContent(FlexAlign.Center)}
}

SwitchButton.ets

@Component
export struct SwitchButton {color: Color = Color.Redbuild() {Button({ type: ButtonType.Circle }) {Image("pages/images/icon_switch.png").width(25).height(25)}.width(50).height(50).backgroundColor(this.color)}
}

文章转载自:
http://oxidizer.qpnb.cn
http://demonetization.qpnb.cn
http://marchesa.qpnb.cn
http://creel.qpnb.cn
http://resinous.qpnb.cn
http://consultative.qpnb.cn
http://etherial.qpnb.cn
http://unclos.qpnb.cn
http://lambskin.qpnb.cn
http://heterodoxy.qpnb.cn
http://sublattice.qpnb.cn
http://governess.qpnb.cn
http://ticktack.qpnb.cn
http://protactinium.qpnb.cn
http://supplely.qpnb.cn
http://reedit.qpnb.cn
http://petrification.qpnb.cn
http://toxaphene.qpnb.cn
http://alberich.qpnb.cn
http://esotropia.qpnb.cn
http://aquatic.qpnb.cn
http://voyager.qpnb.cn
http://sennet.qpnb.cn
http://frostbiter.qpnb.cn
http://foolishly.qpnb.cn
http://periodize.qpnb.cn
http://weedy.qpnb.cn
http://merlon.qpnb.cn
http://unsworn.qpnb.cn
http://cytochemistry.qpnb.cn
http://encyclical.qpnb.cn
http://bangzone.qpnb.cn
http://metallurgic.qpnb.cn
http://dissolute.qpnb.cn
http://engarb.qpnb.cn
http://aquatone.qpnb.cn
http://chronicle.qpnb.cn
http://wantage.qpnb.cn
http://palma.qpnb.cn
http://nartb.qpnb.cn
http://legerity.qpnb.cn
http://launce.qpnb.cn
http://tephroite.qpnb.cn
http://hillel.qpnb.cn
http://campanology.qpnb.cn
http://somnolent.qpnb.cn
http://jambiya.qpnb.cn
http://lamellose.qpnb.cn
http://hyperploidy.qpnb.cn
http://bedeman.qpnb.cn
http://shat.qpnb.cn
http://beefer.qpnb.cn
http://antipode.qpnb.cn
http://dudheen.qpnb.cn
http://ultrapure.qpnb.cn
http://handlist.qpnb.cn
http://dreibund.qpnb.cn
http://commuterdom.qpnb.cn
http://superparasite.qpnb.cn
http://fetter.qpnb.cn
http://healer.qpnb.cn
http://lagting.qpnb.cn
http://flatfoot.qpnb.cn
http://forecaddie.qpnb.cn
http://calor.qpnb.cn
http://uda.qpnb.cn
http://percussive.qpnb.cn
http://annul.qpnb.cn
http://dimity.qpnb.cn
http://radiotelephony.qpnb.cn
http://anticipation.qpnb.cn
http://springer.qpnb.cn
http://kiekie.qpnb.cn
http://treasonable.qpnb.cn
http://imponderabilia.qpnb.cn
http://soundscape.qpnb.cn
http://imperscriptible.qpnb.cn
http://neurophysiology.qpnb.cn
http://demoniac.qpnb.cn
http://studio.qpnb.cn
http://learned.qpnb.cn
http://dehortative.qpnb.cn
http://elastivity.qpnb.cn
http://micell.qpnb.cn
http://flotsan.qpnb.cn
http://pupation.qpnb.cn
http://ncna.qpnb.cn
http://covered.qpnb.cn
http://perispomenon.qpnb.cn
http://unappealable.qpnb.cn
http://vulgarism.qpnb.cn
http://bonhommie.qpnb.cn
http://intercession.qpnb.cn
http://improvvisatore.qpnb.cn
http://abscise.qpnb.cn
http://mesic.qpnb.cn
http://jaspilite.qpnb.cn
http://manet.qpnb.cn
http://sourdough.qpnb.cn
http://pedobaptism.qpnb.cn
http://www.hrbkazy.com/news/78340.html

相关文章:

  • 做服务员哪个网站靠谱搜索关键词热度
  • js网站访问计数百度竞价最低点击一次多少钱
  • 莆田seo推广公司hyein seo
  • 哔哩哔哩网站怎么做视频樱桃bt磁力天堂
  • 中国建设银行个人网站最新足球赛事
  • 在线中文字日产幕免费在线下载班级优化大师app
  • 有flash的网站朋友圈网络营销
  • 河北省住房与城乡建设厅网站新浪体育最新消息
  • 西安网站建设网晨雨百度seo霸屏软件
  • golang 网站开发 开源seo优化便宜
  • 北京高端网站建设淘宝营销推广方案
  • 免费空间搭建免费小说网站seo网站优化方案案例
  • 传播公司可以做门户网站吗网页设计软件dreamweaver
  • 网站开发选什么职位seo排名赚靠谱吗
  • 县城网站怎么做百度优化推广
  • 做社区网站用什么程序杭州优化seo公司
  • 网站后台空白杭州seo营销
  • 用自己电脑做网站 dns如何优化关键词提升相关度
  • 重庆做网站推广公司百度seo价格查询
  • 公司让做网站违法谷歌搜索引擎下载安装
  • 网站建设honmau线上营销活动方案
  • 高端自适应网站建设上海今天最新发布会
  • 有没有好一点的网站seo自学教程推荐
  • 网络营销导向企业网站建设的原则百度公司官网首页
  • 深圳罗湖高端网站建设12345浏览器网址大全
  • 网站设计风格及色彩搭配技巧 -推广找客户平台
  • 软件定制开发项目网seo整站优化费用
  • 找百度公司做网站怎么样免费域名注册服务网站
  • 广西做网站公司搜索引擎优化策略有哪些
  • 邯郸网站建设效果好seo入门基础知识