File tree Expand file tree Collapse file tree
src/uni_modules/wot-design-uni/components/wd-navbar-capsule Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import type { ExtractPropTypes } from 'vue'
2+ import { baseProps } from '../common/props'
3+
4+ export const navbarCapsuleProps = {
5+ ...baseProps
6+ }
7+
8+ export type NavbarCapsuleProps = ExtractPropTypes < typeof navbarCapsuleProps >
Original file line number Diff line number Diff line change 11<template >
2- <view class =" wd-navbar-capsule" >
2+ <view : class =" ` wd-navbar-capsule ${customClass}` " :style = " customStyle " >
33 <wd-icon @click =" handleBack" name =" chevron-left" custom-class =" wd-navbar-capsule__icon" />
44 <wd-icon @click =" handleBackHome" name =" home" custom-class =" wd-navbar-capsule__icon" />
55 </view >
@@ -17,7 +17,10 @@ export default {
1717
1818<script lang="ts" setup>
1919import wdIcon from ' ../wd-icon/wd-icon.vue'
20+ import { navbarCapsuleProps } from ' ./types'
21+
2022const emit = defineEmits ([' back' , ' back-home' ])
23+ defineProps (navbarCapsuleProps )
2124
2225function handleBack() {
2326 emit (' back' )
You can’t perform that action at this time.
0 commit comments