acdr-ui/dist/dev/mp-weixin/components/Tabbar.js.map

1 line
1.6 KiB
Plaintext

{"version":3,"file":"Tabbar.js","sources":["../../../../src/components/Tabbar.vue","../../../../uniComponent:/RDovQXBwL1dvcmsvYWRkci9hY2RyLXVpL3NyYy9jb21wb25lbnRzL1RhYmJhci52dWU"],"sourcesContent":["<template>\r\n <view\r\n class=\"shadow-2xl custom-tab-bar fixed bottom-0 left-0 right-0 flex justify-around items-center bg-white border-t border-gray-300 py-2\"\r\n >\r\n <view\r\n v-for=\"(item, index) in routersStore.tabList\"\r\n :key=\"index\"\r\n class=\"tab-item text-center flex-1\"\r\n :class=\"{ 'text-[#070707]': routersStore.selected === index }\"\r\n @click=\"switchTab(item)\"\r\n >\r\n <image\r\n :src=\"routersStore.selected === index ? item.selectedIconPath : item.iconPath\"\r\n class=\"w-6 h-6 mx-auto mb-1\"\r\n ></image>\r\n <text class=\"block text-xs\">{{ item.text }}</text>\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script setup>\r\nimport { useRoutersStore } from '@/store/routers'\r\n\r\nconst routersStore = useRoutersStore()\r\n\r\nfunction switchTab(item) {\r\n routersStore.setCurrentTab(item.pagePath) // 更新选中的 tab 状态\r\n uni.switchTab({\r\n url: item.pagePath,\r\n })\r\n}\r\n</script>\r\n\r\n<style scoped></style>\r\n","import Component from 'D:/App/Work/addr/acdr-ui/src/components/Tabbar.vue'\nwx.createComponent(Component)"],"names":["useRoutersStore","uni","Component"],"mappings":";;;;;;AAAA,UAAA,eAAAA,cAAAA,gBAAA;AAAA,aAAA,UAAA,MAAA;AAAA,mBAAA,cAAA,KAAA,QAAA;AAAAC,oBAAAA,MAAA,UAAA;AAAA,QAAA,KAAA,KAAA;AAAA,MAAA,CAAA;AAAA,IAAA;;;;;;;;;;;;;;;;ACCA,GAAG,gBAAgBC,SAAS;"}