0.2.3 • Published 2 years ago

vue-customize-tip v0.2.3

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

vue-customize-tip

A prompt box of the vue2 version, which can be used for mobile terminal or pc prompt box. The plugin comes with four types, Default, Success, Warning, Danger. If you want to customize the pop-up box, you can configure the corresponding field customization.

image example

default:https://www1.pcauto.com.cn/customer/HZD/210702/2.png success:https://www1.pcauto.com.cn/customer/HZD/210702/3.png warning:https://www1.pcauto.com.cn/customer/HZD/210702/4.png error:https://www1.pcauto.com.cn/customer/HZD/210702/5.png custom: https://www1.pcauto.com.cn/customer/HZD/210702/1.png

Getting started

1、install the plugin:

npm install --save vue-customize-tip

2、Add the plugin into your app: import Vue from "vue" import tip from "vue-customize-tip" Vue.use(tip);

#Usage

this.$tip(message,option)

message - tip text option - configuration item { styleObject:{}
type:"", duration:1000 } styleObject : Customizable tooltip background, style and text style type :-tip type,The default type is not configured as the default type. The configurable fields are, "success", "warning", "error" *duration : time

Default example

this.$tip("测试")

Type example

this.$tip("测试",{type:"success",duration:2000,})

custom example

 this.$tip("测试",{styleObject:{background:"red"},duration:2000,})
0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago