We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c528936 + bff1ecf commit 8dccf88Copy full SHA for 8dccf88
src/components/FormSelectList.vue
@@ -162,7 +162,17 @@
162
* @param {*|*[]} list, array of objects
163
*/
164
transformOptions(list) {
165
- const suffix = this.options.key;
+ let suffix;
166
+ if (this.options.key && this.options.key.startsWith('value.')) {
167
+ // points a property of the item
168
+ suffix = this.options.key.substr(6);
169
+ } else if (this.options.key==='value') {
170
+ // points to item itself
171
+ suffix = '';
172
+ } else {
173
174
+ suffix = this.options.key;
175
+ }
176
let resultList = [];
177
178
list.forEach(item => {
0 commit comments