Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
c0c0e728
Commit
c0c0e728
authored
Nov 10, 2017
by
Leopoldthecoder
Committed by
杨奕
Nov 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changelog: update for 2.0.4
parent
2260a3ba
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
3 deletions
+23
-3
CHANGELOG.en-US.md
CHANGELOG.en-US.md
+10
-0
CHANGELOG.zh-CN.md
CHANGELOG.zh-CN.md
+10
-0
packages/upload/src/ajax.js
packages/upload/src/ajax.js
+2
-2
test/unit/specs/upload.spec.js
test/unit/specs/upload.spec.js
+1
-1
No files found.
CHANGELOG.en-US.md
View file @
c0c0e728
## Changelog
### 2.0.4
*2017-11-10*
-
Improved accessibility for Cascader, Dropdown, Message, Notification, Popover, Tooltip and Tree
-
Fixed Container resize when the width of viewport decreases, #8042
-
Fixed Tree's
`updateKeyChildren`
incorrectly deleting child nodes, #8100
-
Fixed bordered CheckboxButton's height when nested in a Form, #8100
-
Fixed Menu's parsing error for custom colors, #8153 (by @zhouyixiang)
### 2.0.3
*2017-11-03*
...
...
CHANGELOG.zh-CN.md
View file @
c0c0e728
## 更新日志
### 2.0.4
*2017-11-10*
-
提升 Cascader、Dropdown、Message、Notification、Popover、Tooltip、Tree 的可访问性
-
修复当视口变窄时 Container 无法同步更新其宽度的问题,#8042
-
修复 Tree 的
`updateKeyChildren`
在删除子节点时的行为错误,#8100
-
修复带有边框的 CheckboxButton 在 Form 中高度错误的问题,#8100
-
修复 Menu 在解析自定义颜色时的错误,#8153(by @zhouyixiang)
### 2.0.3
*2017-11-03*
...
...
packages/upload/src/ajax.js
View file @
c0c0e728
function
getError
(
action
,
option
,
xhr
)
{
let
msg
;
if
(
xhr
.
response
)
{
msg
=
`
${
xhr
.
status
}
${
xhr
.
response
.
error
||
xhr
.
response
}
`
;
msg
=
`
${
xhr
.
response
.
error
||
xhr
.
response
}
`
;
}
else
if
(
xhr
.
responseText
)
{
msg
=
`
${
xhr
.
status
}
${
xhr
.
responseText
}
`
;
msg
=
`
${
xhr
.
responseText
}
`
;
}
else
{
msg
=
`fail to post
${
action
}
${
xhr
.
status
}
`
;
}
...
...
test/unit/specs/upload.spec.js
View file @
c0c0e728
...
...
@@ -41,7 +41,7 @@ describe('ajax', () => {
});
it
(
'
40x code should be error
'
,
done
=>
{
option
.
onError
=
e
=>
{
expect
(
e
.
toString
()).
to
.
contain
(
'
404
Not found
'
);
expect
(
e
.
toString
()).
to
.
contain
(
'
Not found
'
);
done
();
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment