mirror of
https://github.com/talktao/Vue3-Vite-Vant-TS-H5.git
synced 2025-04-06 03:57:55 +08:00
feat:给公共组件添加组件实例的name属性,便于component.ts函数的批量全局注册组件
This commit is contained in:
parent
ec41a92858
commit
d7d21b3b89
@ -1,3 +1,9 @@
|
||||
<script lang="ts">
|
||||
export default{
|
||||
name: 'CustomHeader'
|
||||
}
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
|
@ -1,3 +1,8 @@
|
||||
<script lang="ts">
|
||||
export default{
|
||||
name: 'TabBar'
|
||||
}
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { reactive, ref } from 'vue'
|
||||
@ -22,7 +27,7 @@ import { reactive, ref } from 'vue'
|
||||
const active = ref('home')
|
||||
|
||||
const onChange = (value) => {
|
||||
console.log(value,'value');
|
||||
// console.log(value,'value');
|
||||
|
||||
emit('chang', value)
|
||||
}
|
||||
@ -37,8 +42,6 @@ import { reactive, ref } from 'vue'
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
Loading…
x
Reference in New Issue
Block a user