nornj-react
Version:
React bindings for NornJ template engine.
36 lines (32 loc) • 697 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _nornj = require("nornj");
var _antd = require("antd");
var CheckboxGroup = _antd.Checkbox.Group;
(0, _nornj.registerComponent)({
'ant-Checkbox': {
component: _antd.Checkbox,
options: {
hasEventObject: true,
valuePropName: 'checked',
targetPropName: 'checked',
fieldDefaultRule: {
type: 'boolean'
}
}
},
'ant-CheckboxGroup': {
component: CheckboxGroup,
options: {
needToJS: true,
fieldDefaultRule: {
type: 'array'
}
}
}
});
var _default = _antd.Checkbox;
exports["default"] = _default;