1.0.15 • Published 12 months ago

frontmessageplugin v1.0.15

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

有黑夜白天两种背景模式

使用示例

网页使用

<script type="module">
    	//背景是黑色的时候用
        import {createToast} from "https://cdn.jsdelivr.net/npm/frontmessageplugin@latest/messageDark.js"
        //背景是白色的时候用
        //import {createToast} from "https://cdn.jsdelivr.net/npm/frontmessageplugin@latest/messageLight.js"
		createToast("info","你好",3000)   
        请求类型:success error info warning 
    </script>

npm 使用

npm install frontmessageplugin
接着

import {createToast} from "frontmessageplugin/messageDark.js"
或者
import {createToast} from "frontmessageplugin/messageLight.js"
createToast("info","你好",3000)  

createToast传参说明

第一个参数是message的类型。支持四种形式 info success warn error
第二个参数是文本
第三个参数是持续时间

ver0.0.7 添加自定义类名,解决vue类名冲突的问题

ver0.0.1 修复显示的toast 不消失的问题

1.0.11

12 months ago

1.0.10

12 months ago

1.0.15

12 months ago

1.0.14

12 months ago

1.0.13

12 months ago

1.0.12

12 months ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago