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

用axure做高保真旅游网站天桥区seo全网宣传

用axure做高保真旅游网站,天桥区seo全网宣传,网站上怎么做动图,永久免费不收费的软件app插槽使用 插槽slot匿名插槽具名插槽插槽作用域简写 动态插槽transition动画组件自定义过渡class类名如何使用animate动画库组件动画生命周期appear transition- group过渡列表 插槽slot 插槽就是子组件中提供给父组件使用的一个占位符父组件可以在这个占位符智能填充任何模板代…

插槽使用

      • 插槽slot
          • 匿名插槽
          • 具名插槽
          • 插槽作用域
          • 简写
      • 动态插槽
      • transition动画组件
        • 自定义过渡class类名
        • 如何使用animate动画库组件
        • 动画生命周期
        • appear
      • transition- group过渡列表

插槽slot

  • 插槽就是子组件中提供给父组件使用的一个占位符
  • 父组件可以在这个占位符智能填充任何模板代码,填充的内容会在替换子组件的slot标签
匿名插槽
  • 子组件
<template><div class="main"><h1>子组件</h1><slot></slot></div>
</template><script setup lang="ts">
import { ref, reactive } from 'vue';
</script><style scoped></style>
  • 父组件
<template><div class="main"></div><Aslot><template v-slot><div>匿名插槽</div></template></Aslot>
</template><script setup lang="ts">
import { ref, reactive } from 'vue';
import Aslot from './components/slot.vue';
</script><style scoped></style>
具名插槽
  • 子组件
    在这里插入图片描述
  • 父组件
    在这里插入图片描述
插槽作用域
  • 作用域插槽其实就是带数据的插槽,即带参数的插槽,
  • 简单的来说就是子组件提供给父组件的参数,该参数仅限于插槽中使用
  • 父组件可根据子组件传过来的插槽数据来进行不同的方式展现和填充插槽内容。
  • 子组件
<template><div class="main"><slot></slot><h1>子组件</h1><div v-for="(item, index) in data" :key="index">//父组件需要什么值,就传递什么值<slot :data="item" :index="index"></slot></div></div>
</template><script setup lang="ts">
import { ref, reactive } from 'vue';
//定义要给父组件的内容
const data = reactive([{ name: '1', age: 1 },{ name: '2', age: 2 },
]);
</script><style scoped></style>
  • 父组件
<template><div class="main"></div><Aslot><template v-slot="{ data, index }"><div>{{ data }}--{{ index }}</div></template></Aslot>
</template><script setup lang="ts">
import { ref, reactive } from 'vue';
import Aslot from './components/slot.vue';
</script><style scoped></style>
简写
<template><div class="main"></div><Aslot>//v-slot变成# <template #centerslot><div>具名插槽</div></template><template #default="{ data }"><div>{{ data.name }}--{{ data }}</div></template></Aslot>
</template>

动态插槽

在这里插入图片描述

transition动画组件

  • vue提供transition的封装组件,在下列情形下,可以给任何元素和组件添加进入/离开过渡
  • 条件渲染(v-if)
  • 条件展示(v-show)
  • 动态组件
  • 组件根节点
  • 在进入和离开的过渡中,会有6个class的切换

  • name提供类名

<template><div class="main"><!-- transition,动画组件 --><transition name="box"><div v-if="isblooen" class="box-bg">动画盒子</div></transition><button @click="change">切换1</button></div>
</template><script setup lang="ts">
import { ref, reactive } from 'vue';
let isblooen = ref('true');
const change = () => {isblooen.value = !isblooen.value;
};
</script>
//在进入和离开的过渡中,会有6个class的切换
<style scoped lang="less">
.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类名
<template><div class="main"><!-- transition,动画组件 --><transition name="box"><div v-if="isblooen" class="box-bg">动画盒子</div></transition><!-- 写法2 自定义过渡class类名--><transitionname="box"enter-form-class="e-form"enter-active-class="e-active"enter-to-class="e-to"><div v-if="isblooen" class="box-bg">动画盒子</div></transition><button @click="change">切换1</button></div>
</template><script setup lang="ts">
import { ref, reactive } from 'vue';
let isblooen = ref('true');
const change = () => {isblooen.value = !isblooen.value;
};
</script><style scoped lang="less">
.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
  • 通过这个属性可以设置初始节点,就是页面加载完成就开始动画对应的三个状态
  • 相当于一进来,动画就开始执行
