Skip to content

Commit

Permalink
fix(omiu): color style loss
Browse files Browse the repository at this point in the history
  • Loading branch information
dntzhang committed Nov 23, 2023
1 parent f6fee3c commit 8ca020e
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
46 changes: 46 additions & 0 deletions packages/omiu/src/components/button/ButtonPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,52 @@ export class ButtonPage extends Component {
</section>
{/* <!-- Section: Outline --> */}

{/* <!-- Section: Colors --> */}
<section>
{/* <!-- Title --> */}
<h2 className="mb-5 mt-0 text-3xl font-semibold leading-normal" id="outline" data-te-spy-item>
Colors
</h2>


<code-showcase
code={`<o-button color="primary">Primary</o-button>
<o-button color="secondary">Secondary</o-button>
<o-button color="success">Success</o-button>
<o-button color="info">Info</o-button>
<o-button color="warning">Warning</o-button>
<o-button color="danger">Danger</o-button>
<o-button color="light">Light</o-button>
<o-button color="dark">Dark</o-button>`}
>
<o-button color="primary">
Primary
</o-button>
<o-button color="secondary">
Secondary
</o-button>
<o-button color="success">
Success
</o-button>
<o-button color="info">
Info
</o-button>
<o-button color="warning">
Warning
</o-button>
<o-button color="danger">
Danger
</o-button>
<o-button color="light">
Light
</o-button>
<o-button color="dark">
Dark
</o-button>
</code-showcase>
</section>
{/* <!-- Section: Colors --> */}

{/* <!-- Section: Rounded --> */}
<section>
{/* <!-- Title --> */}
Expand Down
3 changes: 3 additions & 0 deletions packages/omiu/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { routes } from './routes'
import { Router } from 'omi-router'
import { tailwind } from '@/tailwind'

// 为了被扫出来,不然样式丢失
const classes = 'bg-success bg-danger bg-warning bg-info'

const router = new Router({
routes,
css: [
Expand Down

0 comments on commit 8ca020e

Please sign in to comment.