YuyingWu
|
e8cf22ad0e
|
site: fix locale switch
* antD首页从英文切换到中文时,replace导致链接错误
首页从英文转到中文,点击header上的“中文”时,链接会跳到 https://ant.design/index-cn/ant.design/ (Chrome)或者 https://index-cn/ant.design/ (Safari)
bug来自handleLangChange函数下,最后对location.href.replace操作时出错,原因来自replace匹配到location.href的第一个/
('https://ant.design/').replace('/', '/index-cn') 的运行结果是 https:/index-cn/ant.design/
为了避免replace匹配到location.href的第一个/,我建议的方案是使用 location.origin + location.pathname.replace
最后,感谢antD团队开发出那么棒的UI~
* 英转中,url替换(带hash、query)
英转中URL问题,上一版使用了location.origin + location.pathname,会丢失query和hash。此版本原理还是用location.href做replace,鉴于首页pathname可能是/会在替换中匹配到https:后的第一个/,所以先把href的protocol部分提取出来,再做replace,最后再拼回去做跳转。
|
2017-02-26 14:50:12 +08:00 |
|
afc163
|
14d380f0f9
|
use old button animation
|
2017-02-26 02:18:20 +08:00 |
|
偏右
|
4650d20abf
|
Update colorPalette.less
|
2017-02-26 00:35:02 +08:00 |
|
afc163
|
cf4ad5ddb8
|
fix test case
|
2017-02-26 00:23:46 +08:00 |
|
YuyingWu
|
a5f136f334
|
antD首页从英文切换到中文时,replace导致链接错误 (#5050)
首页从英文转到中文,点击header上的“中文”时,链接会跳到 https://ant.design/index-cn/ant.design/ (Chrome)或者 https://index-cn/ant.design/ (Safari)
bug来自handleLangChange函数下,最后对location.href.replace操作时出错,原因来自replace匹配到location.href的第一个/
('https://ant.design/').replace('/', '/index-cn') 的运行结果是 https:/index-cn/ant.design/
为了避免replace匹配到location.href的第一个/,我建议的方案是使用 location.origin + location.pathname.replace
最后,感谢antD团队开发出那么棒的UI~
|
2017-02-26 00:23:04 +08:00 |
|
afc163
|
917ec5606e
|
Tweak tree style
|
2017-02-25 19:17:54 +08:00 |
|
afc163
|
511db23fcd
|
Add default title for form item label
|
2017-02-25 18:48:44 +08:00 |
|
afc163
|
68fde63ef7
|
refactor renderLabel
|
2017-02-25 18:47:40 +08:00 |
|
afc163
|
d2e178d215
|
update doc
|
2017-02-25 18:37:25 +08:00 |
|
afc163
|
c78d3032f5
|
site: fix aside menu
|
2017-02-25 15:10:23 +08:00 |
|
afc163
|
f6715df3b5
|
closest => dom-closest, fix ssr
|
2017-02-25 02:09:18 +08:00 |
|
afc163
|
6ea75c4d85
|
Filter dropdown menu inside scroll body should never be shown, close #5010
|
2017-02-25 01:36:45 +08:00 |
|
afc163
|
5076b6045c
|
fix snap
|
2017-02-25 00:17:44 +08:00 |
|
afc163
|
139d95022c
|
prefer stateless function
|
2017-02-24 20:29:24 +08:00 |
|
tianli.zhao
|
85ca5ed5ea
|
[WIP] filter the disabled options (#4981)
filter the disabled options
|
2017-02-24 19:08:02 +08:00 |
|
afc163
|
0cbe319839
|
Add copied message
|
2017-02-24 19:05:26 +08:00 |
|
afc163
|
2bf6e22653
|
fix documentation for onOk, close #5044
|
2017-02-24 18:08:35 +08:00 |
|
ddcat1115
|
d0db3ce426
|
fix menu icon not centered in Layout.Sidere (#5039)
|
2017-02-24 18:04:16 +08:00 |
|
afc163
|
4bde2917d2
|
fix internal links
|
2017-02-24 18:02:47 +08:00 |
|
afc163
|
c163232deb
|
fix snap
|
2017-02-24 17:43:40 +08:00 |
|
afc163
|
9c3268dcbc
|
continue to fix #4935
|
2017-02-24 17:36:16 +08:00 |
|
乐仪
|
55fca5cee4
|
Merge branch 'master' of https://github.com/ant-design/ant-design
|
2017-02-24 16:36:02 +08:00 |
|
乐仪
|
70ec413537
|
fix Layout demo, update documentation.
|
2017-02-24 16:34:10 +08:00 |
|
afc163
|
edaad09b67
|
update grid document for media queries rule, close #5030
|
2017-02-24 16:25:27 +08:00 |
|
Benjy Cui
|
3aac9adc40
|
docs: remove some demo
|
2017-02-24 16:17:52 +08:00 |
|
ddcat1115
|
e07cdf5387
|
add left out event parameters for Modal[onOk] Popconfirm[onConfirm] Popconfirm[onCancel] (#5042)
|
2017-02-24 16:07:39 +08:00 |
|
feng zhi hao
|
88100a29a3
|
chore: fix ts definition of Upload (#5041)
|
2017-02-24 16:06:57 +08:00 |
|
偏右
|
6df92ce16f
|
Fix staged lint (#5037)
* revert lint-staged
* remove git add
* fix lint-staged:demo typo
* fix: cnpm can not find tslint error
|
2017-02-24 12:54:13 +08:00 |
|
Benjy Cui
|
e72d93edfe
|
site: add copy button to demo, close: #4563
|
2017-02-24 11:55:24 +08:00 |
|
Graeme Yeates
|
19c11dd173
|
chore: RangePicker TimePicker component locking background to white (#5031)
|
2017-02-24 10:42:45 +08:00 |
|
Benjy Cui
|
4e59e9e769
|
docs: recommend to use LocaleProvider, ref: #5017
|
2017-02-24 10:22:21 +08:00 |
|
afc163
|
7deab1beec
|
do not autofix lint when commit, ref #4941
|
2017-02-23 22:28:21 +08:00 |
|
邦
|
411f352690
|
[WIP] Refactor lint-flow (#5014)
* refactor: lint-flow #4941
* chore: rename lint to lint-all #4941
* Revert "chore: rename lint to lint-all #4941"
This reverts commit 8e4e2b6da3289b62fa85354bee3068fe35836f3d.
|
2017-02-23 22:12:52 +08:00 |
|
afc163
|
f53d0b7646
|
upgrade rc-input-number for #5012
|
2017-02-23 21:15:32 +08:00 |
|
Benjy Cui
|
1f844c1048
|
fix: Slider's Tooltip should not blink, close: #5003
|
2017-02-23 17:03:18 +08:00 |
|
Benjy Cui
|
1c837963e2
|
chore: add warning for deprecated API
|
2017-02-23 16:04:27 +08:00 |
|
Benjy Cui
|
ce0d4c39f2
|
docs: add missing info in Calendar, close: #5017
|
2017-02-23 15:58:02 +08:00 |
|
afc163
|
dded4bcde4
|
fix snap for rc-table@5.2.12
|
2017-02-23 14:57:48 +08:00 |
|
afc163
|
6fdb39038b
|
Fix selected style of Dropdown menu, close #5013
|
2017-02-23 13:48:38 +08:00 |
|
afc163
|
9d0a06b657
|
add snap file
|
2017-02-23 13:45:16 +08:00 |
|
afc163
|
9c6a6d6175
|
Fix Breadcrumb falsy children, close #5015
|
2017-02-23 13:43:50 +08:00 |
|
afc163
|
5068343b0c
|
fix tslint
|
2017-02-23 13:18:06 +08:00 |
|
afc163
|
a7c6c027ce
|
Fix ts definition of Table & RangePicker
close https://segmentfault.com/q/1010000008423156
|
2017-02-23 12:51:40 +08:00 |
|
afc163
|
0f46eed370
|
fix lint
|
2017-02-23 11:45:48 +08:00 |
|
afc163
|
922a57dfde
|
fix snap for react-component/table#125
|
2017-02-23 11:30:54 +08:00 |
|
Benjy Cui
|
29ebf22529
|
docs: update docs for AutoComplete, close: #5006
|
2017-02-23 10:02:10 +08:00 |
|
偏右
|
ec9fed3f04
|
Update ISSUE_TEMPLATE.md
|
2017-02-23 01:04:22 +08:00 |
|
afc163
|
52bfb8069a
|
site: fix link
|
2017-02-23 00:36:02 +08:00 |
|
afc163
|
5fbc007ff7
|
site: fix link
|
2017-02-23 00:35:16 +08:00 |
|
afc163
|
27717483a7
|
should be only working on input ref, #4987
|
2017-02-22 21:28:53 +08:00 |
|