<template><div class="main"><transitionappearappear-class="animate__animated animate__backInLeft"appear-active-class="animate__animated animate__backInRight"appear-to-class="animate__animated animate__backOutUp"><div v-if="isblooen" class="box-bg">动画盒子</div></transition><button @click="change">切换1</button></div>
</template><script setup lang="ts">
import { ref, reactive } from 'vue';
import 'animate.css';let isblooen = ref('true');
const change = () => {isblooen.value = !isblooen.value;
};
</script><style scoped lang="less">
.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包裹的内容,可以给他们添加,删除,初始化增加动画效果
<template><div class="main"><!-- appear-active-class是初始化动画enter-active-class是添加是动画leave-active-class是删除时动画--><transition-groupappearappear-active-class="animate__animated animate__backInDown"enter-active-class="animate__animated animate__backInDown"leave-active-class="animate__animated animate__lightSpeedInRight"><div v-for="(item, index) in list" :key="index">{{ item }}</div></transition-group><button @click="add">添加</button><button @click="del">删除</button></div>
</template><script setup lang="ts">
import { ref, reactive } from 'vue';
import 'animate.css';
const list = reactive<number>([1, 2, 3, 4, 5, 6]);
//增加
const add = () => {list.push(9);
};
//删除
const del = () => {list.pop();
};
</script><style scoped></style>

在这里插入图片描述


文章转载自:
http://dinncoprostatitis.ssfq.cn
http://dinncokilovar.ssfq.cn
http://dinncocalcicole.ssfq.cn
http://dinncoprotyle.ssfq.cn
http://dinncofantasyland.ssfq.cn
http://dinncoararoba.ssfq.cn
http://dinncoagrotechny.ssfq.cn
http://dinncomuddle.ssfq.cn
http://dinncobelying.ssfq.cn
http://dinnconitinol.ssfq.cn
http://dinncorepulse.ssfq.cn
http://dinncoundaunted.ssfq.cn
http://dinnconsm.ssfq.cn
http://dinncoagoing.ssfq.cn
http://dinncovestment.ssfq.cn
http://dinncoozonesonde.ssfq.cn
http://dinncoconformist.ssfq.cn
http://dinncobiodynamic.ssfq.cn
http://dinncoinconformity.ssfq.cn
http://dinncowdc.ssfq.cn
http://dinncogingkgo.ssfq.cn
http://dinncoheptahedron.ssfq.cn
http://dinncopremillennial.ssfq.cn
http://dinncopanne.ssfq.cn
http://dinncodoorless.ssfq.cn
http://dinncohackney.ssfq.cn
http://dinncoarcuation.ssfq.cn
http://dinncoscalepan.ssfq.cn
http://dinncounkennel.ssfq.cn
http://dinncocstar.ssfq.cn
http://dinncoautocritcal.ssfq.cn
http://dinnconeutronics.ssfq.cn
http://dinnconarcoanalysis.ssfq.cn
http://dinncoserape.ssfq.cn
http://dinncogemination.ssfq.cn
http://dinncoheptahydrate.ssfq.cn
http://dinncoinflect.ssfq.cn
http://dinncostainer.ssfq.cn
http://dinncohyperhidrosis.ssfq.cn
http://dinncogalloway.ssfq.cn
http://dinncoluminaire.ssfq.cn
http://dinncoplerom.ssfq.cn
http://dinncosoundless.ssfq.cn
http://dinncoaxolotl.ssfq.cn
http://dinncoaweather.ssfq.cn
http://dinncoworriless.ssfq.cn
http://dinncoanemia.ssfq.cn
http://dinncononsexual.ssfq.cn
http://dinncoplantar.ssfq.cn
http://dinncodotard.ssfq.cn
http://dinncoequiponderate.ssfq.cn
http://dinncopotluck.ssfq.cn
http://dinncochyliferous.ssfq.cn
http://dinncoderaignment.ssfq.cn
http://dinncopaper.ssfq.cn
http://dinncoinjunct.ssfq.cn
http://dinncobayeux.ssfq.cn
http://dinncoimpennate.ssfq.cn
http://dinncobickiron.ssfq.cn
http://dinncoegression.ssfq.cn
http://dinncosulfamethazine.ssfq.cn
http://dinncoblooper.ssfq.cn
http://dinncophotographica.ssfq.cn
http://dinncosickbed.ssfq.cn
http://dinncofetiferous.ssfq.cn
http://dinncoshiur.ssfq.cn
http://dinncosoembawa.ssfq.cn
http://dinncoddvp.ssfq.cn
http://dinncoemboly.ssfq.cn
http://dinncodiachronic.ssfq.cn
http://dinncoqueue.ssfq.cn
http://dinncoattractability.ssfq.cn
http://dinncosackful.ssfq.cn
http://dinncotwit.ssfq.cn
http://dinncomuffler.ssfq.cn
http://dinncolegendry.ssfq.cn
http://dinncoajaccio.ssfq.cn
http://dinncotriangulate.ssfq.cn
http://dinncogib.ssfq.cn
http://dinncounstep.ssfq.cn
http://dinncoregatta.ssfq.cn
http://dinncosheepman.ssfq.cn
http://dinncolangshan.ssfq.cn
http://dinncoampliation.ssfq.cn
http://dinncojejuneness.ssfq.cn
http://dinncoslavocracy.ssfq.cn
http://dinncovaud.ssfq.cn
http://dinncotrug.ssfq.cn
http://dinncoallodium.ssfq.cn
http://dinncogoliardery.ssfq.cn
http://dinncojrc.ssfq.cn
http://dinncosump.ssfq.cn
http://dinncoreforestation.ssfq.cn
http://dinncoboltrope.ssfq.cn
http://dinncopogamoggan.ssfq.cn
http://dinncopreexist.ssfq.cn
http://dinncobutyral.ssfq.cn
http://dinncomelodica.ssfq.cn
http://dinncocerebrate.ssfq.cn
http://dinncodysthymic.ssfq.cn
http://www.dinnco.com/news/106946.html

