UNPKG

@doreamonjs/gate

Version:
16 lines 752 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const react_1 = tslib_1.__importDefault(require("react")); const dva_1 = require("dva"); const components_1 = require("@doreamonjs/components"); const Notice = (props) => (react_1.default.createElement(components_1.Dropdown.Notice, { ...props })); const mapState = (state) => { return state.applications.notice; }; const mapActions = (dispatch) => ({ onChange: (value) => dispatch({ type: 'applications/notice/change', payload: value }), onPressEnter: (value) => dispatch({ type: 'applications/notice/query', payload: value }), }); exports.default = dva_1.connect(mapState, mapActions)(Notice); //# sourceMappingURL=notice.js.map