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

网站的运营推广方案seo需要掌握哪些技术

网站的运营推广方案,seo需要掌握哪些技术,wordpress毕设,美国做短视频网站19vue3实战-----菜单子树的展示 1.实现目标2.实现思路3.实现步骤3.1新建config配置文件3.2封装组件3.3使用组件 1.实现目标 如上,以上效果的难点是“在表格里面实现树形结构”。可以用element-plus框架中的table作为辅助: 可以自己查看文档了解怎么使用。 2.实现思路 上面的…

19vue3实战-----菜单子树的展示

  • 1.实现目标
  • 2.实现思路
  • 3.实现步骤
    • 3.1新建config配置文件
    • 3.2封装组件
    • 3.3使用组件

1.实现目标

在这里插入图片描述
如上,以上效果的难点是“在表格里面实现树形结构”。可以用element-plus框架中的table作为辅助:
在这里插入图片描述
可以自己查看文档了解怎么使用。

2.实现思路

上面的效果不难实现,无非就是搭建界面。这里我不用常规方法“一个一个页面搭建”,而是用之前写的文章https://blog.csdn.net/fageaaa/article/details/145572470中的方法--------通过配置生成页面。

3.实现步骤

3.1新建config配置文件

在menu文件夹下新建config配置文件:
在这里插入图片描述
menu/config/content.config.ts:

const contentConfig = {pageName: 'menu',header: {title: '菜单列表',btnTitle: '新建菜单'},propsList: [{ label: '菜单名称', prop: 'name', width: '180px' },{ label: '级别', prop: 'type', width: '120px' },{ label: '菜单url', prop: 'url', width: '150px' },{ label: '菜单icon', prop: 'icon', width: '200px' },{ label: '排序', prop: 'sort', width: '120px' },{ label: '权限', prop: 'permission', width: '150px' },{ type: 'timer', label: '创建时间', prop: 'createAt' },{ type: 'timer', label: '更新时间', prop: 'updateAt' },{ type: 'handler', label: '操作', width: '150px' }],childrenTree: {rowKey: 'id',treeProps: {children: 'children'}}
}
export default contentConfig

3.2封装组件

将各种各样的表格所在的内容区域封装为一个组件:
在这里插入图片描述
components/page-content/page-content.vue:

<template><div class="content"><div class="header"><h3 class="title">{{ contentConfig?.header?.title ?? '数据列表' }}</h3><el-button type="primary" @click="handleNewUserClick">{{ contentConfig?.header?.btnTitle ?? '新建数据' }}</el-button></div><div class="table"><el-table:data="pageList"borderstyle="width: 100%"v-bind="contentConfig.childrenTree"><template v-for="item in contentConfig.propsList" :key="item.prop"><template v-if="item.type === 'timer'"><el-table-column align="center" v-bind="item"><template #default="scope">{{ formatUTC(scope.row[item.prop]) }}</template></el-table-column></template><template v-else-if="item.type === 'handler'"><el-table-column align="center" v-bind="item"><template #default="scope"><el-buttonsize="small"icon="Edit"type="primary"text@click="handleEditBtnClick(scope.row)">编辑</el-button><el-buttonsize="small"icon="Delete"type="danger"text@click="handleDeleteBtnClick(scope.row.id)">删除</el-button></template></el-table-column></template><template v-else-if="item.type === 'custom'"><el-table-column align="center" v-bind="item"><template #default="scope"><slot:name="item.slotName"v-bind="scope":prop="item.prop"hName="why"></slot></template></el-table-column></template><template v-else><el-table-column align="center" v-bind="item" /></template></template></el-table></div><div class="pagination"><el-paginationv-model:current-page="currentPage"v-model:page-size="pageSize":page-sizes="[10, 20, 30]"layout="total, sizes, prev, pager, next, jumper":total="pageTotalCount"@size-change="handleSizeChange"@current-change="handleCurrentChange"/></div></div>
</template><script setup lang="ts">
...
interface IProps {contentConfig: {pageName: stringheader?: {title?: stringbtnTitle?: string}propsList: any[]childrenTree?: any}
}const props = defineProps<IProps>()
...
</script><style lang="less" scoped>
...
</style>

3.3使用组件

<template><div class="menu"><page-content :content-config="contentConfig" /></div>
</template><script setup lang="ts" name="menu">
import PageContent from '@/components/page-content/page-content.vue'
import contentConfig from './config/content.config'
</script><style scoped>
...
</style>
http://www.dinnco.com/news/60174.html

相关文章:

  • 公司网站建设行为规定合肥网络推广软件系统
  • 钉钉企业邮箱收费标准成都关键词优化排名
  • 义乌做网站软文营销的本质
  • ps网站首页设计软文推广有哪些
  • 网站开发技术方案doc免费源码下载网站
  • 做推文的网站知乎免费seo排名优化
  • 南阳网站排名优化价格nba最新排名公布
  • 主流的网站建设的软件一键生成个人网站
  • 跨境电商个人可以做吗锦州网站seo
  • 做的最好的政府部门网站专业网站优化外包
  • 做网站还得备案百度百度推广
  • 网站链接分享做推广安卓优化大师官方下载
  • 南昌p2p网站建设如何进行推广
  • 内蒙古政府网站建设 论文网站开发工程师
  • 网站建设网络推广公司有哪些草根seo视频大全
  • 欧洲男女做受视频网站免费网络推广渠道
  • 寻找郑州网站建设广州30万人感染
  • 做网站卖机械cfa一级看多久两分钟
  • 网站打不开 其它能打开推广app有哪些
  • 网站被墙是谁做的排名优化公司电话
  • 用网站做淘宝客怎么样学电商出来一般干什么工作
  • 购物网站制作免费百度百家号注册
  • 怎样只做自己的网站小程序怎么开发自己的小程序
  • 常州做网站需要多少钱谷歌广告联盟怎么做
  • 宁都网站建设青岛关键词优化报价
  • 东莞建站公司快荐全网天下特别好代写软文
  • 嘉兴网站快照优化公司上海网络关键词优化
  • 专门做西装网站网站关键词公司
  • 东莞樟木头做网站哪家好申请百度账号注册
  • 河间网站建设单页网站制作教程