lijianan
e084de38e8
refactor: CC => FC ( #37886 )
...
* fix: fix
* fix: fix
* fix: fix
* fix: fix
* fix: fix
* fix: fix
* fix: fix
* fix: fix
* fix: fix
* test: fix test
* fix: fix
* fix: fix
* fix: fix
* test: add test
* fix: fix test
2022-10-10 14:15:08 +08:00
Zheeeng
dcac4f66a4
fix: signatures for Upload ( #37861 )
2022-10-06 18:53:06 +08:00
Zheeeng
ea9b013bb1
refactor(locale): refine signature ( #37824 )
...
* chore: prefer using @internal annotation over other markups
* fix: typo
* fix: locale types
2022-10-01 22:17:14 +08:00
二货机器人
006c055cf8
refactor: move popconfirm content out ( #36530 )
...
* refactor: move popconfirm content out
* fix: lint
2022-07-15 11:11:50 +08:00
二货机器人
2c2c631bfd
chore: prettier components ( #36171 )
2022-06-22 14:57:09 +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
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
二货机器人
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
2022-01-18 14:13:41 +08:00
Di Wu
f53e615518
fix: Invalid memoized context value in LocaleProvider ( #33723 )
...
* fix: Invalid memoized context value in LocaleProvider
* Add button type in test case.
* fix: Invalid memoized context value in Anchor
2022-01-14 18:34:27 +08:00
dependabot[bot]
20d5502193
chore(deps-dev): bump eslint-config-airbnb from 18.2.1 to 19.0.0 ( #32824 )
...
* chore(deps-dev): bump eslint-config-airbnb from 18.2.1 to 19.0.0
Bumps [eslint-config-airbnb](https://github.com/airbnb/javascript ) from 18.2.1 to 19.0.0.
- [Release notes](https://github.com/airbnb/javascript/releases )
- [Commits](https://github.com/airbnb/javascript/compare/eslint-config-airbnb-v18.2.1...eslint-config-airbnb-v19.0.0 )
---
updated-dependencies:
- dependency-name: eslint-config-airbnb
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* chore: code style
* memoize-one
* add comment
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* improve useMemo deps
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2021-11-26 12:18:21 +08:00
qqabcv520
47dfa1f2ca
fix: fix type declaration ( #30776 )
2021-06-03 09:36:04 +08:00
叶枫
e7938cad1c
fix: 修复切换页面 changeConfirmLocale 被清空问题 ( #29570 )
...
* fix: 修复切换页面 changeConfirmLocale 被清空问题
* feat: 恢复 constructor
* feat: test
2021-03-02 18:05:20 +08:00
二货机器人
9cd4fab604
feat: Image add preview style ( #28235 )
...
* feat: Add preview mask
* feat: Preview support locale
* test: Update snapshot
* fix lint
* fix lint
2020-12-07 17:08:48 +08:00
二货机器人
60771a0f61
feat: Support requiredMarkType ( #26309 )
...
* feat: support requreidMarkType
* docs: Update doc desc
* fix lint
* use requiredMark instead
* not change className
* fix ts
* update test case
* rtl style
* fix rtl
Co-authored-by: xrkffgg <xrkffgg@vip.qq.com>
2020-08-21 12:58:14 +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
Tom Xu
50416b3a7b
improvement: Form default locale ( #23165 )
...
* improve: Form default locale
* fix lint
* fix lint
* improve form doc
* add test case
* improve form validate messages
2020-04-18 13:18:51 +08:00
二货机器人
cefb7b29f2
chore: Update Locale context ( #22762 )
...
* Upgrade locale context
* fix logic
* fix lint
* add context ignore in test case
2020-03-30 22:54:12 +08:00
Gibson C
875f1afc79
feat: Define PickerLocale typedef ( #22132 )
2020-03-12 10:49:32 +08:00
Gibson C
d2ef74b2ed
feat: Refine locale types ( #22103 )
2020-03-11 14:56:01 +08:00
二货机器人
0b5c92b1a4
chore: Clean up merged code ( #20595 )
...
* chore: Clean up merged code
* fix hy-am
2020-01-02 16:51:52 +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
zombiej
fa8ddb4104
merge master
2019-09-16 11:23:26 +08:00
zombieJ
2d7df45ab7
fix: ConfigProvider wrapper locale no need with only children ( #18075 )
...
* fix: ConfigProvider wrapper locale no need with only children
* skip react 15
2019-08-05 11:27:32 +08:00
zombieJ
81d8eb8afe
feat: ConfigProvider support locale ( #17816 )
...
* ConfigProvider support locale
* update docs
* update category
* clean up
* moving locale
* update check script
* update related code
* add test case
* demo link
* update doc
* hide one rule of md with eslint
* update error link
2019-07-24 10:34:55 +08:00
陈帅
daca08b6f1
merge master
2018-12-13 22:03:12 +08:00
Damian Green
83b30d7513
migrate locale provider to new lifecycle method
2018-11-22 14:22:48 +00:00
Wei Zhu
064bfaf554
Add @types/prop-types
2018-08-07 21:09:05 +08:00
afc163
e3446840fa
Fix test case of LocaleProvider
...
which is broken by #10047
use constructor over componentDidMount
2018-04-15 15:09:13 +08:00
Zheeeng
08f5c27b0b
Use componentDidMount to replace componentWillMount: componentWillMount is deprecating ( #10047 )
2018-04-14 13:37:24 +08:00
Kenneth Luján Rosas
d7b44bda07
Fixes LocaleProvider moment
usage ( #9853 )
2018-03-29 10:42:33 +08:00
Wei Zhu
a7b939db43
Set moment.locale to en if no locale code provide
2018-01-15 14:59:09 +08:00
Wei Zhu
4f56b4d52d
Fix error when locale is null
2018-01-14 01:30:21 +08:00
Wei Zhu
7f5922b209
Lazy set moment locale ( #8785 )
2018-01-13 03:53:25 -06:00
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports ( #8218 )
2017-11-17 14:38:54 +08:00
Alexander Suevalov
35b2c5e58f
Adding missing optional Upload
property to LocaleProviderProps ( #7862 )
2017-10-11 07:13:39 -05:00
Wei Zhu
401519ec6f
Fix types
2017-07-31 01:50:46 +08:00
Manjit Kumar
4e055ed5d0
use PropTypes from 'prop-types' mdoule instead of React
...
- as React.PropTypes is being deprecated
- Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
- Solution: https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes
2017-04-12 02:22:05 +05:30
Hubert Argasinski
6530e76758
update Modal.confirm locale on LocaleProvider componentWillMount ( #5494 )
2017-03-27 12:08:15 +08:00
Benjy Cui
0aabdb3d8b
fix: locale should follow LocaleProvider, close : #4495 ( #4503 )
...
* fix: locale should follow LocaleProvider, close : #4495
* test: update snapshot
* fix: fix some bugs
2017-01-09 16:25:58 +08:00
Patrick Gidich
21ec9cb985
fix: issue with TypeScript for children of LocaleProvider ( #4234 )
...
Similar to issue:
https://github.com/ant-design/ant-design/issues/4140
Fixed in similar manner to how this issue was resolved:
a28743f648 (diff-9ae0a9df19960a2d1b9608f30f6b19b3)
children?: React.ReactElement<any>
2016-12-16 16:42:50 +08:00
Benjy Cui
4878258f6c
refactor: ref: #3490
2016-10-24 12:04:26 +08:00
Benjy Cui
bd7e9f00c0
style: update code style
2016-09-21 11:54:53 +08:00
ddcat1115
ef84f8d408
refactor: ts LocaleProvider ( #2548 )
2016-08-02 16:10:26 +08:00
偏右
de359d2cf7
fix tslint problems ( #2360 )
2016-07-13 11:14:24 +08:00
yiminghe
94706f1d2c
fix ts
2016-07-07 20:25:03 +08:00
yiminghe
9a0d751f94
refactor to typescript
2016-06-22 13:19:48 +08:00