Commit Graph

36 Commits

Author SHA1 Message Date
Yu
e197163a78
feat(Avatar): support draggable prop (#24314) 2020-05-20 19:30: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
vagusX
871ab3da81 feat: add waring for icon props in Avatar, Button, Modal.method and Result (#20226) 2019-12-13 10:18:12 +08:00
zombiej
4d81cea17a Merge remote-tracking branch 'origin/master' into 4.0-prepare 2019-09-29 11:15:13 +08:00
二货机器人
7ae663da6d
fix: ssr should not render string at first (#19029)
* fix: ssr should not render string at first

* update snapshot
2019-09-27 01:17:42 -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
orzyyyy
63b33d4020 fix: unexpected changes of snapshots 2019-08-06 15:36:12 +08:00
Zzzen
f1ee189bd2 eliminate any type in exported interfaces.#14044 2019-06-16 20:51:47 +08:00
偏右
4da56cd06c Refactor Avatar scale calculate logic (#15503)
* 🐛 Refactor Avatar scale calculate logic

close #15351

close #15468

*  Fix infinite loop

* 🐛 Fix avatar size change logic

*  Fix snapshot

*  Add test cases for Avatar setScale

* 🐛 getBoundingClientRect => offsetWidth

*  Fix snapshot
2019-03-21 10:07:56 +08:00
ppbl
98b10a7cf8 🐛 Fix: avatar cannot calculate the offset when display: none (#15351) 2019-03-13 19:30:47 +08:00
Ahmed AlSammany
52846791b5 fix for https://github.com/ant-design/ant-design/issues/14650 2019-01-31 11:00:14 +08:00
Ahmed AlSammany
5ed909c9c8 🐛 Fixed src prop for Avatar not effective after image load error
* fix for https://github.com/ant-design/ant-design/issues/14605, reset isImgExist state on src prop update

* add TC for https://github.com/ant-design/ant-design/issues/14605
2019-01-29 21:11:46 +08:00
afc163
30fe9918d8
Merge branch 'master' into feature
* master:
  📝 Add bodyStyle and style of Drawer in documentation, #13850
  🐛 Fix Drawer style not working
  🐛 fix markStyle affset style
  Update Santa.jsx
  update changelog
  bump 3.11.6
  revert Christmas egg
  [type] make type of components compatible with ComponentType<P>
  bump 3.11.5
   site: make document side bar sticky
2018-12-25 16:28:50 +08:00
frezc
5f9b376456 [type] make type of components compatible with ComponentType<P> 2018-12-25 01:10: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
bc380a7d31 Merge remote-tracking branch 'origin/master' into feature 2018-11-06 23:48:29 +08:00
afc163
c88784a61c use class property of this.state 2018-11-06 16:23:53 +08:00
Wei Zhu
af54f500eb Merge branch 'master' into feature 2018-10-29 19:40:08 +08:00
afc163
bc3d8c5826 Fix Avatar children wrong align in Popover
close #10917
2018-10-28 23:45:36 +08:00
Philip Oliver
afc66b81df added attribute srcSet to Avatar component 2018-10-06 12:25:45 +02:00
Emerson Laurentino
0f9da43522 Avatar custom size (#11419)
* add avatar support custom size

* me added to author list and sorting alphabetically

* fix avatar sizeChildrenStyle preference

* fix authors

* fix snapshots
2018-08-02 20:25:14 +08:00
paranoidjk
ecff4997d9 feat(Avatar): expose onError (#11285)
* feat(Avatar): expose onError

* refactor: test case coverage
2018-07-24 12:14:34 +08:00
陈帅
2025a10a06 avatar img add "alt" prop (#10798) 2018-06-07 11:36:16 +08:00
Junbin Huang
bbf5cb75c3
chore: update typescript@~2.9.1 (#10748) 2018-06-02 20:12:09 +08:00
Jin ZHANG
a95209cf55 scale fallback string (#10184) 2018-04-22 13:09:42 +08:00
Wei Zhu
2a5479a524 Fix type errors
Close #9988
2018-04-11 12:01:28 +08:00
Andreas Cederström
f1bd8d0d11 proper class on avatar when image doesnt exist (#9278) 2018-02-07 10:43:27 +08:00
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports (#8218) 2017-11-17 14:38:54 +08:00
Randy
b2556b4cd5 remove any type in Avatar (#7016) 2017-07-31 00:43:33 +08:00
Benjy Cui
b45bf6d814 fix: should show children if src is not exist, close: #6804 2017-07-14 16:12:48 +08:00
afc163
12c6a73878 update jsx code style 2017-06-19 16:07:47 +08:00
乐仪
153fb0fc34 improve2 2017-06-09 12:02:25 +08:00
乐仪
7667225b0f improve 2017-06-09 12:02:25 +08:00
乐仪
c30d1b191f add Avatar 2017-06-09 12:02:24 +08:00