@ohkit/text-ellipsis 0.0.10 → 0.0.11

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/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) [2015], [wuqiuyang]
1
+ Copyright (c) [2025], [wuqiuyang]
2
2
 
3
3
  Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
4
4
 
package/README.md CHANGED
@@ -32,6 +32,9 @@ function Demo() {
32
32
  }
33
33
  ```
34
34
 
35
+ ## 详见示例
36
+ - [更多Demo](https://wuqiuyang.github.io/ohkit/storybook-static/?path=/story/components-text-ellipsis-src)
37
+
35
38
  ## API 说明
36
39
 
37
40
  ### Props
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohkit/text-ellipsis",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
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/dom-helper": "0.0.1",
36
- "@ohkit/measure": "0.0.5",
35
+ "@ohkit/dom-helper": "0.0.2",
36
+ "@ohkit/measure": "0.0.6",
37
37
  "@ohkit/platform": "0.0.3",
38
38
  "@ohkit/prefix-classname": "0.0.3",
39
39
  "@ohkit/react-helper": "0.0.4"
@@ -46,5 +46,5 @@
46
46
  "react": ">=16.8.0",
47
47
  "react-dom": ">=16.8.0"
48
48
  },
49
- "gitHead": "650b2c1789fdfe5f7614455fbc7e42dcee96b7ac"
49
+ "gitHead": "b73cfdb9dcc1079b18f7153e3eb02dde0e5bf137"
50
50
  }
package/src/style.scss CHANGED
@@ -1,8 +1,6 @@
1
- @use '../../style/global.scss' as global;
2
-
1
+ $prefix: ohkit;
3
2
  $text-ellipsis-color: #709bff; // #4c84ff;
4
3
  $btn-fold-color: #4c84ff; // #727a8b;
5
- $prefix: global.$comp-prefix;
6
4
 
7
5
  @mixin text-ellipsis-break() {
8
6
  overflow-wrap: break-word;