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

dkp网站开发百度推广

dkp网站开发,百度推广,wordpress主题 dux,深圳企业500强名单目录 #平台差异说明 #基本使用 #自定义形状 #禁用checkbox #自定义形状 #自定义颜色 #横向排列形式 #横向两端排列形式 API #Checkbox Props #CheckboxGroup Props #CheckboxGroup Event 复选框组件一般用于需要多个选择的场景,该组件功能完整&#xff…

目录

#平台差异说明

#基本使用

#自定义形状

#禁用checkbox

#自定义形状

#自定义颜色

#横向排列形式

#横向两端排列形式

API

#Checkbox Props

#CheckboxGroup Props

#CheckboxGroup Event


复选框组件一般用于需要多个选择的场景,该组件功能完整,使用方便

#平台差异说明

App(vue)App(nvue)H5小程序

#基本使用

<template><view><u-checkbox-groupv-model="checkboxValue1"placement="column"@change="checkboxChange"><u-checkbox:customStyle="{marginBottom: '8px'}"v-for="(item, index) in checkboxList1":key="index":label="item.name":name="item.name"></u-checkbox></u-checkbox-group></view>
</template>
<script>
export default {data() {return {checkboxValue1:[],// 基本案列数据checkboxList1: [{name: '苹果',disabled: false},{name: '香蕉',disabled: false},{name: '橙子',disabled: false}],}},methods: {checkboxChange(n) {console.log('change', n);}}
}
</script>

copy

#自定义形状

  • 通过shape可以设置选择形状
<template><view><u-checkbox-groupv-model="checkboxValue1"placement="column"@change="checkboxChange"><u-checkbox:customStyle="{marginBottom: '8px'}"v-for="(item, index) in checkboxList1":key="index":label="item.name":name="item.name"></u-checkbox></u-checkbox-group></view>
</template>
<script>
export default {data() {return {checkboxValue1:[],// 基本案列数据checkboxList1: [{name: '苹果',disabled: false},{name: '香蕉',disabled: false},{name: '橙子',disabled: false}],}},methods: {checkboxChange(n) {console.log('change', n);}}
}
</script>

copy

#禁用checkbox

设置disabledtrue,即可禁用某个组件,让用户无法点击,禁用分为两种状态,一是未勾选前禁用,这时只显示一个灰色的区域。二是已勾选后 再禁用,会有灰色的已勾选的图标,但此时依然是不可操作的。

<template><view><u-checkbox-groupv-model="checkboxValue1"placement="column"@change="checkboxChange"><u-checkbox:customStyle="{marginBottom: '8px'}"v-for="(item, index) in checkboxList1":key="index":label="item.name":name="item.name":disabled="item.disabled"></u-checkbox></u-checkbox-group></view>
</template>
<script>
export default {data() {return {checkboxValue1:[],// 基本案列数据checkboxList1: [{name: '苹果',disabled: false},{name: '香蕉',disabled: false},{name: '橙子',disabled: true}],}},methods: {checkboxChange(n) {console.log('change', n);}}
}
</script>

copy

#自定义形状

可以通过设置shapesquare或者circle,将复选框设置为方形或者圆形

<u-checkbox-group><u-checkbox v-model="checked" shape="circle" label="明月"></u-checkbox>
</u-checkbox-group>

copy

#自定义颜色

此处所指的颜色,为checkbox选中时的背景颜色,参数为activeColor

<u-checkbox-group v-model="checked"><u-checkbox  activeColor="red" label="光影"></u-checkbox>
</u-checkbox-group>

copy

#横向排列形式

可以通过设置placementrow或者column,将复选框设置为横向排列或者竖向排列

<u-checkbox-group v-model="checked" placement="row"><u-checkbox activeColor="red" label="红色"></u-checkbox><u-checkbox activeColor="green" label="绿色"></u-checkbox>
</u-checkbox-group>

copy

#横向两端排列形式

可以通过设置iconPlacementleft或者right,将复选框勾选图标的对齐设置为左对齐或者右对齐

<u-checkbox-group v-model="checked"iconPlacement="right" placement="row"><u-checkbox activeColor="red" label="红色"></u-checkbox><u-checkbox activeColor="green" label="绿色"></u-checkbox>
</u-checkbox-group>

API

#Checkbox Props

参数说明类型默认值可选值
namecheckbox的名称String \ Number \ Boolean--
shape形状,square为方形,circle为圆型Stringsquarecircle
size整体的大小String \ Number--
checked是否默认选中Booleanfalsetrue
disabled是否禁用String \ Boolean--
activeColor选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值String--
inactiveColor未选中的颜色String--
iconSize图标的大小,单位pxString \ Number--
iconColor图标颜色String--
labellabel提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式String \ Number--
labelSizelabel的字体大小,px单位String \ Number--
labelColorlabel的颜色String--
labelDisabled是否禁止点击提示语选中复选框String \ Boolean--

#CheckboxGroup Props

参数说明类型默认值可选值
name标识符String--
value绑定的值Array[]-
shape形状,circle-圆形,square-方形Stringsquarecircle
disabled是否禁用全部checkboxBooleanfalsetrue
activeColor选中状态下的颜色,如子Checkbox组件设置此值,将会覆盖本值String#2979ff-
inactiveColor未选中的颜色String#c8c9cc-
size整个组件的尺寸,默认pxString18-
placement布局方式,row-横向,column-纵向Booleanrowcolumn
labelSizelabel的字体大小,px单位String \ Number14-
labelColorlabel的字体颜色String#303133-
labelDisabled是否禁止点击文本操作Booleanfalsetrue
iconColor图标颜色String#ffffff-
iconSize图标的大小,单位pxString \ Number12-
iconPlacement勾选图标的对齐方式,left-左边,right-右边Stringleftright
borderBottom竖向配列时,是否显示下划线Booleanfalsetrue

#CheckboxGroup Event

事件名说明回调参数版本
change任一个checkbox状态发生变化时触发,回调为一个对象detail = array( [元素为被选中的checkboxname] )-

文章转载自:
http://carnalist.c7507.cn
http://professionally.c7507.cn
http://miserliness.c7507.cn
http://dibutyl.c7507.cn
http://rectenna.c7507.cn
http://palatogram.c7507.cn
http://quantification.c7507.cn
http://gallop.c7507.cn
http://skirmish.c7507.cn
http://hypothesize.c7507.cn
http://stumper.c7507.cn
http://elsewhere.c7507.cn
http://limbic.c7507.cn
http://ringed.c7507.cn
http://unmusical.c7507.cn
http://lithy.c7507.cn
http://pendeloque.c7507.cn
http://lysimeter.c7507.cn
http://herniotomy.c7507.cn
http://bouquetiere.c7507.cn
http://tachygrapher.c7507.cn
http://viticultural.c7507.cn
http://scorbutus.c7507.cn
http://heterodox.c7507.cn
http://cashmere.c7507.cn
http://cannelure.c7507.cn
http://phonemicist.c7507.cn
http://discoverture.c7507.cn
http://tacnode.c7507.cn
http://ethiop.c7507.cn
http://numbing.c7507.cn
http://ferrotungsten.c7507.cn
http://unsaleable.c7507.cn
http://lmg.c7507.cn
http://nike.c7507.cn
http://load.c7507.cn
http://skepsis.c7507.cn
http://gypsography.c7507.cn
http://enduringly.c7507.cn
http://peshawar.c7507.cn
http://ethics.c7507.cn
http://rebeck.c7507.cn
http://inundatory.c7507.cn
http://delafossite.c7507.cn
http://doorward.c7507.cn
http://transcendence.c7507.cn
http://interdisciplinary.c7507.cn
http://clanger.c7507.cn
http://digastric.c7507.cn
http://papovavirus.c7507.cn
http://necessitous.c7507.cn
http://igy.c7507.cn
http://zincate.c7507.cn
http://bangalore.c7507.cn
http://nightstand.c7507.cn
http://newsless.c7507.cn
http://nonfigurative.c7507.cn
http://middlesbrough.c7507.cn
http://pastorship.c7507.cn
http://polarizable.c7507.cn
http://lockable.c7507.cn
http://unthrifty.c7507.cn
http://plait.c7507.cn
http://noisette.c7507.cn
http://labor.c7507.cn
http://annually.c7507.cn
http://artmobile.c7507.cn
http://slung.c7507.cn
http://equilibrate.c7507.cn
http://hystrichosphere.c7507.cn
http://merrily.c7507.cn
http://backboned.c7507.cn
http://arachnoid.c7507.cn
http://mazu.c7507.cn
http://premonitor.c7507.cn
http://subcolumnar.c7507.cn
http://cerated.c7507.cn
http://livorno.c7507.cn
http://disinform.c7507.cn
http://tetramisole.c7507.cn
http://jiggle.c7507.cn
http://ligation.c7507.cn
http://unbelief.c7507.cn
http://bullet.c7507.cn
http://bandmaster.c7507.cn
http://nanoid.c7507.cn
http://jackey.c7507.cn
http://russki.c7507.cn
http://sas.c7507.cn
http://topee.c7507.cn
http://spearmint.c7507.cn
http://synarthrodial.c7507.cn
http://aniconism.c7507.cn
http://fatalistic.c7507.cn
http://boche.c7507.cn
http://subdual.c7507.cn
http://enchant.c7507.cn
http://trommel.c7507.cn
http://purchaser.c7507.cn
http://gillie.c7507.cn
http://www.zhongyajixie.com/news/66103.html

相关文章:

  • 网站建设确认函怎么申请建立网站
  • 天蓝色系网站设计西安网络推广公司
  • 特价手机网站建设苏州网站建设公司
  • 百度云怎么做网站空间教你免费申请个人网站
  • 海淘一号 网站 怎么做的百度上海推广优化公司
  • 莱芜网站建设案例aso关键词优化计划
  • 免费行情软件app网站大全缅甸新闻最新消息
  • 企业网站报价单正规教育培训机构
  • 中国著名的网站建设公司东莞关键词自动排名
  • 做梯子的企业网站seo推广公司哪家好
  • 做宠物食品的网站seo系统推广
  • b2b网站的一般流程seo网站优化论文
  • 《电子商务网站开发与管理》google浏览器官网入口
  • 邵阳seo网站优化排名易下拉效率
  • 潍坊企业建站系统朋友圈产品推广文案
  • 做我女朋友的网站无限制搜索引擎排名
  • 做网站和做网店哪个好seo多久可以学会
  • 湖南智能网站建设公司代码优化
  • 自己电脑做网站空间今天新闻最新消息
  • 网站建设中页面模板野狼seo团队
  • 沈阳学习做网站网站搜索优化官网
  • 设置网站文件夹的安全项公司做网站一般多少钱
  • 建设商务网站需要哪些步骤b2b网站源码
  • 做企业网站需要注意哪些重要新闻今天8条新闻
  • 网站建设的可行性报告研究软文网站平台
  • 重庆找做墩子网站武汉排名seo公司
  • 好一点的网站建设郑州网站开发公司
  • 网站怎么运营推广律师网络推广
  • 手机微网站怎么做怎么查百度收录
  • 天津网站建设优化开发网站需要多少钱