style: update prettier

pull/1091/head
tangjinzhou 2019-08-15 22:24:53 +08:00
parent 4d1a4c9d33
commit 0eab2424d5
3 changed files with 11 additions and 15 deletions

View File

@ -2,18 +2,13 @@
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100,
"proseWrap": "never",
"overrides": [
{
"files": ".prettierrc",
"options": {
"parser": "json"
}
},
{
"files": ".stylelintrc",
"options": {
"parser": "json"
}
}
]
}
}

View File

@ -619,10 +619,10 @@ const Select = {
inputBlur(e) {
const target = e.relatedTarget || document.activeElement;
if (
target &&
this.selectTriggerRef &&
this.selectTriggerRef.getInnerMenu() &&
this.selectTriggerRef.getInnerMenu().$el === target ||
(target &&
this.selectTriggerRef &&
this.selectTriggerRef.getInnerMenu() &&
this.selectTriggerRef.getInnerMenu().$el === target) ||
contains(e.target, target)
) {
e.target.focus();
@ -1519,10 +1519,10 @@ const Select = {
key: 'selection',
};
//if (!isMultipleOrTagsOrCombobox(props)) {
// selectionProps.on.keydown = this.onKeyDown;
// selectionProps.on.focus = this.selectionRefFocus;
// selectionProps.on.blur = this.selectionRefBlur;
// selectionProps.attrs.tabIndex = props.disabled ? -1 : props.tabIndex;
// selectionProps.on.keydown = this.onKeyDown;
// selectionProps.on.focus = this.selectionRefFocus;
// selectionProps.on.blur = this.selectionRefBlur;
// selectionProps.attrs.tabIndex = props.disabled ? -1 : props.tabIndex;
//}
const rootCls = {
[prefixCls]: true,

View File

@ -18,6 +18,7 @@ let files = [];
const ignoreFiles = [
'**/node_modules/**',
'package.json',
'build/**',
'es/**',
'lib/**',