Skip to content

Commit

Permalink
fix: convert all absolute paths to relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Lydanne committed Oct 30, 2020
1 parent 7bdb9ef commit aec723d
Show file tree
Hide file tree
Showing 64 changed files with 406 additions and 336 deletions.
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.18":"2.13"}
6 changes: 3 additions & 3 deletions packages/autocomplete/src/autocomplete-suggestions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
</transition>
</template>
<script>
import Popper from 'element-ui/src/utils/vue-popper'
import Emitter from 'element-ui/src/mixins/emitter'
import ElScrollbar from 'element-ui/packages/scrollbar'
import Popper from '../../../src/utils/vue-popper'
import Emitter from '../../../src/mixins/emitter'
import ElScrollbar from '../../scrollbar'
export default {
components: { ElScrollbar },
Expand Down
12 changes: 6 additions & 6 deletions packages/autocomplete/src/autocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@
</template>
<script>
import { debounce } from 'throttle-debounce'
import ElInput from 'element-ui/packages/input'
import Clickoutside from 'element-ui/src/utils/clickoutside'
import ElInput from '../../input'
import Clickoutside from '../../../src/utils/clickoutside'
import ElAutocompleteSuggestions from './autocomplete-suggestions.vue'
import Emitter from 'element-ui/src/mixins/emitter'
import Migrating from 'element-ui/src/mixins/migrating'
import { generateId } from 'element-ui/src/utils/util'
import Focus from 'element-ui/src/mixins/focus'
import Emitter from '../../../src/mixins/emitter'
import Migrating from '../../../src/mixins/migrating'
import { generateId } from '../../../src/utils/util'
import Focus from '../../../src/mixins/focus'
export default {
name: 'ElAutocomplete',
Expand Down
10 changes: 5 additions & 5 deletions packages/calendar/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@
</template>

<script>
import { useLocale } from 'element-ui/src/use/locale'
import fecha from 'element-ui/src/utils/date'
import ElButton from 'element-ui/packages/button'
import ElButtonGroup from 'element-ui/packages/button-group'
import { useLocale } from '../../src/use/locale'
import fecha from '../../src/utils/date'
import ElButton from '../button'
import ElButtonGroup from '../button-group'
import DateTable from './DateTable'
import { validateRangeInOneMonth } from 'element-ui/src/utils/date-util'
import { validateRangeInOneMonth } from '../../src/utils/date-util'
import { reactive, provide, computed, toRefs, getCurrentInstance } from 'vue'
const validTypes = ['prev-month', 'today', 'next-month']
Expand Down
4 changes: 2 additions & 2 deletions packages/calendar/DateTable.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script lang="jsx">
import fecha from 'element-ui/src/utils/date'
import fecha from '../../src/utils/date'
import {
range as rangeArr,
getFirstDayOfMonth,
getPrevMonthLastDays,
getMonthDays,
getI18nSettings,
validateRangeInOneMonth
} from 'element-ui/src/utils/date-util'
} from '../../src/utils/date-util'
import { ref, computed, inject, getCurrentInstance, toRefs } from 'vue'
export default {
Expand Down
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
6 changes: 3 additions & 3 deletions packages/cascader-panel/CascaderMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@

<script>
import { ref, computed, toRefs, inject, getCurrentInstance } from 'vue'
import ElScrollbar from 'element-ui/packages/scrollbar'
import ElScrollbar from '../scrollbar'
import CascaderNode from './CascaderNode'
import { useLocale } from 'element-ui/src/use/locale'
import { generateId } from 'element-ui/src/utils/util'
import { useLocale } from '../../src/use/locale'
import { generateId } from '../../src/utils/util'
export default {
name: 'ElCascaderMenu',
Expand Down
6 changes: 3 additions & 3 deletions packages/cascader-panel/CascaderNode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@

<script>
import { h, computed, watch, inject, toRefs, Fragment } from 'vue'
import ElCheckbox from 'element-ui/packages/checkbox'
import ElRadio from 'element-ui/packages/radio'
import { isEqual } from 'element-ui/src/utils/util'
import ElCheckbox from '../checkbox'
import ElRadio from '../radio'
import { isEqual } from '../../src/utils/util'
export default {
components: {
Expand Down
8 changes: 4 additions & 4 deletions packages/cascader-panel/CascaderPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ import {
} from 'vue'
import CascaderMenu from './CascaderMenu'
import Store from './Store'
import merge from 'element-ui/src/utils/merge'
import AriaUtils from 'element-ui/src/utils/aria-utils'
import scrollIntoView from 'element-ui/src/utils/scroll-into-view'
import merge from '../../src/utils/merge'
import AriaUtils from '../../src/utils/aria-utils'
import scrollIntoView from '../../src/utils/scroll-into-view'
import {
noop,
coerceTruthyValueToArray,
isEqual,
isEmpty,
valueEquals
} from 'element-ui/src/utils/util'
} from '../../src/utils/util'
const { keys: KeyCode } = AriaUtils
const DefaultProps = {
Expand Down
4 changes: 2 additions & 2 deletions packages/cascader-panel/Node.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isEqual, capitalize } from 'element-ui/src/utils/util'
import { isDef } from 'element-ui/src/utils/shared'
import { isEqual, capitalize } from '../../src/utils/util'
import { isDef } from '../../src/utils/shared'

let uid = 0

Expand Down
5 changes: 1 addition & 4 deletions packages/cascader-panel/Store.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import Node from './Node'
import {
coerceTruthyValueToArray,
valueEquals
} from 'element-ui/src/utils/util'
import { coerceTruthyValueToArray, valueEquals } from '../../src/utils/util'

const flatNodes = (data, leafOnly) => {
return data.reduce((res, node) => {
Expand Down
28 changes: 14 additions & 14 deletions packages/cascader/Cascader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,23 +134,23 @@ import {
onMounted,
onUnmounted
} from 'vue'
import Popper from 'element-ui/src/utils/vue-popper'
import { useEmitter } from 'element-ui/src/use/emitter'
import { migrating } from 'element-ui/src/use/migrating'
import Clickoutside from 'element-ui/src/directives/clickoutside'
import ElInput from 'element-ui/packages/input'
import ElTag from 'element-ui/packages/tag'
import ElScrollbar from 'element-ui/packages/scrollbar'
import ElCascaderPanel from 'element-ui/packages/cascader-panel'
import AriaUtils from 'element-ui/src/utils/aria-utils'
import { t } from 'element-ui/src/locale'
import { isEqual, isEmpty, kebabCase } from 'element-ui/src/utils/util'
import { isDef } from 'element-ui/src/utils/shared'
import { useLocale } from 'element-ui/src/use/locale'
import Popper from '../../src/utils/vue-popper'
import { useEmitter } from '../../src/use/emitter'
import { migrating } from '../../src/use/migrating'
import Clickoutside from '../../src/directives/clickoutside'
import ElInput from '../input'
import ElTag from '../tag'
import ElScrollbar from '../scrollbar'
import ElCascaderPanel from '../cascader-panel'
import AriaUtils from '../../src/utils/aria-utils'
import { t } from '../../src/locale'
import { isEqual, isEmpty, kebabCase } from '../../src/utils/util'
import { isDef } from '../../src/utils/shared'
import { useLocale } from '../../src/use/locale'
import {
addResizeListener,
removeResizeListener
} from 'element-ui/src/utils/resize-event'
} from '../../src/utils/resize-event'
import { debounce } from 'throttle-debounce'
const { keys: KeyCode } = AriaUtils
Expand Down
2 changes: 1 addition & 1 deletion packages/checkbox-group/CheckboxGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script>
import { useEmitter } from 'element-ui/src/use/emitter'
import { useEmitter } from '../../src/use/emitter'
import { provide, getCurrentInstance, computed, inject } from 'vue'
export default {
name: 'ElCheckboxGroup',
Expand Down
12 changes: 6 additions & 6 deletions packages/color-picker/src/components/picker-dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ import {
watch
} from 'vue'
import { popperProps, usePopper } from 'element-ui/src/use/popper.js'
import { useLocale } from 'element-ui/src/use/locale.js'
import { popperProps, usePopper } from '../../../../src/use/popper.js'
import { useLocale } from '../../../../src/use/locale.js'
import SvPanel from './sv-panel'
import HueSlider from './hue-slider'
import AlphaSlider from './alpha-slider'
import Predefine from './predefine'
// import Popper from 'element-ui/src/utils/vue-popper'
// import Locale from 'element-ui/src/mixins/locale'
import ElInput from 'element-ui/packages/input'
import ElButton from 'element-ui/packages/button'
// import Popper from '../../../../src/utils/vue-popper'
// import Locale from '../../../../src/mixins/locale'
import ElInput from '../../../input'
import ElButton from '../../../button'
export default {
name: 'el-color-picker-dropdown',
Expand Down
4 changes: 2 additions & 2 deletions packages/color-picker/src/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ import {
import Color from './color'
import PickerDropdown from './components/picker-dropdown.vue'
import Clickoutside from 'element-ui/src/directives/clickoutside'
import { useEmitter } from 'element-ui/src/use/emitter'
import Clickoutside from '../../../src/directives/clickoutside'
import { useEmitter } from '../../../src/use/emitter'
export default {
name: 'ElColorPicker',
Expand Down
6 changes: 3 additions & 3 deletions packages/date-picker/src/basic/date-table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ import {
nextDate,
isDate,
clearTime as _clearTime
} from 'element-ui/src/utils/date-util'
import Locale from 'element-ui/src/mixins/locale'
} from '../../../../src/utils/date-util'
import Locale from '../../../../src/mixins/locale'
import {
arrayFindIndex,
arrayFind,
coerceTruthyValueToArray
} from 'element-ui/src/utils/util'
} from '../../../../src/utils/util'
const WEEKS = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat']
const getDateTimestamp = function (time) {
Expand Down
8 changes: 4 additions & 4 deletions packages/date-picker/src/basic/month-table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
</template>

<script type="text/babel">
import Locale from 'element-ui/src/mixins/locale'
import Locale from '../../../../src/mixins/locale'
import {
isDate,
range,
getDayCountOfMonth,
nextDate
} from 'element-ui/src/utils/date-util'
import { hasClass } from 'element-ui/src/utils/dom'
} from '../../../../src/utils/date-util'
import { hasClass } from '../../../../src/utils/dom'
import {
arrayFindIndex,
coerceTruthyValueToArray,
arrayFind
} from 'element-ui/src/utils/util'
} from '../../../../src/utils/util'
const datesInMonth = (year, month) => {
const numOfDays = getDayCountOfMonth(year, month)
Expand Down
6 changes: 3 additions & 3 deletions packages/date-picker/src/basic/time-spinner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ import {
getRangeHours,
getRangeMinutes,
modifyTime
} from 'element-ui/src/utils/date-util'
import ElScrollbar from 'element-ui/packages/scrollbar'
import RepeatClick from 'element-ui/src/directives/repeatClick'
} from '../../../../src/utils/date-util'
import ElScrollbar from '../../../scrollbar'
import RepeatClick from '../../../../src/directives/repeatClick'
export default {
components: { ElScrollbar },
Expand Down
6 changes: 3 additions & 3 deletions packages/date-picker/src/basic/year-table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@
</template>

<script type="text/babel">
import { hasClass } from 'element-ui/src/utils/dom'
import { hasClass } from '../../../../src/utils/dom'
import {
isDate,
range,
nextDate,
getDayCountOfYear
} from 'element-ui/src/utils/date-util'
} from '../../../../src/utils/date-util'
import {
arrayFindIndex,
coerceTruthyValueToArray
} from 'element-ui/src/utils/util'
} from '../../../../src/utils/util'
const datesInYear = (year) => {
const numOfDays = getDayCountOfYear(year)
Expand Down
10 changes: 5 additions & 5 deletions packages/date-picker/src/panel/date-range.vue
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,13 @@ import {
nextDate,
extractDateFormat,
extractTimeFormat
} from 'element-ui/src/utils/date-util'
import Clickoutside from 'element-ui/src/utils/clickoutside'
import Locale from 'element-ui/src/mixins/locale'
} from '../../../../src/utils/date-util'
import Clickoutside from '../../../../src/utils/clickoutside'
import Locale from '../../../../src/mixins/locale'
import TimePicker from './time'
import DateTable from '../basic/date-table'
import ElInput from 'element-ui/packages/input'
import ElButton from 'element-ui/packages/button'
import ElInput from '../../../input'
import ElButton from '../../../button'
const calcDefaultValue = (defaultValue) => {
if (Array.isArray(defaultValue)) {
Expand Down
10 changes: 5 additions & 5 deletions packages/date-picker/src/panel/date.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,11 @@ import {
extractDateFormat,
extractTimeFormat,
timeWithinRange
} from 'element-ui/src/utils/date-util'
import Clickoutside from 'element-ui/src/utils/clickoutside'
import Locale from 'element-ui/src/mixins/locale'
import ElInput from 'element-ui/packages/input'
import ElButton from 'element-ui/packages/button'
} from '../../../../src/utils/date-util'
import Clickoutside from '../../../../src/utils/clickoutside'
import Locale from '../../../../src/mixins/locale'
import ElInput from '../../../input'
import ElButton from '../../../button'
import TimePicker from './time'
import YearTable from '../basic/year-table'
import MonthTable from '../basic/month-table'
Expand Down
10 changes: 5 additions & 5 deletions packages/date-picker/src/panel/month-range.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ import {
prevYear,
nextYear,
nextMonth
} from 'element-ui/src/utils/date-util'
import Clickoutside from 'element-ui/src/utils/clickoutside'
import Locale from 'element-ui/src/mixins/locale'
} from '../../../../src/utils/date-util'
import Clickoutside from '../../../../src/utils/clickoutside'
import Locale from '../../../../src/mixins/locale'
import MonthTable from '../basic/month-table'
import ElInput from 'element-ui/packages/input'
import ElButton from 'element-ui/packages/button'
import ElInput from '../../../input'
import ElButton from '../../../button'
const calcDefaultValue = (defaultValue) => {
if (Array.isArray(defaultValue)) {
Expand Down
4 changes: 2 additions & 2 deletions packages/date-picker/src/panel/time-range.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ import {
modifyDate,
clearMilliseconds,
timeWithinRange
} from 'element-ui/src/utils/date-util'
import Locale from 'element-ui/src/mixins/locale'
} from '../../../../src/utils/date-util'
import Locale from '../../../../src/mixins/locale'
import TimeSpinner from '../basic/time-spinner'
const MIN_TIME = parseDate('00:00:00', 'HH:mm:ss')
Expand Down
4 changes: 2 additions & 2 deletions packages/date-picker/src/panel/time-select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
</template>

<script type="text/babel">
import ElScrollbar from 'element-ui/packages/scrollbar'
import scrollIntoView from 'element-ui/src/utils/scroll-into-view'
import ElScrollbar from '../../../scrollbar'
import scrollIntoView from '../../../../src/utils/scroll-into-view'
const parseTime = function (time) {
const values = (time || '').split(':')
Expand Down
4 changes: 2 additions & 2 deletions packages/date-picker/src/panel/time.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ import {
isDate,
clearMilliseconds,
timeWithinRange
} from 'element-ui/src/utils/date-util'
import Locale from 'element-ui/src/mixins/locale'
} from '../../../../src/utils/date-util'
import Locale from '../../../../src/mixins/locale'
import TimeSpinner from '../basic/time-spinner'
export default {
Expand Down
Loading

0 comments on commit aec723d

Please sign in to comment.