Skip to content

Commit

Permalink
fix: export carousel-item & add some comp in entry.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustAMan committed Nov 2, 2020
1 parent 7df6fe5 commit 55b3a2a
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 13 deletions.
1 change: 1 addition & 0 deletions build/bin/build-entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ ComponentNames.forEach((name) => {
'input',
'alert',
'carousel',
'carousel-item',
'breadcrumb',
'breadcrumb-item',
'dialog',
Expand Down
2 changes: 1 addition & 1 deletion examples/versions.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"1.4.13":"1.4","2.0.11":"2.0","2.1.0":"2.1","2.2.2":"2.2","2.3.9":"2.3","2.4.11":"2.4","2.5.4":"2.5","2.6.3":"2.6","2.7.2":"2.7","2.8.2":"2.8","2.9.2":"2.9","2.10.1":"2.10","2.11.1":"2.11","2.12.0":"2.12","0.0.13":"2.13"}
{"1.4.13":"1.4","2.0.11":"2.0","2.1.0":"2.1","2.2.2":"2.2","2.3.9":"2.3","2.4.11":"2.4","2.5.4":"2.5","2.6.3":"2.6","2.7.2":"2.7","2.8.2":"2.8","2.9.2":"2.9","2.10.1":"2.10","2.11.1":"2.11","2.12.0":"2.12","0.0.16":"2.13"}
2 changes: 1 addition & 1 deletion packages/carousel-item/CarouselItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</template>

<script>
import { autoprefixer } from 'element-ui/src/utils/util'
import { autoprefixer } from '../../src/utils/util'
import {
reactive,
toRefs,
Expand Down
2 changes: 1 addition & 1 deletion packages/carousel/Carousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import {
onUnmounted
} from 'vue'
import { throttle } from 'throttle-debounce'
import { useResizeEvent } from 'element-ui/src/utils/resize-event'
import { useResizeEvent } from '../../src/utils/resize-event'
export default {
name: 'ElCarousel',
Expand Down
4 changes: 2 additions & 2 deletions packages/drawer/Drawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ import {
onMounted,
onUnmounted
} from 'vue'
import { popupProps, usePopup } from 'element-ui/src/use/popup'
import Utils from 'element-ui/src/utils/aria-utils'
import { popupProps, usePopup } from '../../src/use/popup'
import Utils from '../../src/utils/aria-utils'
export default {
name: 'ElDrawer',
Expand Down
8 changes: 2 additions & 6 deletions packages/infinite-scroll/src/main.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { throttle } from 'throttle-debounce'
import {
isHtmlElement,
isFunction,
isDefined
} from 'element-ui/src/utils/types'
import { getScrollContainer } from 'element-ui/src/utils/dom'
import { isHtmlElement, isFunction, isDefined } from '../../../src/utils/types'
import { getScrollContainer } from '../../../src/utils/dom'

const getStyleComputedProperty = (element, property) => {
if (element === window) {
Expand Down
16 changes: 14 additions & 2 deletions src/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ import ElPagination from '../packages/pagination'
import ElTag from '../packages/tag'
import ElBadge from '../packages/badge'
import ElAvatar from '../packages/avatar'
import ElCarousel from '../packages/carousel'
import ElCarouselItem from '../packages/carousel-item'
import ElInfiniteScroll from '../packages/infinite-scroll'
import ElDrawer from '../packages/drawer'

import { version } from '../package.json'

Expand Down Expand Up @@ -52,7 +56,11 @@ const components = [
ElPagination,
ElTag,
ElBadge,
ElAvatar
ElAvatar,
ElCarousel,
ElCarouselItem,
ElInfiniteScroll,
ElDrawer
]

const install = (app) => {
Expand Down Expand Up @@ -91,7 +99,11 @@ export {
ElPagination,
ElTag,
ElBadge,
ElAvatar
ElAvatar,
ElCarousel,
ElCarouselItem,
ElInfiniteScroll,
ElDrawer
}

export default elementUI

0 comments on commit 55b3a2a

Please sign in to comment.