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

网站开发员岗位职责有了域名和空间怎么做网站内容

网站开发员岗位职责,有了域名和空间怎么做网站内容,济宁住房和城乡建设厅网站,wordpress 自定义字段 查询插槽使用 插槽slot匿名插槽具名插槽插槽作用域简写 动态插槽transition动画组件自定义过渡class类名如何使用animate动画库组件动画生命周期appear transition- group过渡列表 插槽slot 插槽就是子组件中提供给父组件使用的一个占位符父组件可以在这个占位符智能填充任何模板代… 插槽使用 插槽slot匿名插槽具名插槽插槽作用域简写 动态插槽transition动画组件自定义过渡class类名如何使用animate动画库组件动画生命周期appear transition- group过渡列表 插槽slot 插槽就是子组件中提供给父组件使用的一个占位符父组件可以在这个占位符智能填充任何模板代码填充的内容会在替换子组件的slot标签 匿名插槽 子组件 templatediv classmainh1子组件/h1slot/slot/div /templatescript setup langts import { ref, reactive } from vue; /scriptstyle scoped/style父组件 templatediv classmain/divAslottemplate v-slotdiv匿名插槽/div/template/Aslot /templatescript setup langts import { ref, reactive } from vue; import Aslot from ./components/slot.vue; /scriptstyle scoped/style 具名插槽 子组件 父组件 插槽作用域 作用域插槽其实就是带数据的插槽即带参数的插槽简单的来说就是子组件提供给父组件的参数该参数仅限于插槽中使用父组件可根据子组件传过来的插槽数据来进行不同的方式展现和填充插槽内容。子组件 templatediv classmainslot/sloth1子组件/h1div v-for(item, index) in data :keyindex//父组件需要什么值就传递什么值slot :dataitem :indexindex/slot/div/div /templatescript setup langts import { ref, reactive } from vue; //定义要给父组件的内容 const data reactive([{ name: 1, age: 1 },{ name: 2, age: 2 }, ]); /scriptstyle scoped/style 父组件 templatediv classmain/divAslottemplate v-slot{ data, index }div{{ data }}--{{ index }}/div/template/Aslot /templatescript setup langts import { ref, reactive } from vue; import Aslot from ./components/slot.vue; /scriptstyle scoped/style 简写 templatediv classmain/divAslot//v-slot变成# template #centerslotdiv具名插槽/div/templatetemplate #default{ data }div{{ data.name }}--{{ data }}/div/template/Aslot /template动态插槽 transition动画组件 vue提供transition的封装组件在下列情形下可以给任何元素和组件添加进入/离开过渡条件渲染v-if)条件展示v-show)动态组件组件根节点 在进入和离开的过渡中会有6个class的切换 name提供类名 templatediv classmain!-- transition动画组件 --transition nameboxdiv v-ifisblooen classbox-bg动画盒子/div/transitionbutton clickchange切换1/button/div /templatescript setup langts import { ref, reactive } from vue; let isblooen ref(true); const change () {isblooen.value !isblooen.value; }; /script //在进入和离开的过渡中会有6个class的切换 style scoped langless .box-bg {width: 200px;height: 200px;border: 1px solid #00f; } //显示之前第一个字母和上面name一致 .box-enter-from {width: 0px;height: 0px;background: #777; } //动画开始 .box-enter-active {background: #777;transition: all 10s ease; } //动画结束 .box-enter-to {width: 200px;height: 200px;background: #777; } //隐藏之前 .box-leave-from { } //隐藏中 .box-leave-active { } //隐藏后 .box-leave-to { } /style 自定义过渡class类名 templatediv classmain!-- transition动画组件 --transition nameboxdiv v-ifisblooen classbox-bg动画盒子/div/transition!-- 写法2 自定义过渡class类名--transitionnameboxenter-form-classe-formenter-active-classe-activeenter-to-classe-todiv v-ifisblooen classbox-bg动画盒子/div/transitionbutton clickchange切换1/button/div /templatescript setup langts import { ref, reactive } from vue; let isblooen ref(true); const change () {isblooen.value !isblooen.value; }; /scriptstyle scoped langless .box-bg {width: 200px;height: 200px;border: 1px solid #00f; } //显示之前 .box-enter-from {width: 0px;height: 0px;background: #777; } //写法2自定义类名 .e-form {width: 0px;height: 0px;background: #777; } //动画开始 .box-enter-active {background: #777;transition: all 10s ease; } .e-active {background: #755577;transition: all 10s ease; } //动画结束 .box-enter-to {width: 200px;height: 200px;background: #777; } .e-to {width: 200px;height: 200px;background: #766677; } //隐藏之前 .box-leave-from { } //隐藏中 .box-leave-active { } //隐藏后 .box-leave-to { } /style 如何使用animate动画库组件 安装 npm install animate.css官方文档地址步骤2导入动画库 步骤三使用leave-active-class是6个class的动画类名 动画生命周期 appear 通过这个属性可以设置初始节点就是页面加载完成就开始动画对应的三个状态相当于一进来动画就开始执行 templatediv classmaintransitionappearappear-classanimate__animated animate__backInLeftappear-active-classanimate__animated animate__backInRightappear-to-classanimate__animated animate__backOutUpdiv v-ifisblooen classbox-bg动画盒子/div/transitionbutton clickchange切换1/button/div /templatescript setup langts import { ref, reactive } from vue; import animate.css;let isblooen ref(true); const change () {isblooen.value !isblooen.value; }; /scriptstyle scoped langless .box-bg {width: 200px;height: 200px;border: 1px solid #00f; } //显示之前 .box-enter-from {width: 0px;height: 0px;background: #777; } .e-form {width: 0px;height: 0px;background: #777; } //动画开始 .box-enter-active {background: #777;transition: all 10s ease; } .e-active {background: #755577;transition: all 10s ease; } //动画结束 .box-enter-to {width: 200px;height: 200px;background: #777; } .e-to {width: 200px;height: 200px;background: #766677; } //隐藏之前 .box-leave-from { } //隐藏中 .box-leave-active { } //隐藏后 .box-leave-to { } /style transition- group过渡列表 相当于transition-group包裹的内容可以给他们添加删除初始化增加动画效果 templatediv classmain!-- appear-active-class是初始化动画enter-active-class是添加是动画leave-active-class是删除时动画--transition-groupappearappear-active-classanimate__animated animate__backInDownenter-active-classanimate__animated animate__backInDownleave-active-classanimate__animated animate__lightSpeedInRightdiv v-for(item, index) in list :keyindex{{ item }}/div/transition-groupbutton clickadd添加/buttonbutton clickdel删除/button/div /templatescript setup langts import { ref, reactive } from vue; import animate.css; const list reactivenumber([1, 2, 3, 4, 5, 6]); //增加 const add () {list.push(9); }; //删除 const del () {list.pop(); }; /scriptstyle scoped/style
http://www.w-s-a.com/news/985485/

