cy-element-ui 1.0.82 → 1.0.85
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 +15 -15
- package/lib/calendar.js +120 -120
- package/lib/carousel-item.js +4 -4
- package/lib/carousel.js +2 -2
- package/lib/cascader-panel.js +12 -12
- package/lib/cascader.js +18 -18
- 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 +58 -58
- package/lib/color-picker.js +15 -15
- package/lib/date-picker.js +265 -798
- package/lib/descriptions.js +2 -2
- package/lib/dialog.js +5 -5
- package/lib/drawer.js +2 -2
- package/lib/dropdown-item.js +2 -2
- package/lib/dropdown-menu.js +2 -2
- package/lib/dropdown.js +57 -57
- package/lib/element-ui.common.js +610 -1142
- package/lib/empty.js +4 -4
- package/lib/fileUpload.js +10 -10
- package/lib/form-item.js +4 -4
- package/lib/form.js +2 -2
- package/lib/image.js +12 -12
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +2 -2
- package/lib/input-number.js +7 -7
- package/lib/input.js +6 -6
- package/lib/menu-item.js +52 -52
- package/lib/menu.js +3 -3
- package/lib/message-box.js +7 -7
- package/lib/message.js +3 -3
- package/lib/mixins/migrating.js +1 -1
- package/lib/notification.js +2 -2
- package/lib/option-group.js +2 -2
- package/lib/option.js +21 -21
- package/lib/page-header.js +4 -4
- package/lib/pagination.js +17 -17
- package/lib/popconfirm.js +60 -60
- package/lib/popover.js +58 -58
- package/lib/radio-button.js +2 -2
- package/lib/radio-group.js +2 -2
- package/lib/radio.js +2 -2
- package/lib/rate.js +6 -6
- package/lib/scrollbar.js +3 -3
- package/lib/select.js +17 -17
- package/lib/slider.js +17 -17
- package/lib/statistic.js +2 -2
- package/lib/steps.js +5 -5
- package/lib/switch.js +5 -5
- package/lib/tabDialog.js +7 -7
- package/lib/table-column.js +4 -4
- package/lib/table.js +17 -17
- package/lib/tabs.js +4 -4
- package/lib/time-picker.js +232 -765
- package/lib/time-select.js +223 -756
- package/lib/tooltip.js +2 -2
- package/lib/transfer.js +72 -72
- package/lib/tree.js +67 -67
- package/lib/treeSelect.js +62 -62
- package/lib/upload.js +8 -8
- package/package.json +1 -1
- 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 +414 -956
- 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 +3 -3
- 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/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 +1 -1
- 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 +2 -2
- 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
package/lib/upload.js
CHANGED
|
@@ -349,7 +349,7 @@ var i18n = function i18n(fn) {
|
|
|
349
349
|
* Show migrating guide in browser console.
|
|
350
350
|
*
|
|
351
351
|
* Usage:
|
|
352
|
-
* import Migrating from '
|
|
352
|
+
* import Migrating from 'src/mixins/migrating';
|
|
353
353
|
*
|
|
354
354
|
* mixins: [Migrating]
|
|
355
355
|
*
|
|
@@ -581,7 +581,7 @@ module.exports = require("babel-helper-vue-jsx-merge-props");
|
|
|
581
581
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
|
|
582
582
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
583
583
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
584
|
-
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
584
|
+
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
|
|
585
585
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
586
586
|
|
|
587
587
|
|
|
@@ -1187,7 +1187,7 @@ progress.install = function (Vue) {
|
|
|
1187
1187
|
|
|
1188
1188
|
/***/ }),
|
|
1189
1189
|
|
|
1190
|
-
/***/
|
|
1190
|
+
/***/ 5:
|
|
1191
1191
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1192
1192
|
|
|
1193
1193
|
"use strict";
|
|
@@ -1249,8 +1249,8 @@ var isDefined = function isDefined(val) {
|
|
|
1249
1249
|
// ESM COMPAT FLAG
|
|
1250
1250
|
__webpack_require__.r(__webpack_exports__);
|
|
1251
1251
|
|
|
1252
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-list.vue?vue&type=template&id=
|
|
1253
|
-
var
|
|
1252
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/upload-list.vue?vue&type=template&id=0943b648
|
|
1253
|
+
var upload_listvue_type_template_id_0943b648_render = function render() {
|
|
1254
1254
|
var _vm = this,
|
|
1255
1255
|
_c = _vm._self._c
|
|
1256
1256
|
return _c(
|
|
@@ -1413,10 +1413,10 @@ var upload_listvue_type_template_id_f52834b0_render = function render() {
|
|
|
1413
1413
|
)
|
|
1414
1414
|
}
|
|
1415
1415
|
var staticRenderFns = []
|
|
1416
|
-
|
|
1416
|
+
upload_listvue_type_template_id_0943b648_render._withStripped = true
|
|
1417
1417
|
|
|
1418
1418
|
|
|
1419
|
-
// CONCATENATED MODULE: ./packages/upload/src/upload-list.vue?vue&type=template&id=
|
|
1419
|
+
// CONCATENATED MODULE: ./packages/upload/src/upload-list.vue?vue&type=template&id=0943b648
|
|
1420
1420
|
|
|
1421
1421
|
// EXTERNAL MODULE: ./src/mixins/locale.js
|
|
1422
1422
|
var locale = __webpack_require__(13);
|
|
@@ -1481,7 +1481,7 @@ var componentNormalizer = __webpack_require__(2);
|
|
|
1481
1481
|
|
|
1482
1482
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
1483
1483
|
src_upload_listvue_type_script_lang_js,
|
|
1484
|
-
|
|
1484
|
+
upload_listvue_type_template_id_0943b648_render,
|
|
1485
1485
|
staticRenderFns,
|
|
1486
1486
|
false,
|
|
1487
1487
|
null,
|
package/package.json
CHANGED
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
</transition>
|
|
19
19
|
</template>
|
|
20
20
|
<script>
|
|
21
|
-
import Popper from '
|
|
22
|
-
import Emitter from '
|
|
23
|
-
import ElScrollbar from '
|
|
21
|
+
import Popper from 'src/utils/vue-popper';
|
|
22
|
+
import Emitter from 'src/mixins/emitter';
|
|
23
|
+
import ElScrollbar from '../../scrollbar';
|
|
24
24
|
|
|
25
25
|
export default {
|
|
26
26
|
components: { ElScrollbar },
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
</template>
|
|
60
60
|
<script>
|
|
61
61
|
import debounce from 'throttle-debounce/debounce';
|
|
62
|
-
import ElInput from '
|
|
63
|
-
import Clickoutside from '
|
|
62
|
+
import ElInput from '../../input';
|
|
63
|
+
import Clickoutside from 'src/utils/clickoutside';
|
|
64
64
|
import ElAutocompleteSuggestions from './autocomplete-suggestions.vue';
|
|
65
|
-
import Emitter from '
|
|
66
|
-
import Migrating from '
|
|
67
|
-
import { generateId } from '
|
|
68
|
-
import Focus from '
|
|
65
|
+
import Emitter from 'src/mixins/emitter';
|
|
66
|
+
import Migrating from 'src/mixins/migrating';
|
|
67
|
+
import { generateId } from 'src/utils/util';
|
|
68
|
+
import Focus from 'src/mixins/focus';
|
|
69
69
|
|
|
70
70
|
export default {
|
|
71
71
|
name: 'ElAutocomplete',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import fecha from '
|
|
3
|
-
import { range as rangeArr, getFirstDayOfMonth, getPrevMonthLastDays, getMonthDays, getI18nSettings, validateRangeInOneMonth } from '
|
|
2
|
+
import fecha from 'src/utils/date';
|
|
3
|
+
import { range as rangeArr, getFirstDayOfMonth, getPrevMonthLastDays, getMonthDays, getI18nSettings, validateRangeInOneMonth } from 'src/utils/date-util';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
props: {
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
</template>
|
|
58
58
|
|
|
59
59
|
<script>
|
|
60
|
-
import Locale from '
|
|
61
|
-
import fecha from '
|
|
62
|
-
import ElButton from '
|
|
63
|
-
import ElButtonGroup from '
|
|
60
|
+
import Locale from 'src/mixins/locale';
|
|
61
|
+
import fecha from 'src/utils/date';
|
|
62
|
+
import ElButton from '../../button';
|
|
63
|
+
import ElButtonGroup from '../../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 '
|
|
120
|
-
import ElInput from '
|
|
121
|
-
import ElTag from '
|
|
122
|
-
import ElScrollbar from '
|
|
123
|
-
import ElCascaderPanel from '
|
|
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 '
|
|
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
|
+
import ElInput from '../../input';
|
|
121
|
+
import ElTag from '../../tag';
|
|
122
|
+
import ElScrollbar from '../../scrollbar';
|
|
123
|
+
import ElCascaderPanel from '../../cascader-panel';
|
|
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
|
-
import ElScrollbar from '
|
|
2
|
+
import ElScrollbar from '../../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
|
-
import ElCheckbox from '
|
|
3
|
-
import ElRadio from '
|
|
4
|
-
import { isEqual } from '
|
|
2
|
+
import ElCheckbox from '../../checkbox';
|
|
3
|
+
import ElRadio from '../../radio';
|
|
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 = {
|
|
@@ -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,10 +43,10 @@
|
|
|
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 '
|
|
48
|
-
import ElInput from '
|
|
49
|
-
import ElButton from '
|
|
46
|
+
import Popper from 'src/utils/vue-popper';
|
|
47
|
+
import Locale from 'src/mixins/locale';
|
|
48
|
+
import ElInput from '../../../input';
|
|
49
|
+
import ElButton from '../../../button';
|
|
50
50
|
|
|
51
51
|
export default {
|
|
52
52
|
name: 'ElColorPickerDropdown',
|
|
@@ -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
|
-
import { getRangeHours, getRangeMinutes, modifyTime } from '
|
|
105
|
-
import ElScrollbar from '
|
|
106
|
-
import RepeatClick from '
|
|
104
|
+
import { getRangeHours, getRangeMinutes, modifyTime } from 'src/utils/date-util';
|
|
105
|
+
import ElScrollbar from '../../../scrollbar';
|
|
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,13 +202,13 @@
|
|
|
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
|
-
import ElInput from '
|
|
211
|
-
import ElButton from '
|
|
210
|
+
import ElInput from '../../../input';
|
|
211
|
+
import ElButton from '../../../button';
|
|
212
212
|
|
|
213
213
|
const calcDefaultValue = (defaultValue) => {
|
|
214
214
|
if (Array.isArray(defaultValue)) {
|
|
@@ -163,11 +163,11 @@
|
|
|
163
163
|
extractDateFormat,
|
|
164
164
|
extractTimeFormat,
|
|
165
165
|
timeWithinRange
|
|
166
|
-
} from '
|
|
167
|
-
import Clickoutside from '
|
|
168
|
-
import Locale from '
|
|
169
|
-
import ElInput from '
|
|
170
|
-
import ElButton from '
|
|
166
|
+
} from 'src/utils/date-util';
|
|
167
|
+
import Clickoutside from 'src/utils/clickoutside';
|
|
168
|
+
import Locale from 'src/mixins/locale';
|
|
169
|
+
import ElInput from '../../../input';
|
|
170
|
+
import ElButton from '../../../button';
|
|
171
171
|
import TimePicker from './time';
|
|
172
172
|
import YearTable from '../basic/year-table';
|
|
173
173
|
import MonthTable from '../basic/month-table';
|
|
@@ -84,12 +84,12 @@
|
|
|
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
|
-
import ElInput from '
|
|
92
|
-
import ElButton from '
|
|
91
|
+
import ElInput from '../../../input';
|
|
92
|
+
import ElButton from '../../../button';
|
|
93
93
|
|
|
94
94
|
const calcDefaultValue = (defaultValue) => {
|
|
95
95
|
if (Array.isArray(defaultValue)) {
|
|
@@ -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');
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<script type="text/babel">
|
|
22
|
-
import ElScrollbar from '
|
|
23
|
-
import scrollIntoView from '
|
|
22
|
+
import ElScrollbar from '../../../scrollbar';
|
|
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 {
|