Zheeeng
29a15e2a5d
refactor: refines types and fix to use prop direction over context direction ( #37716 )
* refactor: use enum instead of multiple constants and refines types
* fix: siganture and direction prop passing
* Update Editable.tsx
* refine types
* test: update snap
* style: prefer literal constants over enum
* fix: refine types for typography
* fix: restore ellipsis const
* fix: restore ellipsis const
* fix: restore textare importing
2 years ago
Zheeeng
d96ec8aa06
feat: add text config for editable ( #37761 )
2 years ago
Zheeeng
8fc5af0d87
fix: the computed fontSize style may be empty string ( #37928 )
2 years ago
Zheeeng
49206a53c5
chore: prefer using @internal annotation over other markups ( #37816 )
2 years ago
Zheeeng
f5a5077d80
fix: Typography ellipsis percision bug ( #37802 )
* fix:ellopsis默认fontsize调整为12px
* fix: issue 37791
* test: update snapshot
Co-authored-by: zonghao.jiang <1587315093@qq.com>
2 years ago
二货机器人
069e44bcc3
chore: merge master
2 years ago
二货爱吃白萝卜
356715f4a6
fix: Typography tooltip bug ( #37754 )
* chore: basic
* fix: diff icon logic
* fix: Tooltip logic
* chore: fix lint
2 years ago
Zheeeng
e9fd8e3672
fix: Ellipsis row counting ( #37700 )
* fix: Ellipsis row counting
When the base font-size causes measurement elements with floating offsetHeight, we can only get the rounded number, causes the rows counting incorrect.
* fix: Ellipsis row counting
* chore: update snapshot
* chore: update snapshot
2 years ago
yykoypj
6b658dab76
feat: switch visible to open for Tooltip ( #37241 )
* feat: switch visible to open for Tooltip & Popover & Popconfirm
* fix lint
* fix: merge state
* chore: Update ts part
* test: add legacy test
* test: fix test case
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2 years ago
二货爱吃白萝卜
15e4b93e43
fix: Visible change not show Tooltip of Typography ( #37147 )
* test: Update snapshot
* test: Add test case
* test: fix react 18
2 years ago
叶枫
00c891ac05
feat: Typography `ellipsis.tooltip` could be a object ( #36099 )
* feat: add tooltipProps
* feat: doc
* feat: props
* feat: props
* feat: props
* feat: docs
* feat: review
* feat: add tooltipProps
* feat: doc
* feat: props
* feat: props
* feat: props
* feat: docs
* feat: review
2 years ago
二货机器人
2c2c631bfd
chore: prettier components ( #36171 )
2 years ago
Tom Xu
1719748a29
chore: eslint add consistent-type-imports ( #35419 )
* chore: eslint add consistent-type-imports
* fix avatar
* Update Item.tsx
3 years ago
Camol
bdabee4db4
feat(Typography): copyable text support format ( #35219 )
Co-authored-by: kanweiwei <kanweiwei@nutstore.net>
3 years ago
youngz
80377f2243
feat: Typography.Text Pass event to onCopy. ( #34655 )
3 years ago
黑雨
c7fe1c8e26
fix: editable Typography.Title should match font size while editing ( #34169 )
* feat: editable Typography.Title should match font size while editing
* feat: update style
* feat: update style
* feat: update style
* feat: style lint
* feat: update style
* Update components/typography/style/index.less
* Update components/typography/Editable.tsx
* feat: reorganize css
* feat: style lint
* feat: update snap
Co-authored-by: afc163 <afc163@gmail.com>
3 years ago
opopeieie
58c1998e1e
fix: Typography copyable in clipboard incorrect ( #34034 )
Co-authored-by: chenxq <chenxq@neocrm.com>
3 years ago
soso
b66016a6f7
fix: useLayoutEffect to useIsomorphicLayoutEffect ( #33818 )
* fix: useLayoutEffect to useIsomorphicLayoutEffect
* chore: change to rc-util/lib/hooks/useLayoutEffect
3 years ago
二货机器人
fe185dcbce
fix: typography ellipsis check in transform ( #34007 )
* fix: typography ellipsis check in transform
* test: Update snapshot
3 years ago
linxianxi
19cc7d49e2
fix: Typography copyable add stopPropagation ( #33998 )
* fix: Typography copyable add stopPropagation
* add test
3 years ago
Di Wu
745ebf2d84
fix: Exception in enter key callback on editable or copyable Paragraph ( #33976 )
* fix: Exception on enter key callback
* Move spyOn position
3 years ago
MadCcc
a9bc316b80
fix: ellipsis should display tooltip if rows larger than 1 ( #33875 )
* fix: ellipsis should display tooltip if rows larger than 1
* test: add test case
3 years ago
二货机器人
395c549049
fix: Typography error on context ellipsis ( #33725 )
* chore: init measure
* chore: out of space
* refactor: Multiple render
* chore: auto cut
* feat: render split
* fix: ellipsis logic of suffix
* fix: ref missing
* fix: Tooltip missing
* test: snapshot
* chore: opt for textarea
* test: back part of ellipsis
* chore: back of ellipsis logic
* ellipsis logic
* fix: init ellipsis measure
* fix: ellipsis event
* chore: clean up
* test: Update snapshot
* fix: test
* test: Update snapshot
* chore: lazy ellipsis
* fix: check css ellipsis logic
* test: Update snapshot
* test: back of coverage
* chore: clean up
* test: ignore else
* test: clean up
3 years ago