How to use the @alifd/next.Message.success function in @alifd/next

To help you get started, we’ve selected a few @alifd/next 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 alibaba / ice / react-materials / blocks / Login / src / Login.jsx View on Github external
handleSubmit = (values, errors) => {
    if (errors) {
      console.log('errors', errors);
      return;
    }
    console.log('values:', values);
    Message.success('登录成功');
    // 登录成功后做对应的逻辑处理
  };
github alibaba / ice / react-materials / scaffolds / ice-government-management-admin / src / pages / UserRegister / UserRegister.jsx View on Github external
this.refs.form.validateAll((errors, values) => {
      if (errors) {
        console.log('errors', errors);
        return;
      }
      console.log(values);
      Message.success('注册成功');
      this.props.history.push('/user/login');
    });
  };
github alibaba / ice / react-materials / scaffolds / ice-customer-analysis-admin / src / pages / UserLogin / UserLogin.jsx View on Github external
this.refs.form.validateAll((errors, values) => {
      if (errors) {
        console.log('errors', errors);
        return;
      }
      console.log(values);
      Message.success('登录成功');
      this.props.history.push('/');
    });
  };
github alibaba / ice / react-materials / scaffolds / ice-creator-admin / src / pages / NewPost / components / NewPostForm / index.js View on Github external
this.refs.form.validateAll((errors, values) => {
      if (errors) {
        console.log({ errors });
      }
      console.log({ values });
      Message.success('提交成功');
      this.props.history.push('/post/list');
    });
  };