Skip to content

Commit c8077c9

Browse files
authored
fix: 🐛 修复release脚本处理最低版本号问题
* fix: 🐛 修复`release`脚本处理最低版本号问题 * docs: ✏️ 纠正`slider`组件`step`属性最低版本号错误
1 parent bc2b39f commit c8077c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const handleLowestVersion = (dir, version) => {
3333
})
3434

3535
if (content.includes(LOWEST_VERSION)) {
36-
content = content.replace(LOWEST_VERSION, version)
36+
content = content.replace(/\$LOWEST_VERSION\$/g, version)
3737
writeFileSync(itemPath, content)
3838
}
3939
}

docs/component/slider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const value = ref<number[]>([10, 30])
6363
| disabled | 是否禁用 | boolean | - | false | - |
6464
| max | 最大值 | number | - | 100 | - |
6565
| min | 最小值,允许负数`(1.2.19)` | number | - | 0 | - |
66-
| step | 步进值 | number | - | 1 | `($LOWEST_VERSION$)` |
66+
| step | 步进值 | number | - | 1 | `1.2.19` |
6767
| active-color | 进度条激活背景颜色 | string | - | linear-gradient(315deg, rgba(81,124,240,1) 0%,rgba(118,158,245,1) 100%) | - |
6868
| inactive-color | 进度条未激活背景颜色 | string | - | #e5e5e5 | - |
6969

0 commit comments

Comments
 (0)