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

网站建设与网页设计专业的网页制作三大软件

网站建设与网页设计专业的,网页制作三大软件,免费行情网站下载大全,室内设计用什么软件比较好采用 uniapp 实现, 是一款具备丝滑动画的标签工具栏模板,支持 vue2、vue3;适配 web、H5、微信小程序(其他平台小程序未测试过,可自行尝试) 代码实现简约易懂,用户可根据自身需求下载模板,并进行…

采用 uniapp 实现, 是一款具备丝滑动画的标签工具栏模板,支持 vue2、vue3;适配 web、H5、微信小程序(其他平台小程序未测试过,可自行尝试)
代码实现简约易懂,用户可根据自身需求下载模板,并进行扩展开发

可到插件市场下载尝试: https://ext.dcloud.net.cn/plugin?id=23810

  • 示例
    请添加图片描述

请添加图片描述

props 属性

defaultValue

默认高亮选项

defaultValue: {type: String,default: "unsplash",
},

orientation

设置工具栏排列方向,提供两种选项:horizontal、vertical

orientation: {type: String,default: "horizontal",
},

options

选项数组,必须具备 label、value、icon 字段

options: {type: Object,default: () => {return [{ icon: "https://img.icons8.com/?size=100&id=56579&format=png&color=ffffff", label: "Unsplash", value: "unsplash" },{ icon: "https://img.icons8.com/?size=100&id=890&format=png&color=ffffff", label: "iphone", value: "iphone" },{ icon: "https://img.icons8.com/?size=100&id=12412&format=png&color=ffffff", label: "Browsers", value: "browsers" },{ icon: "https://img.icons8.com/?size=100&id=118504&format=png&color=ffffff", label: "Facebook", value: "facebook" },]}}

事件

@onChange

点击选项时触发,返回 options 中提供的点击的选项值,

使用示例

vue2 使用示例

<template><view style="padding: 0.4em; font-size: 1.7em; height: 60vh;"><view class="flex-center"><view class="bg-circle"><ToolbarComp style="border-radius: inherit;" orientation="vertical"></ToolbarComp></view></view><view class="flex-center" style="padding-top: 60px;"><view class="flex-center bg-circle"><ToolbarComp style="border-radius: inherit;" default-value="browsers"></ToolbarComp></view></view><view class="flex-center" style="padding-top: 60px; width: 100%;"><view style="width: 100%;" class="flex-center bg-circle"><ToolbarComp style="border-radius: inherit;" default-value="iphone" :options="toolbarOptions" @onChange="handleChange"></ToolbarComp></view></view><view class="flex-center" style="padding-top: 60px; width: 100%;"><view style="width: 100%;" class="flex-center bg-react"><ToolbarComp style="border-radius: inherit;" default-value="facebook" :options="toolbarOptions"></ToolbarComp></view></view></view>
</template><script>
import ToolbarComp from './comp/toolbarComp.vue';
export default {components: {ToolbarComp},data() {return {toolbarOptions: [{ icon: "https://img.icons8.com/?size=100&id=56579&format=png&color=ffffff", label: "Unsplash", value: "unsplash" },{ icon: "https://img.icons8.com/?size=100&id=890&format=png&color=ffffff", label: "iphone", value: "iphone" },{ icon: "https://img.icons8.com/?size=100&id=12412&format=png&color=ffffff", label: "Browsers", value: "browsers" },{ icon: "https://img.icons8.com/?size=100&id=118504&format=png&color=ffffff", label: "Facebook", value: "facebook" },{ icon: "https://img.icons8.com/?size=100&id=3529&format=png&color=ffffff", label: "Pinterest", value: "pinterest" },]}},methods: {handleChange(e) {console.log('selected:', e);}}
}
</script><style scoped>
.flex-center {display: flex;justify-content: center;align-items: center;
}
.bg-circle {background-color: hsl(0, 0%, 10%);border-radius: 1em;
}
.bg-react {background-color: hsl(0, 0%, 10%);border-radius: 0.4em;
}
</style>

