Comments (2)
Translation of this issue:
usenotification uses an error []
- [] I have searched the [isSues] (https://github.com/iduxfe/idux/issues) of this repository that this is not a duplicate.
REPRODUCTION LINK
STEPS To Reproduce
import {usenotification} from '@IDPONENTS/NOTIFICATION'
const notification = usenotification ()
Notification.error ({title: 'error', content: $ error code: $ {code}
})
What is exfected?
What is actually happy?
TS grammar error
The parameters of the type "{title: string; content: string;}" cannot be assigned to the parameter of the type "Omit <ptificationOptions ," Type ">.
Type "{title: string; content: string;}" lacks the attribute "key", but the type "Omit <ptificationOptions ," Type ">" "Type".TS (2345)
Types.d.ts (69, 5): Here the "Key" was declared.
ENVIRONMENT Info
ANY Additional Comments? (Optional)
Among them, the key of notificationOptions is a must -value value, and the document does not explain what the key should fill in
from idux.
Key 就是组件的唯一标识,跟 v-for 中的 key 是一个作用。
不过这个地方应该不是必传的,是 ts 的类型声明写错了,下个版本修复。
from idux.
Related Issues (20)
- [select]在中文输入法状态下输入英文字母,点击enter键生成标签后,会多出输入的字母
- [cdk] 开发套件中resize套件文档中api错误
- [table] 任意列配置了列宽之后,选中列宽度会进行缩放变大
- [textarea] IxTextarea 无法配置原生 textarea 的 cols 属性
- [table] 树表格的勾选,在初始化赋值时未做到级联 HOT 1
- [ form] formItem中的表单项未继承formItem的status
- [bug]IxRadioGroup的gap配置,对字符串和数字的处理不一致 HOT 1
- [Table ] Table在虚拟滚动+合并单元格场景,滚动时会出现合并单元格消失
- [RadioData] RadioData的key能否设置成布尔类型 HOT 1
- [IxUpload] 默认配置下,list插槽中的下载按钮显示不出来 HOT 3
- [IxDesc ] desc header slots 不会独立成一行
- [proSearch ] 能提供一个api,获取当前筛选条件的所有文案 HOT 2
- [ pro-search]searchFileds的key值是0或false,第一次点击选项会清空,第二次点击才能选中 HOT 1
- [ pro-search] [偶现] 快捷面板下配置keywordFallback,一键清空,删除等操作后,输入关键字,默认选中的项不对 HOT 1
- [ pro-search] [偶现] 快捷面板下配置keywordFallback,一键清空,删除等操作后,输入关键字,默认选中的项不对 #
- [ pro-search]searchFileds的key值是0或false,第一次点击选项会清空,第二次点击才能选中 HOT 1
- [Tooltip] [必现] [vue2] ixTooltip与v-if使用时 如果v-if加在hover的内容上,且v-if延时加载,会出现tooltip加载不出来的现象 HOT 1
- [IxTree] When IxTree sets draggable and showLine together, the treeNode's line is wrong.
- [IxModal] 弹窗IxModal 同时设置可拖动与 #header 插槽,控制台会报错 HOT 1
- [IxProSearch ]快捷面板中点击“输入框”类型的过滤项,面板浮层建议不要自动消失,从而增强体验
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 idux.