|
代码如下 <import name="loading" src="./loading"></import> <template> <loading> </loading> </template> <script> import prompt from '@system.prompt'; export default { onShow: function () { prompt.showToast({ message: 'onShow called', duration: 2000 }) }, } </script>
|
|