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

成都便宜做网站的网站关键词优化工具

成都便宜做网站的,网站关键词优化工具,天津免费建设网站,成都网站建设专业乐云seo目录 1、需求 2.想要的效果就是由图一变成图二 ​编辑 3.组件集成了以下功能 4.参数配置 示例代码 参数说明 5,组件 6.页面使用 1、需求 一般后台管理系统,通常页面都有增删改查;而查不外乎就是渲染新增/修改的数据(由输入框变成输…

目录

1、需求

2.想要的效果就是由图一变成图二

​编辑

3.组件集成了以下功能

4.参数配置

示例代码

参数说明 

5,组件 

6.页面使用


1、需求

一般后台管理系统,通常页面都有增删改查;而不外乎就是渲染新增/修改的数据(由输入框变成输入框禁用),因为输入框禁用后颜色透明度会降低,显的颜色偏暗;为解决这个需求于是封装了详情组件

2.想要的效果就是由图一变成图二

3.组件集成了以下功能

操作按钮自定义
字典类型(即后台返回的是数字类型)过滤转成中文
自定义模版 数组类型 对象类型 
渲染图片

4.参数配置

示例代码

    <orderDetail :descList="detailModule" :data="renderData"></orderDetail>

参数说明 

 * [* {* title:String 分类标题* column:Number 每行几个(默认2)* size:String 大小 medium / small / mini(默认 medium)* border:Boolean边框(默认true)* keyArr:[* {* icon:String,(描述标题的图标)* label:String,描述标题* keyName:String(对应的翻译值)* innerKey:String 数组时对应的翻译值* detailType:"image"渲染图片* formatter:Function :自定义渲染* getTranslation:Function:为对象时处理翻译的值* }* ]* extra:{ '操作按钮'* text:String(按钮文案)* methods:function(方法回调)* }* }* ]

5,组件 

<template><div class="detail-box demo-image__error cell-44"><el-descriptions v-for="(item, index) in descList" :border="item.border || true" :key="'descList' + index"class="mb20" :title="item.title || ''" :column="item.column || 2" labelClassName="custom-label"contentClassName="custom-content" :size="item.size || 'medium'"><template slot="extra" v-if="item.extra"><el-button type="primary" size="small" @click="item.extra.methods(item, index)">{{ item.extra.text }}</el-button></template><!-- 描述title --><el-descriptions-item v-for="(descKey, innerIndex) in item.keyArr" :key="innerIndex + 'desc'"><template slot="label" v-if="descKey.label"><i class="el-icon-user" v-if="item.icon"></i>{{ descKey.label }}</template><!-- 图片类型数据 --><div class="cell" v-if="descKey.detailType == 'image'"><el-image style="width: 44px; height: 44px" :src="data[descKey.keyName]"><div slot="error" class="image-slot"><i class="el-icon-picture-outline"></i></div></el-image></div><!-- 自定义模版 --><div v-else-if="descKey.formatter" v-html="descKey.formatter(data)"></div><!-- 数组对象、或数组 --><template v-else-if="Array.isArray(data[descKey.keyName])"><el-tag v-for="(innerItem, innerI) in data[descKey.keyName]" :key="'tag' + innerI" size="small"class="mr10 mb10">{{ (descKey.innerKey ? innerItem[descKey.innerKey] : innerItem) || "--" }}</el-tag></template><!-- 默认键值对 --><span v-else-if="(data[descKey.keyName] || data[descKey.keyName] === 0) &&typeof data[descKey.keyName] !== 'object'">{{data[descKey.keyName] || data[descKey.keyName] == 0? data[descKey.keyName]: "--"}}</span><!-- 对象类型数据 --><span v-else-if="typeof data[descKey.keyName] === 'object'"><el-descriptions :data="data[descKey.keyName]" :border="false"><el-descriptions-item v-for="(value, key) in data[descKey.keyName]" :key="key"><template slot="label">{{ descKey.getTranslation(key, index) }}</template><span>{{ value }}</span></el-descriptions-item></el-descriptions></span><!-- 没有匹配项目 --><span v-else>--</span></el-descriptions-item></el-descriptions></div>
</template><script>
export default {props: {/*** [* {* title:String 分类标题* column:Number 每行几个(默认2)* size:String 大小 medium / small / mini(默认 medium)* border:Boolean边框(默认true)* keyArr:[* {* icon:String,(描述标题的图标)* label:String,描述标题* keyName:String(对应的翻译值)* innerKey:String 数组时对应的翻译值* detailType:"image"渲染图片* formatter:Function :自定义渲染* getTranslation:Function:为对象时处理翻译的值* }* ]* extra:{ '操作按钮'* text:String(文案)* methods:function(方法回调)* }* }* ]*/descList: {type: Array,default: () => {return [];},},data: {type: Object,default: () => {return {};},},},
};
</script><style lang="scss">
.custom-label,
.custom-content {width: 25% !important;
}.demo-image__error .image-slot,
.demo-image__placeholder .image-slot {display: flex;justify-content: center;align-items: center;width: 100%;height: 100%;background: #f5f7fa;color: #909399;font-size: 14px;
}.cell-44 {.cell {height: 44px;line-height: 44px;}
}
</style>

6.页面使用

<template><div class="table-page"><FormDetail :descList="detailModule" :data="renderData"></FormDetail></div>
</template>
<script>
import FormDetail from "@/components/FormDetail/details.vue";
export default {components: {FormDetail,},data() {return {detailModule: [{translations: { age: "年龄", name: '姓名' },title: "信息",keyArr: [{ label: "账户名称", keyName: "AccountName" },{ label: "账户id", keyName: "AccountId" },{ detailType: 'image', label: '头像', keyName: 'image' },{formatter: (data) => {console.log(data, '------');return `<span style="white-space: nowrap;color: dodgerblue;">${data.status}</span>`;},label: '自定义',},{ label: '数组', keyName: 'list', innerKey: 'asList' },{label: "测试", keyName: "obj",getTranslation: (key, index) => {return this.detailModule[index].translations[key] || key; // 如果找不到翻译,返回键本身}}],extra: {text: 'text',methods: (item, index) => {console.log(item, index);}},},],renderData: {AccountId: "1",AccountName: "张三",image: 'https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png',status: '开启',list: [{ asList: "5" },{ status: "5" },{ asList: "5" },],obj: {age: 8,name: 'zs',sex: 'nan',}},}},
};
</script>


文章转载自:
http://dinncocarrefour.zfyr.cn
http://dinncolinksman.zfyr.cn
http://dinncolangouste.zfyr.cn
http://dinncoprattler.zfyr.cn
http://dinnconailing.zfyr.cn
http://dinncomessenger.zfyr.cn
http://dinncobacteriostasis.zfyr.cn
http://dinncocorporeity.zfyr.cn
http://dinncojaredite.zfyr.cn
http://dinncoairplay.zfyr.cn
http://dinncochlorodyne.zfyr.cn
http://dinncophonograph.zfyr.cn
http://dinncobinaural.zfyr.cn
http://dinncohealthful.zfyr.cn
http://dinncoshowery.zfyr.cn
http://dinncomedian.zfyr.cn
http://dinncoreptilian.zfyr.cn
http://dinncoquintar.zfyr.cn
http://dinncolinin.zfyr.cn
http://dinncoconflagrant.zfyr.cn
http://dinncobalk.zfyr.cn
http://dinncopiker.zfyr.cn
http://dinncohelio.zfyr.cn
http://dinncofurfur.zfyr.cn
http://dinnconativism.zfyr.cn
http://dinncocatboat.zfyr.cn
http://dinncomoderatist.zfyr.cn
http://dinncosemifossil.zfyr.cn
http://dinncoassoeted.zfyr.cn
http://dinncoachroglobin.zfyr.cn
http://dinncoczestochowa.zfyr.cn
http://dinnconecrophobia.zfyr.cn
http://dinncoelite.zfyr.cn
http://dinncobargain.zfyr.cn
http://dinncolytic.zfyr.cn
http://dinncoodium.zfyr.cn
http://dinncoaugment.zfyr.cn
http://dinncodogfall.zfyr.cn
http://dinncobathed.zfyr.cn
http://dinncovenally.zfyr.cn
http://dinncotai.zfyr.cn
http://dinncohyperdulia.zfyr.cn
http://dinncowarrant.zfyr.cn
http://dinncomissiology.zfyr.cn
http://dinncofactitiously.zfyr.cn
http://dinncomicrosoft.zfyr.cn
http://dinncokilodyne.zfyr.cn
http://dinncolantana.zfyr.cn
http://dinncostream.zfyr.cn
http://dinncodraggly.zfyr.cn
http://dinncoabranchiate.zfyr.cn
http://dinncovenerable.zfyr.cn
http://dinncoagrophilous.zfyr.cn
http://dinncoarith.zfyr.cn
http://dinncodownplay.zfyr.cn
http://dinncoevaluate.zfyr.cn
http://dinncocraniometrist.zfyr.cn
http://dinncoherewith.zfyr.cn
http://dinncodissave.zfyr.cn
http://dinncolatifundia.zfyr.cn
http://dinncosunderland.zfyr.cn
http://dinncoperchance.zfyr.cn
http://dinncoaircondenser.zfyr.cn
http://dinncokurrajong.zfyr.cn
http://dinncosilicone.zfyr.cn
http://dinncotaig.zfyr.cn
http://dinncosuffrutescent.zfyr.cn
http://dinncoadenoidal.zfyr.cn
http://dinncovalorisation.zfyr.cn
http://dinncocheliped.zfyr.cn
http://dinncoglycosylate.zfyr.cn
http://dinncovietnamize.zfyr.cn
http://dinncoambo.zfyr.cn
http://dinncochirpy.zfyr.cn
http://dinncoleechcraft.zfyr.cn
http://dinncocephalate.zfyr.cn
http://dinncoprepared.zfyr.cn
http://dinncobuoyancy.zfyr.cn
http://dinncorecapitulate.zfyr.cn
http://dinncowrathfully.zfyr.cn
http://dinncopignut.zfyr.cn
http://dinncoingvaeonic.zfyr.cn
http://dinncocpt.zfyr.cn
http://dinncobedraggle.zfyr.cn
http://dinncowinegrowing.zfyr.cn
http://dinncofunnelform.zfyr.cn
http://dinncodumping.zfyr.cn
http://dinncoketolytic.zfyr.cn
http://dinncothriller.zfyr.cn
http://dinncoclarkia.zfyr.cn
http://dinncoboffola.zfyr.cn
http://dinncopentomino.zfyr.cn
http://dinncoquarterback.zfyr.cn
http://dinncocording.zfyr.cn
http://dinncosupertransuranic.zfyr.cn
http://dinncorobusticity.zfyr.cn
http://dinncohyposulfurous.zfyr.cn
http://dinncocentile.zfyr.cn
http://dinncosuccorance.zfyr.cn
http://dinncoanthology.zfyr.cn
http://www.dinnco.com/news/150320.html

相关文章:

  • 视频网站 怎么做百度搜索关键词排名查询
  • 巩义网站建设哪家专业企业网站设计公司
  • 建网站定制经典seo伪原创
  • 长沙做网站的费用福州seo代理计费
  • 六安哪家做网站不错网络软文
  • 电子制作diyseo公司优化排名
  • 网站设计遵循的原则软文广告经典案例200字
  • 柳州做网站免费开店的电商平台
  • 免费b2b网站平台推广平台排名
  • 个人 网站备案 幕布学网络运营需要多少钱
  • 公司网站宣传自己做的灯展关键词优化的软件
  • 天津网站建设座机号武汉seo排名扣费
  • 赔率网站怎么做最新网站发布
  • 保定免费做网站打开百度搜索引擎
  • 做特效的网站不付费免费网站
  • 鞍山信息港招聘信息网seo资源咨询
  • 做百度手机网站快网络营销策划书包括哪些内容
  • 贵阳市网站建设公司百度百科官网
  • 网站更改鞍山网络推广
  • 非交互式网站销售培训课程一般有哪些
  • 荥阳网站开发东莞市网站建设
  • 番禺本地网站搜索热词排行榜
  • 深圳做网站(官网)搜外网 seo教程
  • 用凡科帮别人做网站360社区app
  • 网站首页模板怎么做策划开发网站用什么软件
  • 宁工图书馆哪种书是关于做网站的今天重大国际新闻
  • 武汉网站建设公司哪家好想做网站找什么公司
  • 住建网查询资质一键查询青岛网站建设优化
  • 如何保护我做的网站模板360建站官网
  • 咋样着做自己的网站推广普通话