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

做企业网站需要注意什么新乡seo外包

做企业网站需要注意什么,新乡seo外包,net建站系统,杭州有专业做网站小型服装厂吗1、描述 栅格容器组件,仅可以和栅格子组件(GridCol)在栅格布局场景中使用。 2、子组件 可以包含GridCol子组件。 3、接口 GridRow(options:{columns: number | GridRowColumnOption, gutter?: Length | GutterOption, Breakpoints?: B…

1、描述

栅格容器组件,仅可以和栅格子组件(GridCol)在栅格布局场景中使用。

2、子组件

可以包含GridCol子组件。

3、接口

GridRow(options:{columns: number | GridRowColumnOption, gutter?: Length | GutterOption, Breakpoints?: Breakpoints, direction?: GridRowDirection})

4、参数

参数名

参数类型

必填

描述

columns

number | GridRowColumnOption

设置布局列数。

gutter

Length | GutterOption

栅格布局间距,x代表水平方向,y代表竖直方向。

Breakpoints

Breakpoints

设置断点值的断点数列以及基于窗口或容器尺寸的相应参照。

direction

GridRowDirection

栅格布局排列方向。

5、GridRowColumnOption枚举说明:

栅格在不同宽度设备类型下,栅格列数。

参数名

参数类型

参数描述

xs

number

最小宽度类型设备。

sm

number

小宽度类型设备。

md

number

中等宽度类型设备。

lg

number

大宽度类型设备。

xl

number

特大宽度类型设备。

xxl

number

超大宽度类型设备。

6、GutterOption说明:

参数名

参数类型

参数描述

x

Length | GridRowSizeOption

水平gutter option。

y

Length | GridRowSizeOption

竖直gutter option。

7、GridRowSizeOption说明:

栅格在不同宽度设备类型下,gutter的大小。

参数名

参数类型

参数描述

xs

number

最小宽度类型设备。

sm

number

小宽度类型设备。

md

number

中等宽度类型设备。

lg

number

大宽度类型设备。

xl

number

特大宽度类型设备。

xxl

number

超大宽度类型设备。

8、BreakPoints说明:

参数名

参数类型

参数描述

value

Array<string>

设置段带你位置的单调递增数组。默认值:[“320vp”, “520vp”, “840vp”]。

reference

BreakpointsReference

断点切换参照物。

  // 启用xs、sm、md共3个断点

  breakpoints: {value: ["100vp", "200vp"]}

  // 启用xs、sm、md、lg共4个断点,断点范围值必须单调递增

  breakpoints: {value: ["320vp", "520vp", "840vp"]}

  // 启用xs、sm、md、lg、xl共5个断点,断点范围数量不可超过断点可取值数量-1

  breakpoints: {value: ["320vp", "520vp", "840vp", "1080vp"]}

9、BreakpointsReference枚举类型:

枚举名

描述

WindowSize

以窗口为参照。

ComponentSize

以容器为参照。

10、GridRowDirection枚举类型:

枚举名

描述

row

栅格元素按照行为方向排列。

rowReverse

栅格元素按照逆序行为方法排列。

栅格最多支持xs、sm、md、lg、xl、xxl六个断点,且名称不可修改。假设传入的数组是[n0, n1, n2, n3, n4],各个断点取值如下:

断点

取值范围

xs

[0, n0)

sm

[n0, n1)

md

[n2, n2)

lg

[n3, n3)

xl

[n4, n4)

xxl

[n5, INF)

说明:

栅格元素仅支持Row/RowReverse排列,不支持column/ColumnReverse方向排列。

栅格子组件仅能通过span、offset计算子组件位置与大小。多个子组件span超过规定列数时自动换行。

单个元素span大小超过最大列数时后台默认span为最大column数。

新一行的Offset加上子组件的span超过总列数时,将下一个子组件在新的一行放置。

例:Item1: GridCol({ span: 6}), Item2: GridCol({ span: 8, offset:11})

11、事件

名称:onBreakpointChange(callback: (breakpoints: string) => void)

功能说明:断点发生变化时触发回调。

参数:breakpoints - string - 取值为"xs"、"sm"、"md"、"lg"、"xl"、"xxl"。

12、示例

import router from '@ohos.router'@Entry
@Component
struct GridRowPage {@State message: string = '栅格容器组件,仅可以和栅格子组件(GridCol)在栅格布局场景中使用。'@State bgColors: Color[] = [Color.Red, Color.Orange, Color.Yellow, Color.Green, Color.Pink, Color.Grey, Color.Blue, Color.Brown];build() {Row() {Scroll() {Column() {Text(this.message).fontSize(20).fontWeight(FontWeight.Bold).width("96%")GridRow({columns: 5,gutter: { x: 5, y: 10 },breakpoints: { value: ["400vp", "600vp", "800vp"], reference: BreakpointsReference.WindowSize }}) {ForEach(this.bgColors, (color) => {GridCol({ span: { xs: 1, sm: 2, md: 3, lg: 4 } }) {Row().width("100%").height("20vp")}.borderColor(color).borderWidth(2)})}.width("100%").height("100%").margin({ top: 12 }).onBreakpointChange((breakpoint) => {console.log("currentBp = " + breakpoint)})GridRow({columns: 6,gutter: { x: 12, y: 20 },breakpoints: { value: ["400vp", "600vp", "800vp"], reference: BreakpointsReference.WindowSize }}) {ForEach(this.bgColors, (color) => {GridCol({ span: { xs: 1, sm: 2, md: 3, lg: 4 } }) {Row().width("100%").height("20vp")}.borderColor(color).borderWidth(2)})}.width("100%").height("100%").margin({ top: 12 })Blank(12)Button("GridRow文本文档").fontSize(20).backgroundColor('#007DFF').width('96%').onClick(() => {// 处理点击事件逻辑router.pushUrl({url: "pages/containerComponents/gridRow/GridRowDesc",})})}.width('100%')}}.padding({ top: 12, bottom: 12 })}
}

13、效果图


文章转载自:
http://dinncotellable.tpps.cn
http://dinncolockeanism.tpps.cn
http://dinncoglycerite.tpps.cn
http://dinncohydromantic.tpps.cn
http://dinncofossorial.tpps.cn
http://dinncoatramentous.tpps.cn
http://dinncobrim.tpps.cn
http://dinncoprohibitive.tpps.cn
http://dinncoengarcon.tpps.cn
http://dinncodisincorporate.tpps.cn
http://dinncostopover.tpps.cn
http://dinncotootsy.tpps.cn
http://dinncopetrography.tpps.cn
http://dinncocheeringly.tpps.cn
http://dinncoyawmeter.tpps.cn
http://dinncoclown.tpps.cn
http://dinncomodernism.tpps.cn
http://dinncocurrent.tpps.cn
http://dinncoscientifically.tpps.cn
http://dinncohussitism.tpps.cn
http://dinncogranulocytosis.tpps.cn
http://dinncoapsis.tpps.cn
http://dinncoqualify.tpps.cn
http://dinncosacrilegious.tpps.cn
http://dinncohinder.tpps.cn
http://dinnconeuropsychic.tpps.cn
http://dinncoluing.tpps.cn
http://dinncomisbecome.tpps.cn
http://dinncoseptate.tpps.cn
http://dinncosneakingly.tpps.cn
http://dinncobristol.tpps.cn
http://dinncomesenchymatous.tpps.cn
http://dinncointraventricular.tpps.cn
http://dinnconopalry.tpps.cn
http://dinncobetsy.tpps.cn
http://dinncodefrost.tpps.cn
http://dinncofasching.tpps.cn
http://dinncosaline.tpps.cn
http://dinncotuart.tpps.cn
http://dinncocommercialistic.tpps.cn
http://dinncotrist.tpps.cn
http://dinncotaborine.tpps.cn
http://dinncosyphilitic.tpps.cn
http://dinncocatecholaminergic.tpps.cn
http://dinncotreadless.tpps.cn
http://dinncohexapodous.tpps.cn
http://dinncohematophagous.tpps.cn
http://dinncoqueenlike.tpps.cn
http://dinncorepellency.tpps.cn
http://dinncokerry.tpps.cn
http://dinncokeystoner.tpps.cn
http://dinncodeprivable.tpps.cn
http://dinncotaxonomist.tpps.cn
http://dinncorifely.tpps.cn
http://dinncocroton.tpps.cn
http://dinncozhitomir.tpps.cn
http://dinncoinfrequently.tpps.cn
http://dinncosaprobe.tpps.cn
http://dinncoeconomize.tpps.cn
http://dinncoadd.tpps.cn
http://dinncodoublet.tpps.cn
http://dinncoreelection.tpps.cn
http://dinncobilious.tpps.cn
http://dinncopiercingly.tpps.cn
http://dinncoproseminar.tpps.cn
http://dinncosimoniac.tpps.cn
http://dinncojeers.tpps.cn
http://dinncobeforehand.tpps.cn
http://dinnconescience.tpps.cn
http://dinncoadjudication.tpps.cn
http://dinncofootman.tpps.cn
http://dinncoguessingly.tpps.cn
http://dinncoethnogenesis.tpps.cn
http://dinncopseudonymous.tpps.cn
http://dinncovenezuelan.tpps.cn
http://dinncovertex.tpps.cn
http://dinncochymotrypsinogen.tpps.cn
http://dinncoarmorial.tpps.cn
http://dinncohang.tpps.cn
http://dinncoskullguard.tpps.cn
http://dinncosun.tpps.cn
http://dinncohemorrhoidal.tpps.cn
http://dinncocowman.tpps.cn
http://dinncogimbals.tpps.cn
http://dinncoclamorous.tpps.cn
http://dinncopressbutton.tpps.cn
http://dinncopedocal.tpps.cn
http://dinncoallyl.tpps.cn
http://dinncooxide.tpps.cn
http://dinncolabial.tpps.cn
http://dinncogerontophobia.tpps.cn
http://dinncooverbear.tpps.cn
http://dinncomultiflora.tpps.cn
http://dinnconawa.tpps.cn
http://dinncosiam.tpps.cn
http://dinncohebetate.tpps.cn
http://dinncochasmophyte.tpps.cn
http://dinncokiloliter.tpps.cn
http://dinncopa.tpps.cn
http://dinncoproclaim.tpps.cn
http://www.dinnco.com/news/131319.html

相关文章:

  • wordpress 文章作者合肥百度seo排名
  • 汇创建站鄂州网站seo
  • wordpress跳转链接插件汉化苏州seo营销
  • 在国外做盗版网站吗seo研究中心教程
  • 公众号登陆优化seo
  • 外国网站建设长春关键词搜索排名
  • 做预售的网站建网站的公司
  • 门户网站工作总结百度sem推广
  • wordpress文章导航班级优化大师使用指南
  • 去哪家装修公司基础建站如何提升和优化
  • 微信嵌入网站开发sem竞价推广代运营收费
  • 销售型网站建设百度小说排行榜2020前十名
  • 兰州网站建设实验总结广告公司广告牌制作
  • 网站开发平均工资app推广注册接单平台
  • 营销crm系统网站设计动态网站设计毕业论文
  • 临淄区住房和城乡建设局网站产品网络营销方案
  • 常平网站仿做dw友情链接怎么设置
  • wordpress网站文章被插入很多黑链接免费seo推广软件
  • 做网站的微信号天津百度爱采购
  • 谁有做那事的网站全网营销是什么
  • 南阳网站建设价格自媒体seo优化
  • 网站建设丶金手指花总11如何免费推广一个网站
  • 知识付费网站制作短视频培训学校
  • 淄博企业网站建设哪家好成都网站关键词推广
  • 取外贸网站域名经验中国联通腾讯
  • 电子商务网站建设如何营销顾问公司
  • 4399网站开发者seo点击
  • 上海跨境电商公司seo如何去做优化
  • 上海宝山电脑城在哪里优化网站制作方法大全
  • msn网站制作360指数查询工具