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
ee09addd
Commit
ee09addd
authored
Apr 03, 2023
by
linhuandong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
强制不抛出异常
parent
e8ec6c03
Pipeline
#280
failed with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
package.json
package.json
+1
-1
src/index.js
src/index.js
+1
-1
src/utils/util.js
src/utils/util.js
+3
-2
No files found.
package.json
View file @
ee09addd
{
{
"name"
:
"element-ui"
,
"name"
:
"element-ui"
,
"version"
:
"2.15.766
6
"
,
"version"
:
"2.15.766
7
"
,
"description"
:
"A Component Library for Vue.js."
,
"description"
:
"A Component Library for Vue.js."
,
"main"
:
"lib/element-ui.common.js"
,
"main"
:
"lib/element-ui.common.js"
,
"files"
:
[
"files"
:
[
...
...
src/index.js
View file @
ee09addd
...
@@ -210,7 +210,7 @@ if (typeof window !== 'undefined' && window.Vue) {
...
@@ -210,7 +210,7 @@ if (typeof window !== 'undefined' && window.Vue) {
}
}
export
default
{
export
default
{
version
:
'
2.15.7
'
,
version
:
'
2.15.7
667
'
,
locale
:
locale
.
use
,
locale
:
locale
.
use
,
i18n
:
locale
.
i18n
,
i18n
:
locale
.
i18n
,
install
,
install
,
...
...
src/utils/util.js
View file @
ee09addd
...
@@ -52,12 +52,13 @@ export function getPropByPath(obj, path, strict) {
...
@@ -52,12 +52,13 @@ export function getPropByPath(obj, path, strict) {
let
keyArr
=
path
.
split
(
'
.
'
);
let
keyArr
=
path
.
split
(
'
.
'
);
let
i
=
0
;
let
i
=
0
;
for
(
let
len
=
keyArr
.
length
;
i
<
len
-
1
;
++
i
)
{
for
(
let
len
=
keyArr
.
length
;
i
<
len
-
1
;
++
i
)
{
if
(
!
tempObj
&&
!
strict
)
break
;
// if (!tempObj && !strict) break;
if
(
!
tempObj
)
break
;
let
key
=
keyArr
[
i
];
let
key
=
keyArr
[
i
];
if
(
key
in
tempObj
)
{
if
(
key
in
tempObj
)
{
tempObj
=
tempObj
[
key
];
tempObj
=
tempObj
[
key
];
}
else
{
}
else
{
if
(
strict
)
{
if
(
strict
&&
false
)
{
throw
new
Error
(
'
please transfer a valid prop path to form item!
'
);
throw
new
Error
(
'
please transfer a valid prop path to form item!
'
);
}
}
break
;
break
;
...
...
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