mirror of
https://github.com/talktao/Vue3-Vite-Vant-TS-H5.git
synced 2025-04-06 03:57:55 +08:00
feat:组件结构调整
This commit is contained in:
parent
1b5844759b
commit
01736c0b8f
@ -7,7 +7,7 @@ export default{
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
|
||||
|
||||
interface topTitleProps {
|
||||
title?: string,
|
||||
leftIcon?: string,
|
||||
@ -46,9 +46,9 @@ export default{
|
||||
<template>
|
||||
<van-sticky>
|
||||
<van-nav-bar :title="title" @click-left="clickLeft" @click-right="clickRight" left-arrow>
|
||||
<template #left> <van-icon :color="color" size="20" :name="leftIcon" /><span :style="{color}">{{ leftText }}</span> </template>
|
||||
<template #left> <van-icon :color="color" size="20" :name="leftIcon" /><span :style="color">{{ leftText }}</span> </template>
|
||||
<template @click-right="onClickRight" #right>
|
||||
<span :style="{color}">{{ rightText }}</span>
|
||||
<span :style="color">{{ rightText }}</span>
|
||||
</template>
|
||||
</van-nav-bar>
|
||||
</van-sticky>
|
||||
|
@ -8,7 +8,6 @@ export default {
|
||||
let curComponent = modules[componentPath]?.default
|
||||
|
||||
app.component(curComponent.name, curComponent);
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user