feat 配置tabBar
This commit is contained in:
48
src/App.vue
48
src/App.vue
@@ -1,3 +1,51 @@
|
||||
<script setup lang="ts">
|
||||
onLaunch(() => {})
|
||||
</script>
|
||||
|
||||
<style>
|
||||
/* #ifdef H5 */
|
||||
uni-tabbar {
|
||||
--uni-tabbar-height: 50px;
|
||||
}
|
||||
|
||||
uni-tabbar .uni-tabbar__icon {
|
||||
height: 24px !important;
|
||||
width: 24px !important;
|
||||
}
|
||||
|
||||
uni-tabbar .uni-tabbar__icon img {
|
||||
height: 24px !important;
|
||||
width: 24px !important;
|
||||
}
|
||||
|
||||
uni-tabbar .uni-tabbar__label {
|
||||
font-size: 10px !important;
|
||||
margin-top: 2px !important;
|
||||
}
|
||||
/* #endif */
|
||||
|
||||
/* #ifdef APP-PLUS */
|
||||
uni-tabbar {
|
||||
height: 50px !important;
|
||||
}
|
||||
|
||||
uni-tabbar .uni-tabbar__content {
|
||||
height: 50px !important;
|
||||
}
|
||||
|
||||
uni-tabbar .uni-tabbar__icon {
|
||||
height: 24px !important;
|
||||
width: 24px !important;
|
||||
}
|
||||
|
||||
uni-tabbar .uni-tabbar__icon img {
|
||||
height: 24px !important;
|
||||
width: 24px !important;
|
||||
}
|
||||
|
||||
uni-tabbar .uni-tabbar__label {
|
||||
font-size: 10px !important;
|
||||
margin-top: 2px !important;
|
||||
}
|
||||
/* #endif */
|
||||
</style>
|
||||
|
||||
BIN
src/static/home.png
Normal file
BIN
src/static/home.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 757 B |
BIN
src/static/home1.png
Normal file
BIN
src/static/home1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 804 B |
BIN
src/static/report.png
Normal file
BIN
src/static/report.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/static/report1.png
Normal file
BIN
src/static/report1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/static/work.png
Normal file
BIN
src/static/work.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/static/work1.png
Normal file
BIN
src/static/work1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
@@ -9,7 +9,7 @@
|
||||
"tabBgColor": "#fcfcfc",
|
||||
"tabBorderStyle": "black",
|
||||
"tabFontColor": "#1f2937",
|
||||
"tabSelectedColor": "#ff6b00"
|
||||
"tabSelectedColor": "#4685FD"
|
||||
},
|
||||
"dark": {
|
||||
"bgColor": "#181818",
|
||||
@@ -21,6 +21,6 @@
|
||||
"tabBgColor": "#181818",
|
||||
"tabBorderStyle": "white",
|
||||
"tabFontColor": "#f3f4f6",
|
||||
"tabSelectedColor": "#ff6b00"
|
||||
"tabSelectedColor": "#4685FD"
|
||||
}
|
||||
}
|
||||
|
||||
2
src/uni-pages.d.ts
vendored
2
src/uni-pages.d.ts
vendored
@@ -14,7 +14,7 @@ interface NavigateToOptions {
|
||||
interface RedirectToOptions extends NavigateToOptions {}
|
||||
|
||||
interface SwitchTabOptions {
|
||||
url: "/pages/index" | "/pages/hi" | "/pages/hi"
|
||||
url: "/pages/home/index" | "/pages/work/index" | "/pages/report/index"
|
||||
}
|
||||
|
||||
type ReLaunchOptions = NavigateToOptions | SwitchTabOptions;
|
||||
|
||||
Reference in New Issue
Block a user