cy-element-ui 1.0.55 → 1.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/autocomplete.js +11 -11
- package/lib/calendar.js +2 -2
- package/lib/carousel-item.js +2 -2
- package/lib/carousel.js +2 -2
- package/lib/cascader-panel.js +9 -9
- package/lib/cascader.js +13 -13
- package/lib/checkbox-button.js +2 -2
- package/lib/checkbox-group.js +2 -2
- package/lib/checkbox.js +2 -2
- package/lib/collapse-item.js +2 -2
- package/lib/color-picker.js +11 -11
- package/lib/date-picker.js +45 -45
- package/lib/dialog.js +2 -2
- package/lib/drawer.js +2 -2
- package/lib/dropdown-item.js +2 -2
- package/lib/dropdown-menu.js +2 -2
- package/lib/element-ui.common.js +421 -421
- package/lib/empty.js +2 -2
- package/lib/fileUpload.js +5 -5
- package/lib/form-item.js +2 -2
- package/lib/form.js +2 -2
- package/lib/image.js +9 -9
- package/lib/index.js +1 -1
- package/lib/input-number.js +4 -4
- package/lib/input.js +2 -2
- package/lib/menu-item.js +2 -2
- package/lib/message-box.js +4 -4
- package/lib/option-group.js +2 -2
- package/lib/option.js +2 -2
- package/lib/page-header.js +2 -2
- package/lib/pagination.js +13 -13
- package/lib/popconfirm.js +4 -4
- package/lib/popover.js +2 -2
- package/lib/radio-button.js +2 -2
- package/lib/radio-group.js +2 -2
- package/lib/radio.js +2 -2
- package/lib/rate.js +2 -2
- package/lib/select.js +13 -13
- package/lib/slider.js +6 -6
- package/lib/statistic.js +2 -2
- package/lib/steps.js +2 -2
- package/lib/switch.js +2 -2
- package/lib/tabDialog.js +2 -2
- package/lib/table-column.js +5 -5
- package/lib/table.js +16 -16
- package/lib/tabs.js +2 -2
- package/lib/time-picker.js +10 -10
- package/lib/time-select.js +6 -6
- package/lib/transfer.js +15 -15
- package/lib/tree.js +11 -11
- package/lib/treeSelect.js +4 -4
- package/lib/upload.js +5 -5
- package/package.json +1 -1
- package/packages/autocomplete/src/autocomplete-suggestions.vue +2 -2
- package/packages/autocomplete/src/autocomplete.vue +5 -5
- package/packages/calendar/src/date-table.vue +2 -2
- package/packages/calendar/src/main.vue +3 -3
- package/packages/carousel/src/item.vue +1 -1
- package/packages/carousel/src/main.vue +1 -1
- package/packages/cascader/src/cascader.vue +11 -11
- package/packages/cascader-panel/src/cascader-menu.vue +2 -2
- package/packages/cascader-panel/src/cascader-node.vue +1 -1
- package/packages/cascader-panel/src/cascader-panel.vue +4 -4
- package/packages/cascader-panel/src/node.js +2 -2
- package/packages/cascader-panel/src/store.js +1 -1
- package/packages/checkbox/src/checkbox-button.vue +1 -1
- package/packages/checkbox/src/checkbox-group.vue +1 -1
- package/packages/checkbox/src/checkbox.vue +1 -1
- package/packages/collapse/src/collapse-item.vue +3 -3
- package/packages/color-picker/src/components/picker-dropdown.vue +2 -2
- package/packages/color-picker/src/main.vue +2 -2
- package/packages/date-picker/src/basic/date-table.vue +3 -3
- package/packages/date-picker/src/basic/month-table.vue +4 -4
- package/packages/date-picker/src/basic/time-spinner.vue +2 -2
- package/packages/date-picker/src/basic/year-table.vue +3 -3
- package/packages/date-picker/src/panel/date-range.vue +3 -3
- package/packages/date-picker/src/panel/date.vue +3 -3
- package/packages/date-picker/src/panel/month-range.vue +3 -3
- package/packages/date-picker/src/panel/time-range.vue +2 -2
- package/packages/date-picker/src/panel/time-select.vue +1 -1
- package/packages/date-picker/src/panel/time.vue +2 -2
- package/packages/date-picker/src/picker.vue +5 -5
- package/packages/descriptions/src/index.js +1 -1
- package/packages/dialog/src/component.vue +3 -3
- package/packages/drawer/src/main.vue +2 -2
- package/packages/dropdown/src/dropdown-item.vue +1 -1
- package/packages/dropdown/src/dropdown-menu.vue +1 -1
- package/packages/dropdown/src/dropdown.vue +4 -4
- package/packages/empty/src/index.vue +1 -1
- package/packages/form/src/form-item.vue +4 -4
- package/packages/form/src/form.vue +1 -1
- package/packages/image/src/image-viewer.vue +3 -3
- package/packages/image/src/main.vue +3 -3
- package/packages/infinite-scroll/src/main.js +2 -2
- package/packages/input/src/input.vue +4 -4
- package/packages/input-number/src/input-number.vue +2 -2
- package/packages/loading/src/directive.js +3 -3
- package/packages/loading/src/index.js +4 -4
- package/packages/menu/src/menu-item.vue +1 -1
- package/packages/menu/src/menu.vue +4 -4
- package/packages/menu/src/submenu.vue +3 -3
- package/packages/message/src/main.js +3 -3
- package/packages/message-box/src/main.js +2 -2
- package/packages/message-box/src/main.vue +5 -5
- package/packages/notification/src/main.js +3 -3
- package/packages/page-header/src/main.vue +1 -1
- package/packages/pagination/src/pagination.js +2 -2
- package/packages/popconfirm/src/main.vue +1 -1
- package/packages/popover/src/main.vue +4 -4
- package/packages/radio/src/radio-button.vue +1 -1
- package/packages/radio/src/radio-group.vue +1 -1
- package/packages/radio/src/radio.vue +1 -1
- package/packages/rate/src/main.vue +3 -3
- package/packages/scrollbar/src/bar.js +1 -1
- package/packages/scrollbar/src/main.js +3 -3
- package/packages/select/src/option-group.vue +1 -1
- package/packages/select/src/option.vue +2 -2
- package/packages/select/src/select-dropdown.vue +1 -1
- package/packages/select/src/select.vue +8 -8
- package/packages/slider/src/main.vue +1 -1
- package/packages/statistic/src/main.vue +1 -1
- package/packages/steps/src/steps.vue +1 -1
- package/packages/switch/src/component.vue +3 -3
- package/packages/table/src/config.js +1 -1
- package/packages/table/src/filter-panel.vue +4 -4
- package/packages/table/src/store/current.js +1 -1
- package/packages/table/src/store/index.js +1 -1
- package/packages/table/src/store/watcher.js +1 -1
- package/packages/table/src/table-body.js +2 -2
- package/packages/table/src/table-header.js +1 -1
- package/packages/table/src/table-layout.js +1 -1
- package/packages/table/src/table.vue +4 -4
- package/packages/table/src/util.js +1 -1
- package/packages/tabs/src/tab-bar.vue +1 -1
- package/packages/tabs/src/tab-nav.vue +1 -1
- package/packages/tooltip/src/main.js +3 -3
- package/packages/transfer/src/main.vue +3 -3
- package/packages/transfer/src/transfer-panel.vue +1 -1
- package/packages/tree/src/model/node.js +2 -2
- package/packages/tree/src/tree-node.vue +2 -2
- package/packages/tree/src/tree.vue +3 -3
- package/packages/upload/src/index.vue +1 -1
- package/packages/upload/src/upload-list.vue +1 -1
- package/src/index.js +1 -1
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
</template>
|
|
58
58
|
|
|
59
59
|
<script>
|
|
60
|
-
import Locale from '
|
|
61
|
-
import fecha from '
|
|
60
|
+
import Locale from '../../../src/mixins/locale';
|
|
61
|
+
import fecha from '../../../src/utils/date';
|
|
62
62
|
import ElButton from 'element-ui/packages/button';
|
|
63
63
|
import ElButtonGroup from 'element-ui/packages/button-group';
|
|
64
64
|
import DateTable from './date-table';
|
|
65
|
-
import { validateRangeInOneMonth } from '
|
|
65
|
+
import { validateRangeInOneMonth } from '../../../src/utils/date-util';
|
|
66
66
|
|
|
67
67
|
const validTypes = ['prev-month', 'today', 'next-month'];
|
|
68
68
|
const weekDays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
<script>
|
|
58
58
|
import throttle from 'throttle-debounce/throttle';
|
|
59
|
-
import { addResizeListener, removeResizeListener } from '
|
|
59
|
+
import { addResizeListener, removeResizeListener } from '../../../src/utils/resize-event';
|
|
60
60
|
|
|
61
61
|
export default {
|
|
62
62
|
name: 'ElCarousel',
|
|
@@ -112,21 +112,21 @@
|
|
|
112
112
|
</template>
|
|
113
113
|
|
|
114
114
|
<script>
|
|
115
|
-
import Popper from '
|
|
116
|
-
import Clickoutside from '
|
|
117
|
-
import Emitter from '
|
|
118
|
-
import Locale from '
|
|
119
|
-
import Migrating from '
|
|
115
|
+
import Popper from '../../../src/utils/vue-popper';
|
|
116
|
+
import Clickoutside from '../../../src/utils/clickoutside';
|
|
117
|
+
import Emitter from '../../../src/mixins/emitter';
|
|
118
|
+
import Locale from '../../../src/mixins/locale';
|
|
119
|
+
import Migrating from '../../../src/mixins/migrating';
|
|
120
120
|
import ElInput from 'element-ui/packages/input';
|
|
121
121
|
import ElTag from 'element-ui/packages/tag';
|
|
122
122
|
import ElScrollbar from 'element-ui/packages/scrollbar';
|
|
123
123
|
import ElCascaderPanel from 'element-ui/packages/cascader-panel';
|
|
124
|
-
import AriaUtils from '
|
|
125
|
-
import { t } from '
|
|
126
|
-
import { isEqual, isEmpty, kebabCase } from '
|
|
127
|
-
import { isUndefined, isFunction } from '
|
|
128
|
-
import { isDef } from '
|
|
129
|
-
import { addResizeListener, removeResizeListener } from '
|
|
124
|
+
import AriaUtils from '../../../src/utils/aria-utils';
|
|
125
|
+
import { t } from '../../../src/locale';
|
|
126
|
+
import { isEqual, isEmpty, kebabCase } from '../../../src/utils/util';
|
|
127
|
+
import { isUndefined, isFunction } from '../../../src/utils/types';
|
|
128
|
+
import { isDef } from '../../../src/utils/shared';
|
|
129
|
+
import { addResizeListener, removeResizeListener } from '../../../src/utils/resize-event';
|
|
130
130
|
import debounce from 'throttle-debounce/debounce';
|
|
131
131
|
|
|
132
132
|
const { keys: KeyCode } = AriaUtils;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import ElScrollbar from 'element-ui/packages/scrollbar';
|
|
3
3
|
import CascaderNode from './cascader-node.vue';
|
|
4
|
-
import Locale from '
|
|
5
|
-
import { generateId } from '
|
|
4
|
+
import Locale from '../../../src/mixins/locale';
|
|
5
|
+
import { generateId } from '../../../src/utils/util';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
name: 'ElCascaderMenu',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import ElCheckbox from 'element-ui/packages/checkbox';
|
|
3
3
|
import ElRadio from 'element-ui/packages/radio';
|
|
4
|
-
import { isEqual } from '
|
|
4
|
+
import { isEqual } from '../../../src/utils/util';
|
|
5
5
|
|
|
6
6
|
const stopPropagation = e => e.stopPropagation();
|
|
7
7
|
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
<script>
|
|
18
18
|
import CascaderMenu from './cascader-menu';
|
|
19
19
|
import Store from './store';
|
|
20
|
-
import merge from '
|
|
21
|
-
import AriaUtils from '
|
|
22
|
-
import scrollIntoView from '
|
|
20
|
+
import merge from '../../../src/utils/merge';
|
|
21
|
+
import AriaUtils from '../../../src/utils/aria-utils';
|
|
22
|
+
import scrollIntoView from '../../../src/utils/scroll-into-view';
|
|
23
23
|
import {
|
|
24
24
|
noop,
|
|
25
25
|
coerceTruthyValueToArray,
|
|
26
26
|
isEqual,
|
|
27
27
|
isEmpty,
|
|
28
28
|
valueEquals
|
|
29
|
-
} from '
|
|
29
|
+
} from '../../../src/utils/util';
|
|
30
30
|
|
|
31
31
|
const { keys: KeyCode } = AriaUtils;
|
|
32
32
|
const DefaultProps = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Node from './node';
|
|
2
|
-
import { coerceTruthyValueToArray, valueEquals } from '
|
|
2
|
+
import { coerceTruthyValueToArray, valueEquals } from '../../../src/utils/util';
|
|
3
3
|
|
|
4
4
|
const flatNodes = (data, leafOnly) => {
|
|
5
5
|
return data.reduce((res, node) => {
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
</div>
|
|
46
46
|
</template>
|
|
47
47
|
<script>
|
|
48
|
-
import ElCollapseTransition from '
|
|
49
|
-
import Emitter from '
|
|
50
|
-
import { generateId } from '
|
|
48
|
+
import ElCollapseTransition from '../../../src/transitions/collapse-transition';
|
|
49
|
+
import Emitter from '../../../src/mixins/emitter';
|
|
50
|
+
import { generateId } from '../../../src/utils/util';
|
|
51
51
|
|
|
52
52
|
export default {
|
|
53
53
|
name: 'ElCollapseItem',
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
import HueSlider from './hue-slider';
|
|
44
44
|
import AlphaSlider from './alpha-slider';
|
|
45
45
|
import Predefine from './predefine';
|
|
46
|
-
import Popper from '
|
|
47
|
-
import Locale from '
|
|
46
|
+
import Popper from '../../../../src/utils/vue-popper';
|
|
47
|
+
import Locale from '../../../../src/mixins/locale';
|
|
48
48
|
import ElInput from 'element-ui/packages/input';
|
|
49
49
|
import ElButton from 'element-ui/packages/button';
|
|
50
50
|
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
<script>
|
|
34
34
|
import Color from './color';
|
|
35
35
|
import PickerDropdown from './components/picker-dropdown.vue';
|
|
36
|
-
import Clickoutside from '
|
|
37
|
-
import Emitter from '
|
|
36
|
+
import Clickoutside from '../../../src/utils/clickoutside';
|
|
37
|
+
import Emitter from '../../../src/mixins/emitter';
|
|
38
38
|
|
|
39
39
|
export default {
|
|
40
40
|
name: 'ElColorPicker',
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
</template>
|
|
33
33
|
|
|
34
34
|
<script>
|
|
35
|
-
import { getFirstDayOfMonth, getDayCountOfMonth, getWeekNumber, getStartDateOfMonth, prevDate, nextDate, isDate, clearTime as _clearTime } from '
|
|
36
|
-
import Locale from '
|
|
37
|
-
import { arrayFindIndex, arrayFind, coerceTruthyValueToArray } from '
|
|
35
|
+
import { getFirstDayOfMonth, getDayCountOfMonth, getWeekNumber, getStartDateOfMonth, prevDate, nextDate, isDate, clearTime as _clearTime } from '../../../../src/utils/date-util';
|
|
36
|
+
import Locale from '../../../../src/mixins/locale';
|
|
37
|
+
import { arrayFindIndex, arrayFind, coerceTruthyValueToArray } from '../../../../src/utils/util';
|
|
38
38
|
|
|
39
39
|
const WEEKS = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'];
|
|
40
40
|
const getDateTimestamp = function(time) {
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
</template>
|
|
14
14
|
|
|
15
15
|
<script type="text/babel">
|
|
16
|
-
import Locale from '
|
|
17
|
-
import { isDate, range, getDayCountOfMonth, nextDate } from '
|
|
18
|
-
import { hasClass } from '
|
|
19
|
-
import { arrayFindIndex, coerceTruthyValueToArray, arrayFind } from '
|
|
16
|
+
import Locale from '../../../../src/mixins/locale';
|
|
17
|
+
import { isDate, range, getDayCountOfMonth, nextDate } from '../../../../src/utils/date-util';
|
|
18
|
+
import { hasClass } from '../../../../src/utils/dom';
|
|
19
|
+
import { arrayFindIndex, coerceTruthyValueToArray, arrayFind } from '../../../../src/utils/util';
|
|
20
20
|
|
|
21
21
|
const datesInMonth = (year, month) => {
|
|
22
22
|
const numOfDays = getDayCountOfMonth(year, month);
|
|
@@ -101,9 +101,9 @@
|
|
|
101
101
|
</template>
|
|
102
102
|
|
|
103
103
|
<script type="text/babel">
|
|
104
|
-
|
|
104
|
+
import { getRangeHours, getRangeMinutes, modifyTime } from '../../../../src/utils/date-util';
|
|
105
105
|
import ElScrollbar from 'element-ui/packages/scrollbar';
|
|
106
|
-
import RepeatClick from '
|
|
106
|
+
import RepeatClick from '../../../../src/directives/repeat-click';
|
|
107
107
|
|
|
108
108
|
export default {
|
|
109
109
|
components: { ElScrollbar },
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
</template>
|
|
45
45
|
|
|
46
46
|
<script type="text/babel">
|
|
47
|
-
import { hasClass } from '
|
|
48
|
-
import { isDate, range, nextDate, getDayCountOfYear } from '
|
|
49
|
-
import { arrayFindIndex, coerceTruthyValueToArray } from '
|
|
47
|
+
import { hasClass } from '../../../../src/utils/dom';
|
|
48
|
+
import { isDate, range, nextDate, getDayCountOfYear } from '../../../../src/utils/date-util';
|
|
49
|
+
import { arrayFindIndex, coerceTruthyValueToArray } from '../../../../src/utils/util';
|
|
50
50
|
|
|
51
51
|
const datesInYear = year => {
|
|
52
52
|
const numOfDays = getDayCountOfYear(year);
|
|
@@ -202,9 +202,9 @@
|
|
|
202
202
|
nextDate,
|
|
203
203
|
extractDateFormat,
|
|
204
204
|
extractTimeFormat
|
|
205
|
-
} from '
|
|
206
|
-
import Clickoutside from '
|
|
207
|
-
import Locale from '
|
|
205
|
+
} from '../../../../src/utils/date-util';
|
|
206
|
+
import Clickoutside from '../../../../src/utils/clickoutside';
|
|
207
|
+
import Locale from '../../../../src/mixins/locale';
|
|
208
208
|
import TimePicker from './time';
|
|
209
209
|
import DateTable from '../basic/date-table';
|
|
210
210
|
import ElInput from 'element-ui/packages/input';
|
|
@@ -163,9 +163,9 @@
|
|
|
163
163
|
extractDateFormat,
|
|
164
164
|
extractTimeFormat,
|
|
165
165
|
timeWithinRange
|
|
166
|
-
} from '
|
|
167
|
-
import Clickoutside from '
|
|
168
|
-
import Locale from '
|
|
166
|
+
} from '../../../../src/utils/date-util';
|
|
167
|
+
import Clickoutside from '../../../../src/utils/clickoutside';
|
|
168
|
+
import Locale from '../../../../src/mixins/locale';
|
|
169
169
|
import ElInput from 'element-ui/packages/input';
|
|
170
170
|
import ElButton from 'element-ui/packages/button';
|
|
171
171
|
import TimePicker from './time';
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
prevYear,
|
|
85
85
|
nextYear,
|
|
86
86
|
nextMonth
|
|
87
|
-
} from '
|
|
88
|
-
import Clickoutside from '
|
|
89
|
-
import Locale from '
|
|
87
|
+
} from '../../../../src/utils/date-util';
|
|
88
|
+
import Clickoutside from '../../../../src/utils/clickoutside';
|
|
89
|
+
import Locale from '../../../../src/mixins/locale';
|
|
90
90
|
import MonthTable from '../basic/month-table';
|
|
91
91
|
import ElInput from 'element-ui/packages/input';
|
|
92
92
|
import ElButton from 'element-ui/packages/button';
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
modifyDate,
|
|
63
63
|
clearMilliseconds,
|
|
64
64
|
timeWithinRange
|
|
65
|
-
} from '
|
|
66
|
-
import Locale from '
|
|
65
|
+
} from '../../../../src/utils/date-util';
|
|
66
|
+
import Locale from '../../../../src/mixins/locale';
|
|
67
67
|
import TimeSpinner from '../basic/time-spinner';
|
|
68
68
|
|
|
69
69
|
const MIN_TIME = parseDate('00:00:00', 'HH:mm:ss');
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
<script type="text/babel">
|
|
22
22
|
import ElScrollbar from 'element-ui/packages/scrollbar';
|
|
23
|
-
import scrollIntoView from '
|
|
23
|
+
import scrollIntoView from '../../../../src/utils/scroll-into-view';
|
|
24
24
|
|
|
25
25
|
const parseTime = function(time) {
|
|
26
26
|
const values = (time || '').split(':');
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
</template>
|
|
32
32
|
|
|
33
33
|
<script type="text/babel">
|
|
34
|
-
import { limitTimeRange, isDate, clearMilliseconds, timeWithinRange } from '
|
|
35
|
-
import Locale from '
|
|
34
|
+
import { limitTimeRange, isDate, clearMilliseconds, timeWithinRange } from '../../../../src/utils/date-util';
|
|
35
|
+
import Locale from '../../../../src/mixins/locale';
|
|
36
36
|
import TimeSpinner from '../basic/time-spinner';
|
|
37
37
|
|
|
38
38
|
export default {
|
|
@@ -85,12 +85,12 @@
|
|
|
85
85
|
|
|
86
86
|
<script>
|
|
87
87
|
import Vue from 'vue';
|
|
88
|
-
import Clickoutside from '
|
|
89
|
-
import { formatDate, parseDate, isDateObject, getWeekNumber } from '
|
|
90
|
-
import Popper from '
|
|
91
|
-
import Emitter from '
|
|
88
|
+
import Clickoutside from '../../../src/utils/clickoutside';
|
|
89
|
+
import { formatDate, parseDate, isDateObject, getWeekNumber } from '../../../src/utils/date-util';
|
|
90
|
+
import Popper from '../../../src/utils/vue-popper';
|
|
91
|
+
import Emitter from '../../../src/mixins/emitter';
|
|
92
92
|
import ElInput from 'element-ui/packages/input';
|
|
93
|
-
import merge from '
|
|
93
|
+
import merge from '../../../src/utils/merge';
|
|
94
94
|
|
|
95
95
|
const NewPopper = {
|
|
96
96
|
props: {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
</template>
|
|
39
39
|
|
|
40
40
|
<script>
|
|
41
|
-
import Popup from '
|
|
42
|
-
import Migrating from '
|
|
43
|
-
import emitter from '
|
|
41
|
+
import Popup from '../../../src/utils/popup';
|
|
42
|
+
import Migrating from '../../../src/mixins/migrating';
|
|
43
|
+
import emitter from '../../../src/mixins/emitter';
|
|
44
44
|
|
|
45
45
|
export default {
|
|
46
46
|
name: 'ElDialog',
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
</template>
|
|
48
48
|
|
|
49
49
|
<script>
|
|
50
|
-
import Popup from '
|
|
51
|
-
import emitter from '
|
|
50
|
+
import Popup from '../../../src/utils/popup';
|
|
51
|
+
import emitter from '../../../src/mixins/emitter';
|
|
52
52
|
|
|
53
53
|
export default {
|
|
54
54
|
name: 'ElDrawer',
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import Clickoutside from '
|
|
3
|
-
import Emitter from '
|
|
4
|
-
import Migrating from '
|
|
2
|
+
import Clickoutside from '../../../src/utils/clickoutside';
|
|
3
|
+
import Emitter from '../../../src/mixins/emitter';
|
|
4
|
+
import Migrating from '../../../src/mixins/migrating';
|
|
5
5
|
import ElButton from 'element-ui/packages/button';
|
|
6
6
|
import ElButtonGroup from 'element-ui/packages/button-group';
|
|
7
|
-
import { generateId } from '
|
|
7
|
+
import { generateId } from '../../../src/utils/util';
|
|
8
8
|
|
|
9
9
|
export default {
|
|
10
10
|
name: 'ElDropdown',
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
<script>
|
|
42
42
|
import AsyncValidator from 'async-validator';
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
import emitter from '../../../src/mixins/emitter';
|
|
44
|
+
import objectAssign from '../../../src/utils/merge';
|
|
45
|
+
import { noop, getPropByPath } from '../../../src/utils/util';
|
|
46
|
+
import LabelWrap from './label-wrap';
|
|
47
47
|
export default {
|
|
48
48
|
name: 'ElFormItem',
|
|
49
49
|
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
</template>
|
|
53
53
|
|
|
54
54
|
<script>
|
|
55
|
-
import { on, off } from '
|
|
56
|
-
import { rafThrottle, isFirefox } from '
|
|
57
|
-
import { PopupManager } from '
|
|
55
|
+
import { on, off } from '../../../src/utils/dom';
|
|
56
|
+
import { rafThrottle, isFirefox } from '../../../src/utils/util';
|
|
57
|
+
import { PopupManager } from '../../../src/utils/popup';
|
|
58
58
|
|
|
59
59
|
const Mode = {
|
|
60
60
|
CONTAIN: {
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
|
|
24
24
|
<script>
|
|
25
25
|
import ImageViewer from './image-viewer';
|
|
26
|
-
import Locale from '
|
|
27
|
-
import { on, off, getScrollContainer, isInContainer } from '
|
|
28
|
-
import { isString, isHtmlElement } from '
|
|
26
|
+
import Locale from '../../../src/mixins/locale';
|
|
27
|
+
import { on, off, getScrollContainer, isInContainer } from '../../../src/utils/dom';
|
|
28
|
+
import { isString, isHtmlElement } from '../../../src/utils/types';
|
|
29
29
|
import throttle from 'throttle-debounce/throttle';
|
|
30
30
|
|
|
31
31
|
const isSupportObjectFit = () => document.documentElement.style.objectFit !== undefined;
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
isFunction,
|
|
5
5
|
isUndefined,
|
|
6
6
|
isDefined
|
|
7
|
-
} from '
|
|
7
|
+
} from '../../../src/utils/types';
|
|
8
8
|
import {
|
|
9
9
|
getScrollContainer
|
|
10
|
-
} from '
|
|
10
|
+
} from '../../../src/utils/dom';
|
|
11
11
|
|
|
12
12
|
const getStyleComputedProperty = (element, property) => {
|
|
13
13
|
if (element === window) {
|
|
@@ -108,11 +108,11 @@
|
|
|
108
108
|
</div>
|
|
109
109
|
</template>
|
|
110
110
|
<script>
|
|
111
|
-
import emitter from '
|
|
112
|
-
import Migrating from '
|
|
111
|
+
import emitter from '../../../src/mixins/emitter';
|
|
112
|
+
import Migrating from '../../../src/mixins/migrating';
|
|
113
113
|
import calcTextareaHeight from './calcTextareaHeight';
|
|
114
|
-
import merge from '
|
|
115
|
-
import { isKorean } from '
|
|
114
|
+
import merge from '../../../src/utils/merge';
|
|
115
|
+
import { isKorean } from '../../../src/utils/shared';
|
|
116
116
|
|
|
117
117
|
export default {
|
|
118
118
|
name: 'ElInput',
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
</template>
|
|
48
48
|
<script>
|
|
49
49
|
import ElInput from 'element-ui/packages/input';
|
|
50
|
-
import Focus from '
|
|
51
|
-
import RepeatClick from '
|
|
50
|
+
import Focus from '../../../src/mixins/focus';
|
|
51
|
+
import RepeatClick from '../../../src/directives/repeat-click';
|
|
52
52
|
|
|
53
53
|
export default {
|
|
54
54
|
name: 'ElInputNumber',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Vue from 'vue';
|
|
2
2
|
import Loading from './loading.vue';
|
|
3
|
-
import { addClass, removeClass, getStyle } from '
|
|
4
|
-
import { PopupManager } from '
|
|
5
|
-
import afterLeave from '
|
|
3
|
+
import { addClass, removeClass, getStyle } from '../../../src/utils/dom';
|
|
4
|
+
import { PopupManager } from '../../../src/utils/popup';
|
|
5
|
+
import afterLeave from '../../../src/utils/after-leave';
|
|
6
6
|
const Mask = Vue.extend(Loading);
|
|
7
7
|
|
|
8
8
|
const loadingDirective = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Vue from 'vue';
|
|
2
2
|
import loadingVue from './loading.vue';
|
|
3
|
-
import { addClass, removeClass, getStyle } from '
|
|
4
|
-
import { PopupManager } from '
|
|
5
|
-
import afterLeave from '
|
|
6
|
-
import merge from '
|
|
3
|
+
import { addClass, removeClass, getStyle } from '../../../src/utils/dom';
|
|
4
|
+
import { PopupManager } from '../../../src/utils/popup';
|
|
5
|
+
import afterLeave from '../../../src/utils/after-leave';
|
|
6
|
+
import merge from '../../../src/utils/merge';
|
|
7
7
|
|
|
8
8
|
const LoadingConstructor = Vue.extend(loadingVue);
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script type="text/jsx">
|
|
2
|
-
import emitter from '
|
|
3
|
-
import Migrating from '
|
|
4
|
-
import Menubar from '
|
|
5
|
-
import { addClass, removeClass, hasClass } from '
|
|
2
|
+
import emitter from '../../../src/mixins/emitter';
|
|
3
|
+
import Migrating from '../../../src/mixins/migrating';
|
|
4
|
+
import Menubar from '../../../src/utils/menu/aria-menubar';
|
|
5
|
+
import { addClass, removeClass, hasClass } from '../../../src/utils/dom';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
name: 'ElMenu',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import ElCollapseTransition from '
|
|
2
|
+
import ElCollapseTransition from '../../../src/transitions/collapse-transition';
|
|
3
3
|
import menuMixin from './menu-mixin';
|
|
4
|
-
import Emitter from '
|
|
5
|
-
import Popper from '
|
|
4
|
+
import Emitter from '../../../src/mixins/emitter';
|
|
5
|
+
import Popper from '../../../src/utils/vue-popper';
|
|
6
6
|
|
|
7
7
|
const poperMixins = {
|
|
8
8
|
props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Vue from 'vue';
|
|
2
2
|
import Main from './main.vue';
|
|
3
|
-
import { PopupManager } from '
|
|
4
|
-
import { isVNode } from '
|
|
5
|
-
import { isObject } from '
|
|
3
|
+
import { PopupManager } from '../../../src/utils/popup';
|
|
4
|
+
import { isVNode } from '../../../src/utils/vdom';
|
|
5
|
+
import { isObject } from '../../../src/utils/types';
|
|
6
6
|
let MessageConstructor = Vue.extend(Main);
|
|
7
7
|
|
|
8
8
|
let instance;
|