diff --git a/docs/docs/zh-CN/components/button.md b/docs/docs/zh-CN/components/button.md index bbf2e7c4..df352c19 100644 --- a/docs/docs/zh-CN/components/button.md +++ b/docs/docs/zh-CN/components/button.md @@ -199,6 +199,32 @@ export default { ::: +::: demo 传入 columns 数据,自动生成表格 + + + + + +::: + | Name | Description | Accepted Values | | ------ | ------ | --------------------------------------------- | | type | 主题 | `primary` `normal` `warm` `danger` `disabled` | diff --git a/docs/docs/zh-CN/components/carousel.md b/docs/docs/zh-CN/components/carousel.md index bf7426a1..1cfff493 100644 --- a/docs/docs/zh-CN/components/carousel.md +++ b/docs/docs/zh-CN/components/carousel.md @@ -1,11 +1,11 @@ ::: demo @@ -15,7 +15,10 @@ import { ref } from 'vue' export default { setup() { + const active = ref("1") + return { + active } } } diff --git a/src/module/button/index.vue b/src/module/button/index.vue index 1f3cf23f..9973dec2 100644 --- a/src/module/button/index.vue +++ b/src/module/button/index.vue @@ -10,19 +10,31 @@ disabled ? 'layui-btn-disabled' : '', ]" > - + + diff --git a/src/module/carousel/index.vue b/src/module/carousel/index.vue index 87bdcefa..123ba3f2 100644 --- a/src/module/carousel/index.vue +++ b/src/module/carousel/index.vue @@ -4,39 +4,60 @@ lay-anim lay-indicator="inside" lay-arrow="always" - :style="{width:width,height:height}" + :style="{ width: width, height: height }" >
-
-
-
-
-
+
- + \ No newline at end of file diff --git a/src/module/carouselItem/index.vue b/src/module/carouselItem/index.vue index 1bb53d5f..83ebe3ae 100644 --- a/src/module/carouselItem/index.vue +++ b/src/module/carouselItem/index.vue @@ -1,9 +1,16 @@ - \ No newline at end of file