Skip to content

Commit

Permalink
refactor: change path to relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Oct 23, 2020
1 parent a778c88 commit f722231
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 41 deletions.
4 changes: 2 additions & 2 deletions packages/input/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ import {
watch,
unref
} from 'vue'
import emitter from 'element-ui/src/mixins/emitter'
import { useEmitter } from 'element-ui/src/use/emitter'
import emitter from '../../src/mixins/emitter'
import { useEmitter } from '../../src/use/emitter'
import {
useValidate,
useTextarea,
Expand Down
5 changes: 2 additions & 3 deletions packages/input/use.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { computed, inject, ref, unref, nextTick, watch } from 'vue'
import merge from 'element-ui/src/utils/merge'
import { isKorean } from 'element-ui/src/utils/shared'

import merge from '../../src/utils/merge'
import { isKorean } from '../../src/utils/shared'
import calcTextareaHeight from './calcTextareaHeight'

export const useValidate = () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/option/Option.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
</template>

<script type="text/babel">
import { getValueByPath, escapeRegexpString } from 'element-ui/src/utils/util'
import { useEmitter } from 'element-ui/src/use/emitter'
import { getValueByPath, escapeRegexpString } from '../../src/utils/util'
import { useEmitter } from '../../src/use/emitter'
import {
inject,
getCurrentInstance,
Expand Down
4 changes: 2 additions & 2 deletions packages/pagination/components/Jumper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
</template>

<script>
import ElInput from 'element-ui/packages/input'
import { useLocale } from 'element-ui/src/use/locale'
import ElInput from '../../input'
import { useLocale } from '../../../src/use/locale'
import { ref, computed, toRefs } from 'vue'
export default {
Expand Down
6 changes: 3 additions & 3 deletions packages/pagination/components/Sizes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
</template>

<script>
import ElSelect from 'element-ui/packages/select'
import ElOption from 'element-ui/packages/option'
import { useLocale } from 'element-ui/src/use/locale'
import ElSelect from '../../select'
import ElOption from '../../option'
import { useLocale } from '../../../src/use/locale'
import { computed, watch, toRefs } from 'vue'
export default {
Expand Down
2 changes: 1 addition & 1 deletion packages/pagination/components/Total.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useLocale } from 'element-ui/src/use/locale'
import { useLocale } from '../../../src/use/locale'
import { h } from 'vue'

const Total = (props) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/scrollbar/Bar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { on, off } from 'element-ui/src/utils/dom'
import { on, off } from '../../src/utils/dom'
import { renderThumbStyle, BAR_MAP } from './util'
import {
ref,
Expand Down
6 changes: 3 additions & 3 deletions packages/scrollbar/Scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { nextTick, reactive, ref, toRefs, onMounted, onUnmounted } from 'vue'
import {
addResizeListener,
removeResizeListener
} from 'element-ui/src/utils/resize-event'
import scrollbarWidth from 'element-ui/src/utils/scrollbar-width'
import { toObject } from 'element-ui/src/utils/util'
} from '../../src/utils/resize-event'
import scrollbarWidth from '../../src/utils/scrollbar-width'
import { toObject } from '../../src/utils/util'
import Bar from './Bar'

const useScroll = (wrap, native, resize, noresize) => {
Expand Down
31 changes: 13 additions & 18 deletions packages/select/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,30 +164,25 @@
</template>

<script type="text/babel">
import Focus from 'element-ui/src/mixins/focus'
import Locale from 'element-ui/src/mixins/locale'
import ElInput from 'element-ui/packages/input'
import Focus from '../../src/mixins/focus'
import Locale from '../../src/mixins/locale'
import ElInput from '../input'
import ElSelectMenu from './SelectDropdown'
import ElOption from 'element-ui/packages/option/Option'
import ElTag from 'element-ui/packages/tag'
import ElScrollbar from 'element-ui/packages/scrollbar'
import ElOption from '../option/Option'
import ElTag from '../tag'
import ElScrollbar from '../scrollbar'
import { debounce } from 'throttle-debounce'
import Clickoutside from 'element-ui/src/directives/clickoutside'
import Clickoutside from '../../src/directives/clickoutside'
import {
addResizeListener,
removeResizeListener
} from 'element-ui/src/utils/resize-event'
import { t } from 'element-ui/src/locale'
import scrollIntoView from 'element-ui/src/utils/scroll-into-view'
import {
getValueByPath,
valueEquals,
isIE,
isEdge
} from 'element-ui/src/utils/util'
} from '../../src/utils/resize-event'
import { t } from '../../src/locale'
import scrollIntoView from '../../src/utils/scroll-into-view'
import { getValueByPath, valueEquals, isIE, isEdge } from '../../src/utils/util'
import NavigationMixin from './navigation-mixin'
import { isKorean } from 'element-ui/src/utils/shared'
import { useEmitter } from 'element-ui/src/use/emitter'
import { isKorean } from '../../src/utils/shared'
import { useEmitter } from '../../src/use/emitter'
export default {
mixins: [Locale, Focus('reference'), NavigationMixin],
Expand Down
4 changes: 2 additions & 2 deletions packages/select/SelectDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
</template>

<script type="text/babel">
import { popperProps, usePopper } from 'element-ui/src/use/popper'
import { useEmitter } from 'element-ui/src/use/emitter'
import { popperProps, usePopper } from '../../src/use/popper'
import { useEmitter } from '../../src/use/emitter'
import {
onMounted,
inject,
Expand Down
2 changes: 1 addition & 1 deletion src/directives/clickoutside.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { on } from 'element-ui/src/utils/dom'
import { on } from '../utils/dom'

const nodeList = []
const ctx = '@@clickoutsideContext'
Expand Down
2 changes: 1 addition & 1 deletion src/mixins/locale.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { t } from 'element-ui/src/locale'
import { t } from '../locale'

export default {
methods: {
Expand Down
2 changes: 1 addition & 1 deletion src/use/locale.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { t } from 'element-ui/src/locale'
import { t } from '../locale'
import { getCurrentInstance } from 'vue'

function useLocale() {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/clickoutside.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { on } from 'element-ui/src/utils/dom'
import { on } from '../../src/utils/dom'

const nodeList = []
const ctx = '@@clickoutsideContext'
Expand Down

0 comments on commit f722231

Please sign in to comment.