Skip to content

Commit 805dbf7

Browse files
committed
[doc]更新版本号至1.0.4,增强输入和按钮组件,新增type属性及负数输入支持,修复类型导出错误,补充遗漏的语言文件。
1 parent 587f127 commit 805dbf7

File tree

9 files changed

+42
-6
lines changed

9 files changed

+42
-6
lines changed

docs/mds/components/button/version.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
- [!tag|A|0|] 新增。
1414
-->
1515

16+
## 1.0.4
17+
18+
- [!tag|A|0|] 新增 `type` 属性 [PR#43](https://github.com/any-tdf/stdf/pull/43),相关 [MDN](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Reference/Elements/button#type)[!contribute|arithefirst|]
19+
1620
## 0.5.2
1721

1822
- [!tag|O|0|]调整 icon 与 loading 参数,使其可同时存在。

docs/mds/components/button/version_en.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.4
2+
3+
- [!tag|A|0|] Added `type` property [PR#43](https://github.com/any-tdf/stdf/pull/43), related [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#type). [!contribute|arithefirst|]
4+
15
## 0.5.2
26

37
- [!tag|O|0|]Adjust the icon and loading parameters to allow them to coexist.

docs/mds/components/input/api.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
| placeholder | `string` | `''` | N | 输入框提示文本。 |
99
| radius | `'none'\|'sm'\|'xl'\|'full'` | `'sm'` | N | 圆角风格。 |
1010
| inputStyle | `'block'\|'line'` | `'block'` | N | 输入框风格。 |
11-
| lineTransition | `string` | `'none'` | N | 线性过渡位置。 |
11+
| lineTransition | `'left'\|'center'` | `'left'` | N | 线性过渡位置。 |
1212
| duration | `'fast'\|'base'\|'slow'\|'slower'` | `'base'` | N | 过渡时间。 |
1313
| autocomplete | `boolean` | `true` | N | 是否开启自动填充功能。 |
1414
| py | `'0'\|'0.5'\|'1'\|'2'\|'3'\|'4'\|'6'` | `'2'` | N | 垂直间距。 |
@@ -20,6 +20,7 @@
2020
| textareaMaxlength | `number` | `200` | N | textarea 时最多可输入文本长度。 |
2121
| rows | `number` | `2` | N | textarea 时行数。 |
2222
| autosize | `boolean` | `false` | N | textarea 时是否自动调整高度。 |
23+
| negative | `boolean` | `false` | N | 是否允许输入负数。 |
2324
| label1 | [`Icon`](https://stdf.design/components?nav=icon&tab=1)\|`null` | `null` | N | 标签 1 内容。 |
2425
| label2 | `string\|null` | `null` | N | 标签 2 内容。 |
2526
| label3 | [`Icon`](https://stdf.design/components?nav=icon&tab=1)\|`null` | `null` | N | 标签 3 内容。 |

docs/mds/components/input/api_en.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
| placeholder | `string` | `''` | N | Input placeholder text. |
99
| radius | `'none'\|'base'\|'xl'\|'full'` | `'base'` | N | Border radius style. |
1010
| inputStyle | `'block'\|'line'` | `'block'` | N | Input box style. |
11-
| lineTransition | `string` | `'none'` | N | Linear transition position. |
11+
| lineTransition | `'left'\|'center'` | `'left'` | N | Linear transition position. |
1212
| duration | `'fast'\|'base'\|'slow'\|'slower'` | `'base'` | N | Transition duration. |
1313
| autocomplete | `boolean` | `true` | N | Whether to enable autocomplete. |
1414
| py | `'0'\|'0.5'\|'1'\|'2'\|'3'\|'4'\|'6'` | `'2'` | N | Vertical padding. |
@@ -20,6 +20,7 @@
2020
| textareaMaxlength | `number` | `200` | N | Maximum text length for textarea. |
2121
| rows | `number` | `2` | N | Number of rows for textarea. |
2222
| autosize | `boolean` | `false` | N | Auto adjust height for textarea. |
23+
| negative | `boolean` | `false` | N | Whether to allow negative numbers. |
2324
| label1 | [`Icon`](https://stdf.design/components?nav=icon&tab=1)\|`null` | `null` | N | Label 1 content. |
2425
| label2 | `string\|null` | `null` | N | Label 2 content. |
2526
| label3 | [`Icon`](https://stdf.design/components?nav=icon&tab=1)\|`null` | `null` | N | Label 3 content. |

docs/mds/components/input/version.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.0.4
2+
3+
- [!tag|B|3|]触发 `onclear` 同时也触发 `onchange`
4+
- [!tag|A|0|]通过 `negative` 属性允许输入负数 [PR#38](https://github.com/any-tdf/stdf/pull/38)[!contribute|rizmyabdulla |]
5+
- [!tag|O|0|]输入数字时不允许小数点开头且只允许一个小数点。
6+
17
## 0.3.2
28

39
- [!tag|B|2|]修复 textarea 回车无法换行的问题。

docs/mds/components/input/version_en.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.0.4
2+
3+
- [!tag|B|3|] Trigger `onclear` also triggers `onchange`.
4+
- [!tag|A|0|] Allow negative numbers through the `negative` property [PR#43](https://github.com/any-tdf/stdf/pull/43). [!contribute|arithefirst|]
5+
- [!tag|O|0|] Do not allow decimal points to start and only allow one decimal point when entering numbers.
6+
17
## 0.3.2
28

39
- [!tag|B|2|] Fixed the problem that textarea cannot wrap when pressing enter.

docs/mds/guide/changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 1.0.4 <font size=1>2025-04-26</font>
2+
3+
- 增强 Input 组件,详见 [Input](https://stdf.design/components?nav=input&tab=4)
4+
- 增强 Button 组件,详见 [Button](https://stdf.design/components?nav=button&tab=4)
5+
- 补充遗漏的语言文件。
6+
- 修复类型导出错误。
7+
18
## 1.0.3 <font size=1>2025-04-07</font>
29

310
- 完整支持 Svelte v5、Tailwind CSS v4 与 TypeScript,包括库、示例、create-stdf、站点。

docs/mds/guide/changelog_en.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 1.0.4 <font size=1>2025-04-26</font>
2+
3+
- Enhanced Input component, please see [Input](https://stdf.design/components?nav=input&tab=4).
4+
- Enhanced Button component, please see [Button](https://stdf.design/components?nav=button&tab=4).
5+
- Added missing language files.
6+
- Fixed type export error.
7+
18
## 1.0.3 <font size=1>2025-04-07</font>
29

310
- Full support for Svelte v5, Tailwind CSS v4, and TypeScript, including libraries, demos, create-stdf, and site.

docs/site/src/routes/components/Version.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
if (issueList) {
6363
issueList.forEach((item) => {
6464
const arr = item.split('|');
65-
const span = `<span><a href="https://github.com/${
65+
const span = `<span><a class="size-4 translate-y-0.5 rounded-full overflow-hidden inline-flex items-center justify-center" href="https://github.com/${
6666
arr[1]
67-
}" target="_blank"><img class="w-4 h-4 ml-1 p-0 m-0 rounded-full overflow-hidden inline" src="https://avatars.githubusercontent.com/${
67+
}" target="_blank"><img class="w-full h-full" src="https://avatars.githubusercontent.com/${
6868
arr[1]
6969
}" title="${isZh ? '感谢' : 'Thanks'} ${arr[1]} ${isZh ? '提出 Issue' : 'raise an Issue'}" alt=""></a></span>`;
7070
string = string.replace(item, span);
@@ -75,9 +75,9 @@
7575
if (contributeList) {
7676
contributeList.forEach((item) => {
7777
const arr = item.split('|');
78-
const span = `<span><a href="https://github.com/${
78+
const span = `<span><a class="size-4 translate-y-0.5 rounded-full overflow-hidden inline-flex items-center justify-center" href="https://github.com/${
7979
arr[1]
80-
}" target="_blank"><img class="w-4 h-4 ml-1 p-0 m-0 rounded-full overflow-hidden inline" src="https://avatars.githubusercontent.com/${
80+
}" target="_blank"><img class="w-full h-full" src="https://avatars.githubusercontent.com/${
8181
arr[1]
8282
}" title="${isZh ? '感谢' : 'Thanks'} ${arr[1]} ${isZh ? '贡献代码' : 'contribute code'}" alt=""></a></span>`;
8383
string = string.replace(item, span);

0 commit comments

Comments
 (0)