From 2a5ce466c1150ef1d8255bda105b04cdf12dac78 Mon Sep 17 00:00:00 2001 From: redhoodsu Date: Thu, 23 Jan 2025 16:24:35 +0800 Subject: [PATCH] release(carousel): v0.3.0 --- index.json | 5 +++-- src/carousel/index.ts | 7 ++++--- src/carousel/package.json | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/index.json b/index.json index e59b1ee..8784b94 100644 --- a/index.json +++ b/index.json @@ -10,7 +10,7 @@ }, "carousel": { "icon": true, - "version": "0.2.0", + "version": "0.3.0", "style": true, "test": true, "install": false, @@ -135,8 +135,9 @@ "dependencies": [] }, "image-list": { + "vue": true, "dependencies": ["gallery"], - "version": "0.2.1", + "version": "0.3.0", "style": true, "icon": false, "test": true, diff --git a/src/carousel/index.ts b/src/carousel/index.ts index 6eaebf0..6569504 100644 --- a/src/carousel/index.ts +++ b/src/carousel/index.ts @@ -7,7 +7,7 @@ import toArr from 'licia/toArr' import h from 'licia/h' import idxOf from 'licia/idxOf' import toNum from 'licia/toNum' -import { executeAfterTransition } from '../share/util' +import { executeAfterTransition, exportCjs } from '../share/util' import isUndef from 'licia/isUndef' import toBool from 'licia/toBool' @@ -241,5 +241,6 @@ export default class Carousel extends Component { } } -module.exports = Carousel -module.exports.default = Carousel +if (typeof module !== 'undefined') { + exportCjs(module, Carousel) +} diff --git a/src/carousel/package.json b/src/carousel/package.json index 5085b29..d51d228 100644 --- a/src/carousel/package.json +++ b/src/carousel/package.json @@ -1,6 +1,6 @@ { "name": "carousel", - "version": "0.2.0", + "version": "0.3.0", "description": "Lightweight carousel", "luna": { "icon": true