Skip to content

Commit 75f7f18

Browse files
committed
feat: add named exports
1 parent f9ced3f commit 75f7f18

File tree

7 files changed

+42
-2
lines changed

7 files changed

+42
-2
lines changed

ant/src/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ const plugin = {
1818

1919
// To allow use as module (npm/webpack/etc.) export component
2020
export default plugin
21+
22+
export {
23+
component as CronAnt,
24+
plugin as CronAntPlugin
25+
}

core/src/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,9 @@ const plugin = {
2323
export default plugin
2424

2525
export {
26-
RenderlessSelect
26+
RenderlessSelect,
27+
component as CronCore,
28+
plugin as CronCorePlugin,
29+
util,
30+
locale
2731
}

core/test/index.test.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import core, { CronCore, CronCorePlugin, foo, locale, RenderlessSelect, util } from '../src/index.js'
2+
3+
test('exports', () => {
4+
expect('install' in core)
5+
expect(CronCore !== undefined)
6+
expect(CronCorePlugin !== undefined)
7+
expect(RenderlessSelect !== undefined)
8+
expect(util !== undefined)
9+
expect(locale !== undefined)
10+
expect(foo === undefined)
11+
})

element-plus/src/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ const plugin = {
1818

1919
// To allow use as module (npm/webpack/etc.) export component
2020
export default plugin
21+
22+
export {
23+
component as CronElementPlus,
24+
plugin as CronElementPlusPlugin
25+
}

light/src/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ const plugin = {
1818

1919
// To allow use as module (npm/webpack/etc.) export component
2020
export default plugin
21+
22+
export {
23+
component as CronLight,
24+
plugin as CronLightPlugin
25+
}

quasar/src/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,9 @@ const plugin = {
1717
}
1818

1919
// To allow use as module (npm/webpack/etc.) export component
20-
export default plugin
20+
export default plugin
21+
22+
export {
23+
component as CronQuasar,
24+
plugin as CronQuasarPlugin
25+
}

vuetify/src/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ const plugin = {
1818

1919
// To allow use as module (npm/webpack/etc.) export component
2020
export default plugin
21+
22+
export {
23+
component as CronVuetify,
24+
plugin as CronVuetifyPlugin
25+
}

0 commit comments

Comments
 (0)