@ohkit/text-ellipsis 0.0.11 → 0.0.12
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/package.json +3 -3
- package/src/__mock__/data.tsx +42 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohkit/text-ellipsis",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "text ellipsis for react",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"text ellipsis"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"clean": "rm -rf dist"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@ohkit/dom-helper": "0.0.
|
|
35
|
+
"@ohkit/dom-helper": "0.0.3",
|
|
36
36
|
"@ohkit/measure": "0.0.6",
|
|
37
37
|
"@ohkit/platform": "0.0.3",
|
|
38
38
|
"@ohkit/prefix-classname": "0.0.3",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"react": ">=16.8.0",
|
|
47
47
|
"react-dom": ">=16.8.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "3f6e55b60e718a72cb14f930a66b23ee72ea1f92"
|
|
50
50
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 测试数据
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export const text =
|
|
6
|
+
"改变文本容器宽度看看效果\n" +
|
|
7
|
+
"测试文本也可以是reactDom测试文本也可以是reactDom测试文本也可以是reactDom\n" +
|
|
8
|
+
"测试文本也可以是reactDom测试文本也可以是reactDom测试文本也可以是reactDom\n" +
|
|
9
|
+
"测试文本也可以是reactDom测试文本也可以是reactDom测试文本也可以是reactDom\n" +
|
|
10
|
+
"测试文本也可以是reactDom测试文本也可以是reactDom测试文本也可以是reactDom";
|
|
11
|
+
|
|
12
|
+
export const element = (
|
|
13
|
+
<article>
|
|
14
|
+
<aside>一篇富文本文章 导航</aside>
|
|
15
|
+
<h1>大标题</h1>
|
|
16
|
+
<p>{text}</p>
|
|
17
|
+
<div>
|
|
18
|
+
<img width="160" src="//www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png" />
|
|
19
|
+
</div>
|
|
20
|
+
<div>
|
|
21
|
+
<table>
|
|
22
|
+
<tbody>
|
|
23
|
+
<tr>
|
|
24
|
+
<td>1</td>
|
|
25
|
+
<td>2</td>
|
|
26
|
+
</tr>
|
|
27
|
+
<tr>
|
|
28
|
+
<td>3</td>
|
|
29
|
+
<td>4</td>
|
|
30
|
+
</tr>
|
|
31
|
+
</tbody>
|
|
32
|
+
</table>
|
|
33
|
+
</div>
|
|
34
|
+
<h3>三级标题</h3>
|
|
35
|
+
<ul>
|
|
36
|
+
<li>12 <a href="https://www.baidu.com">百度一下</a></li>
|
|
37
|
+
<li>34</li>
|
|
38
|
+
<li>56</li>
|
|
39
|
+
<li>78</li>
|
|
40
|
+
</ul>
|
|
41
|
+
</article>
|
|
42
|
+
);
|