cy-element-ui 1.0.57 → 1.0.59
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 +25 -25
- package/lib/calendar.js +12 -12
- package/lib/carousel-item.js +4 -4
- package/lib/carousel.js +4 -4
- package/lib/cascader-panel.js +23 -23
- package/lib/cascader.js +32 -32
- package/lib/checkbox-button.js +4 -4
- package/lib/checkbox-group.js +4 -4
- package/lib/checkbox.js +4 -4
- package/lib/collapse-item.js +8 -8
- package/lib/color-picker.js +21 -21
- package/lib/date-picker.js +78 -78
- package/lib/descriptions.js +2 -2
- package/lib/dialog.js +8 -8
- package/lib/directives/repeat-click.js +2 -2
- package/lib/drawer.js +6 -6
- package/lib/dropdown-item.js +4 -4
- package/lib/dropdown-menu.js +4 -4
- package/lib/dropdown.js +12 -12
- package/lib/element-ui.common.js +598 -916
- package/lib/empty.js +4 -4
- package/lib/fileUpload.js +30 -30
- package/lib/form-item.js +8 -8
- package/lib/form.js +4 -4
- package/lib/image.js +19 -19
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +4 -4
- package/lib/input-number.js +15 -15
- package/lib/input.js +10 -10
- package/lib/loading.js +8 -8
- package/lib/locale/format.js +1 -1
- package/lib/locale/index.js +1 -1
- package/lib/menu-item.js +6 -6
- package/lib/menu.js +6 -6
- package/lib/message-box.js +20 -20
- package/lib/message.js +6 -6
- package/lib/mixins/locale.js +1 -1
- package/lib/mixins/migrating.js +2 -2
- package/lib/notification.js +6 -6
- package/lib/option-group.js +4 -4
- package/lib/option.js +6 -6
- package/lib/page-header.js +4 -4
- package/lib/pagination.js +10 -10
- package/lib/popconfirm.js +8 -8
- package/lib/popover.js +8 -8
- package/lib/radio-button.js +4 -4
- package/lib/radio-group.js +4 -4
- package/lib/radio.js +4 -4
- package/lib/rate.js +8 -8
- package/lib/scrollbar.js +8 -8
- package/lib/select.js +37 -37
- package/lib/slider.js +15 -15
- package/lib/statistic.js +4 -4
- package/lib/steps.js +4 -4
- package/lib/submenu.js +6 -6
- package/lib/switch.js +8 -8
- package/lib/tabDialog.js +6 -6
- package/lib/table-column.js +8 -8
- package/lib/table.js +41 -41
- package/lib/tabs.js +6 -6
- package/lib/theme-chalk/alert.css +1 -0
- package/lib/theme-chalk/aside.css +1 -0
- package/lib/theme-chalk/autocomplete.css +1 -0
- package/lib/theme-chalk/avatar.css +1 -0
- package/lib/theme-chalk/backtop.css +1 -0
- package/lib/theme-chalk/badge.css +1 -0
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/breadcrumb-item.css +0 -0
- package/lib/theme-chalk/breadcrumb.css +1 -0
- package/lib/theme-chalk/button-group.css +0 -0
- package/lib/theme-chalk/button.css +1 -0
- package/lib/theme-chalk/calendar.css +1 -0
- package/lib/theme-chalk/card.css +1 -0
- package/lib/theme-chalk/carousel-item.css +1 -0
- package/lib/theme-chalk/carousel.css +1 -0
- package/lib/theme-chalk/cascader-panel.css +1 -0
- package/lib/theme-chalk/cascader.css +1 -0
- package/lib/theme-chalk/checkbox-button.css +0 -0
- package/lib/theme-chalk/checkbox-group.css +0 -0
- package/lib/theme-chalk/checkbox.css +1 -0
- package/lib/theme-chalk/col.css +1 -0
- package/lib/theme-chalk/collapse-item.css +0 -0
- package/lib/theme-chalk/collapse.css +1 -0
- package/lib/theme-chalk/color-picker.css +1 -0
- package/lib/theme-chalk/container.css +1 -0
- package/lib/theme-chalk/date-picker.css +1 -0
- package/lib/theme-chalk/descriptions-item.css +1 -0
- package/lib/theme-chalk/descriptions.css +1 -0
- package/lib/theme-chalk/dialog.css +1 -0
- package/lib/theme-chalk/display.css +1 -0
- package/lib/theme-chalk/divider.css +1 -0
- package/lib/theme-chalk/drawer.css +1 -0
- package/lib/theme-chalk/dropdown-item.css +0 -0
- package/lib/theme-chalk/dropdown-menu.css +0 -0
- package/lib/theme-chalk/dropdown.css +1 -0
- package/lib/theme-chalk/element.css +1 -1
- package/lib/theme-chalk/empty.css +1 -0
- package/lib/theme-chalk/fileUpload.css +1 -1
- package/lib/theme-chalk/fonts/element-icons.ttf +0 -0
- package/lib/theme-chalk/fonts/element-icons.woff +0 -0
- package/lib/theme-chalk/footer.css +1 -0
- package/lib/theme-chalk/form-item.css +0 -0
- package/lib/theme-chalk/form.css +1 -0
- package/lib/theme-chalk/header.css +1 -0
- package/lib/theme-chalk/icon.css +1 -0
- package/lib/theme-chalk/image.css +1 -0
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/infinite-scroll.css +0 -0
- package/lib/theme-chalk/infiniteScroll.css +0 -0
- package/lib/theme-chalk/input-number.css +1 -0
- package/lib/theme-chalk/input.css +1 -0
- package/lib/theme-chalk/link.css +1 -0
- package/lib/theme-chalk/loading.css +1 -0
- package/lib/theme-chalk/main.css +1 -0
- package/lib/theme-chalk/menu-item-group.css +0 -0
- package/lib/theme-chalk/menu-item.css +0 -0
- package/lib/theme-chalk/menu.css +1 -0
- package/lib/theme-chalk/message-box.css +1 -0
- package/lib/theme-chalk/message.css +1 -0
- package/lib/theme-chalk/notification.css +1 -0
- package/lib/theme-chalk/option-group.css +1 -0
- package/lib/theme-chalk/option.css +1 -0
- package/lib/theme-chalk/page-header.css +1 -0
- package/lib/theme-chalk/pagination.css +1 -0
- package/lib/theme-chalk/popconfirm.css +1 -0
- package/lib/theme-chalk/popover.css +1 -0
- package/lib/theme-chalk/popper.css +1 -0
- package/lib/theme-chalk/progress.css +1 -0
- package/lib/theme-chalk/radio-button.css +1 -0
- package/lib/theme-chalk/radio-group.css +1 -0
- package/lib/theme-chalk/radio.css +1 -0
- package/lib/theme-chalk/rate.css +1 -0
- package/lib/theme-chalk/reset.css +1 -0
- package/lib/theme-chalk/result.css +1 -0
- package/lib/theme-chalk/row.css +1 -0
- package/lib/theme-chalk/scrollbar.css +1 -0
- package/lib/theme-chalk/select-dropdown.css +1 -0
- package/lib/theme-chalk/select.css +1 -0
- package/lib/theme-chalk/selectDisplayInput.css +1 -1
- package/lib/theme-chalk/skeleton-item.css +1 -0
- package/lib/theme-chalk/skeleton.css +1 -0
- package/lib/theme-chalk/slider.css +1 -0
- package/lib/theme-chalk/spinner.css +1 -0
- package/lib/theme-chalk/statistic.css +1 -0
- package/lib/theme-chalk/step.css +1 -0
- package/lib/theme-chalk/steps.css +1 -0
- package/lib/theme-chalk/subTitle.css +1 -1
- package/lib/theme-chalk/submenu.css +0 -0
- package/lib/theme-chalk/switch.css +1 -0
- package/lib/theme-chalk/tab-pane.css +0 -0
- package/lib/theme-chalk/tabDialog.css +1 -1
- package/lib/theme-chalk/table-column.css +1 -0
- package/lib/theme-chalk/table.css +1 -0
- package/lib/theme-chalk/tabs.css +1 -0
- package/lib/theme-chalk/tag.css +1 -0
- package/lib/theme-chalk/time-picker.css +1 -0
- package/lib/theme-chalk/time-select.css +1 -0
- package/lib/theme-chalk/timeline-item.css +1 -0
- package/lib/theme-chalk/timeline.css +1 -0
- package/lib/theme-chalk/tooltip.css +1 -0
- package/lib/theme-chalk/transfer.css +1 -0
- package/lib/theme-chalk/tree.css +1 -0
- package/lib/theme-chalk/treeSelect.css +1 -1
- package/lib/theme-chalk/upload.css +1 -0
- package/lib/time-picker.js +37 -37
- package/lib/time-select.js +20 -20
- package/lib/tooltip.js +6 -6
- package/lib/transfer.js +23 -23
- package/lib/transitions/collapse-transition.js +1 -1
- package/lib/tree.js +23 -23
- package/lib/treeSelect.js +20 -20
- package/lib/upload.js +11 -11
- package/lib/utils/clickoutside.js +1 -1
- package/lib/utils/date-util.js +2 -2
- package/lib/utils/popup/index.js +2 -2
- package/lib/utils/popup/popup-manager.js +1 -1
- package/lib/utils/util.js +1 -1
- package/lib/utils/vdom.js +1 -1
- package/lib/utils/vue-popper.js +1 -1
- package/package.json +2 -2
- package/packages/autocomplete/src/autocomplete-suggestions.vue +3 -3
- package/packages/autocomplete/src/autocomplete.vue +6 -6
- package/packages/calendar/src/date-table.vue +2 -2
- package/packages/calendar/src/main.vue +5 -5
- package/packages/carousel/src/item.vue +1 -1
- package/packages/carousel/src/main.vue +1 -1
- package/packages/cascader/src/cascader.vue +15 -15
- package/packages/cascader-panel/src/cascader-menu.vue +3 -3
- package/packages/cascader-panel/src/cascader-node.vue +3 -3
- 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 +4 -4
- 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 +3 -3
- package/packages/date-picker/src/basic/year-table.vue +3 -3
- package/packages/date-picker/src/panel/date-range.vue +5 -5
- package/packages/date-picker/src/panel/date.vue +5 -5
- package/packages/date-picker/src/panel/month-range.vue +5 -5
- package/packages/date-picker/src/panel/time-range.vue +2 -2
- package/packages/date-picker/src/panel/time-select.vue +2 -2
- package/packages/date-picker/src/panel/time.vue +2 -2
- package/packages/date-picker/src/picker.vue +6 -6
- 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 +6 -6
- package/packages/empty/src/index.vue +1 -1
- package/packages/fileUpload/src/main.vue +430 -430
- package/packages/form/src/form-item.vue +3 -3
- 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 +3 -3
- package/packages/loading/src/directive.js +3 -3
- package/packages/loading/src/index.js +4 -4
- package/packages/menu/src/menu-item.vue +2 -2
- 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 +7 -7
- package/packages/notification/src/main.js +3 -3
- package/packages/page-header/src/main.vue +1 -1
- package/packages/pagination/src/pagination.js +5 -5
- package/packages/popconfirm/src/main.vue +3 -3
- 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 +11 -11
- package/packages/selectDisplayInput/src/main.vue +75 -75
- package/packages/slider/src/button.vue +1 -1
- package/packages/slider/src/main.vue +2 -2
- 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/tabDialog/src/main.vue +277 -277
- package/packages/table/src/config.js +1 -1
- package/packages/table/src/filter-panel.vue +7 -7
- 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 +4 -4
- package/packages/table/src/table-column.js +1 -1
- package/packages/table/src/table-header.js +2 -2
- package/packages/table/src/table-layout.js +1 -1
- package/packages/table/src/table-row.js +1 -1
- package/packages/table/src/table.vue +5 -5
- 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 +4 -4
- package/packages/transfer/src/transfer-panel.vue +4 -4
- package/packages/tree/src/model/node.js +2 -2
- package/packages/tree/src/tree-node.vue +3 -3
- package/packages/tree/src/tree.vue +3 -3
- package/packages/treeSelect/src/main.vue +325 -325
- package/packages/upload/src/index.vue +2 -2
- package/packages/upload/src/upload-list.vue +2 -2
- package/src/directives/repeat-click.js +2 -2
- package/src/index.js +1 -1
- package/src/locale/format.js +1 -1
- package/src/locale/index.js +1 -1
- package/src/mixins/locale.js +1 -1
- package/src/mixins/migrating.js +2 -2
- package/src/transitions/collapse-transition.js +1 -1
- package/src/utils/clickoutside.js +1 -1
- package/src/utils/date-util.js +2 -2
- package/src/utils/popup/index.js +2 -2
- package/src/utils/popup/popup-manager.js +1 -1
- package/src/utils/util.js +1 -1
- package/src/utils/vdom.js +1 -1
- package/src/utils/vue-popper.js +1 -1
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
<script>
|
|
42
42
|
import AsyncValidator from 'async-validator';
|
|
43
|
-
import emitter from '
|
|
44
|
-
import objectAssign from '
|
|
45
|
-
import { noop, getPropByPath } from '
|
|
43
|
+
import emitter from 'element-ui/src/mixins/emitter';
|
|
44
|
+
import objectAssign from 'element-ui/src/utils/merge';
|
|
45
|
+
import { noop, getPropByPath } from 'element-ui/src/utils/util';
|
|
46
46
|
import LabelWrap from './label-wrap';
|
|
47
47
|
export default {
|
|
48
48
|
name: 'ElFormItem',
|
|
@@ -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 'element-ui/src/utils/dom';
|
|
56
|
+
import { rafThrottle, isFirefox } from 'element-ui/src/utils/util';
|
|
57
|
+
import { PopupManager } from 'element-ui/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 'element-ui/src/mixins/locale';
|
|
27
|
+
import { on, off, getScrollContainer, isInContainer } from 'element-ui/src/utils/dom';
|
|
28
|
+
import { isString, isHtmlElement } from 'element-ui/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 'element-ui/src/utils/types';
|
|
8
8
|
import {
|
|
9
9
|
getScrollContainer
|
|
10
|
-
} from '
|
|
10
|
+
} from 'element-ui/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 'element-ui/src/mixins/emitter';
|
|
112
|
+
import Migrating from 'element-ui/src/mixins/migrating';
|
|
113
113
|
import calcTextareaHeight from './calcTextareaHeight';
|
|
114
|
-
import merge from '
|
|
115
|
-
import { isKorean } from '
|
|
114
|
+
import merge from 'element-ui/src/utils/merge';
|
|
115
|
+
import { isKorean } from 'element-ui/src/utils/shared';
|
|
116
116
|
|
|
117
117
|
export default {
|
|
118
118
|
name: 'ElInput',
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
</div>
|
|
47
47
|
</template>
|
|
48
48
|
<script>
|
|
49
|
-
import ElInput from '
|
|
50
|
-
import Focus from '
|
|
51
|
-
import RepeatClick from '
|
|
49
|
+
import ElInput from 'element-ui/packages/input';
|
|
50
|
+
import Focus from 'element-ui/src/mixins/focus';
|
|
51
|
+
import RepeatClick from 'element-ui/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 'element-ui/src/utils/dom';
|
|
4
|
+
import { PopupManager } from 'element-ui/src/utils/popup';
|
|
5
|
+
import afterLeave from 'element-ui/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 'element-ui/src/utils/dom';
|
|
4
|
+
import { PopupManager } from 'element-ui/src/utils/popup';
|
|
5
|
+
import afterLeave from 'element-ui/src/utils/after-leave';
|
|
6
|
+
import merge from 'element-ui/src/utils/merge';
|
|
7
7
|
|
|
8
8
|
const LoadingConstructor = Vue.extend(loadingVue);
|
|
9
9
|
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
</template>
|
|
31
31
|
<script>
|
|
32
32
|
import Menu from './menu-mixin';
|
|
33
|
-
import ElTooltip from '
|
|
34
|
-
import Emitter from '
|
|
33
|
+
import ElTooltip from 'element-ui/packages/tooltip';
|
|
34
|
+
import Emitter from 'element-ui/src/mixins/emitter';
|
|
35
35
|
|
|
36
36
|
export default {
|
|
37
37
|
name: 'ElMenuItem',
|
|
@@ -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 'element-ui/src/mixins/emitter';
|
|
3
|
+
import Migrating from 'element-ui/src/mixins/migrating';
|
|
4
|
+
import Menubar from 'element-ui/src/utils/menu/aria-menubar';
|
|
5
|
+
import { addClass, removeClass, hasClass } from 'element-ui/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 'element-ui/src/transitions/collapse-transition';
|
|
3
3
|
import menuMixin from './menu-mixin';
|
|
4
|
-
import Emitter from '
|
|
5
|
-
import Popper from '
|
|
4
|
+
import Emitter from 'element-ui/src/mixins/emitter';
|
|
5
|
+
import Popper from 'element-ui/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 'element-ui/src/utils/popup';
|
|
4
|
+
import { isVNode } from 'element-ui/src/utils/vdom';
|
|
5
|
+
import { isObject } from 'element-ui/src/utils/types';
|
|
6
6
|
let MessageConstructor = Vue.extend(Main);
|
|
7
7
|
|
|
8
8
|
let instance;
|
|
@@ -35,8 +35,8 @@ const defaults = {
|
|
|
35
35
|
|
|
36
36
|
import Vue from 'vue';
|
|
37
37
|
import msgboxVue from './main.vue';
|
|
38
|
-
import merge from '
|
|
39
|
-
import { isVNode } from '
|
|
38
|
+
import merge from 'element-ui/src/utils/merge';
|
|
39
|
+
import { isVNode } from 'element-ui/src/utils/vdom';
|
|
40
40
|
|
|
41
41
|
const MessageBoxConstructor = Vue.extend(msgboxVue);
|
|
42
42
|
|
|
@@ -79,13 +79,13 @@
|
|
|
79
79
|
</template>
|
|
80
80
|
|
|
81
81
|
<script type="text/babel">
|
|
82
|
-
import Popup from '
|
|
83
|
-
import Locale from '
|
|
84
|
-
import ElInput from '
|
|
85
|
-
import ElButton from '
|
|
86
|
-
import { addClass, removeClass } from '
|
|
87
|
-
import { t } from '
|
|
88
|
-
import Dialog from '
|
|
82
|
+
import Popup from 'element-ui/src/utils/popup';
|
|
83
|
+
import Locale from 'element-ui/src/mixins/locale';
|
|
84
|
+
import ElInput from 'element-ui/packages/input';
|
|
85
|
+
import ElButton from 'element-ui/packages/button';
|
|
86
|
+
import { addClass, removeClass } from 'element-ui/src/utils/dom';
|
|
87
|
+
import { t } from 'element-ui/src/locale';
|
|
88
|
+
import Dialog from 'element-ui/src/utils/aria-dialog';
|
|
89
89
|
|
|
90
90
|
let messageBox;
|
|
91
91
|
let typeMap = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Vue from 'vue';
|
|
2
2
|
import Main from './main.vue';
|
|
3
|
-
import merge from '
|
|
4
|
-
import { PopupManager } from '
|
|
5
|
-
import { isVNode } from '
|
|
3
|
+
import merge from 'element-ui/src/utils/merge';
|
|
4
|
+
import { PopupManager } from 'element-ui/src/utils/popup';
|
|
5
|
+
import { isVNode } from 'element-ui/src/utils/vdom';
|
|
6
6
|
const NotificationConstructor = Vue.extend(Main);
|
|
7
7
|
|
|
8
8
|
let instance;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Pager from './pager.vue';
|
|
2
|
-
import ElSelect from '
|
|
3
|
-
import ElOption from '
|
|
4
|
-
import ElInput from '
|
|
5
|
-
import Locale from '
|
|
6
|
-
import { valueEquals } from '
|
|
2
|
+
import ElSelect from 'element-ui/packages/select';
|
|
3
|
+
import ElOption from 'element-ui/packages/option';
|
|
4
|
+
import ElInput from 'element-ui/packages/input';
|
|
5
|
+
import Locale from 'element-ui/src/mixins/locale';
|
|
6
|
+
import { valueEquals } from 'element-ui/src/utils/util';
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
name: 'ElPagination',
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
</template>
|
|
37
37
|
|
|
38
38
|
<script>
|
|
39
|
-
import ElPopover from '
|
|
40
|
-
import ElButton from '
|
|
41
|
-
import { t } from '
|
|
39
|
+
import ElPopover from 'element-ui/packages/popover';
|
|
40
|
+
import ElButton from 'element-ui/packages/button';
|
|
41
|
+
import { t } from 'element-ui/src/locale';
|
|
42
42
|
|
|
43
43
|
export default {
|
|
44
44
|
name: 'ElPopconfirm',
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
</span>
|
|
25
25
|
</template>
|
|
26
26
|
<script>
|
|
27
|
-
import Popper from '
|
|
28
|
-
import { on, off } from '
|
|
29
|
-
import { addClass, removeClass } from '
|
|
30
|
-
import { generateId } from '
|
|
27
|
+
import Popper from 'element-ui/src/utils/vue-popper';
|
|
28
|
+
import { on, off } from 'element-ui/src/utils/dom';
|
|
29
|
+
import { addClass, removeClass } from 'element-ui/src/utils/dom';
|
|
30
|
+
import { generateId } from 'element-ui/src/utils/util';
|
|
31
31
|
|
|
32
32
|
export default {
|
|
33
33
|
name: 'ElPopover',
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
</template>
|
|
34
34
|
|
|
35
35
|
<script>
|
|
36
|
-
import { hasClass } from '
|
|
37
|
-
import { isObject } from '
|
|
38
|
-
import Migrating from '
|
|
36
|
+
import { hasClass } from 'element-ui/src/utils/dom';
|
|
37
|
+
import { isObject } from 'element-ui/src/utils/types';
|
|
38
|
+
import Migrating from 'element-ui/src/mixins/migrating';
|
|
39
39
|
|
|
40
40
|
export default {
|
|
41
41
|
name: 'ElRate',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// reference https://github.com/noeldelgado/gemini-scrollbar/blob/master/index.js
|
|
2
2
|
|
|
3
|
-
import { addResizeListener, removeResizeListener } from '
|
|
4
|
-
import scrollbarWidth from '
|
|
5
|
-
import { toObject } from '
|
|
3
|
+
import { addResizeListener, removeResizeListener } from 'element-ui/src/utils/resize-event';
|
|
4
|
+
import scrollbarWidth from 'element-ui/src/utils/scrollbar-width';
|
|
5
|
+
import { toObject } from 'element-ui/src/utils/util';
|
|
6
6
|
import Bar from './bar';
|
|
7
7
|
|
|
8
8
|
/* istanbul ignore next */
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
</template>
|
|
17
17
|
|
|
18
18
|
<script type="text/babel">
|
|
19
|
-
import Emitter from '
|
|
20
|
-
import { getValueByPath, escapeRegexpString } from '
|
|
19
|
+
import Emitter from 'element-ui/src/mixins/emitter';
|
|
20
|
+
import { getValueByPath, escapeRegexpString } from 'element-ui/src/utils/util';
|
|
21
21
|
|
|
22
22
|
export default {
|
|
23
23
|
mixins: [Emitter],
|
|
@@ -136,21 +136,21 @@
|
|
|
136
136
|
</template>
|
|
137
137
|
|
|
138
138
|
<script type="text/babel">
|
|
139
|
-
import Emitter from '
|
|
140
|
-
import Focus from '
|
|
141
|
-
import Locale from '
|
|
142
|
-
import ElInput from '
|
|
139
|
+
import Emitter from 'element-ui/src/mixins/emitter';
|
|
140
|
+
import Focus from 'element-ui/src/mixins/focus';
|
|
141
|
+
import Locale from 'element-ui/src/mixins/locale';
|
|
142
|
+
import ElInput from 'element-ui/packages/input';
|
|
143
143
|
import ElSelectMenu from './select-dropdown.vue';
|
|
144
144
|
import ElOption from './option.vue';
|
|
145
|
-
import ElTag from '
|
|
146
|
-
import ElScrollbar from '
|
|
145
|
+
import ElTag from 'element-ui/packages/tag';
|
|
146
|
+
import ElScrollbar from 'element-ui/packages/scrollbar';
|
|
147
147
|
import debounce from 'throttle-debounce/debounce';
|
|
148
|
-
import Clickoutside from '
|
|
149
|
-
import { addResizeListener, removeResizeListener } from '
|
|
150
|
-
import scrollIntoView from '
|
|
151
|
-
import { getValueByPath, valueEquals, isIE, isEdge } from '
|
|
148
|
+
import Clickoutside from 'element-ui/src/utils/clickoutside';
|
|
149
|
+
import { addResizeListener, removeResizeListener } from 'element-ui/src/utils/resize-event';
|
|
150
|
+
import scrollIntoView from 'element-ui/src/utils/scroll-into-view';
|
|
151
|
+
import { getValueByPath, valueEquals, isIE, isEdge } from 'element-ui/src/utils/util';
|
|
152
152
|
import NavigationMixin from './navigation-mixin';
|
|
153
|
-
import { isKorean } from '
|
|
153
|
+
import { isKorean } from 'element-ui/src/utils/shared';
|
|
154
154
|
|
|
155
155
|
export default {
|
|
156
156
|
mixins: [Emitter, Locale, Focus('reference'), NavigationMixin],
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="cy-select-display-input">
|
|
3
|
-
<div class="select_display_input_box" :class="{ text_active: cursor, cursor: cursor && value }" @click="handleInfo">
|
|
4
|
-
<div class="text"><span>{{ value }}</span></div>
|
|
5
|
-
<span v-if="!value" class="placeholder">{{ placeholder }}</span>
|
|
6
|
-
<i v-if="showDelete" class="el-icon-circle-close delete" @click.stop="handleDelete"></i>
|
|
7
|
-
</div>
|
|
8
|
-
<el-button v-if="showBtn" type="primary" @click="handleClick">{{ btnText }}</el-button>
|
|
9
|
-
</div>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script>
|
|
13
|
-
export default {
|
|
14
|
-
name: 'CySelectDisplayInput',
|
|
15
|
-
props: {
|
|
16
|
-
// 文本框 需要显示的内容
|
|
17
|
-
value: {
|
|
18
|
-
type: [Number, String],
|
|
19
|
-
default: ''
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
// 文本框 的提示文本
|
|
23
|
-
placeholder: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: ''
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
// 选择按钮 的文字
|
|
29
|
-
btnText: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: '选择'
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
// 选择按钮 的显示条件
|
|
35
|
-
showBtn: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
default: true
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
// 是否显示 删除按钮
|
|
41
|
-
showDelete: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: false
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
data() {
|
|
47
|
-
return {}
|
|
48
|
-
},
|
|
49
|
-
computed: {
|
|
50
|
-
// 文本框 是否需要点击,如果为true,输入框中的字体会变蓝并将鼠标变为小手
|
|
51
|
-
cursor() {
|
|
52
|
-
// 判断父组件是否坚挺了info事件
|
|
53
|
-
return this.$listeners.info;
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
created() {
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
methods: {
|
|
60
|
-
handleInfo() {
|
|
61
|
-
if (this.value) {
|
|
62
|
-
this.$emit('info');
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
handleClick() {
|
|
67
|
-
this.$emit('click');
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
handleDelete() {
|
|
71
|
-
this.$emit('delete');
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="cy-select-display-input">
|
|
3
|
+
<div class="select_display_input_box" :class="{ text_active: cursor, cursor: cursor && value }" @click="handleInfo">
|
|
4
|
+
<div class="text"><span>{{ value }}</span></div>
|
|
5
|
+
<span v-if="!value" class="placeholder">{{ placeholder }}</span>
|
|
6
|
+
<i v-if="showDelete" class="el-icon-circle-close delete" @click.stop="handleDelete"></i>
|
|
7
|
+
</div>
|
|
8
|
+
<el-button v-if="showBtn" type="primary" @click="handleClick">{{ btnText }}</el-button>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script>
|
|
13
|
+
export default {
|
|
14
|
+
name: 'CySelectDisplayInput',
|
|
15
|
+
props: {
|
|
16
|
+
// 文本框 需要显示的内容
|
|
17
|
+
value: {
|
|
18
|
+
type: [Number, String],
|
|
19
|
+
default: ''
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
// 文本框 的提示文本
|
|
23
|
+
placeholder: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: ''
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
// 选择按钮 的文字
|
|
29
|
+
btnText: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: '选择'
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
// 选择按钮 的显示条件
|
|
35
|
+
showBtn: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: true
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
// 是否显示 删除按钮
|
|
41
|
+
showDelete: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: false
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
data() {
|
|
47
|
+
return {}
|
|
48
|
+
},
|
|
49
|
+
computed: {
|
|
50
|
+
// 文本框 是否需要点击,如果为true,输入框中的字体会变蓝并将鼠标变为小手
|
|
51
|
+
cursor() {
|
|
52
|
+
// 判断父组件是否坚挺了info事件
|
|
53
|
+
return this.$listeners.info;
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
created() {
|
|
57
|
+
|
|
58
|
+
},
|
|
59
|
+
methods: {
|
|
60
|
+
handleInfo() {
|
|
61
|
+
if (this.value) {
|
|
62
|
+
this.$emit('info');
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
handleClick() {
|
|
67
|
+
this.$emit('click');
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
handleDelete() {
|
|
71
|
+
this.$emit('delete');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
</script>
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
</template>
|
|
75
75
|
|
|
76
76
|
<script type="text/babel">
|
|
77
|
-
import ElInputNumber from '
|
|
77
|
+
import ElInputNumber from 'element-ui/packages/input-number';
|
|
78
78
|
import SliderButton from './button.vue';
|
|
79
79
|
import SliderMarker from './marker';
|
|
80
|
-
import Emitter from '
|
|
80
|
+
import Emitter from 'element-ui/src/mixins/emitter';
|
|
81
81
|
|
|
82
82
|
export default {
|
|
83
83
|
name: 'ElSlider',
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</template>
|
|
27
27
|
|
|
28
28
|
<script>
|
|
29
|
-
import { isNumber, chain, multiply, padStart, reduce } from '
|
|
29
|
+
import { isNumber, chain, multiply, padStart, reduce } from 'element-ui/src/utils/lodash';
|
|
30
30
|
export default {
|
|
31
31
|
name: 'ElStatistic',
|
|
32
32
|
data() {
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
</div>
|
|
37
37
|
</template>
|
|
38
38
|
<script>
|
|
39
|
-
import emitter from '
|
|
40
|
-
import Focus from '
|
|
41
|
-
import Migrating from '
|
|
39
|
+
import emitter from 'element-ui/src/mixins/emitter';
|
|
40
|
+
import Focus from 'element-ui/src/mixins/focus';
|
|
41
|
+
import Migrating from 'element-ui/src/mixins/migrating';
|
|
42
42
|
|
|
43
43
|
export default {
|
|
44
44
|
name: 'ElSwitch',
|