-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- bf2e833
- Loading branch information
Showing
10 changed files
with
11 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ const order = [ | |
// | ||
'^@tarojs/', | ||
'react', | ||
'^@taroify/', | ||
]; | ||
|
||
importOrder.splice(1, 0, ...order); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
@import '~@taroify/core/styles/variables'; | ||
// Base Unit | ||
$hd: 2; | ||
|
||
.page { | ||
height: 100vh; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 0 additions & 39 deletions
39
packages/taro-demo-react/src/pages/index/index.module.scss
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,14 @@ | ||
import { Image, Text, View } from '@tarojs/components'; | ||
import { navs, type NavConfig } from './constants'; | ||
import Nav, { NavBlock } from './nav'; | ||
import styles from './index.module.scss'; | ||
import { Text, View } from '@tarojs/components'; | ||
import { useLoad } from '@tarojs/taro'; | ||
|
||
function renderNavBlocks(group: string, children: NavConfig[]) { | ||
return children.map(({ name, path }) => ( | ||
<NavBlock key={path} href={`/pages/${group}/${path}`} title={name} /> | ||
)); | ||
} | ||
|
||
function renderNavs() { | ||
return navs.map(({ name, path, children }) => ( | ||
<Nav key={path} title={name}> | ||
{renderNavBlocks(path, children)} | ||
</Nav> | ||
)); | ||
} | ||
export default function Index() { | ||
useLoad(() => { | ||
console.log('Page loaded.'); | ||
}); | ||
|
||
export default function Home() { | ||
return ( | ||
<View className={styles.home}> | ||
<View className={styles.home__title}> | ||
<Image | ||
className={styles.home__logo} | ||
mode="aspectFit" | ||
src="https://img01.yzcdn.cn/vant/logo.png" | ||
/> | ||
<Text className={styles.home__name}>Taroify</Text> | ||
</View> | ||
<View className={styles.home__description}>轻量、可靠的小程序端 Taro 组件库</View> | ||
{renderNavs()} | ||
<View className="index"> | ||
<Text>Hello world!</Text> | ||
</View> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.