feat: 动效引入测试,菜单整体调整
parent
2235582f26
commit
d295a5124d
Binary file not shown.
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 162 KiB |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" aria-hidden="true" class="re-screen" color="#00000073" viewBox="0 0 16 16"><path fill="currentColor" d="M3 12h10V4H3v8zm2-6h6v4H5V6zM2 6H1V2.5l.5-.5H5v1H2v3zm13-3.5V6h-1V3h-3V2h3.5l.5.5zM14 10h1v3.5l-.5.5H11v-1h3v-3zM2 13h3v1H1.5l-.5-.5V10h1v3z"/></svg>
|
After Width: | Height: | Size: 318 B |
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" aria-hidden="true" class="re-screen" color="#00000073" viewBox="0 0 16 16"><path fill="currentColor" d="M3.5 4H1V3h2V1h1v2.5l-.5.5zM13 3V1h-1v2.5l.5.5H15V3h-2zm-1 9.5V15h1v-2h2v-1h-2.5l-.5.5zM1 12v1h2v2h1v-2.5l-.5-.5H1zm11-1.5-.5.5h-7l-.5-.5v-5l.5-.5h7l.5.5v5zM10 7H6v2h4V7z"/></svg>
|
After Width: | Height: | Size: 348 B |
@ -0,0 +1,5 @@
|
||||
import collapseTree from "./src/collapseTree";
|
||||
|
||||
const CollapseTree = collapseTree;
|
||||
|
||||
export { CollapseTree };
|
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2024-01-15 14:34:20
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-01-15 15:21:52
|
||||
* @FilePath: \general-work-web\General-AI-Platform-Web-Client\src\components\CustomTree\src\collapseTree.tsx
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
*/
|
||||
|
||||
import { defineComponent, ref } from "vue";
|
||||
|
||||
export default defineComponent({
|
||||
name: "CollapseTree",
|
||||
props: {
|
||||
value: {
|
||||
type: undefined,
|
||||
default: []
|
||||
}
|
||||
},
|
||||
setup() {
|
||||
const count = ref<number>(1);
|
||||
|
||||
return () => {
|
||||
return <div>123{count}</div>;
|
||||
};
|
||||
}
|
||||
});
|
@ -0,0 +1,38 @@
|
||||
<!--
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2024-01-15 11:06:34
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-01-15 11:07:03
|
||||
* @FilePath: \general-work-web\General-AI-Platform-Web-Client\src\views\demo\animateDevice.vue
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
-->
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from "vue"; //引入相关api
|
||||
import lottie from "lottie-web"; //引入动效库
|
||||
import json01 from "@/assets/animate/device/01.json"; //引入下载的动效json
|
||||
|
||||
defineOptions({
|
||||
name: "animateDeviceDemo"
|
||||
});
|
||||
|
||||
const animation1 = ref(null); //获取dom
|
||||
function initAnimate() {
|
||||
console.log(lottie, "lottie");
|
||||
lottie.loadAnimation({
|
||||
container: animation1.value, //选择渲染dom
|
||||
renderer: "svg", //渲染格式
|
||||
loop: true, //循环播放
|
||||
autoplay: true, //是否i自动播放,
|
||||
animationData: json01 //渲染动效json
|
||||
});
|
||||
}
|
||||
onMounted(() => {
|
||||
initAnimate();
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<div ref="animation1" />
|
||||
</div>
|
||||
</template>
|
@ -0,0 +1,20 @@
|
||||
<!--
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2024-01-15 11:22:10
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-01-15 15:23:07
|
||||
* @FilePath: \general-work-web\General-AI-Platform-Web-Client\src\views\demo\leftTree\index.vue
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
-->
|
||||
<script setup lang="ts">
|
||||
import { CollapseTree } from "@/components/CustomTree";
|
||||
defineOptions({
|
||||
name: "DemoLeftTree"
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<CollapseTree />
|
||||
</div>
|
||||
</template>
|
Loading…
Reference in New Issue