UNPKG

@doreamonjs/gate

Version:
18 lines (17 loc) 815 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const react_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);