vxe-pc-ui 3.3.66 → 3.3.68
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/es/button/src/button-group.js +1 -0
- package/es/button/src/button.js +19 -5
- package/es/button/style.css +4 -3
- package/es/button/style.min.css +1 -1
- package/es/button-group/style.css +8 -2
- package/es/button-group/style.min.css +1 -1
- package/es/date-picker/src/date-picker.js +101 -20
- package/es/date-picker/style.css +37 -12
- package/es/date-picker/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/image/style.css +4 -0
- package/es/image/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +8 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-button/style.css +4 -3
- package/es/vxe-button/style.min.css +1 -1
- package/es/vxe-button-group/style.css +8 -2
- package/es/vxe-button-group/style.min.css +1 -1
- package/es/vxe-date-picker/style.css +37 -12
- package/es/vxe-date-picker/style.min.css +1 -1
- package/es/vxe-image/style.css +4 -0
- package/es/vxe-image/style.min.css +1 -1
- package/lib/button/src/button-group.js +1 -0
- package/lib/button/src/button-group.min.js +1 -1
- package/lib/button/src/button.js +18 -5
- package/lib/button/src/button.min.js +1 -1
- package/lib/button/style/style.css +4 -3
- package/lib/button/style/style.min.css +1 -1
- package/lib/button-group/style/style.css +8 -2
- package/lib/button-group/style/style.min.css +1 -1
- package/lib/date-picker/src/date-picker.js +103 -19
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/date-picker/style/style.css +37 -12
- package/lib/date-picker/style/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/image/style/style.css +4 -0
- package/lib/image/style/style.min.css +1 -1
- package/lib/index.umd.js +131 -27
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +8 -2
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-button/style/style.css +4 -3
- package/lib/vxe-button/style/style.min.css +1 -1
- package/lib/vxe-button-group/style/style.css +8 -2
- package/lib/vxe-button-group/style/style.min.css +1 -1
- package/lib/vxe-date-picker/style/style.css +37 -12
- package/lib/vxe-date-picker/style/style.min.css +1 -1
- package/lib/vxe-image/style/style.css +4 -0
- package/lib/vxe-image/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/button/src/button-group.ts +1 -0
- package/packages/button/src/button.ts +20 -5
- package/packages/date-picker/src/date-picker.ts +104 -21
- package/packages/ui/index.ts +7 -1
- package/styles/components/button-group.scss +14 -2
- package/styles/components/button.scss +7 -5
- package/styles/components/date-picker.scss +33 -11
- package/styles/components/image.scss +2 -0
- package/types/components/button-group.d.ts +3 -1
- package/types/components/button.d.ts +2 -2
- package/types/components/date-picker.d.ts +33 -2
- package/types/components/table.d.ts +24 -1
- /package/es/icon/{iconfont.1735974857067.ttf → iconfont.1736093232006.ttf} +0 -0
- /package/es/icon/{iconfont.1735974857067.woff → iconfont.1736093232006.woff} +0 -0
- /package/es/icon/{iconfont.1735974857067.woff2 → iconfont.1736093232006.woff2} +0 -0
- /package/es/{iconfont.1735974857067.ttf → iconfont.1736093232006.ttf} +0 -0
- /package/es/{iconfont.1735974857067.woff → iconfont.1736093232006.woff} +0 -0
- /package/es/{iconfont.1735974857067.woff2 → iconfont.1736093232006.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1735974857067.ttf → iconfont.1736093232006.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1735974857067.woff → iconfont.1736093232006.woff} +0 -0
- /package/lib/icon/style/{iconfont.1735974857067.woff2 → iconfont.1736093232006.woff2} +0 -0
- /package/lib/{iconfont.1735974857067.ttf → iconfont.1736093232006.ttf} +0 -0
- /package/lib/{iconfont.1735974857067.woff → iconfont.1736093232006.woff} +0 -0
- /package/lib/{iconfont.1735974857067.woff2 → iconfont.1736093232006.woff2} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.vxe-image.is--circle{border-radius:50%}
|
|
1
|
+
.vxe-image{vertical-align:middle;border-style:none}.vxe-image.is--circle{border-radius:50%}
|
package/lib/index.umd.js
CHANGED
|
@@ -12846,14 +12846,14 @@ var defineVxeComponent = function defineVxeComponent(options) {
|
|
|
12846
12846
|
};
|
|
12847
12847
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
12848
12848
|
|
|
12849
|
-
var log_version = "ui v".concat("3.3.
|
|
12849
|
+
var log_version = "ui v".concat("3.3.68");
|
|
12850
12850
|
var warnLog = log.create('warn', log_version);
|
|
12851
12851
|
var errLog = log.create('error', log_version);
|
|
12852
12852
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
12853
12853
|
|
|
12854
12854
|
|
|
12855
12855
|
|
|
12856
|
-
var ui_version = "3.3.
|
|
12856
|
+
var ui_version = "3.3.68";
|
|
12857
12857
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
12858
12858
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
12859
12859
|
function config(options) {
|
|
@@ -12934,7 +12934,13 @@ setConfig({
|
|
|
12934
12934
|
startDate: new Date(1900, 0, 1),
|
|
12935
12935
|
endDate: new Date(2100, 0, 1),
|
|
12936
12936
|
startDay: 1,
|
|
12937
|
-
selectDay: 1
|
|
12937
|
+
selectDay: 1,
|
|
12938
|
+
shortcutConfig: {
|
|
12939
|
+
// position: 'left',
|
|
12940
|
+
align: 'left',
|
|
12941
|
+
mode: 'text',
|
|
12942
|
+
autoClose: true
|
|
12943
|
+
}
|
|
12938
12944
|
},
|
|
12939
12945
|
drawer: {
|
|
12940
12946
|
// size: null,
|
|
@@ -15407,6 +15413,19 @@ function _toConsumableArray(r) {
|
|
|
15407
15413
|
}
|
|
15408
15414
|
return false;
|
|
15409
15415
|
},
|
|
15416
|
+
computeBtnAlign: function computeBtnAlign() {
|
|
15417
|
+
var $xeButton = this;
|
|
15418
|
+
var props = $xeButton;
|
|
15419
|
+
var align = props.align;
|
|
15420
|
+
var $xeButtonGroup = $xeButton.$xeButtonGroup;
|
|
15421
|
+
if (align) {
|
|
15422
|
+
return align;
|
|
15423
|
+
}
|
|
15424
|
+
if ($xeButtonGroup) {
|
|
15425
|
+
return $xeButtonGroup.align;
|
|
15426
|
+
}
|
|
15427
|
+
return false;
|
|
15428
|
+
},
|
|
15410
15429
|
computeBtnCircle: function computeBtnCircle() {
|
|
15411
15430
|
var $xeButton = this;
|
|
15412
15431
|
var props = $xeButton;
|
|
@@ -15796,7 +15815,6 @@ function _toConsumableArray(r) {
|
|
|
15796
15815
|
var reactData = $xeButton.reactData;
|
|
15797
15816
|
var className = props.className,
|
|
15798
15817
|
popupClassName = props.popupClassName,
|
|
15799
|
-
align = props.align,
|
|
15800
15818
|
trigger = props.trigger,
|
|
15801
15819
|
title = props.title,
|
|
15802
15820
|
routerLink = props.routerLink,
|
|
@@ -15812,6 +15830,7 @@ function _toConsumableArray(r) {
|
|
|
15812
15830
|
var btnStatus = $xeButton.computeBtnStatus;
|
|
15813
15831
|
var btnRound = $xeButton.computeBtnRound;
|
|
15814
15832
|
var btnCircle = $xeButton.computeBtnCircle;
|
|
15833
|
+
var btnAlign = $xeButton.computeBtnAlign;
|
|
15815
15834
|
var btnDisabled = $xeButton.computeBtnDisabled;
|
|
15816
15835
|
var permissionInfo = $xeButton.computePermissionInfo;
|
|
15817
15836
|
var vSize = $xeButton.computeSize;
|
|
@@ -15836,7 +15855,7 @@ function _toConsumableArray(r) {
|
|
|
15836
15855
|
}) : className : '', _defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--active', visiblePanel)]
|
|
15837
15856
|
}, [routerLink ? h('router-link', {
|
|
15838
15857
|
ref: 'refButton',
|
|
15839
|
-
class: ['vxe-button', 'vxe-button--link', "type--".concat(btnMode),
|
|
15858
|
+
class: ['vxe-button', 'vxe-button--link', "type--".concat(btnMode), btnAlign ? "align--".concat(btnAlign) : '', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
|
|
15840
15859
|
$button: $xeButton
|
|
15841
15860
|
}) : className : '', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), "theme--".concat(btnStatus), btnStatus), 'is--round', btnRound), 'is--circle', btnCircle), 'is--disabled', btnDisabled || loading), 'is--loading', loading)],
|
|
15842
15861
|
attrs: {
|
|
@@ -15854,7 +15873,7 @@ function _toConsumableArray(r) {
|
|
|
15854
15873
|
class: "vxe-button--dropdown-arrow ".concat(getIcon().BUTTON_DROPDOWN)
|
|
15855
15874
|
})])) : h('button', {
|
|
15856
15875
|
ref: 'refButton',
|
|
15857
|
-
class: ['vxe-button', "type--".concat(btnMode),
|
|
15876
|
+
class: ['vxe-button', "type--".concat(btnMode), btnAlign ? "align--".concat(btnAlign) : '', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
|
|
15858
15877
|
$button: $xeButton
|
|
15859
15878
|
}) : className : '', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), "theme--".concat(btnStatus), btnStatus), 'is--round', btnRound), 'is--circle', btnCircle), 'is--disabled', btnDisabled || loading), 'is--loading', loading)],
|
|
15860
15879
|
attrs: {
|
|
@@ -15889,7 +15908,7 @@ function _toConsumableArray(r) {
|
|
|
15889
15908
|
if (routerLink) {
|
|
15890
15909
|
return h('router-link', {
|
|
15891
15910
|
ref: 'refButton',
|
|
15892
|
-
class: ['vxe-button', 'vxe-button--link', "type--".concat(btnMode),
|
|
15911
|
+
class: ['vxe-button', 'vxe-button--link', "type--".concat(btnMode), btnAlign ? "align--".concat(btnAlign) : '', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
|
|
15893
15912
|
$button: $xeButton
|
|
15894
15913
|
}) : className : '', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), "theme--".concat(btnStatus), btnStatus), 'is--round', btnRound), 'is--circle', btnCircle), 'is--disabled', btnDisabled || loading), 'is--loading', loading)],
|
|
15895
15914
|
props: {
|
|
@@ -15909,7 +15928,7 @@ function _toConsumableArray(r) {
|
|
|
15909
15928
|
}
|
|
15910
15929
|
return h('button', {
|
|
15911
15930
|
ref: 'refButton',
|
|
15912
|
-
class: ['vxe-button', "type--".concat(btnMode),
|
|
15931
|
+
class: ['vxe-button', "type--".concat(btnMode), btnAlign ? "align--".concat(btnAlign) : '', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
|
|
15913
15932
|
$button: $xeButton
|
|
15914
15933
|
}) : className : '', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), "theme--".concat(btnStatus), btnStatus), 'is--round', btnRound), 'is--circle', btnCircle), 'is--disabled', btnDisabled || loading), 'is--loading', loading)],
|
|
15915
15934
|
attrs: {
|
|
@@ -15991,6 +16010,7 @@ var es_array_find = __webpack_require__(113);
|
|
|
15991
16010
|
round: Boolean,
|
|
15992
16011
|
vertical: Boolean,
|
|
15993
16012
|
circle: Boolean,
|
|
16013
|
+
align: String,
|
|
15994
16014
|
className: [String, Function],
|
|
15995
16015
|
disabled: Boolean,
|
|
15996
16016
|
permissionCode: [String, Number],
|
|
@@ -24068,6 +24088,7 @@ var Countdown = VxeCountdown;
|
|
|
24068
24088
|
|
|
24069
24089
|
|
|
24070
24090
|
|
|
24091
|
+
|
|
24071
24092
|
|
|
24072
24093
|
|
|
24073
24094
|
/* harmony default export */ var date_picker = (defineVxeComponent({
|
|
@@ -24171,6 +24192,7 @@ var Countdown = VxeCountdown;
|
|
|
24171
24192
|
type: Boolean,
|
|
24172
24193
|
default: null
|
|
24173
24194
|
},
|
|
24195
|
+
shortcutConfig: Object,
|
|
24174
24196
|
// 已废弃 startWeek,被 startDay 替换
|
|
24175
24197
|
startWeek: Number,
|
|
24176
24198
|
// 已废弃
|
|
@@ -24722,6 +24744,11 @@ var Countdown = VxeCountdown;
|
|
|
24722
24744
|
var props = $xeDatePicker;
|
|
24723
24745
|
var immediate = props.immediate;
|
|
24724
24746
|
return immediate;
|
|
24747
|
+
},
|
|
24748
|
+
computeShortcutOpts: function computeShortcutOpts() {
|
|
24749
|
+
var $xeDatePicker = this;
|
|
24750
|
+
var props = $xeDatePicker;
|
|
24751
|
+
return Object.assign({}, getConfig().datePicker.shortcutConfig, props.shortcutConfig);
|
|
24725
24752
|
}
|
|
24726
24753
|
}),
|
|
24727
24754
|
methods: {
|
|
@@ -24788,10 +24815,17 @@ var Countdown = VxeCountdown;
|
|
|
24788
24815
|
parseDate: function parseDate(value, format) {
|
|
24789
24816
|
var $xeDatePicker = this;
|
|
24790
24817
|
var props = $xeDatePicker;
|
|
24791
|
-
var type = props.type
|
|
24818
|
+
var type = props.type,
|
|
24819
|
+
multiple = props.multiple;
|
|
24792
24820
|
if (type === 'time') {
|
|
24793
24821
|
return toStringTimeDate(value);
|
|
24794
24822
|
}
|
|
24823
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(value)) {
|
|
24824
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toStringDate(value[0], format);
|
|
24825
|
+
}
|
|
24826
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(value)) {
|
|
24827
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toStringDate(multiple ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().last(value.split(',')) : value, format);
|
|
24828
|
+
}
|
|
24795
24829
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toStringDate(value, format);
|
|
24796
24830
|
},
|
|
24797
24831
|
triggerEvent: function triggerEvent(evnt) {
|
|
@@ -24983,7 +25017,7 @@ var Countdown = VxeCountdown;
|
|
|
24983
25017
|
reactData.selectMonth = month;
|
|
24984
25018
|
}
|
|
24985
25019
|
},
|
|
24986
|
-
dateChange: function dateChange(date) {
|
|
25020
|
+
dateChange: function dateChange(date, isReload) {
|
|
24987
25021
|
var $xeDatePicker = this;
|
|
24988
25022
|
var props = $xeDatePicker;
|
|
24989
25023
|
var reactData = $xeDatePicker.reactData;
|
|
@@ -25008,10 +25042,9 @@ var Countdown = VxeCountdown;
|
|
|
25008
25042
|
$xeDatePicker.dateCheckMonth(date);
|
|
25009
25043
|
if (multiple) {
|
|
25010
25044
|
// 如果为多选
|
|
25011
|
-
var dateMultipleValue = $xeDatePicker.computeDateMultipleValue;
|
|
25012
25045
|
if (isDateTimeType) {
|
|
25013
25046
|
// 如果是datetime特殊类型
|
|
25014
|
-
var dateListValue = _toConsumableArray($xeDatePicker.computeDateListValue);
|
|
25047
|
+
var dateListValue = isReload ? [] : _toConsumableArray($xeDatePicker.computeDateListValue);
|
|
25015
25048
|
var datetimeRest = [];
|
|
25016
25049
|
var eqIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(dateListValue, function (val) {
|
|
25017
25050
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isDateSame(date, val, 'yyyyMMdd');
|
|
@@ -25037,6 +25070,7 @@ var Countdown = VxeCountdown;
|
|
|
25037
25070
|
type: 'update'
|
|
25038
25071
|
});
|
|
25039
25072
|
} else {
|
|
25073
|
+
var dateMultipleValue = isReload ? [] : $xeDatePicker.computeDateMultipleValue;
|
|
25040
25074
|
// 如果是日期类型
|
|
25041
25075
|
if (dateMultipleValue.some(function (val) {
|
|
25042
25076
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(val, inpVal);
|
|
@@ -25162,8 +25196,23 @@ var Countdown = VxeCountdown;
|
|
|
25162
25196
|
},
|
|
25163
25197
|
dateNowHandle: function dateNowHandle() {
|
|
25164
25198
|
var $xeDatePicker = this;
|
|
25199
|
+
var props = $xeDatePicker;
|
|
25165
25200
|
var reactData = $xeDatePicker.reactData;
|
|
25166
|
-
var
|
|
25201
|
+
var type = props.type;
|
|
25202
|
+
var firstDayOfWeek = $xeDatePicker.computeFirstDayOfWeek;
|
|
25203
|
+
var currentDate = new Date();
|
|
25204
|
+
switch (type) {
|
|
25205
|
+
case 'week':
|
|
25206
|
+
currentDate = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatWeek(currentDate, 0, firstDayOfWeek);
|
|
25207
|
+
break;
|
|
25208
|
+
case 'datetime':
|
|
25209
|
+
currentDate = new Date();
|
|
25210
|
+
reactData.datetimePanelValue = new Date();
|
|
25211
|
+
break;
|
|
25212
|
+
default:
|
|
25213
|
+
currentDate = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(Date.now(), 0, 'first');
|
|
25214
|
+
break;
|
|
25215
|
+
}
|
|
25167
25216
|
reactData.currentDate = currentDate;
|
|
25168
25217
|
$xeDatePicker.dateMonthHandle(currentDate, 0);
|
|
25169
25218
|
},
|
|
@@ -25223,8 +25272,8 @@ var Countdown = VxeCountdown;
|
|
|
25223
25272
|
var props = $xeDatePicker;
|
|
25224
25273
|
var reactData = $xeDatePicker.reactData;
|
|
25225
25274
|
$xeDatePicker.dateNowHandle();
|
|
25275
|
+
$xeDatePicker.dateChange(reactData.currentDate, true);
|
|
25226
25276
|
if (!props.multiple) {
|
|
25227
|
-
$xeDatePicker.dateChange(reactData.currentDate);
|
|
25228
25277
|
$xeDatePicker.hidePanel();
|
|
25229
25278
|
}
|
|
25230
25279
|
$xeDatePicker.dispatchEvent('date-today', {
|
|
@@ -25558,19 +25607,27 @@ var Countdown = VxeCountdown;
|
|
|
25558
25607
|
offsetMonth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatMonth(offsetMonth, 4);
|
|
25559
25608
|
}
|
|
25560
25609
|
$xeDatePicker.dateMoveMonth(offsetMonth);
|
|
25561
|
-
} else {
|
|
25610
|
+
} else if (datePanelType === 'week') {
|
|
25562
25611
|
var offsetDay = datePanelValue || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(Date.now(), 0, 'first');
|
|
25563
25612
|
var firstDayOfWeek = $xeDatePicker.computeFirstDayOfWeek;
|
|
25564
|
-
if (
|
|
25565
|
-
offsetDay = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(offsetDay, -1);
|
|
25566
|
-
} else if (isUpArrow) {
|
|
25613
|
+
if (isUpArrow) {
|
|
25567
25614
|
offsetDay = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatWeek(offsetDay, -1, firstDayOfWeek);
|
|
25568
|
-
} else if (isRightArrow) {
|
|
25569
|
-
offsetDay = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(offsetDay, 1);
|
|
25570
25615
|
} else if (isDwArrow) {
|
|
25571
25616
|
offsetDay = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatWeek(offsetDay, 1, firstDayOfWeek);
|
|
25572
25617
|
}
|
|
25573
25618
|
$xeDatePicker.dateMoveDay(offsetDay);
|
|
25619
|
+
} else {
|
|
25620
|
+
var _offsetDay = datePanelValue || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(Date.now(), 0, 'first');
|
|
25621
|
+
if (isLeftArrow) {
|
|
25622
|
+
_offsetDay = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(_offsetDay, -1);
|
|
25623
|
+
} else if (isUpArrow) {
|
|
25624
|
+
_offsetDay = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatWeek(_offsetDay, -1, _offsetDay.getDay());
|
|
25625
|
+
} else if (isRightArrow) {
|
|
25626
|
+
_offsetDay = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(_offsetDay, 1);
|
|
25627
|
+
} else if (isDwArrow) {
|
|
25628
|
+
_offsetDay = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatWeek(_offsetDay, 1, _offsetDay.getDay());
|
|
25629
|
+
}
|
|
25630
|
+
$xeDatePicker.dateMoveDay(_offsetDay);
|
|
25574
25631
|
}
|
|
25575
25632
|
}
|
|
25576
25633
|
},
|
|
@@ -25751,6 +25808,25 @@ var Countdown = VxeCountdown;
|
|
|
25751
25808
|
var $xeDatePicker = this;
|
|
25752
25809
|
$xeDatePicker.triggerEvent(evnt);
|
|
25753
25810
|
},
|
|
25811
|
+
handleShortcutEvent: function handleShortcutEvent(_ref) {
|
|
25812
|
+
var option = _ref.option,
|
|
25813
|
+
$event = _ref.$event;
|
|
25814
|
+
var $xeDatePicker = this;
|
|
25815
|
+
var shortcutOpts = $xeDatePicker.computeShortcutOpts;
|
|
25816
|
+
var autoClose = shortcutOpts.autoClose;
|
|
25817
|
+
var clickMethod = option.clickMethod || shortcutOpts.clickMethod;
|
|
25818
|
+
var shortcutParams = {
|
|
25819
|
+
$datePicker: $xeDatePicker,
|
|
25820
|
+
option: option
|
|
25821
|
+
};
|
|
25822
|
+
if (clickMethod) {
|
|
25823
|
+
clickMethod(shortcutParams);
|
|
25824
|
+
}
|
|
25825
|
+
if (autoClose) {
|
|
25826
|
+
$xeDatePicker.hidePanel();
|
|
25827
|
+
}
|
|
25828
|
+
$xeDatePicker.dispatchEvent('shortcut-click', shortcutParams, $event);
|
|
25829
|
+
},
|
|
25754
25830
|
// 全局事件
|
|
25755
25831
|
handleGlobalMousedownEvent: function handleGlobalMousedownEvent(evnt) {
|
|
25756
25832
|
var $xeDatePicker = this;
|
|
@@ -26303,6 +26379,30 @@ var Countdown = VxeCountdown;
|
|
|
26303
26379
|
}, item.label);
|
|
26304
26380
|
})) : renderEmptyElement($xeDatePicker)])];
|
|
26305
26381
|
},
|
|
26382
|
+
renderShortcutBtn: function renderShortcutBtn(h, pos, isVertical) {
|
|
26383
|
+
var $xeDatePicker = this;
|
|
26384
|
+
var shortcutOpts = $xeDatePicker.computeShortcutOpts;
|
|
26385
|
+
var options = shortcutOpts.options,
|
|
26386
|
+
position = shortcutOpts.position,
|
|
26387
|
+
align = shortcutOpts.align,
|
|
26388
|
+
mode = shortcutOpts.mode;
|
|
26389
|
+
if (isEnableConf(shortcutOpts) && options && options.length && (position || 'left') === pos) {
|
|
26390
|
+
return h('div', {
|
|
26391
|
+
class: "vxe-date-picker--panel-".concat(pos, "-wrapper")
|
|
26392
|
+
}, [h(button_group, {
|
|
26393
|
+
props: {
|
|
26394
|
+
options: options,
|
|
26395
|
+
mode: mode,
|
|
26396
|
+
align: align,
|
|
26397
|
+
vertical: isVertical
|
|
26398
|
+
},
|
|
26399
|
+
on: {
|
|
26400
|
+
click: $xeDatePicker.handleShortcutEvent
|
|
26401
|
+
}
|
|
26402
|
+
})]);
|
|
26403
|
+
}
|
|
26404
|
+
return renderEmptyElement($xeDatePicker);
|
|
26405
|
+
},
|
|
26306
26406
|
renderPanel: function renderPanel(h) {
|
|
26307
26407
|
var $xeDatePicker = this;
|
|
26308
26408
|
var props = $xeDatePicker;
|
|
@@ -26316,12 +26416,16 @@ var Countdown = VxeCountdown;
|
|
|
26316
26416
|
panelStyle = reactData.panelStyle;
|
|
26317
26417
|
var vSize = $xeDatePicker.computeSize;
|
|
26318
26418
|
var btnTransfer = $xeDatePicker.computeBtnTransfer;
|
|
26419
|
+
var shortcutOpts = $xeDatePicker.computeShortcutOpts;
|
|
26420
|
+
var options = shortcutOpts.options,
|
|
26421
|
+
position = shortcutOpts.position;
|
|
26319
26422
|
var headerSlot = slots.header;
|
|
26320
26423
|
var footerSlot = slots.footer;
|
|
26321
26424
|
var topSlot = slots.top;
|
|
26322
26425
|
var bottomSlot = slots.bottom;
|
|
26323
26426
|
var leftSlot = slots.left;
|
|
26324
26427
|
var rightSlot = slots.right;
|
|
26428
|
+
var hasShortcutBtn = options && options.length;
|
|
26325
26429
|
var renders = [];
|
|
26326
26430
|
if (type === 'datetime') {
|
|
26327
26431
|
renders.push(h('div', {
|
|
@@ -26348,7 +26452,7 @@ var Countdown = VxeCountdown;
|
|
|
26348
26452
|
}
|
|
26349
26453
|
return h('div', {
|
|
26350
26454
|
ref: 'refInputPanel',
|
|
26351
|
-
class: ['vxe-table--ignore-clear vxe-date-picker--panel', "type--".concat(type), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--transfer', btnTransfer), 'ani--leave', isAniVisible), 'ani--enter', visiblePanel), 'show--top', !!(topSlot || headerSlot)), 'show--bottom', !!(bottomSlot || footerSlot)), 'show--left', !!leftSlot), 'show--right', !!rightSlot)],
|
|
26455
|
+
class: ['vxe-table--ignore-clear vxe-date-picker--panel', "type--".concat(type), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--transfer', btnTransfer), 'ani--leave', isAniVisible), 'ani--enter', visiblePanel), 'show--top', !!(topSlot || headerSlot || hasShortcutBtn && (position === 'top' || position === 'header'))), 'show--bottom', !!(bottomSlot || footerSlot || hasShortcutBtn && (position === 'bottom' || position === 'footer'))), 'show--left', !!(leftSlot || hasShortcutBtn && position === 'left')), 'show--right', !!(rightSlot || hasShortcutBtn && position === 'right'))],
|
|
26352
26456
|
attrs: {
|
|
26353
26457
|
placement: panelPlacement
|
|
26354
26458
|
},
|
|
@@ -26357,23 +26461,23 @@ var Countdown = VxeCountdown;
|
|
|
26357
26461
|
class: 'vxe-date-picker--panel-layout-wrapper'
|
|
26358
26462
|
}, [topSlot ? h('div', {
|
|
26359
26463
|
class: 'vxe-date-picker--panel-top-wrapper'
|
|
26360
|
-
}, topSlot({})) :
|
|
26464
|
+
}, topSlot({})) : $xeDatePicker.renderShortcutBtn(h, 'top'), h('div', {
|
|
26361
26465
|
class: 'vxe-date-picker--panel-body-layout-wrapper'
|
|
26362
26466
|
}, [leftSlot ? h('div', {
|
|
26363
26467
|
class: 'vxe-date-picker--panel-left-wrapper'
|
|
26364
|
-
}, leftSlot({})) :
|
|
26468
|
+
}, leftSlot({})) : $xeDatePicker.renderShortcutBtn(h, 'left', true), h('div', {
|
|
26365
26469
|
class: 'vxe-date-picker--panel-body-content-wrapper'
|
|
26366
26470
|
}, [headerSlot ? h('div', {
|
|
26367
26471
|
class: 'vxe-date-picker--panel-header-wrapper'
|
|
26368
|
-
}, headerSlot({})) :
|
|
26472
|
+
}, headerSlot({})) : $xeDatePicker.renderShortcutBtn(h, 'header'), h('div', {
|
|
26369
26473
|
class: 'vxe-date-picker--panel-body-wrapper'
|
|
26370
26474
|
}, renders), footerSlot ? h('div', {
|
|
26371
26475
|
class: 'vxe-date-picker--panel-footer-wrapper'
|
|
26372
|
-
}, footerSlot({})) :
|
|
26476
|
+
}, footerSlot({})) : $xeDatePicker.renderShortcutBtn(h, 'footer')]), rightSlot ? h('div', {
|
|
26373
26477
|
class: 'vxe-date-picker--panel-right-wrapper'
|
|
26374
|
-
}, rightSlot({})) :
|
|
26478
|
+
}, rightSlot({})) : $xeDatePicker.renderShortcutBtn(h, 'right', true)]), bottomSlot ? h('div', {
|
|
26375
26479
|
class: 'vxe-date-picker--panel-bottom-wrapper'
|
|
26376
|
-
}, bottomSlot({})) :
|
|
26480
|
+
}, bottomSlot({})) : $xeDatePicker.renderShortcutBtn(h, 'bottom')])] : []);
|
|
26377
26481
|
},
|
|
26378
26482
|
renderPrefixIcon: function renderPrefixIcon(h) {
|
|
26379
26483
|
var $xeDatePicker = this;
|