Commit ee09addd authored by linhuandong's avatar linhuandong

强制不抛出异常

parent e8ec6c03
Pipeline #280 failed with stages
{
"name": "element-ui",
"version": "2.15.7666",
"version": "2.15.7667",
"description": "A Component Library for Vue.js.",
"main": "lib/element-ui.common.js",
"files": [
......
......@@ -210,7 +210,7 @@ if (typeof window !== 'undefined' && window.Vue) {
}
export default {
version: '2.15.7',
version: '2.15.7667',
locale: locale.use,
i18n: locale.i18n,
install,
......
......@@ -52,12 +52,13 @@ export function getPropByPath(obj, path, strict) {
let keyArr = path.split('.');
let i = 0;
for (let len = keyArr.length; i < len - 1; ++i) {
if (!tempObj && !strict) break;
// if (!tempObj && !strict) break;
if (!tempObj) break;
let key = keyArr[i];
if (key in tempObj) {
tempObj = tempObj[key];
} else {
if (strict) {
if (strict && false) {
throw new Error('please transfer a valid prop path to form item!');
}
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment