How to use the zarm.Toast.show function in zarm

To help you get started, we’ve selected a few zarm 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 ZhongAnTech / zarm / examples / pages / PickerPage.jsx View on Github external
onOk={(selected) => {
              console.log('Picker onOk: ', selected);
              diy.value = selected.map(item => item.code);
              this.setState({
                diy,
              });
              Toast.show(JSON.stringify(selected));
              this.toggle('diy');
            }}
            onCancel={() => this.toggle('diy')}
github ZhongAnTech / zarm / examples / pages / ToastPage.jsx View on Github external
onClick={() => {
                      Toast.show('指定10秒自动关闭', 10000);
                    }}
                  >
github ZhongAnTech / zarm / examples / pages / ToastPage.jsx View on Github external
onClick={() => {
                      Toast.show('默认3秒自动关闭');
                    }}
                  >
github ZhongAnTech / zarm / examples / pages / ToastPage.jsx View on Github external
onClick={() => {
                      Toast.show(() => {
                        return (
                          <div>
                            
                            <div>
                              预约成功
                            </div>
                          </div>
                        );
                      });
                    }}
                  &gt;