相关文章:

  • 哪个网站注册域名便宜免费流程图制作网站
  • 潍坊做网站南宁网站seo优化公司
  • 网站建设的基本技术步骤无网站营销
  • 我国旅游网站的建设网站开发 混合式 数据库
  • 淘宝客网站域名家居网站开发项目计划书
  • 网站打不开显示asp苏州注册公司需要多少钱
  • 凡科建站登录官网wordpress主题有什么用
  • 西安双语网站建设怎么做网页动图
  • 宝安自适应网站建设无锡新区企业网站推广
  • 肇庆建设局网站cpanel 安装wordpress
  • 长春启做网站多少怎样换wordpress域名
  • 山西网站建设情况汇总vs2010 c 建设网站
  • 网站推广策划书 精品深圳市住建局和建设局官网
  • 住房和城乡建设部干部学院网站一般做公司网站需要哪几点
  • 网站制作流程详解(学做网站第一步)免费个人网站模版ps
  • 狮山网站建设公司微信平台软件开发
  • 绥芬河网站建设学网站开发的能找什么工作
  • 网站域名申请之后如何做网站微信公众号网页版登录入口
  • 网站优化图片省级精品课程网站
  • 婚纱摄影的网站模板怎么做网站自己当站长
  • 江西建设部网站wordpress弹出式广告
  • 工商年检在哪个网站做中国建设银行个人登录
  • seo做网站郑州巩义网站建设
  • 建设银行网站机构特点业务发展网站推广工作计划
  • 国家信用信息系统年报seo推广赚钱
  • 公司建设网站价格表广州免费拍卖公司
  • 知行网站建设wordpress文章半透明
  • 建设网站的虚拟机配置建设银行宁波分行招聘网站
  • 济南网站开发xywlcn网络推广服务合同模板
  • 品牌网站制作流程图用asp做网站题目