vxe-pc-ui 4.18.12 → 4.18.14
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/dist/all.esm.js +55 -13
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/color-picker/src/color-picker.js +8 -0
- package/es/date-picker/src/date-picker.js +37 -11
- package/es/date-picker/style.css +41 -21
- package/es/date-picker/style.min.css +1 -1
- package/es/date-range-picker/src/date-range-picker.js +8 -0
- package/es/date-range-picker/style.css +41 -21
- package/es/date-range-picker/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/pulldown/style.css +40 -30
- package/es/pulldown/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-date-picker/style.css +41 -21
- package/es/vxe-date-picker/style.min.css +1 -1
- package/es/vxe-date-range-picker/style.css +41 -21
- package/es/vxe-date-range-picker/style.min.css +1 -1
- package/es/vxe-pulldown/style.css +40 -30
- package/es/vxe-pulldown/style.min.css +1 -1
- package/lib/color-picker/src/color-picker.js +8 -0
- package/lib/date-picker/src/date-picker.js +37 -11
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/date-picker/style/style.css +41 -21
- package/lib/date-picker/style/style.min.css +1 -1
- package/lib/date-range-picker/src/date-range-picker.js +8 -0
- package/lib/date-range-picker/style/style.css +41 -21
- package/lib/date-range-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/index.umd.js +55 -13
- package/lib/index.umd.min.js +1 -1
- package/lib/pulldown/style/style.css +40 -30
- package/lib/pulldown/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- 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-date-picker/style/style.css +41 -21
- package/lib/vxe-date-picker/style/style.min.css +1 -1
- package/lib/vxe-date-range-picker/style/style.css +41 -21
- package/lib/vxe-date-range-picker/style/style.min.css +1 -1
- package/lib/vxe-pulldown/style/style.css +40 -30
- package/lib/vxe-pulldown/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/color-picker/src/color-picker.ts +8 -0
- package/packages/date-picker/src/date-picker.ts +36 -11
- package/packages/date-range-picker/src/date-range-picker.ts +8 -0
- package/styles/components/date-picker.scss +36 -21
- package/styles/components/date-range-picker.scss +37 -21
- package/styles/components/pulldown.scss +38 -35
- package/types/components/date-picker.d.ts +10 -0
- /package/es/icon/{iconfont.1789279228951.ttf → iconfont.1789558410565.ttf} +0 -0
- /package/es/icon/{iconfont.1789279228951.woff → iconfont.1789558410565.woff} +0 -0
- /package/es/icon/{iconfont.1789279228951.woff2 → iconfont.1789558410565.woff2} +0 -0
- /package/es/{iconfont.1789279228951.ttf → iconfont.1789558410565.ttf} +0 -0
- /package/es/{iconfont.1789279228951.woff → iconfont.1789558410565.woff} +0 -0
- /package/es/{iconfont.1789279228951.woff2 → iconfont.1789558410565.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1789279228951.ttf → iconfont.1789558410565.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1789279228951.woff → iconfont.1789558410565.woff} +0 -0
- /package/lib/icon/style/{iconfont.1789279228951.woff2 → iconfont.1789558410565.woff2} +0 -0
- /package/lib/{iconfont.1789279228951.ttf → iconfont.1789558410565.ttf} +0 -0
- /package/lib/{iconfont.1789279228951.woff → iconfont.1789558410565.woff} +0 -0
- /package/lib/{iconfont.1789279228951.woff2 → iconfont.1789558410565.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -101,7 +101,7 @@ function checkDynamic() {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
const { log } = VxeUI;
|
|
104
|
-
const uiVersion = `ui v${"4.18.
|
|
104
|
+
const uiVersion = `ui v${"4.18.14"}`;
|
|
105
105
|
function createComponentLog(name) {
|
|
106
106
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
107
107
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -115,7 +115,7 @@ function createComponentLog(name) {
|
|
|
115
115
|
const warnLog$i = log.create('warn', uiVersion);
|
|
116
116
|
log.create('error', uiVersion);
|
|
117
117
|
|
|
118
|
-
const version = "4.18.
|
|
118
|
+
const version = "4.18.14";
|
|
119
119
|
VxeUI.uiVersion = version;
|
|
120
120
|
VxeUI.dynamicApp = dynamicApp;
|
|
121
121
|
function config(options) {
|
|
@@ -16521,7 +16521,15 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
16521
16521
|
type: String,
|
|
16522
16522
|
default: () => getConfig$3().colorPicker.defaultColor
|
|
16523
16523
|
},
|
|
16524
|
+
/**
|
|
16525
|
+
* 已废弃,请使用 popupConfig.placement
|
|
16526
|
+
* @deprecated
|
|
16527
|
+
*/
|
|
16524
16528
|
placement: String,
|
|
16529
|
+
/**
|
|
16530
|
+
* 已废弃,请使用 popupConfig.transfer
|
|
16531
|
+
* @deprecated
|
|
16532
|
+
*/
|
|
16525
16533
|
transfer: {
|
|
16526
16534
|
type: Boolean,
|
|
16527
16535
|
default: null
|
|
@@ -20564,6 +20572,10 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
20564
20572
|
labelFormat: String,
|
|
20565
20573
|
valueFormat: String,
|
|
20566
20574
|
timeFormat: String,
|
|
20575
|
+
parseInputMethod: {
|
|
20576
|
+
type: Function,
|
|
20577
|
+
default: () => getConfig$3().datePicker.parseInputMethod
|
|
20578
|
+
},
|
|
20567
20579
|
editable: {
|
|
20568
20580
|
type: Boolean,
|
|
20569
20581
|
default: true
|
|
@@ -20596,7 +20608,15 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
20596
20608
|
maskedConfig: Object,
|
|
20597
20609
|
prefixIcon: String,
|
|
20598
20610
|
suffixIcon: String,
|
|
20611
|
+
/**
|
|
20612
|
+
* 已废弃,请使用 popupConfig.placement
|
|
20613
|
+
* @deprecated
|
|
20614
|
+
*/
|
|
20599
20615
|
placement: String,
|
|
20616
|
+
/**
|
|
20617
|
+
* 已废弃,请使用 popupConfig.transfer
|
|
20618
|
+
* @deprecated
|
|
20619
|
+
*/
|
|
20600
20620
|
transfer: {
|
|
20601
20621
|
type: Boolean,
|
|
20602
20622
|
default: null
|
|
@@ -20604,7 +20624,10 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
20604
20624
|
timeConfig: Object,
|
|
20605
20625
|
popupConfig: Object,
|
|
20606
20626
|
shortcutConfig: Object,
|
|
20607
|
-
|
|
20627
|
+
/**
|
|
20628
|
+
* 已废弃 startWeek,被 startDay 替换
|
|
20629
|
+
* @deprecated
|
|
20630
|
+
*/
|
|
20608
20631
|
startWeek: Number
|
|
20609
20632
|
},
|
|
20610
20633
|
emits: [
|
|
@@ -20991,7 +21014,7 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
20991
21014
|
handleInputLabel(panelLabel, true);
|
|
20992
21015
|
};
|
|
20993
21016
|
const afterCheckValue = (inpVal) => {
|
|
20994
|
-
const { type, editable, multiple, maskedConfig } = props;
|
|
21017
|
+
const { type, editable, multiple, maskedConfig, parseInputMethod } = props;
|
|
20995
21018
|
const { inputLabel } = internalData;
|
|
20996
21019
|
const dateLabelFormat = computeDateLabelFormat.value;
|
|
20997
21020
|
const maskedOpts = computeMaskedOpts.value;
|
|
@@ -21022,23 +21045,34 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
21022
21045
|
});
|
|
21023
21046
|
}
|
|
21024
21047
|
}
|
|
21025
|
-
|
|
21026
|
-
if (
|
|
21027
|
-
|
|
21048
|
+
let inpDateVal;
|
|
21049
|
+
if (parseInputMethod) {
|
|
21050
|
+
inpDateVal = parseInputMethod({
|
|
21051
|
+
$datePicker: $xeDatePicker,
|
|
21052
|
+
type,
|
|
21053
|
+
inputValue: inpVal,
|
|
21054
|
+
valueFormat: dateLabelFormat
|
|
21055
|
+
}) || null;
|
|
21056
|
+
}
|
|
21057
|
+
else {
|
|
21058
|
+
const $datePanel = refDatePanel.value;
|
|
21059
|
+
if ($datePanel) {
|
|
21060
|
+
return $datePanel.checkValue(inpVal);
|
|
21061
|
+
}
|
|
21062
|
+
inpDateVal = parseDateValue(inpVal, type, {
|
|
21063
|
+
valueFormat: dateLabelFormat
|
|
21064
|
+
});
|
|
21028
21065
|
}
|
|
21029
|
-
let inpDateVal = parseDateValue(inpVal, type, {
|
|
21030
|
-
valueFormat: dateLabelFormat
|
|
21031
|
-
});
|
|
21032
21066
|
if (!XEUtils.isValidDate(inpDateVal)) {
|
|
21033
21067
|
dateRevert();
|
|
21034
21068
|
return;
|
|
21035
21069
|
}
|
|
21036
21070
|
if (type === 'time') {
|
|
21037
|
-
|
|
21038
|
-
if (inputLabel !==
|
|
21071
|
+
const timeVal = XEUtils.toDateString(inpDateVal, dateLabelFormat);
|
|
21072
|
+
if (inputLabel !== timeVal) {
|
|
21039
21073
|
handleChange(inpDateVal, { type: 'check' });
|
|
21040
21074
|
}
|
|
21041
|
-
handleInputLabel(
|
|
21075
|
+
handleInputLabel(timeVal, true);
|
|
21042
21076
|
return;
|
|
21043
21077
|
}
|
|
21044
21078
|
if (dateEndDate && inpDateVal > dateEndDate) {
|
|
@@ -22219,7 +22253,15 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
22219
22253
|
},
|
|
22220
22254
|
prefixIcon: String,
|
|
22221
22255
|
suffixIcon: String,
|
|
22256
|
+
/**
|
|
22257
|
+
* 已废弃,请使用 popupConfig.placement
|
|
22258
|
+
* @deprecated
|
|
22259
|
+
*/
|
|
22222
22260
|
placement: String,
|
|
22261
|
+
/**
|
|
22262
|
+
* 已废弃,请使用 popupConfig.transfer
|
|
22263
|
+
* @deprecated
|
|
22264
|
+
*/
|
|
22223
22265
|
transfer: {
|
|
22224
22266
|
type: Boolean,
|
|
22225
22267
|
default: null
|