thinkasany
5f09772967
type: improve tree component assert ( #49784 )
2024-07-09 16:26:35 +08:00
SuperYY
1b696510e5
bug fix : expand all leaf nodes in root level ( #47567 )
...
* fix table's scrollbar background color in dark mode
* docs : fix "fille" with "filled"
* expand all leaf nodes in root level
* Add type annotation
* code style format
* [CodeFactor] Apply fixes to commit 116efaf
[ci skip] [skip ci]
* simplify the code and add the corresponding testing module
---------
Co-authored-by: codefactor-io <support@codefactor.io>
2024-02-24 12:42:21 +08:00
lijianan
aa137e96af
type: TS define optimal ( #47153 )
2024-01-26 13:53:52 +08:00
lijianan
5c52512467
type: update ref type from Ref
to React.RefAttributes<T>
2023-12-27 11:53:19 +08:00
梓安
80da4e5885
fix (DirectoryTree) : selectedNodes in onSelect method could not get a value when configuring fieldNames ( #45036 )
...
* fix🐛 (DirectoryTree): fieldNames support
* fix🐛 (DirectoryTree): fieldNames support
* test✅ (DirectoryTree): Update directoryTree test
* test✅ (DirectoryTree): Update directoryTree test
* chore: simple code
* chore: align logic
---------
Co-authored-by: yuanzhian <yuanzhian@cai-inc.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2023-10-11 17:03:15 +08:00
lijianan
ac5a06027e
revert: "chore: unified import method ( #42149 )" ( #42180 )
...
This reverts commit ea8ed28209
.
2023-05-06 15:49:37 +08:00
lijianan
ea8ed28209
chore: unified import method ( #42149 )
...
* chore: unified import method
* fix lint
2023-05-05 20:52:44 +08:00
zz
9d9447e54f
refactor(DirectoryTree): simplify code ( #38184 )
2022-10-23 18:33:47 +08:00
lijianan
768ab54426
fix: delete defaultprops ( #37966 )
2022-10-12 11:39:06 +08:00
Santiago Vallejo
de76c7f311
feat: Performance improvement on React useState ( #37875 )
2022-10-07 11:39:16 +08:00
lijianan
09570f511f
refactor: delete defaultprops ( #37853 )
...
* refactor: delete defaultprops
* fix: update snap
* fix: update snap
* fix: fix
* fix: fix
* fix: fix
* fix: fix
2022-10-05 00:04:29 +08:00
lijianan
ddaead6777
fix: delete defaultprops ( #37822 )
...
* fix: delete defaultprops
* fix: delete defaultprops
2022-09-30 17:44:24 +08:00
龙风
1cec18e8eb
fix: component.displayName To distinguish the environment ( #36126 )
...
Co-authored-by: afc163 <afc163@gmail.com>
2022-06-21 10:24:52 +08:00
Jaylan
f19cf66c88
fix: Typescript - Tree component DirectoryTreeProps, missing Node Type ( #36092 )
...
* fix: edit DirectoryTreeProps
* test: add DirectoryTree type test
* fix: edit type
Co-authored-by: JaylanChen <JaylanChen@126.com>
2022-06-17 11:37:57 +08:00
二货机器人
771836cbc0
test: refactor tree with testing lib ( #35937 )
...
* test: tree test
* test: clean up
* chore: bump rc-tree
* test: Update snapshot
* test: Update for react 18
2022-06-07 21:04:47 +08:00
Heaven
4dd6fcaf99
Feat: support 'treeExpandAction' prop for TreeSelect ( #35618 )
...
* Feat: support 'treeExpandAction' prop for TreeSelect
* chore: bump rc-tree
* chore: fix lint
* fix: fix directory tree duplicate expandAction
* fix: fix directory tree duplicate expandAction
* fix: fix directory tree duplicate expandAction
* chore: add docs
Co-authored-by: zombiej <smith3816@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
2022-06-06 18:44:58 +08:00
Tom Xu
1719748a29
chore: eslint add consistent-type-imports ( #35419 )
...
* chore: eslint add consistent-type-imports
* fix avatar
* Update Item.tsx
2022-05-07 14:31:54 +08:00
D-to-the-K
0a8065e5bd
fix: DirectoryTree keyboard error ( #32551 )
...
* Fix bug in keyboard navigation
When selecting a node using the keyboard (spacebar), the event received by onSelect has an undefined MouseEvent. Keyboard navigation was not possible because an error was thrown when trying to access properties from the undefined nativeEvent. We are now testing if nativeEvent is defined before accessing its properties.
* fix: DirectoryTree throws error during keyboard navigation
2021-10-19 13:05:17 +08:00
afc163
a9a329d37c
fix: deps and TypeScript types ( #31519 )
...
* fix tsc errors
* fix tsc errors
2021-07-26 16:47:55 +08:00
afc163
99c2c2ff0b
refactor: use optional chaining instead of if ( #29368 )
...
* refactor: use optional chaining instead of if
* revert some code
2021-02-19 18:26:53 +08:00
Alex
bf45c4c1b0
style: 💄 className prop ordering #26594 ( #26602 )
...
close #26594
2020-09-06 13:07:39 +08:00
二货机器人
1119c3da38
fix: Fix DirectoryTree miss ref.scrollTo function ( #26129 )
...
* fix: DirTree support ref
* add test case
2020-08-11 14:22:16 +08:00
偏右
ee51df1853
✅ add more test cases for Tree ( #25115 )
2020-06-19 15:45:52 +08:00
Tom Xu
54f2abfe47
refactor(tree): rewrite with hook ( #23550 )
...
* refactor(tree): rewrite with hook
* fix codecov
* Update directory.test.js
* Update README.md
* 🆙 upgrade intersection-observer
* refactor(tree): rewrite with hook
* fix codecov
* Update directory.test.js
Co-authored-by: 偏右 <afc163@gmail.com>
2020-04-25 15:30:13 +08:00
Amumu
c70b49a709
fix: fix tree key ts type ( #23348 )
...
* fix tree key ts type
* revert snap
2020-04-17 23:31:39 +08:00
Mateusz Burzyński
2cb516b5b7
fix: narrow down types of string literals in a few defaultProps declarations ( #22686 )
2020-03-28 19:29:02 +08:00
二货机器人
b3c1762273
refactor tree dir ( #22318 )
2020-03-17 22:23:47 +08:00
二货机器人
adb323cec2
chore: icons save bundle size without treeShaking ( #21752 )
...
* alert
* more icons
* another grouping
* all done
2020-03-02 12:09:38 +08:00
Amumu
1dcbd60067
fix tree node spread warning ( #21303 )
2020-02-10 10:08:32 +08:00
二货机器人
246adcd5dd
docs: Add Tree virtual scroll demo ( #20911 )
...
* docs: Add Tree virtual scroll demo
* update snapshot
* show debug demo
* rename
* fix lint
* skip virtual list demo snapshot since conflict in node test
2020-01-15 12:13:20 +08:00
Saeed Rahimi
676de29eb4
feat: added rtl direction to all of ant-design components ( #19380 )
...
* rtl demo change en-us description
* change bundlesize css limit
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* fix pagination.tsx compile error
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* fix input suffix icon alignment
* fix select component arrow issue
* RTL: form component
* add pagination rtl test
* fix test lint error
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* some fixes to RTL components
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* fix switch component text rtl issue
* fix table grouped header text-align
* add rtl support to whole demo with RTL button
* Update rtl demo responsive
* RTL: page-header component
* RTL: typography component
* RTL: Dropdown (Partial)
* update config-provider doc
* RTL: input component
* RTL: select component
* RTL: switch component
* RTL: tree component
* fix rtl demo lint
* rtl demo change en-us description
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* fix input suffix icon alignment
* RTL: form component
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* add rtl support to whole demo with RTL button
* fix lost changes after rebase
* fix lint errors
* RTL: Transfer Component
* RTL: upload component
* RTL: update avatar demo
* RTL: comment component
* RTL: collapse component
* RTL: carousel component
* update snapshots
* RTL: Card component
* RTL: descriptions component
* RTL: Empty component
* RTL: list component
* RTL: slider component
* slider component import/order
* add shared rtlTest
* RTL: Statistic component
* RTL: tooltip components
* RTL: popover component
* RTL: timeline component
* RTL: tag component
* RTL: alert component
* RTL: drawer component
* RTL: Tab component
* change direction definition
* RTL: progress component
* input.tsx, remove duplicate after rebase
* fix demo.less after rebase
* fix ant-row-rtl after rebase
* fix upload issues in rtl
* badge rtl demo margin fix
* fix: tabs with icon margin
* fix: radio-wrapper margin
* fix: table component after rebase
* fix: centered modal text-align
* update slider snapshot
* RTL: popconfirm component
* RTL: back-top component
* RTL: spin component
* RTL: result component
* RTL: skeleton component
* RTL: menu component
* RTL: time-picker component
* RTL: calendar component
* RTL: date-picker component
* RTL: home page
* update snapshots
* test: add auto-complete rtl test
* test: add avatar component rtl tests
* test: add badge component rtl tests
* test: add breadcrumb component rtl tests
* test: add button components rtl tests
* test: add card component rtl tests
* test: add carousel component rtl tests
* test: add cascader component rtl tests
* test: add checkbox component rtl tests
* test: add collapse component rtl tests
* test: add comment component rtl tests
* test: add dropdown component rtl tests
* test: add empty component rtl tests
* test: add form component rtl tests
* test: add grid component rtl tests
* test: add input component rtl tests
* test: add search component rtl tests
* test: add input-number component rtl tests
* test: add layout component rtl tests
* test: add list component rtl tests
* test: add mentions component rtl tests
* test: add modal component rtl tests
* test: add page-header component rtl tests
* test: add pagination component rtl tests
* test: add radio component rtl tests
* test: add rate component rtl tests
* test: add select component rtl tests
* test: add slider component rtl tests
* test: add steps component rtl tests
* test: add switch component rtl tests
* test: add table component rtl tests
* test: add transfer component rtl tests
* test: add tree component rtl tests
* test: add tree-select component rtl tests
* test: add typography component rtl tests
* test: add upload component rtl tests
* test: add affix component rtl tests
* update calendar tests
* increase css file maxSize
* update snapshots
* remove workflows to allow push
* remove duplicate reverse prop from slider
* fix: remove table demo from config-provider
* fix: remove table demo from config-provider
* fix lint error
* Added direction property to ConfigProvider
* cascader rtl tests added
* update config-provider doc
* RTL: grid system
* RTL: input component
* RTL: switch component
* fix rtl demo lint
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* fix pagination.tsx compile error
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* RTL: form component
* add pagination rtl test
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* add rtl support to whole demo with RTL button
* RTL: input component
* RTL: select component
* RTL: switch component
* RTL: tree component
* fix rtl demo lint
* rtl demo change en-us description
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* fix input suffix icon alignment
* RTL: form component
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* add rtl support to whole demo with RTL button
* input.tsx, remove duplicate after rebase
* fix ant-row-rtl after rebase
* update snapshots
* test: add cascader component rtl tests
* test: add pagination component rtl tests
* update calendar tests
* update snapshots
* fix: remove table demo from config-provider
* fix: remove table demo from config-provider
* fix lint error
* update direction.md icons
* dropdown and cascader default placement in rtl
* update snapshots
* fix lint errors
* remove duplicate import
* update snapshots
* update snapshot
* update calendar snapshot
* update snapshots
* integrate with new rc-picker
* update snapshots
* fix lint errors
* update snapshot
* update snapshots
* update snapshots
* update snapshots :|
* update snapshots
* fix compile error.
* fix typo after rebase
* update snapshots
* remove workflows to allow push
* update snapshots
* update snapshots
* fix dist error
* front-page css fix
* update snapshots
* fix lint and test issues
* restore cascader index.less
* update snapshots
* fix logo in rtl and demo controls
* ci errors
* resolve steps/index.tsx conflicts
* tooltip family demo remove inline style
* resolve table/Table.tsx conflicts
* resolve modal/Modal.tsx conflicts
* resolve cascader/index.tsx conflicts
* add workflows from upstream
* update snapshots
* revert logo to default
* fix codebox demo direction of placements
* resolve tooltip overlayClassName conflicts
* update snapshots
* update popover test
* fix: cascader miss popupClassName
* fix: fix select missing dropdownClassName
* chore: Update snapshot
* chore: Adjust menu use rtl logic
* docs: Update demo line color
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2020-01-02 19:10:16 +08:00
偏右
8501b708ea
refactor: 📦 smaller bundlesize limit ( #20356 )
...
* 📦 samller bundlesize limit
* 🗑️ remove React static PropTypes
* 🗑️ remove react-lifecycles-compat
* 🗑️ remove matchMedia polyfill
* 🗑️ remove Transfer buggy lazy prop
* 🗑️ remove enquire.js dep
* 🗑️ remove Transfer lazy related code and fix ci
* 🗑️ remove used dom-closest
* ⚡ replace dom-scroll-into-view to scroll-into-view for bundle size
* ✅ fix eslint
* 🆙 upgrade browserslist
* ✅ fix test cases
* 🗑️ remove @ant-design/create-react-context
* 🆙 upgrade @ant-design/bisheng-plugin
* 🆙 upgrade rc-slider
* ✅ fix ci
* 🆙 upgrade rc-tabs and rc-mentions
* 📦 scroll-into-view -> scroll-into-view-if-needed
* remove unused devDep
* docs: 📝 update instruction about IE9/10
* 📦 reduce css bundle size by drop IE9/10 support
* 🆙 upgrade rc-upload
* 🗑️ drop unused swing motion css
* ✅ update upload snapshots
* 📦 lift css bundlesize limit to 55kb
2019-12-23 18:33:08 +08:00
二货机器人
64b905e9bd
chore: Update @ant-design/icons
deps ( #19979 )
...
* update icons deps
* update all icon ref
* fix lint
* update snapshot
2019-11-28 12:34:33 +08:00
二货机器人
4907996b97
feat: TreeSelect use virtual scroll ( #19040 )
...
* use new rc-tree-select
* support not found
* add switch icon support
* support function
* support selection motion
* show search icon if open
* clean up
* fix lint
* fix lint
2019-09-27 22:31:28 -05:00
vagusX
149729e524
use ant design icons 4.0 ( #18217 )
...
* feat: use @ant-design/icons@4.0
* feat: use createFromIconfontCN to make site works
* feat: update doc for Icon
* feat: use icon in component Alert
* feat: use icon in component Avatar
* feat: use icon in component Breadcrumb
* feat: use icon in component Button
* feat: use icon in component Cascader
* feat: use icon in component Collapse
* feat: use icon in component Datepicker
* feat: use icon in component Dropdown
* feat: use icon in component Form
* feat: use icon in component Input
* feat: use icon in component InputNumber
* feat: use icon in component Layout
* feat: use icon in component Mention
* feat: use icon in component Message
* feat: use icon in component Modal
* feat: use icon in component Notification
* feat: use icon in component PageHeader
* feat: use icon in component Pagination
* feat: use icon in component Popconfirm
* feat: use icon in component Progress
* feat: use icon in component Rate
* feat: use icon in component Result
* feat: use icon in component Select
* feat: use icon in component Step
* feat: use icon in component Switch
* feat: use icon in component Table
* feat: use icon in component Tab
* feat: use icon in component Tag
* feat: handle rest component which using Icon
* fix: remove unused vars
* feat: use latest alpha ant design icons
* fix: failed test in uploadlist.test.js
* test: update snapshot for icons
* doc: add Icon for site
* doc: use @ant-design/icons in site
* chore: use latest icons
* fix: tslint issue
* fix: test cases
* fix: types for react
* fix: lint rules for import orders
* fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render
* fix: eslint error in demo/**.md
* inject antd icons
* update snapshot
* fix site
* doc: update docs
* fix: code snippets icon in site
* feat: use latest @ant-design/icons
* fix: icon props in message
2019-08-13 14:07:17 +08:00
zombieJ
8114516496
feat: Tree support virtual scroll ( #18172 )
...
* update tree deps
* add part of style
* flex grid
* update disabled
* update demo
* second demo
* add draggable style
* update demo
* update rc-tree version
* temp md
* update tree deps
* update icon demo
* update style
* update less
* update deps
* clean up
* update test case
* fix show line
* update snapshot
* fix lint
* update style
* update deps
2019-08-12 13:22:36 +08:00
orzyyyy
63b33d4020
fix: unexpected changes of snapshots
2019-08-06 15:36:12 +08:00
zombieJ
645557f3d9
Proxy of event info ( #15967 )
2019-04-09 14:20:59 +08:00
orzorzorzorz
642307481a
fix: unexpected return ( #14982 )
2019-02-21 20:49:04 +08:00
zy410419243
7f1dea0ab1
fix: wrong usage of polyfill
2019-02-19 15:52:19 +08:00
zy410419243
9d5454c7b7
pref: add missing polyfill
2019-02-19 15:52:19 +08:00
zy410419243
14945cb7a7
chore(DirectoryTree): migrate to new lifecycle method
2019-02-19 15:52:19 +08:00
afc163
879784c665
Merge branch "master" into "feature"
2018-12-20 17:43:00 +08:00
Sam Lanning
af8a025aeb
[chore] remove additional unused variable
2018-12-20 17:16:00 +08:00
Sam Lanning
e56e1a71c3
[chore] fix useless assignments to local variables
...
This commit addresses all the instances of useless assignments to
local variables, as found by LGTM.com
2018-12-20 17:16:00 +08:00
陈帅
8e11f0bdb9
merge support prettier
2018-12-07 20:02:01 +08:00
陈帅
dca9715186
support prettier
2018-12-07 18:27:30 +08:00
zombieJ
1a0a06fca9
ConfigProvider support prefixCls ( #13389 )
...
Basic support prefixCls.
2018-12-05 19:12:18 +08:00
zombiej
38fd268199
fix #12567
...
Use same expand logic in DirTree with switcher & selector
2018-10-10 11:51:34 +08:00
zombiej
1c85bb3b62
fix #12396 . Support expandedKeys when init
2018-09-25 15:29:07 +08:00