diff --git a/docs/docs/zh-CN/components/carousel.md b/docs/docs/zh-CN/components/carousel.md index 831f909a..bf7426a1 100644 --- a/docs/docs/zh-CN/components/carousel.md +++ b/docs/docs/zh-CN/components/carousel.md @@ -1,7 +1,12 @@ ::: demo + +::: + ::: field tab attributes ::: - -| | | | +| Name | Description | Accepted Values | | ------- | -------- | -------------- | | v-model | 当前激活 | -- | -| type | 主题样式 | `card` `brief` | +| type | 主题样式 | -- | +| allow-close | 允许关闭 | `true` `false` | + +::: field tab events + +::: + +| Name | Description | Accepted Params | +| -------- | ---- | ----------------------- | +| change | 选中切换 | -- | +| close | 关闭事件 | -- | \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 88a39654..3964fb5a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -56,7 +56,7 @@ import LayTransfer from './module/transfer/index' import LayCheckboxGroup from './module/checkboxGroup/index' import LaySlider from './module/slider/index' import LayCarousel from './module/carousel/index' - +import LayCarouselItem from './module/carouselItem/index' const components: Record = { LayRadio, @@ -112,7 +112,8 @@ const components: Record = { LayTransfer, LayCheckboxGroup, LaySlider, - LayCarousel + LayCarousel, + LayCarouselItem } const install = (app: App, options?: InstallOptions): void => { @@ -125,8 +126,6 @@ const install = (app: App, options?: InstallOptions): void => { } } -console.log('document Site : http://layui-vue.pearadmin.com') - export { LayRadio, LayIcon, @@ -182,6 +181,7 @@ export { LayCheckboxGroup, LaySlider, LayCarousel, + LayCarouselItem, install, } diff --git a/src/module/carousel/index.vue b/src/module/carousel/index.vue index a633f17e..87bdcefa 100644 --- a/src/module/carousel/index.vue +++ b/src/module/carousel/index.vue @@ -1,13 +1,12 @@ \ No newline at end of file diff --git a/src/module/carouselItem/index.ts b/src/module/carouselItem/index.ts new file mode 100644 index 00000000..1acce590 --- /dev/null +++ b/src/module/carouselItem/index.ts @@ -0,0 +1,9 @@ +import type { App } from 'vue' +import Component from './index.vue' +import type { IDefineComponent } from '../type/index' + +Component.install = (app: App) => { + app.component(Component.name || 'LayCarouselItem', Component) +} + +export default Component as IDefineComponent diff --git a/src/module/carouselItem/index.vue b/src/module/carouselItem/index.vue new file mode 100644 index 00000000..1bb53d5f --- /dev/null +++ b/src/module/carouselItem/index.vue @@ -0,0 +1,9 @@ + + \ No newline at end of file diff --git a/src/module/checkboxGroup/index.vue b/src/module/checkboxGroup/index.vue index e57f725c..4ea0b1d7 100644 --- a/src/module/checkboxGroup/index.vue +++ b/src/module/checkboxGroup/index.vue @@ -1,5 +1,5 @@