vue3 使用示例

<template><view style="padding: 0.4em; font-size: 1.7em; height: 60vh;"><view class="flex-center"><view class="bg-circle"><ToolbarComp style="border-radius: inherit;" orientation="vertical"></ToolbarComp></view></view><view class="flex-center" style="padding-top: 60px;"><view class="flex-center bg-circle"><ToolbarComp style="border-radius: inherit;" default-value="browsers"></ToolbarComp></view></view><view class="flex-center" style="padding-top: 60px; width: 100%;"><view style="width: 100%;" class="flex-center bg-circle"><ToolbarComp style="border-radius: inherit;" default-value="iphone" :options="toolbarOptions" @onChange="handleChange"></ToolbarComp></view></view><view class="flex-center" style="padding-top: 60px; width: 100%;"><view style="width: 100%;" class="flex-center bg-react"><ToolbarComp style="border-radius: inherit;" default-value="facebook" :options="toolbarOptions"></ToolbarComp></view></view></view>
</template><script>
import { defineComponent, reactive } from 'vue';
import ToolbarComp from './comp/toolbarComp.vue';export default defineComponent({components: {ToolbarComp},setup() {const toolbarOptions = reactive([{ icon: "https://img.icons8.com/?size=100&id=56579&format=png&color=ffffff", label: "Unsplash", value: "unsplash" },{ icon: "https://img.icons8.com/?size=100&id=890&format=png&color=ffffff", label: "iphone", value: "iphone" },{ icon: "https://img.icons8.com/?size=100&id=12412&format=png&color=ffffff", label: "Browsers", value: "browsers" },{ icon: "https://img.icons8.com/?size=100&id=118504&format=png&color=ffffff", label: "Facebook", value: "facebook" },{ icon: "https://img.icons8.com/?size=100&id=3529&format=png&color=ffffff", label: "Pinterest", value: "pinterest" },]);const handleChange = (e) => {console.log('selected:', e);};return {toolbarOptions,handleChange};}
});
</script><style scoped>
.flex-center {display: flex;justify-content: center;align-items: center;
}
.bg-circle {background-color: hsl(0, 0%, 10%);border-radius: 1em;
}
.bg-react {background-color: hsl(0, 0%, 10%);border-radius: 0.4em;
}
</style>
http://www.dtcms.com/wzjs/268958.html

相关文章:

  • 正邦设计招聘汕头seo网络推广服务
  • 广州穗科建设监理有限公司网站公司网站怎么做
  • 湖南网站建设案例网站备案查询系统
  • 一学一做征文网站怎么打开网站
  • 下载网站后怎么做广告接单平台有哪些
  • 网站建设记账做什么科目百度小说风云榜今天
  • 1一2万电动汽车seo关键词排名优化价格
  • 好站站网站建设推广网络营销论文毕业论文
  • 常州网站建设方案优化网站排名需要多少钱
  • 建站公司联系电话自己可以做网站吗
  • wordpress polylang合肥网站seo推广
  • 营销网站价格百度网盘资源搜索
  • 有关网站开发的书籍免费信息发布平台网站
  • 阜阳网站建设公司外链
  • 仿wordpress主题下载西安seo代理计费
  • 河南省建设厅网站职称网百度资源平台链接提交
  • 动态网站开发工程师广告联盟
  • 网站维护的要求包括百度小说排行榜2020前十名
  • 网站建设客户需求分析表沈阳专业seo排名优化公司
  • 青岛网站制作公司排名网络搜索引擎
  • 乐清做网站公司百度云盘网官网
  • 成都培训网站建设seo页面优化的方法
  • 南山建网站公司东莞推广公司
  • 做钢结构网站有哪些凡科建站怎么导出网页
  • 永清建设局网站企点下载
  • 优秀网站 要素做销售有什么技巧和方法
  • 新手做自己的网站教程网络关键词
  • 中国铁路建设投资公司网站互联网营销师是干什么的
  • 怎么用腾讯云做网站碉堡了seo博客
  • 建设电商网站的总结东营seo整站优化