Giter Site home page Giter Site logo

Comments (8)

github-actions avatar github-actions commented on September 27, 2024

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

from amis.

2betop avatar 2betop commented on September 27, 2024

https://aisuda.bce.baidu.com/amis/zh-CN/docs/concepts/event-action#toast-%E6%8F%90%E7%A4%BA 用这个动作就能弹出

from amis.

wanquantong avatar wanquantong commented on September 27, 2024

https://aisuda.bce.baidu.com/amis/zh-CN/docs/concepts/event-action#toast-%E6%8F%90%E7%A4%BA 用这个动作就能弹出

我想用javascript调用,toast是可以用的,但dialog要怎么实现呢?
function tips() {
amisLib.toast.info('消息通知');
}

from amis.

2betop avatar 2betop commented on September 27, 2024

弹窗没有功能方法可以弹出,应该类似这样去用 component <Modal show={this.state.show} onClose={handleClose}><p>Contdents</p></Modal>

from amis.

lhtuling avatar lhtuling commented on September 27, 2024

你如果是强提示用alert和confirm可以
其他的你可能思路不对了,换方式吧不应该这样用!

image

image

from amis.

lhtuling avatar lhtuling commented on September 27, 2024

Amis低代码前端框架交流群【QQ1群】:717791727
Amis低代码前端框架交流群【QQ2群】:721182449

from amis.

wanquantong avatar wanquantong commented on September 27, 2024

你如果是强提示用alert和confirm可以 其他的你可能思路不对了,换方式吧不应该这样用!

image

image

我是想用JS代码触发打开AMIS的某一个dialog,可以实现吗?

from amis.

lhtuling avatar lhtuling commented on September 27, 2024

我是想用JS代码触发打开AMIS的某一个dialog,可以实现吗?

测了下可以的,比较绕一点,首先用definitions定义弹窗
然后通过暴露的amisScoped调用弹窗窗口方法就行了,也是个解决方法

Amis低代码前端框架交流群【QQ 1群】:717791727
Amis低代码前端框架交流群【QQ 2群】:721182449

from amis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.