Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: countdown手动控制demo展示样式优化 #1229

Merged
merged 12 commits into from
Jul 14, 2023
Merged
5 changes: 5 additions & 0 deletions src/packages/countdown/demo.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.demo-countdown {
.nut-grid-item__content {
border: 0 !important;
}
}
7 changes: 6 additions & 1 deletion src/packages/countdown/demo.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
} from '@/packages/nutui.react.taro'
import Header from '@/sites/components/header'
import { useTranslate } from '@/sites/assets/locale/taro'
import '@/packages/countdown/demo.scss'

interface countdownRefState {
start: () => void
Expand Down Expand Up @@ -166,7 +167,11 @@ const CountDownDemo = () => {
return (
<>
<Header />
<div className={`demo ${Taro.getEnv() === 'WEB' ? 'web' : ''}`}>
<div
className={`demo demo-countdown ${
Taro.getEnv() === 'WEB' ? 'web' : ''
}`}
>
<h2>{translated.basic}</h2>
<Cell>
<CountDown
Expand Down
3 changes: 2 additions & 1 deletion src/packages/countdown/demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useTranslate } from '../../sites/assets/locale'
import Button from '../button'
import Grid from '../grid'
import GridItem from '../griditem'
import './demo.scss'

interface countdownRefState {
start: () => void
Expand Down Expand Up @@ -161,7 +162,7 @@ const CountDownDemo = () => {
}
return (
<>
<div className="demo">
<div className="demo demo-countdown">
<h2>{translated.basic}</h2>
<Cell>
<CountDown
Expand Down