🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

text-overflow-processor-react

Package Overview
Dependencies
Maintainers
0
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-overflow-processor-react - npm Package Compare versions

Comparing version

to
2.0.14

8

lib/TextOverflowProcessor/types/index.d.ts

@@ -75,3 +75,3 @@ /// <reference types="react" />

foldButtonText?: string | JSX.Element | JSX.Element[];
/** 当选择展示所有内容时将不提供操作按钮 */
/** 是否展示所有内容,为true时将不提供操作按钮 */
isShowAllContent?: boolean;

@@ -91,4 +91,6 @@ /** 是否常驻显示按钮 */

style?: React.CSSProperties;
onClick?: ((e: React.MouseEvent<HTMLElement, MouseEvent>) => void) | null;
/** 获取文案的折叠状态 */
onClick?: ((e: React.MouseEvent<HTMLElement, MouseEvent>,
/** 文案是否是折叠的(文案是否溢出) */
isFold: boolean) => void) | null;
/** 获取文案的折叠状态,折叠状态发生改变时会触发,相当于onChange */
getIsFold?: ((

@@ -95,0 +97,0 @@ /** 文案是否是折叠的(文案是否溢出) */

@@ -17,3 +17,3 @@ /**

}) => string;
declare const filterComplexDependentProperties: (dependent: any) => string;
declare const filterComplexDependentProperties: (value: any) => string;
export { getFixedWidthText, getClassNames, filterComplexDependentProperties, };
{
"name": "text-overflow-processor-react",
"version": "2.0.13",
"version": "2.0.14",
"main": "./lib/index.js",

@@ -5,0 +5,0 @@ "typings": "./lib/index.d.ts",

@@ -37,4 +37,8 @@ # 文本溢出处理

style?: React.CSSProperties,
onClick?: ((e: React.MouseEvent<HTMLElement, MouseEvent>) => void) | null,
getIsFold?: (( // 获取文案的折叠状态
onClick?: ((
e: React.MouseEvent<HTMLElement, MouseEvent>,
/** 文案是否是折叠的(文案是否溢出) */
isFold: boolean,
) => void) | null,
getIsFold?: (( // 获取文案的折叠状态,折叠状态发生改变时会触发,相当于onChange
isFold: boolean, // 文案是否是折叠的(文案是否溢出)

@@ -100,3 +104,3 @@ isInitState: boolean, // 返回的是否是初始化状态,有时初始化状态可能会影响组件的使用,可以用这个区分

foldButtonText?: string | JSX.Element | JSX.Element[], // 折叠时按钮文案
isShowAllContent?: boolean, // 当选择展示所有内容时将不提供操作按钮
isShowAllContent?: boolean, // 是否展示所有内容,为true时将不提供操作按钮
isMustButton?: boolean, // 是否常驻显示按钮

@@ -229,2 +233,8 @@ isMustNoButton?: boolean, // 是否不要显示按钮

### ↪2.0.14
`2024-11-24`
☆ onClick事件返回参数增加isFold当前文案折叠状态。
### ↪2.0.13

@@ -231,0 +241,0 @@

Sorry, the diff of this file is too big to display