zan-layer 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/lib/zan-layer.js +515 -495
- package/lib/zan-layer.umd.js +1 -1
- package/package.json +1 -1
- package/types/component/ZanLayer.vue.d.ts +7 -4
- package/types/index.d.ts +5 -5
- package/types/types/index.d.ts +1 -0
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
## 📦 安装
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
npm install
|
|
20
|
+
npm install zan-layer
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## 🚀 快速开始
|
|
@@ -26,8 +26,8 @@ npm install @zan-ui/layer
|
|
|
26
26
|
|
|
27
27
|
```js
|
|
28
28
|
import { createApp } from 'vue'
|
|
29
|
-
import ZanLayer from '
|
|
30
|
-
import '
|
|
29
|
+
import ZanLayer from 'zan-layer'
|
|
30
|
+
import 'zan-layer/lib/index.css'
|
|
31
31
|
|
|
32
32
|
const app = createApp(App)
|
|
33
33
|
app.use(ZanLayer)
|
|
@@ -37,7 +37,7 @@ app.mount('#app')
|
|
|
37
37
|
### 基础使用
|
|
38
38
|
|
|
39
39
|
```js
|
|
40
|
-
import { zanLayer } from '
|
|
40
|
+
import { zanLayer } from 'zan-layer'
|
|
41
41
|
|
|
42
42
|
// 消息提示
|
|
43
43
|
zanLayer.msg('操作成功', { icon: 1, time: 2000 })
|