forked from maoberlehner/vuex-map-fields
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mapObjectFields() to add object properties using template e.g. 'p…
…roperty.*'
- Loading branch information
Showing
1 changed file
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fd0c1ad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anikolaev is it possible to make the property enumerable?
Then it would be easier to walk all properties of the object.
fd0c1ad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stijnjanmaat Yes, I think it is a good idea and it is implemented in PR: https://github.com/maoberlehner/vuex-map-fields/pull/45/files#diff-1fdf421c05c1140f6d71444ea2b27638R124
This code is older.
I think it should be implemented for arrays too: maoberlehner#28 (comment)