升级 layer-vue 1.1.0

This commit is contained in:
就眠儀式
2021-12-08 17:40:28 +08:00
parent debdc84b25
commit 888f5e797f
3 changed files with 58 additions and 3 deletions

View File

@@ -3,6 +3,33 @@
::: demo
<template>
<lay-button type="primary" @click="openMsg">普通消息</lay-button>
</template>
<script>
import { layer } from "../../../../src/index.ts"
export default {
setup() {
const openMsg = function() {
layer.msg("普通消息", { time: 1000 })
}
return {
openMsg
}
}
}
</script>
:::
::: title 指定图标
:::
::: demo
<template>
<lay-button type="primary" @click="openSuccess">成功消息</lay-button>
<lay-button type="primary" @click="openFailure">失败消息</lay-button>