amis icon indicating copy to clipboard operation
amis copied to clipboard

Drawer - 点击“确认” 怎么跳转到指定的页面

Open diabloyong opened this issue 6 years ago • 9 comments

Drawer - 点击“确认” 怎么跳转到指定的页面

diabloyong avatar Jun 10 '20 04:06 diabloyong

自己配置确认按钮

2betop avatar Jun 10 '20 04:06 2betop

可以给个案例吗?

diabloyong avatar Jun 10 '20 04:06 diabloyong

自己配置确认按钮

可以给个案例吗?

diabloyong avatar Jun 10 '20 04:06 diabloyong

drawer 那层配置 actions: [{type: 'button', actionType: 'link', link: '/xxxx', label: '确认'}] 相关文档:

  • https://baidu.github.io/amis/docs/renderers/Drawer
  • https://baidu.github.io/amis/docs/renderers/Action#link

2betop avatar Jun 10 '20 04:06 2betop

drawer 那层配置 actions: [{type: 'button', actionType: 'link', link: '/xxxx', label: '确认'}] 相关文档:

  • https://baidu.github.io/amis/docs/renderers/Drawer
  • https://baidu.github.io/amis/docs/renderers/Action#link

好的,谢谢

diabloyong avatar Jun 10 '20 05:06 diabloyong

image 添加这个代码后,api,点击确认,然后没反应,

diabloyong avatar Jun 10 '20 06:06 diabloyong

嗯,你应该是想提交表单后跳转

用form的redirect属性,然后按钮配置成submit;或者把actions删了,使用默认提交按钮就行

RickCole21 avatar Jun 10 '20 06:06 RickCole21

嗯,要有 form 的话就得设置 form 的 redirect 了,你之前又没说清楚

2betop avatar Jun 10 '20 06:06 2betop

ok,谢谢

diabloyong avatar Jun 10 '20 07:06 diabloyong