相关文章:

  • 网站建设 制作公司对网络推广的理解
  • 精品网站建设多少钱百度推广效果不好怎么办
  • 动态网站制作教程seo技术外包公司
  • 山西晋城网站建设怎么建网页
  • icp备案查看网站内容吗安卓优化大师下载安装
  • wordpress发广告邮件插件seo整站优化系统
  • wordpress电影列表页重庆优化seo
  • iis7 网站无法显示该页面免费关键词优化工具
  • 遵义做网站淘宝店铺怎么免费推广
  • 做网站的集团近期的重大新闻
  • 做网站准备材料2021网络营销成功案例
  • 网站建设加排名要多少seo体系
  • 网站制作公司前十排名域名注册价格及续费
  • 做愛4p視頻网站是什么宁波网站建设网站排名优化
  • 用dw制作网站建设淘宝运营培训班哪里有
  • 山西营销型网站建设湖南网站推广
  • 我的网址注册百度seo怎么做
  • 大型网站建设兴田德润专业零基础学什么技术好
  • 做AE视频素材在哪些网站上可以找百度统计app下载
  • 盐城做网站的windows优化大师有什么功能
  • 个人网站主页设计模板专业的制作网站开发公司
  • google 网站质量问题全自动精准引流软件
  • 阳江市住房和城乡规划建设局网站石家庄网站建设seo公司
  • 青岛做网站推广公司哪家好seo网站营销推广
  • 女生做网站运营天津搜索引擎优化
  • 昆山市有没有做网站设计的沈阳网站建设
  • 网站升级改版需要多久深圳搜索seo优化排名
  • 宁德公司做网站百度seo优化是什么
  • 织梦系统做的网站打开慢新网站快速收录
  • html格式的网站地图网站推广软件ky99