forked from MAXLZ1/micro-app-demos
-
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.
- Loading branch information
Showing
8 changed files
with
100 additions
and
3 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.DS_Store | ||
dist | ||
# build dir | ||
# Build dir | ||
micro-app-demos | ||
node_modules | ||
.history | ||
|
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
11 changes: 11 additions & 0 deletions
11
packages/wujie-demo/vite-child/src/views/CssIsolation/index.module.less
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.first-col { | ||
color: #ffffff; | ||
background-color: brown; | ||
font-size: 16px; | ||
} | ||
|
||
.second-col { | ||
color: #ffffff; | ||
background-color: blueviolet; | ||
font-size: 16px; | ||
} |
18 changes: 18 additions & 0 deletions
18
packages/wujie-demo/vite-child/src/views/CssIsolation/index.tsx
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Col, Row, Typography } from 'antd' | ||
import styles from './index.module.less' | ||
|
||
export default function CssIsolation() { | ||
return ( | ||
<> | ||
<Row> | ||
<Col> | ||
<Typography.Title>vite子应用(CSS Module)</Typography.Title> | ||
</Col> | ||
</Row> | ||
<Row> | ||
<Col span={12} className={styles.firstCol}>class="first-col"<br />background-color: brown;<br />font-size: 16px;</Col> | ||
<Col span={12} className={styles.secondCol}>class="second-col"<br />background-color: blueviolet;<br />font-size: 16px;</Col> | ||
</Row> | ||
</> | ||
) | ||
} |
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