Skip to content

Commit

Permalink
fix: 修复circle无法显示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
三少 committed Sep 28, 2022
1 parent 7e0e7a8 commit e62c5b3
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 155 deletions.
9 changes: 1 addition & 8 deletions packages/vantui-demo/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,7 @@ const config = {
hack: `true; @import "${npath.join(
process.cwd(),
'src/styles/index.less',
)}";${
process.env.TARO_ENV === 'kwai'
? `@import "${npath.join(
process.cwd(),
'src/styles/kwai.less',
)}";`
: ''
}`,
)}";`,
},
},
// 适用于全局引入样式
Expand Down
5 changes: 0 additions & 5 deletions packages/vantui-demo/src/styles/kwai.less

This file was deleted.

6 changes: 2 additions & 4 deletions packages/vantui-doc/src/circle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,14 @@ function Demo() {
const [value, setValue] = react.useState(50)
return (
<View>
<Circle value={value} strokeWidth="6" text="宽度定制" />
<Circle value={value} strokeWidth={6} text="宽度定制" />
<Circle
value={value}
layerColor="#eeeeee"
color="#ee0a24"
text="颜色定制"
/>
<Circle
type="2d"
value={value}
wait
solve
Expand All @@ -54,7 +53,7 @@ function Demo() {
}}
text="渐变色"
/>
<Circle value={value} size="120" text="大小定制" />
<Circle value={value} size={120} text="大小定制" />

<Button onClick={() => setValue(value + 10)}>增加</Button>
</View>
Expand Down Expand Up @@ -91,7 +90,6 @@ function Demo() {
| fill | - | _&nbsp;&nbsp;string<br/>_ | - | `false` |
| layerColor | - | _&nbsp;&nbsp;string<br/>_ | - | `false` |
| color | - | _&nbsp;&nbsp;attr:<br/>&nbsp;&nbsp;&nbsp;&nbsp;&brvbar;&nbsp;string<br/>&nbsp;&nbsp;&nbsp;&nbsp;&brvbar;&nbsp;Record<<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string,<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;><br/>_ | - | `false` |
| type | - | _&nbsp;&nbsp;string<br/>_ | - | `false` |
| strokeWidth | - | _&nbsp;&nbsp;number<br/>_ | - | `false` |
| clockwise | - | _&nbsp;&nbsp;boolean<br/>_ | - | `false` |
| children | - | _&nbsp;&nbsp;ReactNode<br/>_ | - | `false` |
Loading

0 comments on commit e62c5b3

Please sign in to comment.