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

68 lines
708 B
Markdown
Raw Normal View History

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