How to use the kpc-react/components/message.error function in kpc-react

To help you get started, we’ve selected a few kpc-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ksc-fe / kpc / components / dialog / demos / events / index.jsx View on Github external
onCancel() {
        Message.error('You clicked cancel button.');
    }
github ksc-fe / kpc / components / editable / demos / validate / index.jsx View on Github external
_showErrorTip(c, value) {
        Message.error('Please enter digits.');
    }
github ksc-fe / kpc / components / transfer / demos / customList / index.jsx View on Github external
onAdd() {
        const users = this.state.checkedUsers;
        const room = this.state.checkedRooms[0];
    
        if (users.length > 2) {
            return Message.error('当前房间最多容纳两人');
        }
    
        users.forEach(user => {
            user.room = room;
            room.users.push(user);
        });
    
        this.setState({'checkedUsers': [], 'checkedRooms': []});
    }