@schema-render/search-react
Version:
Conditional search component based on FormRender.
38 lines (37 loc) • 768 B
JavaScript
/**
* 内置 Action 名称
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
ACTIONS: function() {
return ACTIONS;
},
DEFAULT_SEARCH_PROPS: function() {
return DEFAULT_SEARCH_PROPS;
}
});
var ACTIONS = {
submit: 'submit',
reset: 'reset',
collapse: 'collapse'
};
var DEFAULT_SEARCH_PROPS = {
prefixCls: 'schema-render',
layoutColumnGap: 10,
layoutRowGap: 15,
actions: [
ACTIONS.reset,
ACTIONS.submit,
ACTIONS.collapse
],
defaultCollapsed: true,
collapsedRows: 2
};