Skip to content

Commit 8eaedd2

Browse files
committed
chore: address standardization review comments
1 parent 87f1c6f commit 8eaedd2

2 files changed

Lines changed: 21 additions & 11 deletions

File tree

.github/workflows/surge-preview.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,23 @@ jobs:
2222
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
2323
with:
2424
persist-credentials: false
25+
- name: Check Surge token
26+
id: surge-token
27+
env:
28+
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
29+
run: |
30+
if [ -n "$SURGE_TOKEN" ]; then
31+
echo "enabled=true" >> "$GITHUB_OUTPUT"
32+
else
33+
echo "enabled=false" >> "$GITHUB_OUTPUT"
34+
fi
2535
- name: Build preview
26-
if: ${{ secrets.SURGE_TOKEN != '' }}
36+
if: ${{ steps.surge-token.outputs.enabled == 'true' }}
2737
run: |
2838
npm install
2939
npm run build
3040
- uses: afc163/surge-preview@bf90a5a86111f6311ca42f0a5a0f80fb0fb03cec
31-
if: ${{ secrets.SURGE_TOKEN != '' }}
41+
if: ${{ steps.surge-token.outputs.enabled == 'true' }}
3242
env:
3343
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
3444
with:
@@ -38,5 +48,5 @@ jobs:
3848
failOnError: false
3949
setCommitStatus: false
4050
- name: Skip Surge preview
41-
if: ${{ secrets.SURGE_TOKEN == '' }}
51+
if: ${{ steps.surge-token.outputs.enabled != 'true' }}
4252
run: echo "SURGE_TOKEN is not configured; skip Surge preview."

README.zh-CN.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,23 @@ npm start
7070

7171
| 名称 | 类型 | 默认值 | 说明 |
7272
| --- | --- | --- | --- |
73-
| `className` | string | - | 根节点的附加className称|
74-
| `classNames` | 部分<记录<'根'\| '铁路' | '轨道',字符串>> | - | 内部插槽的语义化 className。 |
73+
| `className` | string | - | 根节点的附加 className|
74+
| `classNames` | `Partial<Record<'root' \| 'rail' \| 'track', string>>` | - | 内部插槽的语义化 className。 |
7575
| `gapDegree` | number | - | 循环进度的差距度。 |
7676
| `gapPosition` | `'top'` \| `'right'` \| `'bottom'` \| `'left'` | `'bottom'` | 循环进度的间隙位置。 |
7777
| `id` | string | - | 根元素 ID。 |
7878
| `loading` | boolean | false | 渲染不确定的加载动画。 |
7979
| `onClick` | React.MouseEventHandler | - | 单击根 SVG 的处理程序。 |
8080
| `percent` | number \| number[] | 0 | 进度百分比。数组会渲染多条轨道。 |
81-
| `prefixCls` | string | `'rc-progress'` | 前缀className|
82-
| `railColor` | string | `'#D9D9D9'` | Rail color. |
81+
| `prefixCls` | string | `'rc-progress'` | 前缀 className|
82+
| `railColor` | string | `'#D9D9D9'` | 导轨颜色。 |
8383
| `railWidth` | number | 1 | 导轨行程宽度。 |
84-
| `steps` | 数字\| { 计数:数量;间隙:数量 } | - | 以离散步骤渲染进度。 |
85-
| `strokeColor` | 字符串\|记录<字符串,字符串\|布尔值> \|数组<字符串\|记录<字符串,字符串\|布尔值>> | `'#2db7f5'` | 轨道颜色、渐变对象或每条轨道的颜色。 |
86-
| `strokeLinecap` | `'round'` \| `'butt'` \| `'square'` | `'round'` | Stroke line cap. |
84+
| `steps` | number \| { count: number; gap: number } | - | 以离散步骤渲染进度。 |
85+
| `strokeColor` | string \| Record<string, string \| boolean> \| Array<string \| Record<string, string \| boolean>> | `'#2db7f5'` | 轨道颜色、渐变对象或每条轨道的颜色。 |
86+
| `strokeLinecap` | `'round'` \| `'butt'` \| `'square'` | `'round'` | 描边端点样式。 |
8787
| `strokeWidth` | number | 1 | 轨道描边宽度。 |
8888
| `style` | React.CSSProperties | - | 根样式。 |
89-
| `styles` | 部分<记录<'根'\| '铁路' | 'track'React.CSSProperties>> | - | 内部插槽的语义化样式。 |
89+
| `styles` | `Partial<Record<'root' \| 'rail' \| 'track', React.CSSProperties>>` | - | 内部插槽的语义化样式。 |
9090
| `transition` | string | - | 用于跟踪更新的 CSS 过渡。 |
9191

9292
## 本地开发

0 commit comments

Comments
 (0)