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

mac搭建本地wordpressseo顾问

mac搭建本地wordpress,seo顾问,企业网站建设找外包公司做,漳州做网站最便宜用于页面中展示重要的提示信息。 常见于消息提示或警告框。 1.如何使用&#xff1f; 页面中的非浮层元素&#xff0c;不会自动消失。 //Alert 组件提供四种主题&#xff0c;由type属性指定&#xff0c;默认值为info。<template><el-alerttitle"成功提示的文案&…

用于页面中展示重要的提示信息。

常见于消息提示或警告框。

1.如何使用?

页面中的非浮层元素,不会自动消失。

//Alert 组件提供四种主题,由type属性指定,默认值为info。<template><el-alerttitle="成功提示的文案"type="success"></el-alert><el-alerttitle="消息提示的文案"type="info"></el-alert><el-alerttitle="警告提示的文案"type="warning"></el-alert><el-alerttitle="错误提示的文案"type="error"></el-alert>
</template>

2.主题

Alert 组件提供了两个不同的主题:lightdark

//通过设置effect属性来改变主题,默认为light。<template><el-alerttitle="成功提示的文案"type="success"effect="dark"></el-alert><el-alerttitle="消息提示的文案"type="info"effect="dark"></el-alert><el-alerttitle="警告提示的文案"type="warning"effect="dark"></el-alert><el-alerttitle="错误提示的文案"type="error"effect="dark"></el-alert>
</template>

3.自定义关闭按钮

自定义关闭按钮为文字或其他符号。

/*在 Alert 组件中,你可以设置是否可关闭,关闭按钮的文本以及关闭时的回调函数。closable属性决定是否可关闭,接受boolean,默认为true。你可以设置close-text属性来代替右侧的关闭图标,注意:close-text必须为文本。设置close事件来设置关闭时的回调。*/<template><el-alerttitle="不可关闭的 alert"type="success":closable="false"></el-alert><el-alerttitle="自定义 close-text"type="info"close-text="知道了"></el-alert><el-alerttitle="设置了回调的 alert"type="warning"@close="hello"></el-alert>
</template><script>export default {methods: {hello() {alert('Hello World!');}}}
</script>

4.带有 icon

表示某种状态时提升可读性。

//通过设置show-icon属性来显示 Alert 的 icon,这能更有效地向用户展示你的显示意图。<template><el-alerttitle="成功提示的文案"type="success"show-icon></el-alert><el-alerttitle="消息提示的文案"type="info"show-icon></el-alert><el-alerttitle="警告提示的文案"type="warning"show-icon></el-alert><el-alerttitle="错误提示的文案"type="error"show-icon></el-alert>
</template>

5.文字居中

使用 center 属性让文字水平居中

<template><el-alerttitle="成功提示的文案"type="success"centershow-icon></el-alert><el-alerttitle="消息提示的文案"type="info"centershow-icon></el-alert><el-alerttitle="警告提示的文案"type="warning"centershow-icon></el-alert><el-alerttitle="错误提示的文案"type="error"centershow-icon></el-alert>
</template>

 6.带有辅助性文字介绍

包含标题和内容,解释更详细的警告。

//除了必填的title属性外,你可以设置description属性来帮助你更好地介绍,我们称之为辅助性文字。辅助性文字只能存放单行文本,会自动换行显示。<template><el-alerttitle="带辅助性文字介绍"type="success"description="这是一句绕口令:黑灰化肥会挥发发灰黑化肥挥发;灰黑化肥会挥发发黑灰化肥发挥。 黑灰化肥会挥发发灰黑化肥黑灰挥发化为灰……"></el-alert>
</template>

 7.带有 icon 和辅助性文字介绍

//这是一个同时具有 icon 和辅助性文字的样例。<template><el-alerttitle="成功提示的文案"type="success"description="文字说明文字说明文字说明文字说明文字说明文字说明"show-icon></el-alert><el-alerttitle="消息提示的文案"type="info"description="文字说明文字说明文字说明文字说明文字说明文字说明"show-icon></el-alert><el-alerttitle="警告提示的文案"type="warning"description="文字说明文字说明文字说明文字说明文字说明文字说明"show-icon></el-alert><el-alerttitle="错误提示的文案"type="error"description="文字说明文字说明文字说明文字说明文字说明文字说明"show-icon></el-alert>
</template>

 

http://www.yidumall.com/news/85423.html

相关文章:

  • 做一公司网站网络关键词优化方法
  • 有哪些程序做的网站营业推广名词解释
  • 用在线网站做的简历可以吗2021时事政治热点50条
  • 网址你会感谢我的郑州粒米seo外包
  • 嘉兴高端网站定制合肥seo整站优化网站
  • 西昌网站建设百度推广账号
  • 使用wordpress搭建网站自己做网站的流程
  • 汽车贸易网站建设方案石家庄谷歌seo
  • 曰本免费网站品牌宣传推广策划方案
  • 网站建设waocc找客户资源的网站
  • wordpress4.7.0下载画质优化app下载
  • 网站开发语言哪种简单app注册推广平台
  • web做花店网站页面seo去哪里学
  • 搭建平台的目的和意义是什么优化营商环境条例全文
  • 装潢设计属于什么专业类别网站seo优化方案
  • 如何做优化网站的原创性文章沈阳沈河seo网站排名优化
  • 游戏门户网站模板长春百度推广公司
  • 网站建设竞价托管外包网络广告投放方案
  • 深圳网站建设10086网站开发流程有哪几个阶段
  • mvc实现新闻网站开发seo是什么级别
  • 免费的推广网站有哪些注册公司
  • templates翻译杭州seo专员
  • 智能建站与正常的网站百度快照优化
  • 烟台H5高端网站建设中国公关公司前十名
  • 武威住房和城乡建设厅网站b站免费推广app大全
  • 东莞网站推广团队电脑优化大师下载安装
  • 怎么区别网站开发语言广告投放公司
  • 外贸网站seo优化方案深圳网站设计公司
  • 手机怎么制作网站教程网络营销服务公司
  • 摄影网页面制作优化大师电脑版官方