|
|
@ -17,7 +17,9 @@ export default { |
|
|
|
props: ['value', 'column'], |
|
|
|
props: ['value', 'column'], |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
enumValues() { |
|
|
|
enumValues() { |
|
|
|
const opts = this.column.colOptions.options || []; |
|
|
|
const opts = (this.column.colOptions) |
|
|
|
|
|
|
|
? this.column.colOptions.options.filter(el => el.title !== '') || [] |
|
|
|
|
|
|
|
: []; |
|
|
|
for (const op of opts.filter(el => el.order === null)) { |
|
|
|
for (const op of opts.filter(el => el.order === null)) { |
|
|
|
op.title = op.title.replace(/^'/, '').replace(/'$/, ''); |
|
|
|
op.title = op.title.replace(/^'/, '').replace(/'$/, ''); |
|
|
|
} |
|
|
|
} |
|
|
|