yao/tests/widgets/dyform/process.js
2022-08-05 19:46:26 +08:00

24 lines
587 B
JavaScript

/**
* Export the widget processes
* Export() defined witch function in this file will be registered as YAO PROCESS
* The process name is <WIDGET NAME>.<INSTANCE NAME>.<FUNCTION NAME>
* The processes can be used in compile.js and export.js DIRECTLY
*/
/**
* SchemaSave
* Save the schema of dyform
* @name: dyform.<INSTANCE>.Save
* @param {String} instance the instance name
* @param {*} payload
*/
function SchemaSave(instance, payload) {
return { instance: instance, payload: payload };
}
/**
* Export processes
*/
function Export() {
return { Save: "SchemaSave" };
}