|
@@ -1,12 +1,28 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div>
|
|
<div>
|
|
|
<h1 class="h-26 text-6xl">Part2</h1>
|
|
<h1 class="h-26 text-6xl">Part2</h1>
|
|
|
- <h3 class="h-16 text-4xl"></h3>
|
|
|
|
|
|
|
+ <slot :list="obj" name="xx"></slot>
|
|
|
|
|
+ <h3 class="h-16 text-4xl">页尾</h3>
|
|
|
|
|
+ <slot></slot>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
import { ref, reactive } from "vue";
|
|
import { ref, reactive } from "vue";
|
|
|
|
|
+let obj = reactive([
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "孙悟空",
|
|
|
|
|
+ id: 11,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "猪八戒",
|
|
|
|
|
+ id: 22,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "沙和尚",
|
|
|
|
|
+ id: 33,
|
|
|
|
|
+ },
|
|
|
|
|
+]);
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|