@fe-free/tool 1.4.20 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/package.json +1 -1
- package/src/pinyin/pinyin.stories.tsx +9 -1
- package/src/url/url.stories.tsx +8 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { pinyin, pinyinFilter, pinyinMatch } from '@fe-free/tool';
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
3
3
|
|
|
4
4
|
const meta: Meta = {
|
|
5
5
|
title: '@fe-free/tool/Pinyin',
|
|
6
6
|
tags: ['autodocs'],
|
|
7
|
+
parameters: {
|
|
8
|
+
docs: {
|
|
9
|
+
description: {
|
|
10
|
+
component:
|
|
11
|
+
'Pinyin 相关工具函数,支持中文转拼音、首字母提取、拼音匹配与过滤,适用于搜索、筛选等场景。',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
7
15
|
};
|
|
8
16
|
|
|
9
17
|
export default meta;
|
package/src/url/url.stories.tsx
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import { buildURL } from './index';
|
|
3
3
|
|
|
4
4
|
const meta: Meta = {
|
|
5
5
|
title: '@fe-free/tool/URL',
|
|
6
6
|
tags: ['autodocs'],
|
|
7
|
+
parameters: {
|
|
8
|
+
docs: {
|
|
9
|
+
description: {
|
|
10
|
+
component: 'URL 工具函数',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
},
|
|
7
14
|
};
|
|
8
15
|
|
|
9
16
|
export default meta;
|