[iview/iview-admin]Model只要页眉不要页脚

2024-01-05 907 views
7

我想Model只要页眉不要页脚。 但是现在页眉可以没有,而页脚必然存在,哪怕slot设置一个空的footer,也会有一个footer模块存在。

回答

5

在modal 里加上 :footer-hide="true"即可

1

我为啥在iview-admin-template版本里面调用Modal时报错呢?

vue.esm.js:571 [Vue warn]: Failed to resolve directive: modal

0

vue.esm.js:571 [Vue warn]: Failed to resolve directive: modal 说的是标签内指令问题,你可能把v-model 写为了 v-modal

2

@Nightsky-Dec 话说,这种问题,先看看iview文档就能解决了

6

那通过全局 this.$Modal.confirm() 创建的实例应该如何去掉页脚呢?docs 里面的 config 参数没有 “footer-hide” 或者 “footerHide”,而且亲测在config 中加上去也还是没有去掉页脚。