fix: tabbar 引入

This commit is contained in:
菲鸽 2024-04-20 11:02:20 +08:00
parent cdae57adce
commit 7e3ab3ca19
5 changed files with 4 additions and 2 deletions

View File

@ -11,6 +11,7 @@ export default defineUniPages({
easycom: { easycom: {
autoscan: true, autoscan: true,
custom: { custom: {
'^fg-(.*)': '@/components/fg-$1.vue',
'^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue', '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
}, },
}, },

View File

@ -9,6 +9,7 @@
"easycom": { "easycom": {
"autoscan": true, "autoscan": true,
"custom": { "custom": {
"^fg-(.*)": "@/components/fg-$1.vue",
"^wd-(.*)": "wot-design-uni/components/wd-$1/wd-$1.vue" "^wd-(.*)": "wot-design-uni/components/wd-$1/wd-$1.vue"
} }
}, },

View File

@ -23,7 +23,7 @@
</wd-button> </wd-button>
</view> </view>
</view> </view>
<tabbar /> <fg-tabbar />
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>

View File

@ -28,7 +28,7 @@
<text class="text-green-500">tabbar</text> <text class="text-green-500">tabbar</text>
</view> </view>
</view> </view>
<tabbar /> <fg-tabbar />
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>