vxe-pc-ui 4.3.56 → 4.3.58
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/date-picker/src/date-picker.js +17 -6
- package/es/icon/style.css +1 -1
- package/es/input/src/input.js +17 -6
- 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 +17 -6
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +38 -16
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +17 -6
- package/lib/input/src/input.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 +2 -2
- package/packages/date-picker/src/date-picker.ts +17 -6
- package/packages/input/src/input.ts +17 -6
- package/types/components/table.d.ts +8 -2
- /package/es/icon/{iconfont.1735796343545.ttf → iconfont.1735882030135.ttf} +0 -0
- /package/es/icon/{iconfont.1735796343545.woff → iconfont.1735882030135.woff} +0 -0
- /package/es/icon/{iconfont.1735796343545.woff2 → iconfont.1735882030135.woff2} +0 -0
- /package/es/{iconfont.1735796343545.ttf → iconfont.1735882030135.ttf} +0 -0
- /package/es/{iconfont.1735796343545.woff → iconfont.1735882030135.woff} +0 -0
- /package/es/{iconfont.1735796343545.woff2 → iconfont.1735882030135.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1735796343545.ttf → iconfont.1735882030135.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1735796343545.woff → iconfont.1735882030135.woff} +0 -0
- /package/lib/icon/style/{iconfont.1735796343545.woff2 → iconfont.1735882030135.woff2} +0 -0
- /package/lib/{iconfont.1735796343545.ttf → iconfont.1735882030135.ttf} +0 -0
- /package/lib/{iconfont.1735796343545.woff → iconfont.1735882030135.woff} +0 -0
- /package/lib/{iconfont.1735796343545.woff2 → iconfont.1735882030135.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2338,7 +2338,7 @@ if (typeof window !== 'undefined') {
|
|
|
2338
2338
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
2339
2339
|
var es_array_push = __webpack_require__(4114);
|
|
2340
2340
|
;// CONCATENATED MODULE: ./node_modules/@vxe-ui/core/es/src/core.js
|
|
2341
|
-
const coreVersion = "4.0.
|
|
2341
|
+
const coreVersion = "4.0.28";
|
|
2342
2342
|
const VxeCore = {
|
|
2343
2343
|
coreVersion,
|
|
2344
2344
|
uiVersion: '',
|
|
@@ -2876,7 +2876,7 @@ function createLog(type, name) {
|
|
|
2876
2876
|
return msg;
|
|
2877
2877
|
};
|
|
2878
2878
|
}
|
|
2879
|
-
const version = "4.0.
|
|
2879
|
+
const version = "4.0.28";
|
|
2880
2880
|
const log = {
|
|
2881
2881
|
create: createLog,
|
|
2882
2882
|
warn: createLog('warn', `v${version}`),
|
|
@@ -4140,14 +4140,14 @@ function checkDynamic() {
|
|
|
4140
4140
|
}
|
|
4141
4141
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
4142
4142
|
|
|
4143
|
-
const log_version = `ui v${"4.3.
|
|
4143
|
+
const log_version = `ui v${"4.3.58"}`;
|
|
4144
4144
|
const warnLog = log.create('warn', log_version);
|
|
4145
4145
|
const errLog = log.create('error', log_version);
|
|
4146
4146
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
4147
4147
|
|
|
4148
4148
|
|
|
4149
4149
|
|
|
4150
|
-
const ui_version = "4.3.
|
|
4150
|
+
const ui_version = "4.3.58";
|
|
4151
4151
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
4152
4152
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
4153
4153
|
function config(options) {
|
|
@@ -11070,15 +11070,19 @@ function toFloatValueFixed(inputValue, digitsValue) {
|
|
|
11070
11070
|
dLabel = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(dValue, dateLabelFormat, {
|
|
11071
11071
|
firstDay: firstDayOfWeek
|
|
11072
11072
|
});
|
|
11073
|
-
//
|
|
11073
|
+
// 周选择器,由于年份和第几周是冲突的行为,所以需要特殊处理,判断是否跨年,例如
|
|
11074
|
+
// '2024-12-31' 'yyyy-MM-dd W' >> '2024-12-31 1'
|
|
11075
|
+
// '2025-01-01' 'yyyy-MM-dd W' >> '2025-01-01 1'
|
|
11074
11076
|
if (dateLabelFormat && type === 'week') {
|
|
11075
|
-
const
|
|
11076
|
-
|
|
11077
|
+
const weekNum = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getYearWeek(dValue, firstDayOfWeek);
|
|
11078
|
+
const weekDate = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatWeek(dValue, 0, weekNum === 1 ? (6 + firstDayOfWeek) % 7 : firstDayOfWeek, firstDayOfWeek);
|
|
11079
|
+
const weekFullYear = weekDate.getFullYear();
|
|
11080
|
+
if (weekFullYear !== dValue.getFullYear()) {
|
|
11077
11081
|
const yyIndex = dateLabelFormat.indexOf('yyyy');
|
|
11078
11082
|
if (yyIndex > -1) {
|
|
11079
11083
|
const yyNum = Number(dLabel.substring(yyIndex, yyIndex + 4));
|
|
11080
11084
|
if (yyNum && !isNaN(yyNum)) {
|
|
11081
|
-
dLabel = dLabel.replace(`${yyNum}`, `${
|
|
11085
|
+
dLabel = dLabel.replace(`${yyNum}`, `${weekFullYear}`);
|
|
11082
11086
|
}
|
|
11083
11087
|
}
|
|
11084
11088
|
}
|
|
@@ -11137,7 +11141,10 @@ function toFloatValueFixed(inputValue, digitsValue) {
|
|
|
11137
11141
|
reactData.inputValue = props.multiple ? computeDateMultipleLabel.value : reactData.datePanelLabel;
|
|
11138
11142
|
};
|
|
11139
11143
|
const dateCheckMonth = date => {
|
|
11140
|
-
const
|
|
11144
|
+
const firstDayOfWeek = computeFirstDayOfWeek.value;
|
|
11145
|
+
const weekNum = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getYearWeek(date, firstDayOfWeek);
|
|
11146
|
+
const weekStartDate = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatWeek(date, 0, firstDayOfWeek, firstDayOfWeek);
|
|
11147
|
+
const month = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatMonth(weekNum === 1 ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(weekStartDate, 6) : date, 0, 'first');
|
|
11141
11148
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(month, reactData.selectMonth)) {
|
|
11142
11149
|
reactData.selectMonth = month;
|
|
11143
11150
|
}
|
|
@@ -11454,7 +11461,11 @@ function toFloatValueFixed(inputValue, digitsValue) {
|
|
|
11454
11461
|
};
|
|
11455
11462
|
// 日期
|
|
11456
11463
|
const dateMonthHandle = (date, offsetMonth) => {
|
|
11457
|
-
|
|
11464
|
+
const firstDayOfWeek = computeFirstDayOfWeek.value;
|
|
11465
|
+
const weekNum = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getYearWeek(date, firstDayOfWeek);
|
|
11466
|
+
const weekStartDate = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatWeek(date, 0, firstDayOfWeek, firstDayOfWeek);
|
|
11467
|
+
const month = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatMonth(weekNum === 1 ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(weekStartDate, 6) : date, offsetMonth, 'first');
|
|
11468
|
+
reactData.selectMonth = month;
|
|
11458
11469
|
};
|
|
11459
11470
|
const dateNowHandle = () => {
|
|
11460
11471
|
const currentDate = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(Date.now(), 0, 'first');
|
|
@@ -14898,15 +14909,19 @@ const Countdown = VxeCountdown;
|
|
|
14898
14909
|
dLabel = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(dValue, dateLabelFormat, {
|
|
14899
14910
|
firstDay: firstDayOfWeek
|
|
14900
14911
|
});
|
|
14901
|
-
//
|
|
14912
|
+
// 周选择器,由于年份和第几周是冲突的行为,所以需要特殊处理,判断是否跨年,例如
|
|
14913
|
+
// '2024-12-31' 'yyyy-MM-dd W' >> '2024-12-31 1'
|
|
14914
|
+
// '2025-01-01' 'yyyy-MM-dd W' >> '2025-01-01 1'
|
|
14902
14915
|
if (dateLabelFormat && type === 'week') {
|
|
14903
|
-
const
|
|
14904
|
-
|
|
14916
|
+
const weekNum = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getYearWeek(dValue, firstDayOfWeek);
|
|
14917
|
+
const weekDate = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatWeek(dValue, 0, weekNum === 1 ? (6 + firstDayOfWeek) % 7 : firstDayOfWeek, firstDayOfWeek);
|
|
14918
|
+
const weekFullYear = weekDate.getFullYear();
|
|
14919
|
+
if (weekFullYear !== dValue.getFullYear()) {
|
|
14905
14920
|
const yyIndex = dateLabelFormat.indexOf('yyyy');
|
|
14906
14921
|
if (yyIndex > -1) {
|
|
14907
14922
|
const yyNum = Number(dLabel.substring(yyIndex, yyIndex + 4));
|
|
14908
14923
|
if (yyNum && !isNaN(yyNum)) {
|
|
14909
|
-
dLabel = dLabel.replace(`${yyNum}`, `${
|
|
14924
|
+
dLabel = dLabel.replace(`${yyNum}`, `${weekFullYear}`);
|
|
14910
14925
|
}
|
|
14911
14926
|
}
|
|
14912
14927
|
}
|
|
@@ -14944,7 +14959,10 @@ const Countdown = VxeCountdown;
|
|
|
14944
14959
|
reactData.inputValue = props.multiple ? computeDateMultipleLabel.value : reactData.datePanelLabel;
|
|
14945
14960
|
};
|
|
14946
14961
|
const dateCheckMonth = date => {
|
|
14947
|
-
const
|
|
14962
|
+
const firstDayOfWeek = computeFirstDayOfWeek.value;
|
|
14963
|
+
const weekNum = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getYearWeek(date, firstDayOfWeek);
|
|
14964
|
+
const weekStartDate = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatWeek(date, 0, firstDayOfWeek, firstDayOfWeek);
|
|
14965
|
+
const month = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatMonth(weekNum === 1 ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(weekStartDate, 6) : date, 0, 'first');
|
|
14948
14966
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(month, reactData.selectMonth)) {
|
|
14949
14967
|
reactData.selectMonth = month;
|
|
14950
14968
|
}
|
|
@@ -15108,7 +15126,11 @@ const Countdown = VxeCountdown;
|
|
|
15108
15126
|
};
|
|
15109
15127
|
// 日期
|
|
15110
15128
|
const dateMonthHandle = (date, offsetMonth) => {
|
|
15111
|
-
|
|
15129
|
+
const firstDayOfWeek = computeFirstDayOfWeek.value;
|
|
15130
|
+
const weekNum = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getYearWeek(date, firstDayOfWeek);
|
|
15131
|
+
const weekStartDate = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatWeek(date, 0, firstDayOfWeek, firstDayOfWeek);
|
|
15132
|
+
const month = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatMonth(weekNum === 1 ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(weekStartDate, 6) : date, offsetMonth, 'first');
|
|
15133
|
+
reactData.selectMonth = month;
|
|
15112
15134
|
};
|
|
15113
15135
|
const dateNowHandle = () => {
|
|
15114
15136
|
const currentDate = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(Date.now(), 0, 'first');
|