mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-05-08 02:30:56 +00:00
Add filters support for lookups of single select fields
This commit is contained in:
parent
5558139eb8
commit
be27e89fb0
19 changed files with 1358 additions and 95 deletions
web-frontend/modules/core
|
@ -36,14 +36,16 @@
|
|||
export function mix(...chain) {
|
||||
const [baseClass, ...mixins] = chain.reverse()
|
||||
|
||||
class Mixed extends baseClass {}
|
||||
|
||||
for (const mixin of mixins) {
|
||||
for (const [key, value] of Object.entries(mixin)) {
|
||||
/* eslint no-prototype-builtins: "off" */
|
||||
if (!baseClass.prototype.hasOwnProperty(key)) {
|
||||
baseClass.prototype[key] = value
|
||||
if (!Mixed.prototype.hasOwnProperty(key)) {
|
||||
Mixed.prototype[key] = value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return baseClass
|
||||
return Mixed
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue