@ohkit/text-ellipsis 0.0.2-alpha.4 → 0.0.2

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/Readme.mdx +0 -33
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohkit/text-ellipsis",
3
- "version": "0.0.2-alpha.4",
3
+ "version": "0.0.2",
4
4
  "description": "text ellipsis for react",
5
5
  "keywords": [
6
6
  "text ellipsis"
@@ -32,8 +32,8 @@
32
32
  "clean": "rm -rf dist"
33
33
  },
34
34
  "dependencies": {
35
- "@ohkit/measure": "0.0.1",
36
- "@ohkit/utils": "0.0.1"
35
+ "@ohkit/measure": "0.0.2",
36
+ "@ohkit/utils": "0.0.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "react": "^18.3.1",
@@ -43,5 +43,5 @@
43
43
  "react": ">=16.8.0",
44
44
  "react-dom": ">=16.8.0"
45
45
  },
46
- "gitHead": "8ac135fcd546178414824efd94cf46eb961fb065"
46
+ "gitHead": "58bcc811f3137b3cec8622bcac51d3f19432d5cf"
47
47
  }
package/src/Readme.mdx DELETED
@@ -1,33 +0,0 @@
1
- ---
2
- - name: TextEllipsis
3
- - route: /text-ellipsis
4
- - menu: components
5
- ---
6
- import { Playground } from '../../mdx-playground';
7
- import { text, element } from './__test__/data';
8
- import {TextEllipsis} from '.';
9
-
10
- # TextEllipsis
11
- 文本折叠组件
12
-
13
- ## Basic
14
-
15
- <Playground>
16
- {() => {
17
- return <>
18
- <h4>uiType = 'right': 按钮在右侧</h4>
19
- <TextEllipsis lines={2} >
20
- {text}
21
- </TextEllipsis>
22
- <hr />
23
- <h4>uiType = 'bottom': 按钮在底部(适用于富文本的截断)</h4>
24
- <TextEllipsis lines={2} uiType="bottom" >
25
- {text}
26
- </TextEllipsis>
27
- <h4>Content = 'ReactNode': 富文本的截断</h4>
28
- <TextEllipsis lines={7} uiType="bottom" >
29
- {element}
30
- </TextEllipsis>
31
- </>;
32
- }}
33
- </Playground>