hydraZty
aecf52e4b0
fix: Input can not be hidden when prefix is set ( #33706 )
...
* fix: Input can not be hidden when prefix is set
* test: jest case for #33692
Co-authored-by: hydraZty <hydra_zty@163.com>
2022-01-13 16:23:27 +08:00
whwangms
1c38ef941d
fix: remove input showCount attribute from parent component ( #33686 )
2022-01-12 23:03:23 +08:00
Jason Miller
36a5485870
fix: Avoid mutating Event properties that are supposed to be getters ( #33536 )
...
* Avoid mutating Event properties that are supposed to be getters
React's synthetic Event objects have mutable `target` and `currentTarget` properties. These are an incorrect emulation of the corresponding DOM Event properties, which are _getters_ and cannot be assigned-to. AntD's input handling attempts to assign to these getters, which fails in Preact because it uses native Event objects. The solution is to replace the simple property assignments with property definitions, which is likely smaller anyway due to the existing use of `Object.create()` to construct a prototypal facade of Event objects.
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: afc163 <afc163@gmail.com>
2022-01-04 22:41:12 +08:00
二货机器人
0c621c4832
fix: input not support number value ( #33462 )
2021-12-29 11:32:49 +08:00
WeijieChen
3324bb2f59
docs: fix version error ( #33443 )
...
Co-authored-by: machixian <machixian@myweimai.com>
2021-12-28 13:29:43 +08:00
zombiej
7ae451729f
test: update snapshot
2021-12-27 10:58:29 +08:00
zombiej
6ed4d855b1
Merge remote-tracking branch 'origin/master' into feature-merge-master
2021-12-27 10:45:42 +08:00
二货机器人
2df11184f4
test: Demo check popup content ( #33378 )
...
* auto demo
* chore: update demo snapshot
* fix: trigger mock ref logic
* chore: try 2 test case
* chore: more snapshot
* chore: update snapshot
* chore: fix ts
* chore: split test
* test: Update test case
* chore: fix test order
2021-12-23 11:51:10 +08:00
二货机器人
ff88851c4c
chore: Bump Select related deps ( #33364 )
...
* chore: bump select related version
* test: Fix test case
* chore: bump rc-select version
* test: Update snapshot
* chore: Update Select ts
* test: Update snapshot
* test: Update snapshot
* test: Update snapshot
* chore: Update ts definition
* chore: fix internal ts def
* test: update auto complete snapshot
* chore: update snapshot
* chore: bump version
* chore: fix demo ts
* chore: Move ValueType to the first place
* test: Update test case
2021-12-21 21:38:11 +08:00
zombiej
396cfab983
test: Update snapshot
2021-12-16 10:51:32 +08:00
zombiej
42bc6dcdef
Merge remote-tracking branch 'origin/master' into feature-merge-master
2021-12-16 10:40:55 +08:00
二货机器人
d91ebe9acf
test: fix initial test case ( #33313 )
...
* test: fix initial test case
* chore: replace with exist fn
* chore: rm dep conflict
* chore: fix dev jest env
2021-12-16 00:57:03 +08:00
afc163
b1642233e8
fix: Revert "fix: TextArea missing maxLength attr." ( #33312 )
...
* Revert "fix: TextArea missing maxLength attribute (#32448 )"
This reverts commit ee703c187e
.
* fix: snapshot
2021-12-15 21:36:36 +08:00
zombiej
1698426161
test: Update snapshot
2021-12-01 22:52:49 +08:00
二货机器人
c6c0662b97
docs: Cascader displayRender data ( #33087 )
...
* docs: Cascader displayRender data
* ts: clean up
* test: Update rc-resize-observer version
* test: fix resize related test case
* chore: fix ts error
* test: Fix resize logic
2021-11-30 17:26:51 +08:00
afc163
264b3514d8
fix: TextArea height bug ( #33055 )
...
* fix: TextArea height bug when has `showCount`
close #33049
* fix snapshot
* revert form demo
2021-11-27 15:35:42 +08:00
zombiej
24ec3ba662
chore: merge master
2021-11-26 10:15:39 +08:00
afc163
34d23c8850
fix: Input.Search enterButton don't trigger click event ( #32999 )
...
close #32993
2021-11-24 13:23:51 +08:00
JounQin
3fafb7f8d5
fix: Submit
typo ( #32933 )
...
close #32928
2021-11-18 14:03:26 +08:00
Karott Schu
491cc4f7ae
fix: borderLeftRadius error for Input.Search #32808 ( #32812 )
...
close #32808
2021-11-13 15:37:27 +08:00
github-actions[bot]
bac876a14d
chore: auto merge branchs ( #32839 )
...
chore: sync master to feature
2021-11-12 07:15:31 +00:00
afc163
958df3dd07
docs: add demo for Input.Group ( #32837 )
...
https://weibo.com/2259174311/L0gtIjb3Z
2021-11-12 14:47:53 +08:00
二货机器人
9fa79dc09d
fix: Input disabled should not keep focus style ( #32739 )
2021-11-04 16:49:57 +08:00
Austaras
d1f87ccc80
feat: input number support prefix ( #32600 )
2021-10-30 22:25:12 +08:00
WeijieChen
e0de0249b2
feat: input support show count ( #32522 )
...
Co-authored-by: machixian <machixian@myweimai.com>
2021-10-15 16:23:47 +08:00
dependabot[bot]
b445baa001
chore(deps-dev): bump stylelint-config-prettier from 8.0.2 to 9.0.2 ( #32451 )
...
* chore(deps-dev): bump stylelint-config-prettier from 8.0.2 to 9.0.2
Bumps [stylelint-config-prettier](https://github.com/prettier/stylelint-config-prettier ) from 8.0.2 to 9.0.2.
- [Release notes](https://github.com/prettier/stylelint-config-prettier/releases )
- [Commits](https://github.com/prettier/stylelint-config-prettier/compare/v8.0.2...v9.0.2 )
---
updated-dependencies:
- dependency-name: stylelint-config-prettier
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore: autofix stylelint errors
* chore: autofix stylelint errors
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2021-10-13 15:38:59 +08:00
Mohammad Arsalan
ee703c187e
fix: TextArea missing maxLength attribute ( #32448 )
2021-10-13 11:55:55 +08:00
二货机器人
e13c4d4131
fix: Less Maximum call stack size exceeded error ( #32063 )
...
* chore: create additional entry
* fix: rm recv call
* chore: Add default.less as index.less
* chore: update entry
* fix: row should also translate
* chore: rename index-default to index and add index-pure instead
* fix: missing transfer customize styl
2021-09-07 16:14:20 +08:00
二货机器人
36bcaaef85
Add variable.less
to support css variable ( #31496 )
...
* chore: use varaible.less
* chore: basic primary varaible
* chore: Move to variable
* chore: align active color
* chore: global fix of css variable
* chore: primary colors
* chore: button danger
* chore: btn default error color
* chore: button series
* chore: More examples
* chore: More components
* chore: Form demo
* chore: form style
* fix: Tag & Alert variable
* chore: update footer
* chore: rm tmp code
* chore: transfer
* fix: picker column active color
* chore: Adjust active bg color
* chore: table hover color
* chore: all css variables
* chore: Global using variables
* chore: Test case
* chore: Update test logic
* chore: back of default less
* chore: entry of site use proxy style
* chore: update entry
* chore: split of variables
* refactor: quick dist speed
* fix: site use variable version
* chore: Update less config
* chore: add mv script
* chore: Update repalcement script
* chore: Add inject variables
* chore: Update script
* fix: script path
* chore: Move to component instead
* chore: fix condition
* chore: update config
* chore: Update in less transform
* chore: Modify logic
* chore: change to variables
* chore: Update name
* fix: script name
* chore: do inject
* revert: back of path
* chore: 2 way of generate
* bump tools
* chore: Add auto replacement script
* chore: auto genrate less file
* chore: fix test
* test: More test case
* chore: Update limit config
* test: coverage
* docs: Update doc
2021-09-01 10:56:50 +08:00
afc163
9c17f94cab
feat: Table filterMode and filterSearch functions ( #31809 )
...
* feat: Table supports filterMode="tree-select"
* add tree component
* fix detail
* use tree
* add @table-filter-dropdown-max-height
* feat: add check all to filter tree
* feat: add search
* feat: use filterTreeNode
* fix code style
* fix style
* style: tree node selected bg
* fix demo
* feat: add filterSearch
* fix: clear search value after close filter dropdown
* update snapshot
* code style
* fix test case
* chore: new FilterDropdown.tsx file
* chore: searchValueMatched function
* add test case
* test: add test cases
* feat: reset only works on dropdown state now
* chore: add table locales
* fix search input width
* tweak style
* style: update transfer search input style
* perf: improve table perf
* fix: filterMuiltiple={false}
* test: add test for selecting
* chore: fix table filter selection
* fix lint
* remove unused code
* fix: style dependencies
* test: turn off bail config for duplidated-package-plugin in feature branch
* Update components/table/hooks/useFilter/FilterSearch.tsx
Co-authored-by: Peach <scdzwyxst@gmail.com>
* fix locale link
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Peach <scdzwyxst@gmail.com>
2021-09-01 10:49:52 +08:00
二货机器人
a43e21e6bf
Merge pull request #31974 from ant-design/master-merge-feature
...
chore: sync master to feature
2021-08-31 19:41:20 +08:00
二货机器人
282b7c8575
feat: Cascader support multiple mode ( #31936 )
...
* chore: Update cascader version
* chore: replace cascader
* chore: default allowClear
* chore: Update docs
* test: Back of part
* test: More snapshot
* test: more and more
* test: Failed of defaultValue
* test: all basic test case
* test: All snapshot
* chore: Update cascader
* chore: disable react/jsx-no-bind
* chore: fix lint
* chore: fix less order
* chore: fix deps
* docs: Update multiple demo
* docs: Add multiple example
* test: Update snapshot
* test: update snapshot
2021-08-31 15:51:02 +08:00
afc163
7085e22a96
merge feature into master
2021-08-31 13:35:13 +08:00
Aex
01e53132b6
fix(input): Improve resolveOnChange method ( #31931 )
...
* fix: Improve input resolveOnChange method
* fix(input): add test case for allowClear
2021-08-30 13:25:32 +08:00
afc163
8416e31821
chore: resolve conflict between master and feature
2021-08-23 17:48:23 +08:00
zhyupe
4097a6c7c6
fix: circular dependencies in Modal & Input ( #31817 )
...
* fix(input): fix circular dependencies
* fix(input): fix circular dependencies
* fix(modal): fix circular dependencies
* fix(modal): fix test
2021-08-17 16:22:42 +08:00
afc163
b56f6110fa
merge feature into master
2021-08-16 14:42:04 +08:00
afc163
59c63737c7
fix: Form Input bordered={false} outline style again ( #31754 )
...
close #31752
2021-08-11 11:48:53 +08:00
afc163
576da9d0ef
fix: Input clear icon margin lost ( #31745 )
...
close #31741
2021-08-10 19:21:02 +08:00
afc163
f6c3626886
fix: Input disabled should not have focus style ( #31738 )
...
close #31735
2021-08-10 13:26:00 +08:00
Zuobin Wang
7f16838631
chore(all): delete useless Omit define ( #31661 )
2021-08-04 20:07:28 +08:00
afc163
85935e18c0
chore: merge feature into master
2021-08-02 18:36:27 +08:00
afc163
a336100f54
fix: Form Input bordered={false} outline style ( #31562 )
...
close #31558
2021-07-28 15:42:19 +08:00
Benedikt Franke
65b8087784
fix: correct class name for Input component with @ant-prefix
variable ( #31479 )
2021-07-22 19:47:29 +08:00
afc163
481c0c2a4b
fix: Input.Password unexpected focus shadow style ( #31456 )
...
close #31446
2021-07-20 17:17:24 +08:00
github-actions[bot]
563ebe1982
chore: auto merge branchs ( #31454 )
...
chore: merge master into feature
2021-07-20 07:32:16 +00:00
二货机器人
3a1a829708
fix: TextArea style missing ( #31391 )
2021-07-13 21:38:19 +08:00
afc163
fe683a4750
fix: clear icon breaking style by #31378
...
https://www.argos-ci.com/ant-design/ant-design/builds/1341
2021-07-13 20:08:15 +08:00
afc163
ba6de5ba18
style: fix input clear icon color css priority ( #31378 )
2021-07-13 16:17:48 +08:00
afc163
c3eda10999
chore: sync feature into master
2021-07-12 19:28:42 +08:00
afc163
2e3937ecbf
style: fix Cascader style inside Input addon ( #31350 )
...
close #31333
2021-07-12 13:25:41 +08:00
xrkffgg
d3405a9add
Merge pull request #31243 from ant-design/master
...
chore: sync master to feature
2021-07-04 20:00:59 +08:00
Pengsha Ying
846577b694
feat(Cascader): title attributes are added to the selected content text by default ( #31237 )
...
* update cascader snapshot
* feat(cascader): Add a friendlier title prompt to the label
2021-07-02 14:55:04 +08:00
afc163
14521d32d9
fix: shouldn't trigger onBlur when clear input ( #31202 )
...
close #31200
2021-06-30 13:48:22 +08:00
xiejiahe
fe35f4166d
style: Condition 'typeof enterButton === 'undefined'' is always false. ( #30970 )
2021-06-13 12:54:35 +08:00
qqabcv520
47dfa1f2ca
fix: fix type declaration ( #30776 )
2021-06-03 09:36:04 +08:00
二货机器人
3cfda1042e
fix: TextArea onChange event obj ( #30124 )
2021-04-13 15:42:43 +08:00
二货机器人
793abf4284
fix: TextArea control with maxLenght ( #30070 )
...
* fix: Textarea control missing maxLength
* docs: Clean up
2021-04-09 13:11:18 +08:00
二货机器人
5f38753f6c
fix: align TextArea maxLength
logic ( #29867 )
...
* fix composition
* fix input
* update doc
* fix tst
* more test case
* more test case
2021-03-23 15:03:47 +08:00
xrkffgg
f9a542b5c1
fix: affix Input disabled hover style ( #29670 )
2021-03-09 16:57:01 +08:00
afc163
ba7fa15058
merge feature into master
2021-02-23 13:20:07 +08:00
afc163
76434a15df
chore( 🆙 ): upgrade devDeps ( #29418 )
...
* chore(🆙 ): upgrade devDeps
* prettier code
* fix dnd demo
* fix react-dnd demo
* fix npm start and demo tsx compile
* fix snapshot
2021-02-23 10:45:11 +08:00
二货机器人
bec5a08368
feat: InputNumber support stringMode ( #29373 )
...
* add input-number demo
* update snapshot
* update demo
* docs: Update desc
* update doc
* clean up React useLayoutEffect warning
* fix ts definition
* re-trigger
* update rc-uitl version
* bump rc-input-number
* update
* update
* fix ts
* update demo snapshot
* update doc
* update demo
2021-02-22 22:07:19 +08:00
二货机器人
9e5e4c8743
chore: Fix ts ( #29383 )
2021-02-20 14:08:49 +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
afc163
a64056eb8a
fix: TextArea showCount should not be interactive ( #29245 )
...
close #29240
2021-02-05 20:34:28 +08:00
Homyee King
dd2cbe0336
fix: showCount ( #29057 )
...
* fix: showCount
* Update components/input/__tests__/textarea.test.js
Co-authored-by: 偏右 <afc163@gmail.com>
Co-authored-by: 偏右 <afc163@gmail.com>
2021-01-27 09:54:38 +08:00
Homyee King
20c49b7bbb
docs: fix demo-focus layout ( #29028 )
...
* fix: demo-focus layout
* fix: update snap
* fix: form noStyle test case
* fix: update snap
Co-authored-by: wanghongye <wanghongye@kuaishou.com>
2021-01-26 09:36:20 +08:00
Pengsha Ying
a2b5d47e1a
fix(typescript): adjust style type declearation ( #28966 )
2021-01-21 17:16:51 +08:00
二货机器人
4315ac567c
chore: replace omit ( #28846 )
...
* chore: Replace omit.js with rc-util omit
* chore: Replace omit.js with rc-util omit
* fix ts
* fix ts
* fix ts
2021-01-13 21:00:30 +08:00
07akioni
2549e8176b
docs: Input, use Space to refactor search-input demo ( #28799 )
...
* docs: Input, use Space to refactor search-input demo
* fix
* test: update snap
2021-01-10 21:42:44 +08:00
pasinter
dba559034a
docs: use correct link for the list of input props ( #28641 )
2021-01-01 21:40:00 +08:00
二货机器人
6ae70059c9
feat: Input focus support cursor ( #28602 )
...
* feat: Input focus support cursor
* docs: clean up
* test: Fix lint
2020-12-29 22:42:04 +08:00
afc163
f2188064b2
merge feature into master
2020-12-28 15:32:03 +08:00
Hossein Mohammadi
04bfa3c54f
chore: add prettier-plugin-jsdoc ( #28551 )
2020-12-28 15:30:18 +08:00
zombiej
80f56137fd
test: Fix maxLength test case
2020-12-27 00:11:40 +08:00
zombiej
a10a30ff60
fix: miss merge logic
2020-12-26 23:59:36 +08:00
zombiej
99d5451dba
chore: merge master
2020-12-26 23:11:46 +08:00
einq7
fa376f9c82
docs: prettier markdown ( #28510 )
2020-12-24 12:02:57 +08:00
Chan Qin Liang
263d8ec8e8
Include parenthesis on mixin calls to support less 4.0.0 ( #28465 )
2020-12-22 11:08:12 +08:00
偏右
8f1466a30f
fix: TextArea value get cut if ime mode ( #28456 )
...
close #27686
close #28417
close #27116
2020-12-21 16:22:43 +08:00
He Linming
9d216d7cef
feat: add showCount.formatter for TextArea ( #28145 )
...
* feat: add countFormatter for TextArea
closing #28105
* test: add unit test
* refactor: update api
* docs: fix api docs
2020-12-03 20:33:34 +08:00
二货机器人
6fcebabd8b
Merge pull request #27738 from ant-design/feature
...
chore: merge feature into master
2020-11-30 16:17:12 +08:00
偏右
323f99cbf2
fix: Search button style when customize less vars ( #27986 )
...
close #27965
2020-11-25 10:50:50 +08:00
偏右
7c50bfb1ad
fix: Input.Search addonBefore style ( #27960 )
...
close #27829
2020-11-23 21:10:07 +08:00
Tom Xu
dfdea4c347
Revert "refactor: input remove not use code ( #27895 )"
...
This reverts commit d5b63f8a61
.
2020-11-20 16:42:18 +08:00
Tom Xu
d5b63f8a61
refactor: input remove not use code ( #27895 )
2020-11-20 14:13:00 +08:00
Tom Xu
d4e8ac4499
fix: texterea test
2020-11-20 11:01:10 +08:00
Tom Xu
a9602b6d71
Merge branch 'feature' into merge-feature
2020-11-20 10:15:53 +08:00
Tom Xu
30372ffad3
refactor(textarea): rewirte with hook ( #27693 )
...
* refactor(textarea): rewirte with hook
* Update TextArea.tsx
* Update TextArea.tsx
* Update TextArea.tsx
* Update ClearableLabeledInput.tsx
* fix
* improve
* Update TextArea.tsx
2020-11-18 11:27:58 +08:00
偏右
c464f61f39
Merge pull request #27822 from ant-design/master
...
chore: merge master into feature
2020-11-17 13:03:46 +08:00
Tom Xu
ef77539920
refactor(search): use context ( #27657 )
...
* refactor(search): use context
* Update Search.tsx
2020-11-16 19:18:48 +08:00
zombiej
7af0cb0d9f
chore: Feature merge master
2020-11-16 16:17:42 +08:00
偏右
e7bed7cff7
perf( 📦 ): upgrade @ant-design/colors and remove rc-trigger from deps ( #27761 )
...
* perf(📦 ): upgrade @ant-design/colors
* move rc-trigger to devDeps
* fix lint
* update snapshot
* update snapshot
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2020-11-14 00:43:12 +08:00
Tom Xu
5b7811f2ee
Merge branch 'feature' into merge
2020-11-12 15:24:00 +08:00
jiang.he
9881be97fd
fix: update the slice rule when the TextArea component limits maxLength ( #27679 )
2020-11-11 00:56:57 +08:00
偏右
0e6e185da2
Merge pull request #27644 from ant-design/master
...
chore: merge master into feature
2020-11-09 12:47:52 +08:00
appleshell
8f18328aad
feat: add setSelectionRange for the ref of Input and TextArea ( #27584 )
...
Co-authored-by: lvpansen <pansen.lv@atzuche.com>
2020-11-06 11:48:50 +08:00
Davide Bianchi
72dbcfcfde
fix: prevent Search component to throw passing null as enterButton ( #27591 )
2020-11-06 10:41:51 +08:00
xrkffgg
36cdf0a129
refactor: direction type define ( #27540 )
2020-11-04 14:12:45 +08:00