Comments (2)
使用的是 Result(ant-design-vue)的 icon 插槽,显示的是自定义的 icon:
src\views\sys\exception\Exception.vue
<Result
class={prefixCls}
status={status as any}
title={props.title || title}
sub-title={props.subTitle || subTitle}
>
{{
extra: () =>
btnText && (
<Button type="primary" onClick={handler}>
{() => btnText}
</Button>
),
icon: () => (icon ? <img src={icon} /> : null),
}}
</Result>
@Bo-Teng
也许你可以微调一下:
icon:
status && ExceptionEnum[status] === void 0
? () => (icon ? <img src={icon} /> : null)
: undefined
from vue-vben-admin.
@xachary 好的谢谢
from vue-vben-admin.
Related Issues (20)
- [BUG]form中reset不能够还原componentProps中的defaultValue
- 2.10.1版本为什么VITE_GLOB_开头的变量在打包后更改_app.config.js无效
- useModalInner 回调里 setModalProps 不生效
- RangePicker field为数组时 , setFieldsValue不成功
- ImageUpload设置必填时,还没上传就提示校验信息
- 执行 pnpm install 出现错误 ERR_PNPM_WORKSPACE_PKG_NOT_FOUND HOT 1
- vue 修饰符的使用 HOT 2
- 动态获取国际化失败,在setupI18n.ts中只要调用请求,页面就无法访问 HOT 1
- 当表单项默认值设置为0、-1、false 等情况下,执行 resetFields() 将无法为相应表单项赋值 HOT 1
- redirect只有路径没有参数
- 如何实现不隐藏没权限的菜单,但是点击时提示无权限?
- 拉代码后,pnpm serve失败 HOT 2
- basic form 表单字段显示
- Edge浏览器控制台报 BuyNowRuntime 错误 HOT 5
- axios方法为put时,提示网络请求错误,请求方法未允许 HOT 7
- 文档里这段描述不对
- 并不能开箱即用 各种插件报错太多 有点劝退 等适应性更高的时候再尝试吧 HOT 1
- 官方demo严重UI问题,select 与结果页相分离
- UploadPreviewModal组件,预览多张图片时,点击删除会清空所有图片
- Table启用FormSearch后,针对查询结果点击编辑,record不会生成editValueRefs以及xxxCbs属性
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-vben-admin.