2022-03-17 18:00:28 +08:00
|
|
|
::: anchor
|
|
|
|
:::
|
|
|
|
|
|
|
|
::: title 基本介绍
|
|
|
|
:::
|
|
|
|
|
|
|
|
::: describe 全局展示操作反馈信息。
|
|
|
|
:::
|
|
|
|
|
|
|
|
::: title 基础使用
|
|
|
|
:::
|
|
|
|
|
|
|
|
::: demo
|
|
|
|
|
|
|
|
<template>
|
2022-03-18 14:48:38 +08:00
|
|
|
<lay-notice-bar text="以写作为工具,为道途,先帮助自己一程,再以自己的领悟帮助他人一程, 这是一种服务 。" mode="link"></lay-notice-bar>
|
2022-03-17 18:00:28 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { layer } from "@layui/layer-vue"
|
|
|
|
|
|
|
|
export default {
|
|
|
|
setup() {
|
|
|
|
|
|
|
|
return {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
|
|
|
::: title 使用图标
|
|
|
|
:::
|
|
|
|
|
|
|
|
::: demo
|
|
|
|
|
|
|
|
<template>
|
2022-03-18 14:48:38 +08:00
|
|
|
<lay-notice-bar leftIcon="layui-icon-mute" text="最好的爱是两个人彼此做个伴,不要束缚,不要缠绕,不要占有,不渴望从对方那里得到,只是并肩站在一起,看看这个世界。"></lay-notice-bar>
|
2022-03-17 18:00:28 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { ref } from "vue"
|
|
|
|
|
|
|
|
export default {
|
|
|
|
setup() {
|
|
|
|
|
|
|
|
return {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
|
|
|
|
|
|
|
::: title 允许关闭
|
|
|
|
:::
|
|
|
|
|
|
|
|
::: demo
|
|
|
|
|
|
|
|
<template>
|
2022-03-18 14:48:38 +08:00
|
|
|
<lay-notice-bar leftIcon="layui-icon-mute" rightIcon="layui-icon-close" text="所有发生过的都是既定的。是应该发生。只能发生。" mode="closeable"></lay-notice-bar>
|
2022-03-17 18:00:28 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { ref } from "vue"
|
|
|
|
|
|
|
|
export default {
|
|
|
|
setup() {
|
|
|
|
|
|
|
|
const visible = ref(true);
|
|
|
|
|
|
|
|
return {
|
|
|
|
visible
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2022-03-18 00:11:29 +08:00
|
|
|
:::
|
|
|
|
|
|
|
|
|
2022-03-18 14:48:38 +08:00
|
|
|
::: title Notice Bar 属性
|
2022-03-18 00:11:29 +08:00
|
|
|
:::
|
|
|
|
|
|
|
|
::: table
|
|
|
|
|
|
|
|
| 事件 | 描述 | 参数 |
|
|
|
|
| ---- | -------- | --------------------- |
|
2022-03-18 14:48:38 +08:00
|
|
|
| mode | 模式 | 'link' 'closeable' |
|
2022-03-18 00:11:29 +08:00
|
|
|
| text | 内容 | 滚动内容 |
|
2022-03-18 14:48:38 +08:00
|
|
|
| leftIcon | 左侧图标 | -- |
|
|
|
|
| rightIcon | 右侧图标 | -- |
|
2022-03-18 00:11:29 +08:00
|
|
|
|
2022-03-18 14:48:38 +08:00
|
|
|
:::
|
|
|
|
|
|
|
|
::: comment
|
|
|
|
:::
|
|
|
|
|
|
|
|
::: previousNext transfer
|
2022-03-17 18:00:28 +08:00
|
|
|
:::
|