@dfsj/components 3.7.2 → 4.0.0-alpha.1
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/CHANGELOG.md +61 -453
- package/README.md +101 -24
- package/dist/_virtual/_rollupPluginBabelHelpers.js +13 -0
- package/dist/components/Boards/src/Boards.vue.js +10 -4
- package/dist/components/Boards/src/Boards.vue2.js +10 -147
- package/dist/components/Boards/src/hooKs/useStyle.d.ts +16 -4
- package/dist/components/Boards/src/hooKs/useStyle.js +10 -99
- package/dist/components/Boards/src/props.d.ts +6 -22
- package/dist/components/Boards/src/props.js +10 -55
- package/dist/components/ClickOutSide/src/ClickOutSide.vue.js +10 -4
- package/dist/components/ClickOutSide/src/ClickOutSide.vue2.js +10 -25
- package/dist/components/Descriptions/src/Descriptions.vue.js +10 -4
- package/dist/components/Descriptions/src/Descriptions.vue2.js +10 -150
- package/dist/components/Editor/src/Editor.vue.js +10 -4
- package/dist/components/Editor/src/Editor.vue2.js +10 -137
- package/dist/components/Form/src/Form.vue.js +10 -4
- package/dist/components/Form/src/Form.vue2.js +10 -388
- package/dist/components/Form/src/components/useRenderCheckbox.js +10 -32
- package/dist/components/Form/src/components/useRenderRadio.js +10 -32
- package/dist/components/Form/src/components/useRenderSelect.js +10 -51
- package/dist/components/Form/src/helper/componentMap.js +10 -34
- package/dist/components/Form/src/helper/index.js +10 -108
- package/dist/components/Form/src/types/index.d.ts +80 -84
- package/dist/components/Form/src/types/index.js +10 -30
- package/dist/components/Form/src/useForm.js +10 -289
- package/dist/components/Highlight/src/Highlight.vue.js +10 -4
- package/dist/components/Highlight/src/Highlight.vue2.js +10 -61
- package/dist/components/Icon/src/Icon.vue.js +10 -4
- package/dist/components/Icon/src/Icon.vue2.js +10 -122
- package/dist/components/Icon/src/SvgIcon.vue.js +10 -6
- package/dist/components/Icon/src/SvgIcon.vue2.js +10 -44
- package/dist/components/Icon/src/SvgIcon.vue3.js +10 -13
- package/dist/components/InputPassword/src/InputPassword.vue.js +10 -4
- package/dist/components/InputPassword/src/InputPassword.vue2.js +10 -57
- package/dist/components/Modal/src/BasicModal.vue.js +10 -4
- package/dist/components/Modal/src/BasicModal.vue2.js +10 -154
- package/dist/components/Modal/src/components/ModalFooter.vue.js +10 -4
- package/dist/components/Modal/src/components/ModalFooter.vue2.js +10 -39
- package/dist/components/Modal/src/components/ModalHeader.vue.js +10 -4
- package/dist/components/Modal/src/components/ModalHeader.vue2.js +10 -80
- package/dist/components/Modal/src/config.d.ts +3 -2
- package/dist/components/Modal/src/config.js +10 -28
- package/dist/components/Modal/src/hooks/useModalDrag.js +10 -109
- package/dist/components/Modal/src/hooks/useTimeout.js +10 -52
- package/dist/components/Modal/src/props.d.ts +16 -56
- package/dist/components/Modal/src/props.js +10 -130
- package/dist/components/Modal/src/utils/index.js +10 -85
- package/dist/components/NodeAxis/src/AbstractNodeProvider.js +10 -21
- package/dist/components/NodeAxis/src/CanvasNodeRender.d.ts +3 -12
- package/dist/components/NodeAxis/src/CanvasNodeRender.js +10 -411
- package/dist/components/NodeAxis/src/NodeAxis.vue.js +10 -4
- package/dist/components/NodeAxis/src/NodeAxis.vue2.js +10 -68
- package/dist/components/NodeAxis/src/NodeModel.js +10 -62
- package/dist/components/NodeAxis/src/NodeRender.js +10 -28
- package/dist/components/NodeAxis/src/NullLayerProvider.js +10 -86
- package/dist/components/NodeAxis/src/NullProvider.js +10 -65
- package/dist/components/NodeAxis/src/TimerNodePlayer.js +10 -148
- package/dist/components/NodeAxis/src/config/node-axis.options.js +10 -55
- package/dist/components/NodeAxis/src/enum/index.js +10 -19
- package/dist/components/NodeAxis/src/utils/assign.js +10 -42
- package/dist/components/Stateful/src/State.js +10 -78
- package/dist/components/Stateful/src/Stateful.vue.js +10 -4
- package/dist/components/Stateful/src/Stateful.vue2.js +10 -52
- package/dist/components/Stateful/src/props.d.ts +2 -6
- package/dist/components/Stateful/src/props.js +10 -28
- package/dist/components/Table/index.d.ts +3 -3
- package/dist/components/Table/src/Table.vue.js +10 -4
- package/dist/components/Table/src/Table.vue2.js +10 -583
- package/dist/components/Table/src/components/ColumnSetting.vue.js +10 -4
- package/dist/components/Table/src/components/ColumnSetting.vue2.js +10 -263
- package/dist/components/Table/src/components/TableActions.vue.js +10 -4
- package/dist/components/Table/src/components/TableActions.vue2.js +10 -107
- package/dist/components/Table/src/helper/index.js +10 -10
- package/dist/components/Table/src/types/index.d.ts +11 -13
- package/dist/components/Table/src/useTable.d.ts +36 -1
- package/dist/components/Table/src/useTable.js +10 -283
- package/dist/components/UnifyChart/src/ChartToolbox.vue.js +10 -4
- package/dist/components/UnifyChart/src/ChartToolbox.vue2.js +10 -82
- package/dist/components/UnifyChart/src/UnifyChart.vue.js +10 -4
- package/dist/components/UnifyChart/src/UnifyChart.vue2.js +10 -57
- package/dist/components/UnifyChart/src/hooks/useLoader.js +10 -92
- package/dist/components/UnifyChart/src/hooks/useRender.d.ts +8 -13
- package/dist/components/UnifyChart/src/hooks/useRender.js +10 -49
- package/dist/components/UnifyChart/src/props.d.ts +13 -59
- package/dist/components/UnifyChart/src/props.js +10 -32
- package/dist/components/UnifyChart/src/useDownLoad.js +10 -26
- package/dist/components/Visual/src/BufferLayerPlayer.d.ts +9 -5
- package/dist/components/Visual/src/BufferLayerPlayer.js +10 -288
- package/dist/components/Visual/src/ResolvableLayerProvider.js +10 -252
- package/dist/components/Visual/src/config/default.manager.js +10 -6
- package/dist/components/Visual/src/config/default.provider.js +10 -17
- package/dist/components/Visual/src/mapping.js +10 -6
- package/dist/components/Visual/src/resolvers/IntervalResolver.js +10 -168
- package/dist/components/Visual/src/resolvers/tools.resolver.js +10 -151
- package/dist/components/Visual/src/utils/NodeMath.js +10 -99
- package/dist/components/Windows/src/ModalWrap.vue.js +10 -4
- package/dist/components/Windows/src/ModalWrap.vue2.js +10 -132
- package/dist/components/Windows/src/Windows.vue.js +10 -6
- package/dist/components/Windows/src/Windows.vue2.js +10 -55
- package/dist/components/Windows/src/Windows.vue3.js +10 -24
- package/dist/components/Windows/src/props.js +10 -8
- package/dist/directives/clickOutside.js +10 -70
- package/dist/directives/repeatClick.js +10 -28
- package/dist/directives/resizable.js +10 -195
- package/dist/index.d.ts +0 -2
- package/dist/index.js +11 -53
- package/dist/index.min.css +3 -3
- package/dist/themes/index.js +9 -0
- package/dist/types/index.d.ts +3 -3
- package/dist/utils/index.js +10 -23
- package/package.json +53 -24
- package/dist/components/Boards/src/Boards.vue.d.ts +0 -102
- package/dist/components/ClickOutSide/src/ClickOutSide.vue.d.ts +0 -7
- package/dist/components/DatePicker/index.d.ts +0 -2
- package/dist/components/DatePicker/src/composables/use-month-range-header.d.ts +0 -16
- package/dist/components/DatePicker/src/composables/use-month-range-header.js +0 -52
- package/dist/components/DatePicker/src/composables/use-range-picker.d.ts +0 -173
- package/dist/components/DatePicker/src/composables/use-range-picker.js +0 -99
- package/dist/components/DatePicker/src/date-picker-com/panel-date-range.vue.d.ts +0 -19
- package/dist/components/DatePicker/src/date-picker-com/panel-date-range.vue.js +0 -5
- package/dist/components/DatePicker/src/date-picker-com/panel-date-range.vue2.js +0 -564
- package/dist/components/DatePicker/src/date-picker-com/panel-month-range.vue.d.ts +0 -16
- package/dist/components/DatePicker/src/date-picker-com/panel-month-range.vue.js +0 -5
- package/dist/components/DatePicker/src/date-picker-com/panel-month-range.vue2.js +0 -210
- package/dist/components/DatePicker/src/index.d.ts +0 -224
- package/dist/components/DatePicker/src/index.js +0 -87
- package/dist/components/DatePicker/src/panel-utils.d.ts +0 -2
- package/dist/components/DatePicker/src/panel-utils.js +0 -25
- package/dist/components/Descriptions/src/Descriptions.vue.d.ts +0 -97
- package/dist/components/Editor/src/Editor.vue.d.ts +0 -51
- package/dist/components/Form/src/Form.vue.d.ts +0 -838
- package/dist/components/Highlight/src/Highlight.vue.d.ts +0 -41
- package/dist/components/Icon/src/Icon.vue.d.ts +0 -49
- package/dist/components/Icon/src/SvgIcon.vue.d.ts +0 -45
- package/dist/components/InputPassword/src/InputPassword.vue.d.ts +0 -27
- package/dist/components/Modal/src/BasicModal.vue.d.ts +0 -419
- package/dist/components/Modal/src/components/ModalFooter.vue.d.ts +0 -86
- package/dist/components/Modal/src/components/ModalHeader.vue.d.ts +0 -241
- package/dist/components/NodeAxis/src/BCanvasNodeRender.d.ts +0 -19
- package/dist/components/NodeAxis/src/NodeAxis.vue.d.ts +0 -17
- package/dist/components/Stateful/src/Stateful.vue.d.ts +0 -22
- package/dist/components/Table/src/Table.vue.d.ts +0 -1535
- package/dist/components/Table/src/components/ColumnSetting.vue.d.ts +0 -30
- package/dist/components/Table/src/components/TableActions.vue.d.ts +0 -229
- package/dist/components/UnifyChart/src/ChartToolbox.vue.d.ts +0 -46
- package/dist/components/UnifyChart/src/UnifyChart.vue.d.ts +0 -95
- package/dist/components/Video/index.d.ts +0 -2
- package/dist/components/Video/src/VideoPlayer.vue.d.ts +0 -60
- package/dist/components/Video/src/VideoPlayer.vue.js +0 -5
- package/dist/components/Video/src/VideoPlayer.vue2.js +0 -107
- package/dist/components/Video/src/VideoPlayerToolbar.vue.d.ts +0 -34
- package/dist/components/Video/src/VideoPlayerToolbar.vue.js +0 -5
- package/dist/components/Video/src/VideoPlayerToolbar.vue2.js +0 -65
- package/dist/components/Video/src/abstract/AbstractVideoControl.d.ts +0 -7
- package/dist/components/Video/src/abstract/Observable.d.ts +0 -6
- package/dist/components/Video/src/abstract/Observable.js +0 -89
- package/dist/components/Video/src/abstract/VideoControl.d.ts +0 -32
- package/dist/components/Video/src/abstract/VideoControl.js +0 -48
- package/dist/components/Video/src/control/DaHua.d.ts +0 -12
- package/dist/components/Video/src/control/DaHua.js +0 -154
- package/dist/components/Video/src/control/Hikvision.d.ts +0 -28
- package/dist/components/Video/src/control/Hikvision.js +0 -249
- package/dist/components/Video/src/control/VideoFactory.d.ts +0 -3
- package/dist/components/Video/src/control/VideoFactory.js +0 -31
- package/dist/components/Video/src/enums/CommonEnum.d.ts +0 -26
- package/dist/components/Video/src/enums/CommonEnum.js +0 -31
- package/dist/components/Windows/src/ModalWrap.vue.d.ts +0 -14
- package/dist/components/Windows/src/Windows.vue.d.ts +0 -21
- package/dist/components/src/components/Boards/src/hooKs/useStyle.d.ts +0 -9
- package/dist/components/src/components/DatePicker/src/composables/use-month-range-header.d.ts +0 -16
- package/dist/components/src/components/DatePicker/src/composables/use-range-picker.d.ts +0 -173
- package/dist/components/src/components/DatePicker/src/date-picker-com/panel-date-range.vue.d.ts +0 -19
- package/dist/components/src/components/DatePicker/src/date-picker-com/panel-month-range.vue.d.ts +0 -16
- package/dist/components/src/components/Descriptions/src/Descriptions.vue.d.ts +0 -97
- package/dist/components/src/components/Form/src/components/useRenderCheckbox.d.ts +0 -4
- package/dist/components/src/components/Form/src/components/useRenderRadio.d.ts +0 -4
- package/dist/components/src/components/Form/src/components/useRenderSelect.d.ts +0 -4
- package/dist/components/src/components/Form/src/helper/componentMap.d.ts +0 -5
- package/dist/components/src/components/Form/src/helper/index.d.ts +0 -7
- package/dist/components/src/components/InputPassword/src/InputPassword.vue.d.ts +0 -27
- package/dist/components/src/components/Modal/src/hooks/useTimeout.d.ts +0 -15
- package/dist/components/src/components/Modal/src/utils/index.d.ts +0 -3
- package/dist/components/src/components/NodeAxis/src/BCanvasNodeRender.d.ts +0 -19
- package/dist/components/src/components/NodeAxis/src/NodeAxis.d.ts +0 -12
- package/dist/components/src/components/NodeAxis/src/NodeAxis.vue.d.ts +0 -17
- package/dist/components/src/components/NodeAxis/src/TimerNodePlayer.d.ts +0 -19
- package/dist/components/src/components/NodeAxis/src/interface/NodePlayer.d.ts +0 -9
- package/dist/components/src/components/Table/src/components/ColumnSetting.vue.d.ts +0 -30
- package/dist/components/src/components/Table/src/components/TableActions.vue.d.ts +0 -96
- package/dist/components/src/components/Table/src/helper/index.d.ts +0 -2
- package/dist/components/src/components/Video/src/VideoPlayerToolbar.vue.d.ts +0 -34
- package/dist/components/src/components/Video/src/abstract/AbstractVideoControl.d.ts +0 -7
- package/dist/components/src/components/Video/src/abstract/Observable.d.ts +0 -6
- package/dist/components/src/components/Video/src/abstract/VideoControl.d.ts +0 -32
- package/dist/components/src/components/Video/src/control/DaHua.d.ts +0 -12
- package/dist/components/src/components/Video/src/control/Hikvision.d.ts +0 -28
- package/dist/components/src/components/Video/src/control/VideoFactory.d.ts +0 -3
- package/dist/components/src/components/Video/src/enums/CommonEnum.d.ts +0 -26
- package/dist/components/src/helper/lang.d.ts +0 -1
- package/dist/components/src/themes/index.d.ts +0 -1
- package/dist/components/src/utils/index.d.ts +0 -11
- package/dist/helper/lang.d.ts +0 -1
- package/dist/helper/lang.js +0 -546
- package/dist/node_modules/.pnpm/@vueuse_core@10.11.1_vue@3.5.13_typescript@5.7.3_/node_modules/@vueuse/core/index.js +0 -335
- package/dist/node_modules/.pnpm/@vueuse_core@13.7.0_vue@3.5.19_typescript@5.9.2_/node_modules/@vueuse/core/index.js +0 -393
- package/dist/node_modules/.pnpm/@vueuse_shared@10.11.1_vue@3.5.13_typescript@5.7.3_/node_modules/@vueuse/shared/index.js +0 -40
- package/dist/node_modules/.pnpm/@vueuse_shared@13.7.0_vue@3.5.19_typescript@5.9.2_/node_modules/@vueuse/shared/index.js +0 -53
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
2
|
-
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
3
|
-
import { defineComponent, inject, ref, computed, toRef, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, Fragment, renderList, toDisplayString, createCommentVNode, createVNode, withCtx, createTextVNode } from 'vue';
|
|
4
|
-
import dayjs from 'dayjs';
|
|
5
|
-
import { useLocale } from 'element-plus';
|
|
6
|
-
import { DArrowLeft, DArrowRight } from '@element-plus/icons-vue';
|
|
7
|
-
import { panelMonthRangeEmits } from 'element-plus/es/components/date-picker/src/props/panel-month-range';
|
|
8
|
-
import MonthTable from 'element-plus/es/components/date-picker/src/date-picker-com/basic-month-table.mjs';
|
|
9
|
-
import { useMonthRangeHeader } from '../composables/use-month-range-header.js';
|
|
10
|
-
import { useRangePicker } from '../composables/use-range-picker.js';
|
|
11
|
-
import { definePropType } from 'element-plus/es/utils/index.mjs';
|
|
12
|
-
import { cloneDeep } from 'lodash-es';
|
|
13
|
-
|
|
14
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
-
var _hoisted_1 = ["onClick"];
|
|
17
|
-
var _hoisted_2 = ["disabled"];
|
|
18
|
-
var _hoisted_3 = ["disabled"];
|
|
19
|
-
var _hoisted_4 = {
|
|
20
|
-
"class": "flex justify-end my-2 mr-5"
|
|
21
|
-
};
|
|
22
|
-
var unit = 'year';
|
|
23
|
-
var script = defineComponent(_objectSpread(_objectSpread({}, {
|
|
24
|
-
name: 'DatePickerMonthRange'
|
|
25
|
-
}), {}, {
|
|
26
|
-
__name: 'panel-month-range',
|
|
27
|
-
props: {
|
|
28
|
-
unlinkPanels: Boolean,
|
|
29
|
-
visible: Boolean,
|
|
30
|
-
parsedValue: definePropType(Array)
|
|
31
|
-
},
|
|
32
|
-
emits: [].concat(_toConsumableArray(panelMonthRangeEmits), ["hide"]),
|
|
33
|
-
setup: function setup(__props, _ref) {
|
|
34
|
-
var _props$parsedValue, _props$parsedValue2;
|
|
35
|
-
var __emit = _ref.emit;
|
|
36
|
-
var props = __props;
|
|
37
|
-
var emit = __emit;
|
|
38
|
-
var _useLocale = useLocale(),
|
|
39
|
-
lang = _useLocale.lang;
|
|
40
|
-
var pickerBase = inject('EP_PICKER_BASE');
|
|
41
|
-
var _pickerBase$props = pickerBase.props,
|
|
42
|
-
shortcuts = _pickerBase$props.shortcuts,
|
|
43
|
-
disabledDate = _pickerBase$props.disabledDate,
|
|
44
|
-
format = _pickerBase$props.format;
|
|
45
|
-
var leftDate = ref(((_props$parsedValue = props.parsedValue) === null || _props$parsedValue === void 0 ? void 0 : _props$parsedValue[0]) || dayjs().locale(lang.value));
|
|
46
|
-
var rightDate = ref(((_props$parsedValue2 = props.parsedValue) === null || _props$parsedValue2 === void 0 ? void 0 : _props$parsedValue2[1]) || dayjs().locale(lang.value).add(1, unit));
|
|
47
|
-
var parsedValue = ref([cloneDeep(leftDate.value), cloneDeep(rightDate.value)]);
|
|
48
|
-
var _useRangePicker = useRangePicker(props, {
|
|
49
|
-
leftDate: leftDate,
|
|
50
|
-
rightDate: rightDate,
|
|
51
|
-
unit: unit,
|
|
52
|
-
parsedValue: parsedValue,
|
|
53
|
-
disabledDate: disabledDate
|
|
54
|
-
}),
|
|
55
|
-
ppNs = _useRangePicker.ppNs,
|
|
56
|
-
drpNs = _useRangePicker.drpNs,
|
|
57
|
-
handleRangeConfirm = _useRangePicker.handleRangeConfirm,
|
|
58
|
-
leftDisableDate = _useRangePicker.leftDisableDate,
|
|
59
|
-
rightDisableDate = _useRangePicker.rightDisableDate,
|
|
60
|
-
t = _useRangePicker.t,
|
|
61
|
-
handleShortcutClick = _useRangePicker.handleShortcutClick;
|
|
62
|
-
var hasShortcuts = computed(function () {
|
|
63
|
-
return !!shortcuts.length;
|
|
64
|
-
});
|
|
65
|
-
var _useMonthRangeHeader = useMonthRangeHeader({
|
|
66
|
-
unlinkPanels: toRef(props, 'unlinkPanels'),
|
|
67
|
-
leftDate: leftDate,
|
|
68
|
-
rightDate: rightDate
|
|
69
|
-
}),
|
|
70
|
-
leftPrevYear = _useMonthRangeHeader.leftPrevYear,
|
|
71
|
-
rightNextYear = _useMonthRangeHeader.rightNextYear,
|
|
72
|
-
leftNextYear = _useMonthRangeHeader.leftNextYear,
|
|
73
|
-
rightPrevYear = _useMonthRangeHeader.rightPrevYear,
|
|
74
|
-
leftLabel = _useMonthRangeHeader.leftLabel,
|
|
75
|
-
rightLabel = _useMonthRangeHeader.rightLabel,
|
|
76
|
-
leftYear = _useMonthRangeHeader.leftYear,
|
|
77
|
-
rightYear = _useMonthRangeHeader.rightYear;
|
|
78
|
-
var enableYearArrow = computed(function () {
|
|
79
|
-
return props.unlinkPanels && rightYear.value > leftYear.value;
|
|
80
|
-
});
|
|
81
|
-
var handleRangePick = function handleRangePick(month, type) {
|
|
82
|
-
if (type == 1) {
|
|
83
|
-
leftDate.value = leftDate.value.startOf('month').month(month);
|
|
84
|
-
parsedValue.value[0] = cloneDeep(leftDate.value);
|
|
85
|
-
} else {
|
|
86
|
-
rightDate.value = rightDate.value.startOf("month").month(month);
|
|
87
|
-
parsedValue.value[1] = cloneDeep(rightDate.value);
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
var formatToString = function formatToString(days) {
|
|
91
|
-
return days.map(function (day) {
|
|
92
|
-
return day.format(format);
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
emit('set-picker-option', ['formatToString', formatToString]);
|
|
96
|
-
return function (_ctx, _cache) {
|
|
97
|
-
var _component_el_icon = resolveComponent("el-icon");
|
|
98
|
-
var _component_el_button = resolveComponent("el-button");
|
|
99
|
-
return openBlock(), createElementBlock("div", {
|
|
100
|
-
"class": normalizeClass([unref(ppNs).b(), unref(drpNs).b(), {
|
|
101
|
-
'has-sidebar': Boolean(_ctx.$slots.sidebar) || hasShortcuts.value,
|
|
102
|
-
'custom-month-range': true
|
|
103
|
-
}])
|
|
104
|
-
}, [createElementVNode("div", {
|
|
105
|
-
"class": normalizeClass(unref(ppNs).e('body-wrapper'))
|
|
106
|
-
}, [renderSlot(_ctx.$slots, "sidebar", {
|
|
107
|
-
"class": normalizeClass(unref(ppNs).e('sidebar'))
|
|
108
|
-
}), hasShortcuts.value ? (openBlock(), createElementBlock("div", {
|
|
109
|
-
key: 0,
|
|
110
|
-
"class": normalizeClass(unref(ppNs).e('sidebar'))
|
|
111
|
-
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(shortcuts), function (shortcut, key) {
|
|
112
|
-
return openBlock(), createElementBlock("button", {
|
|
113
|
-
key: key,
|
|
114
|
-
type: "button",
|
|
115
|
-
"class": normalizeClass(unref(ppNs).e('shortcut')),
|
|
116
|
-
onClick: function onClick($event) {
|
|
117
|
-
return unref(handleShortcutClick)(shortcut);
|
|
118
|
-
}
|
|
119
|
-
}, toDisplayString(shortcut.text), 11, _hoisted_1);
|
|
120
|
-
}), 128))], 2)) : createCommentVNode("v-if", true), createElementVNode("div", {
|
|
121
|
-
"class": normalizeClass(unref(ppNs).e('body'))
|
|
122
|
-
}, [createElementVNode("div", {
|
|
123
|
-
"class": normalizeClass([[unref(ppNs).e('content'), unref(drpNs).e('content')], "is-left"])
|
|
124
|
-
}, [createElementVNode("div", {
|
|
125
|
-
"class": normalizeClass(unref(drpNs).e('header'))
|
|
126
|
-
}, [createElementVNode("button", {
|
|
127
|
-
type: "button",
|
|
128
|
-
"class": normalizeClass([unref(ppNs).e('icon-btn'), "d-arrow-left"]),
|
|
129
|
-
onClick: _cache[0] || (_cache[0] = function () {
|
|
130
|
-
return unref(leftPrevYear) && unref(leftPrevYear).apply(void 0, arguments);
|
|
131
|
-
})
|
|
132
|
-
}, [createVNode(_component_el_icon, null, {
|
|
133
|
-
"default": withCtx(function () {
|
|
134
|
-
return [createVNode(unref(DArrowLeft))];
|
|
135
|
-
}),
|
|
136
|
-
_: 1
|
|
137
|
-
})], 2), __props.unlinkPanels ? (openBlock(), createElementBlock("button", {
|
|
138
|
-
key: 0,
|
|
139
|
-
type: "button",
|
|
140
|
-
disabled: !enableYearArrow.value,
|
|
141
|
-
"class": normalizeClass([[unref(ppNs).e('icon-btn'), _defineProperty({}, unref(ppNs).is('disabled'), !enableYearArrow.value)], "d-arrow-right"]),
|
|
142
|
-
onClick: _cache[1] || (_cache[1] = function () {
|
|
143
|
-
return unref(leftNextYear) && unref(leftNextYear).apply(void 0, arguments);
|
|
144
|
-
})
|
|
145
|
-
}, [createVNode(_component_el_icon, null, {
|
|
146
|
-
"default": withCtx(function () {
|
|
147
|
-
return [createVNode(unref(DArrowRight))];
|
|
148
|
-
}),
|
|
149
|
-
_: 1
|
|
150
|
-
})], 10, _hoisted_2)) : createCommentVNode("v-if", true), createElementVNode("div", null, toDisplayString(unref(leftLabel)), 1)], 2), createVNode(unref(MonthTable), {
|
|
151
|
-
date: leftDate.value,
|
|
152
|
-
"disabled-date": unref(leftDisableDate),
|
|
153
|
-
"parsed-value": parsedValue.value[0],
|
|
154
|
-
onPick: _cache[2] || (_cache[2] = function ($event) {
|
|
155
|
-
return handleRangePick($event, 1);
|
|
156
|
-
})
|
|
157
|
-
}, null, 8, ["date", "disabled-date", "parsed-value"])], 2), createElementVNode("div", {
|
|
158
|
-
"class": normalizeClass([[unref(ppNs).e('content'), unref(drpNs).e('content')], "is-right"])
|
|
159
|
-
}, [createElementVNode("div", {
|
|
160
|
-
"class": normalizeClass(unref(drpNs).e('header'))
|
|
161
|
-
}, [__props.unlinkPanels ? (openBlock(), createElementBlock("button", {
|
|
162
|
-
key: 0,
|
|
163
|
-
type: "button",
|
|
164
|
-
disabled: !enableYearArrow.value,
|
|
165
|
-
"class": normalizeClass([[unref(ppNs).e('icon-btn'), {
|
|
166
|
-
'is-disabled': !enableYearArrow.value
|
|
167
|
-
}], "d-arrow-left"]),
|
|
168
|
-
onClick: _cache[3] || (_cache[3] = function () {
|
|
169
|
-
return unref(rightPrevYear) && unref(rightPrevYear).apply(void 0, arguments);
|
|
170
|
-
})
|
|
171
|
-
}, [createVNode(_component_el_icon, null, {
|
|
172
|
-
"default": withCtx(function () {
|
|
173
|
-
return [createVNode(unref(DArrowLeft))];
|
|
174
|
-
}),
|
|
175
|
-
_: 1
|
|
176
|
-
})], 10, _hoisted_3)) : createCommentVNode("v-if", true), createElementVNode("button", {
|
|
177
|
-
type: "button",
|
|
178
|
-
"class": normalizeClass([unref(ppNs).e('icon-btn'), "d-arrow-right"]),
|
|
179
|
-
onClick: _cache[4] || (_cache[4] = function () {
|
|
180
|
-
return unref(rightNextYear) && unref(rightNextYear).apply(void 0, arguments);
|
|
181
|
-
})
|
|
182
|
-
}, [createVNode(_component_el_icon, null, {
|
|
183
|
-
"default": withCtx(function () {
|
|
184
|
-
return [createVNode(unref(DArrowRight))];
|
|
185
|
-
}),
|
|
186
|
-
_: 1
|
|
187
|
-
})], 2), createElementVNode("div", null, toDisplayString(unref(rightLabel)), 1)], 2), createVNode(unref(MonthTable), {
|
|
188
|
-
date: rightDate.value,
|
|
189
|
-
"disabled-date": unref(rightDisableDate),
|
|
190
|
-
"parsed-value": parsedValue.value[1],
|
|
191
|
-
onPick: _cache[5] || (_cache[5] = function ($event) {
|
|
192
|
-
return handleRangePick($event, 2);
|
|
193
|
-
})
|
|
194
|
-
}, null, 8, ["date", "disabled-date", "parsed-value"])], 2)], 2)], 2), createElementVNode("div", _hoisted_4, [createCommentVNode(" <el-button @click=\"closePanel\" size=\"small\">{{ t('el.datepicker.clear') }}</el-button>"), createVNode(_component_el_button, {
|
|
195
|
-
type: "primary",
|
|
196
|
-
onClick: _cache[6] || (_cache[6] = function ($event) {
|
|
197
|
-
return unref(handleRangeConfirm)();
|
|
198
|
-
}),
|
|
199
|
-
size: "small"
|
|
200
|
-
}, {
|
|
201
|
-
"default": withCtx(function () {
|
|
202
|
-
return [createTextVNode(toDisplayString(unref(t)('el.datepicker.confirm')), 1)];
|
|
203
|
-
}),
|
|
204
|
-
_: 1
|
|
205
|
-
})])], 2);
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
}));
|
|
209
|
-
|
|
210
|
-
export { script as default };
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
-
readonly type: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => import("element-plus/es/components/date-picker/src/date-picker.type").IDatePickerType) | ((new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => import("element-plus/es/components/date-picker/src/date-picker.type").IDatePickerType))[], unknown, unknown, "date", boolean>;
|
|
3
|
-
readonly showNow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
4
|
-
readonly showFooter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
5
|
-
readonly showWeekNumber: BooleanConstructor;
|
|
6
|
-
readonly ariaLabel: StringConstructor;
|
|
7
|
-
readonly emptyValues: ArrayConstructor;
|
|
8
|
-
readonly valueOnClear: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null))[], unknown, unknown, undefined, boolean>;
|
|
9
|
-
readonly disabledDate: {
|
|
10
|
-
readonly type: import("vue").PropType<Function>;
|
|
11
|
-
readonly required: false;
|
|
12
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13
|
-
__epPropKey: true;
|
|
14
|
-
};
|
|
15
|
-
readonly cellClassName: {
|
|
16
|
-
readonly type: import("vue").PropType<Function>;
|
|
17
|
-
readonly required: false;
|
|
18
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
19
|
-
__epPropKey: true;
|
|
20
|
-
};
|
|
21
|
-
readonly shortcuts: import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
|
22
|
-
readonly arrowControl: BooleanConstructor;
|
|
23
|
-
readonly tabindex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
24
|
-
readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
25
|
-
readonly unlinkPanels: BooleanConstructor;
|
|
26
|
-
readonly placement: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement))[], import("element-plus").Placement, unknown, "bottom", boolean>;
|
|
27
|
-
readonly fallbackPlacements: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | ((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]))[], unknown, unknown, readonly ["bottom", "top", "right", "left"], boolean>;
|
|
28
|
-
readonly disabledHours: {
|
|
29
|
-
readonly type: import("vue").PropType<import("element-plus/es/components/time-picker").GetDisabledHours>;
|
|
30
|
-
readonly required: false;
|
|
31
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
32
|
-
__epPropKey: true;
|
|
33
|
-
};
|
|
34
|
-
readonly disabledMinutes: {
|
|
35
|
-
readonly type: import("vue").PropType<import("element-plus/es/components/time-picker").GetDisabledMinutes>;
|
|
36
|
-
readonly required: false;
|
|
37
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
38
|
-
__epPropKey: true;
|
|
39
|
-
};
|
|
40
|
-
readonly disabledSeconds: {
|
|
41
|
-
readonly type: import("vue").PropType<import("element-plus/es/components/time-picker").GetDisabledSeconds>;
|
|
42
|
-
readonly required: false;
|
|
43
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
44
|
-
__epPropKey: true;
|
|
45
|
-
};
|
|
46
|
-
readonly id: {
|
|
47
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus/es/components/time-picker").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus/es/components/time-picker").SingleOrRange<string>))[], unknown, unknown>>;
|
|
48
|
-
readonly required: false;
|
|
49
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
50
|
-
__epPropKey: true;
|
|
51
|
-
};
|
|
52
|
-
readonly name: {
|
|
53
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus/es/components/time-picker").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus/es/components/time-picker").SingleOrRange<string>))[], unknown, unknown>>;
|
|
54
|
-
readonly required: false;
|
|
55
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
56
|
-
__epPropKey: true;
|
|
57
|
-
};
|
|
58
|
-
readonly popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
59
|
-
readonly format: StringConstructor;
|
|
60
|
-
readonly valueFormat: StringConstructor;
|
|
61
|
-
readonly dateFormat: StringConstructor;
|
|
62
|
-
readonly timeFormat: StringConstructor;
|
|
63
|
-
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
64
|
-
readonly clearIcon: {
|
|
65
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
|
|
66
|
-
readonly required: false;
|
|
67
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
68
|
-
__epPropKey: true;
|
|
69
|
-
};
|
|
70
|
-
readonly editable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
71
|
-
readonly prefixIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown, "", boolean>;
|
|
72
|
-
readonly size: {
|
|
73
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
74
|
-
readonly required: false;
|
|
75
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
76
|
-
__epPropKey: true;
|
|
77
|
-
};
|
|
78
|
-
readonly readonly: BooleanConstructor;
|
|
79
|
-
readonly disabled: BooleanConstructor;
|
|
80
|
-
readonly placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
81
|
-
readonly popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>) | ((new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
82
|
-
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | string[] | [import("element-plus/es/components/time-picker").DateModelType, import("element-plus/es/components/time-picker").DateModelType]) | (() => import("element-plus/es/components/time-picker").ModelValueType | null) | ((new (...args: any[]) => string | number | Date | string[] | [import("element-plus/es/components/time-picker").DateModelType, import("element-plus/es/components/time-picker").DateModelType]) | (() => import("element-plus/es/components/time-picker").ModelValueType | null))[], unknown, unknown, "", boolean>;
|
|
83
|
-
readonly rangeSeparator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
84
|
-
readonly startPlaceholder: StringConstructor;
|
|
85
|
-
readonly endPlaceholder: StringConstructor;
|
|
86
|
-
readonly defaultValue: {
|
|
87
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus/es/components/time-picker").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus/es/components/time-picker").SingleOrRange<Date>))[], unknown, unknown>>;
|
|
88
|
-
readonly required: false;
|
|
89
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
90
|
-
__epPropKey: true;
|
|
91
|
-
};
|
|
92
|
-
readonly defaultTime: {
|
|
93
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus/es/components/time-picker").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus/es/components/time-picker").SingleOrRange<Date>))[], unknown, unknown>>;
|
|
94
|
-
readonly required: false;
|
|
95
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
96
|
-
__epPropKey: true;
|
|
97
|
-
};
|
|
98
|
-
readonly isRange: BooleanConstructor;
|
|
99
|
-
}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
100
|
-
readonly type: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => import("element-plus/es/components/date-picker/src/date-picker.type").IDatePickerType) | ((new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => import("element-plus/es/components/date-picker/src/date-picker.type").IDatePickerType))[], unknown, unknown, "date", boolean>;
|
|
101
|
-
readonly showNow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
102
|
-
readonly showFooter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
103
|
-
readonly showWeekNumber: BooleanConstructor;
|
|
104
|
-
readonly ariaLabel: StringConstructor;
|
|
105
|
-
readonly emptyValues: ArrayConstructor;
|
|
106
|
-
readonly valueOnClear: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null))[], unknown, unknown, undefined, boolean>;
|
|
107
|
-
readonly disabledDate: {
|
|
108
|
-
readonly type: import("vue").PropType<Function>;
|
|
109
|
-
readonly required: false;
|
|
110
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
111
|
-
__epPropKey: true;
|
|
112
|
-
};
|
|
113
|
-
readonly cellClassName: {
|
|
114
|
-
readonly type: import("vue").PropType<Function>;
|
|
115
|
-
readonly required: false;
|
|
116
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
117
|
-
__epPropKey: true;
|
|
118
|
-
};
|
|
119
|
-
readonly shortcuts: import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
|
120
|
-
readonly arrowControl: BooleanConstructor;
|
|
121
|
-
readonly tabindex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
122
|
-
readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
123
|
-
readonly unlinkPanels: BooleanConstructor;
|
|
124
|
-
readonly placement: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement))[], import("element-plus").Placement, unknown, "bottom", boolean>;
|
|
125
|
-
readonly fallbackPlacements: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | ((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]))[], unknown, unknown, readonly ["bottom", "top", "right", "left"], boolean>;
|
|
126
|
-
readonly disabledHours: {
|
|
127
|
-
readonly type: import("vue").PropType<import("element-plus/es/components/time-picker").GetDisabledHours>;
|
|
128
|
-
readonly required: false;
|
|
129
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
130
|
-
__epPropKey: true;
|
|
131
|
-
};
|
|
132
|
-
readonly disabledMinutes: {
|
|
133
|
-
readonly type: import("vue").PropType<import("element-plus/es/components/time-picker").GetDisabledMinutes>;
|
|
134
|
-
readonly required: false;
|
|
135
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
136
|
-
__epPropKey: true;
|
|
137
|
-
};
|
|
138
|
-
readonly disabledSeconds: {
|
|
139
|
-
readonly type: import("vue").PropType<import("element-plus/es/components/time-picker").GetDisabledSeconds>;
|
|
140
|
-
readonly required: false;
|
|
141
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
142
|
-
__epPropKey: true;
|
|
143
|
-
};
|
|
144
|
-
readonly id: {
|
|
145
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus/es/components/time-picker").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus/es/components/time-picker").SingleOrRange<string>))[], unknown, unknown>>;
|
|
146
|
-
readonly required: false;
|
|
147
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
148
|
-
__epPropKey: true;
|
|
149
|
-
};
|
|
150
|
-
readonly name: {
|
|
151
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus/es/components/time-picker").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus/es/components/time-picker").SingleOrRange<string>))[], unknown, unknown>>;
|
|
152
|
-
readonly required: false;
|
|
153
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
154
|
-
__epPropKey: true;
|
|
155
|
-
};
|
|
156
|
-
readonly popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
157
|
-
readonly format: StringConstructor;
|
|
158
|
-
readonly valueFormat: StringConstructor;
|
|
159
|
-
readonly dateFormat: StringConstructor;
|
|
160
|
-
readonly timeFormat: StringConstructor;
|
|
161
|
-
readonly clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
162
|
-
readonly clearIcon: {
|
|
163
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
|
|
164
|
-
readonly required: false;
|
|
165
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
166
|
-
__epPropKey: true;
|
|
167
|
-
};
|
|
168
|
-
readonly editable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
169
|
-
readonly prefixIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown, "", boolean>;
|
|
170
|
-
readonly size: {
|
|
171
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
172
|
-
readonly required: false;
|
|
173
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
174
|
-
__epPropKey: true;
|
|
175
|
-
};
|
|
176
|
-
readonly readonly: BooleanConstructor;
|
|
177
|
-
readonly disabled: BooleanConstructor;
|
|
178
|
-
readonly placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
179
|
-
readonly popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>) | ((new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
180
|
-
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | Date | string[] | [import("element-plus/es/components/time-picker").DateModelType, import("element-plus/es/components/time-picker").DateModelType]) | (() => import("element-plus/es/components/time-picker").ModelValueType | null) | ((new (...args: any[]) => string | number | Date | string[] | [import("element-plus/es/components/time-picker").DateModelType, import("element-plus/es/components/time-picker").DateModelType]) | (() => import("element-plus/es/components/time-picker").ModelValueType | null))[], unknown, unknown, "", boolean>;
|
|
181
|
-
readonly rangeSeparator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
182
|
-
readonly startPlaceholder: StringConstructor;
|
|
183
|
-
readonly endPlaceholder: StringConstructor;
|
|
184
|
-
readonly defaultValue: {
|
|
185
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus/es/components/time-picker").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus/es/components/time-picker").SingleOrRange<Date>))[], unknown, unknown>>;
|
|
186
|
-
readonly required: false;
|
|
187
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
188
|
-
__epPropKey: true;
|
|
189
|
-
};
|
|
190
|
-
readonly defaultTime: {
|
|
191
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus/es/components/time-picker").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus/es/components/time-picker").SingleOrRange<Date>))[], unknown, unknown>>;
|
|
192
|
-
readonly required: false;
|
|
193
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
194
|
-
__epPropKey: true;
|
|
195
|
-
};
|
|
196
|
-
readonly isRange: BooleanConstructor;
|
|
197
|
-
}>> & Readonly<{
|
|
198
|
-
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
199
|
-
}>, {
|
|
200
|
-
readonly type: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => import("element-plus/es/components/date-picker/src/date-picker.type").IDatePickerType) | ((new (...args: any[]) => "year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => import("element-plus/es/components/date-picker/src/date-picker.type").IDatePickerType))[], unknown, unknown>;
|
|
201
|
-
readonly showNow: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
202
|
-
readonly showFooter: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
203
|
-
readonly showWeekNumber: boolean;
|
|
204
|
-
readonly valueOnClear: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null))[], unknown, unknown>;
|
|
205
|
-
readonly shortcuts: unknown[];
|
|
206
|
-
readonly arrowControl: boolean;
|
|
207
|
-
readonly tabindex: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
|
|
208
|
-
readonly validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
209
|
-
readonly unlinkPanels: boolean;
|
|
210
|
-
readonly placement: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement))[], import("element-plus").Placement, unknown>;
|
|
211
|
-
readonly fallbackPlacements: import("element-plus").Placement[];
|
|
212
|
-
readonly popperClass: string;
|
|
213
|
-
readonly clearable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
214
|
-
readonly editable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
215
|
-
readonly prefixIcon: "";
|
|
216
|
-
readonly readonly: boolean;
|
|
217
|
-
readonly disabled: boolean;
|
|
218
|
-
readonly placeholder: string;
|
|
219
|
-
readonly popperOptions: Partial<import("element-plus").Options>;
|
|
220
|
-
readonly modelValue: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | Date | string[] | [import("element-plus/es/components/time-picker").DateModelType, import("element-plus/es/components/time-picker").DateModelType]) | (() => import("element-plus/es/components/time-picker").ModelValueType | null) | ((new (...args: any[]) => string | number | Date | string[] | [import("element-plus/es/components/time-picker").DateModelType, import("element-plus/es/components/time-picker").DateModelType]) | (() => import("element-plus/es/components/time-picker").ModelValueType | null))[], unknown, unknown>;
|
|
221
|
-
readonly rangeSeparator: string;
|
|
222
|
-
readonly isRange: boolean;
|
|
223
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
224
|
-
export default _default;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { defineComponent, provide, reactive, toRef, ref, createVNode, mergeProps } from 'vue';
|
|
2
|
-
import dayjs from 'dayjs';
|
|
3
|
-
import customParseFormat from 'dayjs/plugin/customParseFormat.js';
|
|
4
|
-
import advancedFormat from 'dayjs/plugin/advancedFormat.js';
|
|
5
|
-
import localeData from 'dayjs/plugin/localeData.js';
|
|
6
|
-
import weekOfYear from 'dayjs/plugin/weekOfYear.js';
|
|
7
|
-
import weekYear from 'dayjs/plugin/weekYear.js';
|
|
8
|
-
import dayOfYear from 'dayjs/plugin/dayOfYear.js';
|
|
9
|
-
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter.js';
|
|
10
|
-
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore.js';
|
|
11
|
-
import { useNamespace } from 'element-plus/es/hooks/index.mjs';
|
|
12
|
-
import { DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_DATE, CommonPicker } from 'element-plus/es/components/time-picker/index';
|
|
13
|
-
import { ROOT_PICKER_INJECTION_KEY } from 'element-plus/es/components/date-picker/src/constants';
|
|
14
|
-
import { datePickerProps } from 'element-plus/es/components/date-picker/src/props/date-picker';
|
|
15
|
-
import { getPanel } from './panel-utils.js';
|
|
16
|
-
import { ElConfigProvider } from 'element-plus';
|
|
17
|
-
import zhCn from 'element-plus/es/locale/lang/zh-cn';
|
|
18
|
-
|
|
19
|
-
dayjs.extend(localeData);
|
|
20
|
-
dayjs.extend(advancedFormat);
|
|
21
|
-
dayjs.extend(customParseFormat);
|
|
22
|
-
dayjs.extend(weekOfYear);
|
|
23
|
-
dayjs.extend(weekYear);
|
|
24
|
-
dayjs.extend(dayOfYear);
|
|
25
|
-
dayjs.extend(isSameOrAfter);
|
|
26
|
-
dayjs.extend(isSameOrBefore);
|
|
27
|
-
var CustomDatePicker = defineComponent({
|
|
28
|
-
name: 'ElDatePicker',
|
|
29
|
-
install: null,
|
|
30
|
-
props: datePickerProps,
|
|
31
|
-
emits: ['update:modelValue'],
|
|
32
|
-
setup: function setup(props, _ref) {
|
|
33
|
-
var expose = _ref.expose,
|
|
34
|
-
emit = _ref.emit,
|
|
35
|
-
slots = _ref.slots;
|
|
36
|
-
var ns = useNamespace('picker-panel');
|
|
37
|
-
provide('ElPopperOptions', reactive(toRef(props, 'popperOptions')));
|
|
38
|
-
provide(ROOT_PICKER_INJECTION_KEY, {
|
|
39
|
-
slots: slots,
|
|
40
|
-
pickerNs: ns
|
|
41
|
-
});
|
|
42
|
-
var commonPicker = ref();
|
|
43
|
-
var refProps = {
|
|
44
|
-
focus: function focus() {
|
|
45
|
-
var _commonPicker$value;
|
|
46
|
-
var focusStartInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
47
|
-
(_commonPicker$value = commonPicker.value) === null || _commonPicker$value === void 0 || _commonPicker$value.focus(focusStartInput);
|
|
48
|
-
},
|
|
49
|
-
handleOpen: function handleOpen() {
|
|
50
|
-
var _commonPicker$value2;
|
|
51
|
-
(_commonPicker$value2 = commonPicker.value) === null || _commonPicker$value2 === void 0 || _commonPicker$value2.handleOpen();
|
|
52
|
-
},
|
|
53
|
-
handleClose: function handleClose() {
|
|
54
|
-
var _commonPicker$value3;
|
|
55
|
-
(_commonPicker$value3 = commonPicker.value) === null || _commonPicker$value3 === void 0 || _commonPicker$value3.handleClose();
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
expose(refProps);
|
|
59
|
-
var onModelValueUpdated = function onModelValueUpdated(val) {
|
|
60
|
-
emit('update:modelValue', val);
|
|
61
|
-
};
|
|
62
|
-
return function () {
|
|
63
|
-
var _props$format;
|
|
64
|
-
var format = (_props$format = props.format) !== null && _props$format !== void 0 ? _props$format : DEFAULT_FORMATS_DATEPICKER[props.type] || DEFAULT_FORMATS_DATE;
|
|
65
|
-
var Component = getPanel(props.type);
|
|
66
|
-
return createVNode(ElConfigProvider, {
|
|
67
|
-
"locale": zhCn
|
|
68
|
-
}, {
|
|
69
|
-
"default": function _default() {
|
|
70
|
-
return [createVNode(CommonPicker, mergeProps(props, {
|
|
71
|
-
"format": format,
|
|
72
|
-
"type": props.type,
|
|
73
|
-
"ref": commonPicker,
|
|
74
|
-
"onUpdate:modelValue": onModelValueUpdated
|
|
75
|
-
}), {
|
|
76
|
-
"default": function _default(scopedProps) {
|
|
77
|
-
return createVNode(Component, scopedProps, null);
|
|
78
|
-
},
|
|
79
|
-
'range-separator': slots['range-separator']
|
|
80
|
-
})];
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
export { CustomDatePicker as default };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import DatePickPanel from 'element-plus/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs';
|
|
2
|
-
import './date-picker-com/panel-date-range.vue.js';
|
|
3
|
-
import './date-picker-com/panel-month-range.vue.js';
|
|
4
|
-
import script from './date-picker-com/panel-month-range.vue2.js';
|
|
5
|
-
import script$1 from './date-picker-com/panel-date-range.vue2.js';
|
|
6
|
-
|
|
7
|
-
var getPanel = function getPanel(type) {
|
|
8
|
-
switch (type) {
|
|
9
|
-
case 'daterange':
|
|
10
|
-
case 'datetimerange':
|
|
11
|
-
{
|
|
12
|
-
return script$1;
|
|
13
|
-
}
|
|
14
|
-
case 'monthrange':
|
|
15
|
-
{
|
|
16
|
-
return script;
|
|
17
|
-
}
|
|
18
|
-
default:
|
|
19
|
-
{
|
|
20
|
-
return DatePickPanel;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export { getPanel };
|