layui/example/docs/zh-CN/components/block.md

68 lines
708 B
Markdown
Raw Normal View History

::: anchor
:::
2021-10-26 01:13:23 +08:00
::: title 基础使用
2021-10-19 22:28:44 +08:00
:::
2021-09-27 17:39:35 +08:00
::: demo
<template>
<lay-block>引用区域的文字</lay-block>
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
return {
}
}
}
</script>
:::
2021-10-26 01:13:23 +08:00
::: title 灰色主题
2021-10-19 22:28:44 +08:00
:::
::: demo
<template>
<lay-block nm="true">引用区域的文字</lay-block>
2021-09-27 17:39:35 +08:00
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
2021-10-15 14:27:58 +08:00
const nm = ref(true)
2021-09-27 17:39:35 +08:00
return {
2021-10-15 14:27:58 +08:00
nm
2021-09-27 17:39:35 +08:00
}
}
}
</script>
:::
2021-10-12 18:00:09 +08:00
2021-10-26 01:13:23 +08:00
::: title Block 属性
2021-10-13 10:19:38 +08:00
:::
2021-10-12 18:00:09 +08:00
2021-11-07 15:55:08 +08:00
::: table
2021-10-26 01:14:17 +08:00
| Name | Description | Accepted Values |
| ---- | ----------- | --------------- |
| nm | 灰色样式 | -- |
2021-11-07 15:55:08 +08:00
2021-11-07 15:56:24 +08:00
:::
2021-12-16 17:57:59 +08:00
::: comment
2022-01-12 14:19:06 +08:00
:::
::: previousNext block
2021-12-16 17:57:59 +08:00
:::