vxe-pc-ui 4.16.3 → 4.16.4
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 +19 -13
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/date-picker/src/date-picker.js +7 -4
- package/es/date-range-picker/src/date-range-picker.js +5 -2
- package/es/icon/style.css +1 -1
- package/es/icon-picker/src/icon-picker.js +5 -5
- 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/lib/date-picker/src/date-picker.js +7 -4
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/date-range-picker/src/date-range-picker.js +5 -2
- package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/icon-picker/src/icon-picker.js +6 -5
- package/lib/icon-picker/src/icon-picker.min.js +1 -1
- package/lib/index.umd.js +20 -13
- 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 +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/package.json +1 -1
- package/packages/date-picker/src/date-picker.ts +8 -4
- package/packages/date-range-picker/src/date-range-picker.ts +6 -2
- package/packages/icon-picker/src/icon-picker.ts +5 -5
- /package/es/icon/{iconfont.1783607056967.ttf → iconfont.1783654856324.ttf} +0 -0
- /package/es/icon/{iconfont.1783607056967.woff → iconfont.1783654856324.woff} +0 -0
- /package/es/icon/{iconfont.1783607056967.woff2 → iconfont.1783654856324.woff2} +0 -0
- /package/es/{iconfont.1783607056967.ttf → iconfont.1783654856324.ttf} +0 -0
- /package/es/{iconfont.1783607056967.woff → iconfont.1783654856324.woff} +0 -0
- /package/es/{iconfont.1783607056967.woff2 → iconfont.1783654856324.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1783607056967.ttf → iconfont.1783654856324.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1783607056967.woff → iconfont.1783654856324.woff} +0 -0
- /package/lib/icon/style/{iconfont.1783607056967.woff2 → iconfont.1783654856324.woff2} +0 -0
- /package/lib/{iconfont.1783607056967.ttf → iconfont.1783654856324.ttf} +0 -0
- /package/lib/{iconfont.1783607056967.woff → iconfont.1783654856324.woff} +0 -0
- /package/lib/{iconfont.1783607056967.woff2 → iconfont.1783654856324.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -81,7 +81,7 @@ function checkDynamic() {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
const { log } = VxeUI;
|
|
84
|
-
const uiVersion = `ui v${"4.16.
|
|
84
|
+
const uiVersion = `ui v${"4.16.4"}`;
|
|
85
85
|
function createComponentLog(name) {
|
|
86
86
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
87
87
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -95,7 +95,7 @@ function createComponentLog(name) {
|
|
|
95
95
|
const warnLog$h = log.create('warn', uiVersion);
|
|
96
96
|
log.create('error', uiVersion);
|
|
97
97
|
|
|
98
|
-
const version = "4.16.
|
|
98
|
+
const version = "4.16.4";
|
|
99
99
|
VxeUI.uiVersion = version;
|
|
100
100
|
VxeUI.dynamicApp = dynamicApp;
|
|
101
101
|
function config(options) {
|
|
@@ -20187,7 +20187,7 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
20187
20187
|
if (hasTimestampValueType(valueFormat)) {
|
|
20188
20188
|
const dateVal = parseDateValue(value, type, { valueFormat: dateValueFormat });
|
|
20189
20189
|
const timeNum = dateVal ? dateVal.getTime() : null;
|
|
20190
|
-
|
|
20190
|
+
emitModel(timeNum);
|
|
20191
20191
|
if (modelValue !== timeNum) {
|
|
20192
20192
|
dispatchEvent('change', { value: timeNum }, evnt);
|
|
20193
20193
|
// 自动更新校验状态
|
|
@@ -20198,7 +20198,7 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
20198
20198
|
}
|
|
20199
20199
|
else if (hasDateValueType(valueFormat)) {
|
|
20200
20200
|
const dateVal = parseDateValue(value, type, { valueFormat: dateValueFormat });
|
|
20201
|
-
|
|
20201
|
+
emitModel(dateVal);
|
|
20202
20202
|
if (modelValue && dateVal ? XEUtils.toStringDate(modelValue).getTime() !== dateVal.getTime() : modelValue !== dateVal) {
|
|
20203
20203
|
dispatchEvent('change', { value: dateVal }, evnt);
|
|
20204
20204
|
// 自动更新校验状态
|
|
@@ -20208,7 +20208,7 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
20208
20208
|
}
|
|
20209
20209
|
}
|
|
20210
20210
|
else {
|
|
20211
|
-
|
|
20211
|
+
emitModel(value);
|
|
20212
20212
|
if (XEUtils.toValueString(modelValue) !== value) {
|
|
20213
20213
|
dispatchEvent('change', { value }, evnt);
|
|
20214
20214
|
// 自动更新校验状态
|
|
@@ -21036,11 +21036,14 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
21036
21036
|
const dispatchEvent = (type, params, evnt) => {
|
|
21037
21037
|
emit(type, createEvent(evnt, { $datePicker: $xeDatePicker }, params));
|
|
21038
21038
|
};
|
|
21039
|
+
const emitModel = (value) => {
|
|
21040
|
+
emit('update:modelValue', value);
|
|
21041
|
+
};
|
|
21039
21042
|
const datePickerMethods = {
|
|
21040
21043
|
dispatchEvent,
|
|
21041
21044
|
setModelValue(value) {
|
|
21042
21045
|
reactData.inputValue = value;
|
|
21043
|
-
|
|
21046
|
+
emitModel(value);
|
|
21044
21047
|
},
|
|
21045
21048
|
setModelValueByEvent(evnt, value) {
|
|
21046
21049
|
handleChange(value || '', evnt);
|
|
@@ -21887,7 +21890,7 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
21887
21890
|
reactData.selectEdValue = endRest;
|
|
21888
21891
|
const value = getRangeValue(startRest, endRest);
|
|
21889
21892
|
const isFinish = (startRest && endRest) || (!startRest && !endRest);
|
|
21890
|
-
|
|
21893
|
+
emitModel(value);
|
|
21891
21894
|
emit('update:startValue', startRest || '');
|
|
21892
21895
|
emit('update:endValue', endRest || '');
|
|
21893
21896
|
if (XEUtils.toValueString(modelValue) !== value) {
|
|
@@ -22488,13 +22491,16 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
22488
22491
|
const dispatchEvent = (type, params, evnt) => {
|
|
22489
22492
|
emit(type, createEvent(evnt, { $dateRangePicker: $xeDateRangePicker }, params));
|
|
22490
22493
|
};
|
|
22494
|
+
const emitModel = (value) => {
|
|
22495
|
+
emit('update:modelValue', value);
|
|
22496
|
+
};
|
|
22491
22497
|
dateRangePickerMethods = {
|
|
22492
22498
|
dispatchEvent,
|
|
22493
22499
|
setModelValue(startValue, endValue) {
|
|
22494
22500
|
reactData.selectStValue = startValue || '';
|
|
22495
22501
|
reactData.selectEdValue = endValue || '';
|
|
22496
22502
|
const value = getRangeValue(startValue, endValue);
|
|
22497
|
-
|
|
22503
|
+
emitModel(value);
|
|
22498
22504
|
},
|
|
22499
22505
|
setModelValueByEvent(evnt, startValue, endValue) {
|
|
22500
22506
|
handleChange(startValue || '', endValue || '', evnt);
|
|
@@ -26155,7 +26161,7 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26155
26161
|
}
|
|
26156
26162
|
return getI18n$2('vxe.base.pleaseSelect');
|
|
26157
26163
|
});
|
|
26158
|
-
const
|
|
26164
|
+
const computeWrapperStyle = computed(() => {
|
|
26159
26165
|
const popupOpts = computePopupOpts.value;
|
|
26160
26166
|
const { chunkSize, height, maxHeight } = popupOpts;
|
|
26161
26167
|
const stys = {
|
|
@@ -26211,7 +26217,7 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26211
26217
|
const panelElem = refOptionPanel.value;
|
|
26212
26218
|
const btnTransfer = computeBtnTransfer.value;
|
|
26213
26219
|
const popupOpts = computePopupOpts.value;
|
|
26214
|
-
const { width } = popupOpts;
|
|
26220
|
+
const { width, transfer } = popupOpts;
|
|
26215
26221
|
const handleStyle = () => {
|
|
26216
26222
|
const ppObj = updatePanelPlacement(targetElem, panelElem, {
|
|
26217
26223
|
placement: popupOpts.placement || placement,
|
|
@@ -26224,7 +26230,7 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26224
26230
|
if (width) {
|
|
26225
26231
|
Object.assign(panelStyle, {
|
|
26226
26232
|
width: toCssUnit(width),
|
|
26227
|
-
minWidth: undefined
|
|
26233
|
+
minWidth: transfer ? undefined : toCssUnit(width)
|
|
26228
26234
|
});
|
|
26229
26235
|
}
|
|
26230
26236
|
reactData.panelStyle = panelStyle;
|
|
@@ -26567,7 +26573,7 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26567
26573
|
const btnTransfer = computeBtnTransfer.value;
|
|
26568
26574
|
const formReadonly = computeFormReadonly.value;
|
|
26569
26575
|
const inpPlaceholder = computeInpPlaceholder.value;
|
|
26570
|
-
const
|
|
26576
|
+
const wrapperStyle = computeWrapperStyle.value;
|
|
26571
26577
|
const popupOpts = computePopupOpts.value;
|
|
26572
26578
|
const ppClassName = popupOpts.className || props.popupClassName;
|
|
26573
26579
|
if (formReadonly) {
|
|
@@ -26643,7 +26649,7 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26643
26649
|
initialized && (visiblePanel || isAniVisible)
|
|
26644
26650
|
? h('div', {
|
|
26645
26651
|
class: 'vxe-ico-picker--panel-wrapper',
|
|
26646
|
-
style:
|
|
26652
|
+
style: wrapperStyle
|
|
26647
26653
|
}, [
|
|
26648
26654
|
filterable
|
|
26649
26655
|
? h('div', {
|