Skip to content

Commit

Permalink
Fix rendering bugs 🚑 🚑 🚑
Browse files Browse the repository at this point in the history
  • Loading branch information
webvs2 committed Jul 17, 2024
1 parent 30c3ebf commit f212cd0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pnpm add @nanometer/nm --save-dev
```js
import message from "@nanometer/nm";
import "@nanometer/nm/dist/style.css";

message({type:"success",durationTime:3000,content:"Hello World"});
or
message("Hello World");
Expand Down
3 changes: 1 addition & 2 deletions lib/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,12 @@ class MessageClass {
on:{
click:()=> {
option?.suffixEvent!({close:()=>{
console.log(store.store)
store.remove(store.store.filter((item)=>item.id===id)[0],true)
}});
}
},
children: suffix,
}:null
}:''
)

],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nanometer/nm",
"version": "1.2.1",
"version": "1.2.2",
"type": "module",
"files": [
"dist"
Expand Down

0 comments on commit f212cd0

Please sign in to comment.