MadCcc
9d7c11f391
Merge branch 'master' into next-merge-master
2022-07-03 09:42:26 +08:00
Jamki
5f933ebd2b
fix: Fixed an error when the loading property of the Button component… ( #36288 )
...
* fix: Fixed an error when the loading property of the Button component was passed into null
* Update components/button/button.tsx
Obviously, this suggestion is more concise , thanks a lot
Co-authored-by: afc163 <afc163@gmail.com>
* Update components/button/button.tsx
* Update components/button/button.tsx
Co-authored-by: kejianfeng <kejianfeng@cvte.com>
Co-authored-by: afc163 <afc163@gmail.com>
2022-06-30 13:25:47 +08:00
zombiej
8749c1ae04
chore: merge master
2022-06-22 15:18:03 +08:00
afc163
15b8b85ce8
style: fix Button loading icon margin issue ( #36168 )
...
* style: fix Button loading icon margin issue
* test: update snapshot
* test: fix tsx demo error
2022-06-22 12:58:56 +08:00
zombiej
91245c16ad
chore: merge master
2022-06-21 19:40:22 +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
MadCcc
9dd5e9b5e9
Merge branch 'master' into next-merge-master
2022-06-16 10:46:55 +08:00
muxin
f2a5d2f881
fix: Button has no disabled style when link type ( #35975 )
...
Co-authored-by: MadCcc <1075746765@qq.com>
2022-06-10 17:58:58 +08:00
MadCcc
2d70027f45
Merge branch 'master' into feature-merge-master
2022-05-12 15:56:18 +08:00
afc163
84a969e5e0
chore: sync master into next branch
2022-05-11 15:36:22 +08:00
Karott
338ec7dad7
perf: refactor devWarning for production code size ( #35411 )
...
* pref: better code style for production
* refactor `devWarning`
* don't use `useEffect` only wrap `devWarning`
* chore: add 'noop' to coverage
* chore: add test cases for devWarning
* chore: add test case
* chore: update test cases for devWarning
* chore: restore test script command
* fix: remove 'throw new Error'
* should not use `throw` for browser
* chore: update test case for AutoComplete
* perf: add prefix for `devWarning`
* update RegExp for UMD
* add prefix for ES and CJS
* chore: better code style
* perf:
* upgrade antd-tools
* remove `injectWarningCondition`
* rename `devWarning` to `warning`
* chore: better code style
* chore: better code style
* chore: restore hasValidName
2022-05-10 15:43:29 +08:00
MadCcc
1f5e271eb6
Merge branch 'master' into next-merge-master
2022-05-09 21:26:25 +08:00
afc163
594f138760
resolve conflict between feature and master
2022-05-08 17:01:54 +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
zombiej
84662ce774
chore: next merge feature
2022-05-06 18:46:16 +08:00
黑雨
b0a652580a
feat: Form disabled ( #35210 )
...
* feat: add form disabled
* feat: add form disabled
* feat: add radio disabled
* feat: update snap
* feat: add test case
2022-04-29 20:48:10 +08:00
zombiej
1a84acb3fb
chore: merge master
2022-04-22 18:21:45 +08:00
二货机器人
f8e7cba353
refactor: Simplify Button Group Style ( #35175 )
...
* chore: refactor grp with context
* test: Update snapshot
* chore: clean up
* test: fix test case
* chore: clean up
* test: fix test
2022-04-22 17:40:52 +08:00
MadCcc
d0c4d7b0ec
feat: add useComponentStyle ( #34802 )
...
* feat: add useComponentStyle
* chore: auto generic
* feat: add overload
* feat: filter component token
* feat: genComponentStyleHook
* test: fix lint
* feat: button for test case
* chore: code clean
* chore: code clean
* feat: add componentCls into token
* feat: merge token statistic
* chore: code clean
* fix: cache token merge
* chore: code clean
* chore: add comment & rename variables
* chore: code enhancement
* chore: FullToken<ComponentName>
* chore: clean input
* chore: code clean
* test: fix lint
* feat: inset prefixCls
Co-authored-by: zombiej <smith3816@gmail.com>
2022-04-02 22:55:02 +08:00
二货机器人
43eaa357b4
chore: cssinjs hashed as default ( #34272 )
...
* checkbox hashId support
* chore: tree hashed
* chore: fix lint
* fix: compile
2022-03-03 14:55:19 +08:00
zombiej
4aac9f7522
chore: simplify style requirement
2022-02-27 22:17:17 +08:00
二货机器人
912ffb15d0
refactor: Button with cssinjs ( #33890 )
...
* init
* chore: cssinjs base button
* chore: more style
* chore: mix style
* chore: size
* chore: more style
* misc
* chore: re-structrue
* chore: icon onlt
* chore: back of disabled
* chore: loading status
* chore: loading motion
* chore: add active style
* docs: site prepare dynamic theme
* chore: bump antd cssinjs
* chore: color type check
* chore: bump cssinjs version
* chore: clean up useless ts def
* chore: ignore button style
* chore: rename ci
* chore: update cssinjs ver
* chore: ssr default wrapper
* chore: bump cssinjs version
* chore: ssr support
* chore: fix script
* test: fix node snapshot
* chore: move cssinjs pkg size from css to js
* test: coverage
2022-02-18 14:17:32 +08:00
二货机器人
31fb55adf3
chore: btn default provide default cls ( #34013 )
2022-02-11 15:02:59 +08:00
Di Wu
9fe57c654a
fix: Clear timer of delayed loading after Button is unmounted ( #33858 )
...
* fix: Clear delay loading timer after Button is unmounted
* [CodeFactor] Apply fixes to commit 16cfb89
[ci skip] [skip ci]
* Change arrow function style in test case
Co-authored-by: codefactor-io <support@codefactor.io>
2022-01-27 14:06:37 +08:00
Frank Fang
de33041bb0
chore: refactor some code ( #33034 )
...
* Refactor some code
* Apply suggestions from code review
Co-authored-by: afc163 <afc163@gmail.com>
* [CodeFactor] Apply fixes
[ci skip] [skip ci]
* rename abbr to sizeClassNameMap
* refactor: Button size class name
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: codefactor-io <support@codefactor.io>
2021-12-01 17:53:05 +08:00
二货机器人
9324e953e3
chore: Not preventEvent btn loading ( #32158 )
...
* chore: Not preventEvent btn loading
* test: Update snapshot
2021-09-14 15:31:42 +08:00
绯一
008242b35e
chore: add Button.shape 'default' definition ( #32004 )
...
* feat: add Button.shape 'default'
* fix: ignore shape when falsy value
* fix: generate className only when shape match
* fix: remove necessary .ant-btn-default and update snapshot
2021-09-13 15:29:57 +08:00
Zuobin Wang
7f16838631
chore(all): delete useless Omit define ( #31661 )
2021-08-04 20:07:28 +08:00
afc163
7601f62ec0
fix: Button loading margin lost when children is fragment ( #30962 )
...
close #30953
2021-06-11 16:32:46 +08:00
afc163
edb59bd2e8
fix: Button with disabled
and type="link"
should not clickable ( #30209 )
...
close #30207
2021-04-19 17:19:22 +08:00
afc163
13a829d20c
fix: classNames typing errors ( #30018 )
2021-04-02 22:37:36 +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
二货机器人
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
Hossein Mohammadi
04bfa3c54f
chore: add prettier-plugin-jsdoc ( #28551 )
2020-12-28 15:30:18 +08:00
dependabot[bot]
775d1800bb
chore(deps-dev): bump eslint-config-prettier from 6.15.0 to 7.0.0 ( #28253 )
...
* chore(deps-dev): bump eslint-config-prettier from 6.15.0 to 7.0.0
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier ) from 6.15.0 to 7.0.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.15.0...v7.0.0 )
Signed-off-by: dependabot[bot] <support@github.com>
* chore: fix eslint style
* chore: prettier code style
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2020-12-09 17:12:32 +08:00
Eugene Matvejev
fa09208cda
refactor: review <Button/> defaultProps ( #28211 )
2020-12-05 23:08:30 +08:00
Eugene Matvejev
9913062d42
small cleanup in button.tsx ( #27759 )
2020-11-13 19:26:48 +08:00
Tom Xu
274871b50c
docs(button): improve docs and shape remove undeclared doc type ( #27159 )
...
* docs(button): improve docs
* Update index.less
2020-10-16 15:50:19 +08:00
Knut Olav Bøhmer
e09040f3af
fix: Button
as component for react-router Link
( #26740 )
...
React router passes `navigate` as prop to component in <Link to={to}
component={Component}>. This is already fixed for Typography.Link.
(#26623 ) This fixes `<Link to={to} component={Button}` />
2020-09-14 21:31:46 +08:00
Alex
bf45c4c1b0
style: 💄 className prop ordering #26594 ( #26602 )
...
close #26594
2020-09-06 13:07:39 +08:00
07akioni
35f1b1b7fc
fix: remove style of ghost link & ghost text button ( #24953 )
...
* fix: remove style of ghost link & ghost text button
* feat: devWarning on link or text + ghost button
* test: update snapshot
* fix: fix devWarning valid arg
* test: test warning
* docs: update ghost button demo
* test: change resetWarned position
* chore
2020-06-19 17:46:15 +08:00
二货机器人
902141f554
fix: btn loading 2 twice ( #24713 )
2020-06-03 21:59:54 +08:00
二货机器人
d5fea40ab5
fix: btn loading ( #24678 )
2020-06-02 12:54:22 +08:00
zombiej
9f38c46039
merge master
2020-05-14 21:03:29 +08:00
二货机器人
2afab58ac8
chore: small bundle size follow up ( #24164 )
...
* update config
* replace react function
* fix alert
2020-05-14 20:54:49 +08:00
zombiej
e6b1b1a4e7
Merge remote-tracking branch 'origin/master' into feature-merge-master
2020-05-14 16:19:39 +08:00
二货机器人
2e284aa017
chore: small bundle size ( #24135 )
...
* update warning
* rm warning
* replace with dev warning
* fix test
* fix site
* Update webpack.config.js
Co-authored-by: 偏右 <afc163@gmail.com>
* Update webpack.config.js
* fix sytax
* adjust
* move into function
Co-authored-by: 偏右 <afc163@gmail.com>
2020-05-14 15:57:04 +08:00
偏右
4cb70b6f16
Merge pull request #23893 from ant-design/master
...
chore: merge master into feature
2020-05-06 10:58:50 +08:00
偏右
c5bcf57537
feat: 💄 Add text type Button ( #22552 )
...
* 🆕 Add text type Button
`<Button type="text" />`
close #15892
* Add test cases
* missing type
* missing type
* fix missing type
* Update components/button/index.zh-CN.md
Co-Authored-By: zefeng <zefengbao@outlook.com>
Co-authored-by: Amumu <yoyo837@hotmail.com>
Co-authored-by: zefeng <zefengbao@outlook.com>
2020-05-06 10:15:33 +08:00
二货机器人
dff19af744
chore: Update Popconfirm & Modal okType type ( #23867 )
...
* chore: Update Popconfirm & Modal okType type
* add test case
* update test case
2020-05-05 12:03:16 +08:00