create-vite-taro 0.6.6 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { useLaunch } from 'virtual:taro/api'
|
|
2
|
+
import { View } from 'virtual:taro/components'
|
|
2
3
|
import type { PropsWithChildren } from 'react'
|
|
3
4
|
import './app.css'
|
|
5
|
+
import { Footer } from './components/footer/footer.tsx'
|
|
4
6
|
import { initNavigationBar } from './components/navigation-bar/use-navigation-bar.ts'
|
|
5
7
|
|
|
6
8
|
function App({ children }: PropsWithChildren) {
|
|
@@ -9,7 +11,13 @@ function App({ children }: PropsWithChildren) {
|
|
|
9
11
|
initNavigationBar()
|
|
10
12
|
})
|
|
11
13
|
|
|
12
|
-
return
|
|
14
|
+
return (
|
|
15
|
+
<View className="app-shell flex h-screen flex-col overflow-hidden bg-canvas bg-canvas-botanical text-foreground">
|
|
16
|
+
{/* H5 requires the routed Page to remain the final child; flex order still places Footer below it. */}
|
|
17
|
+
<Footer />
|
|
18
|
+
<>{children}</>
|
|
19
|
+
</View>
|
|
20
|
+
)
|
|
13
21
|
}
|
|
14
22
|
|
|
15
23
|
export default App
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Text, View } from 'virtual:taro/components'
|
|
2
|
+
|
|
3
|
+
export function Footer() {
|
|
4
|
+
return (
|
|
5
|
+
<View className="order-last mt-auto flex h-10 shrink-0 flex-row items-center justify-center border-t border-divider bg-surface-subtle/95 px-5">
|
|
6
|
+
<Text className="text-center text-xs font-bold tracking-widest text-quiet">
|
|
7
|
+
VPT · OPEN SOURCE · MIT
|
|
8
|
+
</Text>
|
|
9
|
+
</View>
|
|
10
|
+
)
|
|
11
|
+
}
|
|
@@ -32,7 +32,7 @@ function HomePage() {
|
|
|
32
32
|
const [count, setCount] = useState(0)
|
|
33
33
|
|
|
34
34
|
return (
|
|
35
|
-
<View className="flex h-
|
|
35
|
+
<View className="flex h-full min-h-0 flex-1 flex-col overflow-hidden">
|
|
36
36
|
<NavigationBar title="VPT" />
|
|
37
37
|
<ScrollView scrollY className="flex min-h-0 flex-1 flex-col">
|
|
38
38
|
<View className="relative flex shrink-0 flex-col items-center overflow-hidden px-5 pb-8 pt-6">
|
|
@@ -133,12 +133,6 @@ function HomePage() {
|
|
|
133
133
|
<Suspense fallback={<View className="mt-8 min-h-48 rounded-3xl bg-primary" />}>
|
|
134
134
|
<ApiCard />
|
|
135
135
|
</Suspense>
|
|
136
|
-
|
|
137
|
-
<View className="flex flex-col items-center px-2 pb-2 pt-9">
|
|
138
|
-
<Text className="text-center text-xs font-bold tracking-widest text-quiet">
|
|
139
|
-
VPT · OPEN SOURCE · MIT
|
|
140
|
-
</Text>
|
|
141
|
-
</View>
|
|
142
136
|
</View>
|
|
143
137
|
</View>
|
|
144
138
|
</ScrollView>
|