@nocobase/plugin-action-import
Version:
Import records using excel templates. You can configure which fields to import and templates will be generated automatically.
20 lines (15 loc) • 316 B
JavaScript
class DataValidations {
constructor(model) {
this.model = model || {};
}
add(address, validation) {
return (this.model[address] = validation);
}
find(address) {
return this.model[address];
}
remove(address) {
this.model[address] = undefined;
}
}
module.exports = DataValidations;