vxe-table 4.3.6 → 4.3.8
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/grid/src/grid.js +15 -5
- package/es/header/src/header.js +2 -2
- package/es/icon/style/{iconfont.1669214286403.ttf → iconfont.1673016604432.ttf} +0 -0
- package/es/icon/style/{iconfont.1669214286403.woff → iconfont.1673016604432.woff} +0 -0
- package/es/icon/style/{iconfont.1669214286403.woff2 → iconfont.1673016604432.woff2} +0 -0
- package/es/icon/style.css +565 -1
- package/es/{iconfont.1669214286403.ttf → iconfont.1673016604432.ttf} +0 -0
- package/es/{iconfont.1669214286403.woff → iconfont.1673016604432.woff} +0 -0
- package/es/{iconfont.1669214286403.woff2 → iconfont.1673016604432.woff2} +0 -0
- package/es/input/src/input.js +46 -5
- package/es/loading/src/loading.js +7 -2
- package/es/loading/style.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/table.js +12 -3
- package/es/table/src/util.js +25 -1
- package/es/table/style.css +1 -1
- package/es/tools/log.js +1 -1
- package/es/v-x-e-table/index.js +1 -1
- package/es/v-x-e-table/style.css +564 -1
- package/es/vxe-icon/style.css +564 -0
- package/es/vxe-loading/style.css +1 -1
- package/es/vxe-table/style.css +1 -1
- package/lib/grid/src/grid.js +19 -7
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/header/src/header.js +1 -1
- package/lib/header/src/header.min.js +1 -1
- package/lib/icon/style/{iconfont.1669214286403.ttf → iconfont.1673016604432.ttf} +0 -0
- package/lib/icon/style/{iconfont.1669214286403.woff → iconfont.1673016604432.woff} +0 -0
- package/lib/icon/style/{iconfont.1669214286403.woff2 → iconfont.1673016604432.woff2} +0 -0
- package/lib/icon/style/style.css +565 -1
- package/lib/icon/style/style.min.css +565 -1
- package/lib/{iconfont.1669214286403.ttf → iconfont.1673016604432.ttf} +0 -0
- package/lib/{iconfont.1669214286403.woff → iconfont.1673016604432.woff} +0 -0
- package/lib/{iconfont.1669214286403.woff2 → iconfont.1673016604432.woff2} +0 -0
- package/lib/index.umd.js +107 -19
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +51 -5
- package/lib/input/src/input.min.js +1 -1
- package/lib/loading/src/loading.js +5 -2
- package/lib/loading/src/loading.min.js +1 -1
- package/lib/loading/style/style.css +1 -1
- package/lib/loading/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/table.js +14 -3
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +27 -2
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +1 -1
- package/lib/table/style/style.min.css +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +564 -1
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/lib/vxe-icon/style/style.css +564 -0
- package/lib/vxe-icon/style/style.min.css +1 -1
- package/lib/vxe-loading/style/style.css +1 -1
- package/lib/vxe-loading/style/style.min.css +1 -1
- package/lib/vxe-table/style/style.css +1 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/form/src/form.ts +1 -1
- package/packages/grid/src/grid.ts +18 -5
- package/packages/header/src/header.ts +2 -2
- package/packages/input/src/input.ts +35 -6
- package/packages/loading/src/loading.ts +6 -2
- package/packages/table/src/table.ts +12 -3
- package/packages/table/src/util.ts +33 -1
- package/styles/icon.scss +2 -0
- package/styles/loading.scss +2 -1
package/es/input/src/input.js
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
+
if (ar || !(i in from)) {
|
|
4
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
+
ar[i] = from[i];
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
+
};
|
|
1
10
|
import { defineComponent, h, Teleport, ref, computed, reactive, inject, nextTick, watch, onUnmounted } from 'vue';
|
|
2
11
|
import XEUtils from 'xe-utils';
|
|
3
12
|
import GlobalConfig from '../../v-x-e-table/src/conf';
|
|
@@ -741,17 +750,23 @@ export default defineComponent({
|
|
|
741
750
|
var dateMultipleValue = computeDateMultipleValue.value;
|
|
742
751
|
if (isDateTimeType) {
|
|
743
752
|
// 如果是datetime特殊类型
|
|
744
|
-
var dateListValue = computeDateListValue.value;
|
|
753
|
+
var dateListValue = __spreadArray([], computeDateListValue.value, true);
|
|
745
754
|
var datetimeRest_1 = [];
|
|
755
|
+
var eqIndex = XEUtils.findIndexOf(dateListValue, function (val) { return XEUtils.isDateSame(date, val, 'yyyyMMdd'); });
|
|
756
|
+
if (eqIndex === -1) {
|
|
757
|
+
dateListValue.push(date);
|
|
758
|
+
}
|
|
759
|
+
else {
|
|
760
|
+
dateListValue.splice(eqIndex, 1);
|
|
761
|
+
}
|
|
746
762
|
dateListValue.forEach(function (item) {
|
|
747
|
-
if (item
|
|
763
|
+
if (item) {
|
|
748
764
|
item.setHours(datetimePanelValue.getHours());
|
|
749
765
|
item.setMinutes(datetimePanelValue.getMinutes());
|
|
750
766
|
item.setSeconds(datetimePanelValue.getSeconds());
|
|
751
767
|
datetimeRest_1.push(item);
|
|
752
768
|
}
|
|
753
769
|
});
|
|
754
|
-
datetimeRest_1.push(date);
|
|
755
770
|
emitModel(datetimeRest_1.map(function (date) { return XEUtils.toDateString(date, dateValueFormat); }).join(','), { type: 'update' });
|
|
756
771
|
}
|
|
757
772
|
else {
|
|
@@ -1206,10 +1221,36 @@ export default defineComponent({
|
|
|
1206
1221
|
};
|
|
1207
1222
|
var dateConfirmEvent = function () {
|
|
1208
1223
|
var multiple = props.multiple;
|
|
1224
|
+
var datetimePanelValue = reactData.datetimePanelValue;
|
|
1209
1225
|
var dateValue = computeDateValue.value;
|
|
1210
1226
|
var isDateTimeType = computeIsDateTimeType.value;
|
|
1211
|
-
if (isDateTimeType
|
|
1212
|
-
|
|
1227
|
+
if (isDateTimeType) {
|
|
1228
|
+
var dateValueFormat_1 = computeDateValueFormat.value;
|
|
1229
|
+
if (multiple) {
|
|
1230
|
+
// 如果为多选
|
|
1231
|
+
var dateMultipleValue = computeDateMultipleValue.value;
|
|
1232
|
+
if (isDateTimeType) {
|
|
1233
|
+
// 如果是datetime特殊类型
|
|
1234
|
+
var dateListValue = __spreadArray([], computeDateListValue.value, true);
|
|
1235
|
+
var datetimeRest_2 = [];
|
|
1236
|
+
dateListValue.forEach(function (item) {
|
|
1237
|
+
if (item) {
|
|
1238
|
+
item.setHours(datetimePanelValue.getHours());
|
|
1239
|
+
item.setMinutes(datetimePanelValue.getMinutes());
|
|
1240
|
+
item.setSeconds(datetimePanelValue.getSeconds());
|
|
1241
|
+
datetimeRest_2.push(item);
|
|
1242
|
+
}
|
|
1243
|
+
});
|
|
1244
|
+
emitModel(datetimeRest_2.map(function (date) { return XEUtils.toDateString(date, dateValueFormat_1); }).join(','), { type: 'update' });
|
|
1245
|
+
}
|
|
1246
|
+
else {
|
|
1247
|
+
// 如果是日期类型
|
|
1248
|
+
emitModel(dateMultipleValue.join(','), { type: 'update' });
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
else {
|
|
1252
|
+
dateChange(dateValue || reactData.currentDate);
|
|
1253
|
+
}
|
|
1213
1254
|
}
|
|
1214
1255
|
hidePanel();
|
|
1215
1256
|
};
|
|
@@ -7,7 +7,8 @@ export default defineComponent({
|
|
|
7
7
|
icon: String,
|
|
8
8
|
text: String
|
|
9
9
|
},
|
|
10
|
-
setup: function (props) {
|
|
10
|
+
setup: function (props, _a) {
|
|
11
|
+
var slots = _a.slots;
|
|
11
12
|
var computeLoadingIcon = computed(function () {
|
|
12
13
|
return props.icon || GlobalConfig.icon.LOADING;
|
|
13
14
|
});
|
|
@@ -22,7 +23,11 @@ export default defineComponent({
|
|
|
22
23
|
class: ['vxe-loading', {
|
|
23
24
|
'is--visible': props.modelValue
|
|
24
25
|
}]
|
|
25
|
-
}, [
|
|
26
|
+
}, slots.default ? [
|
|
27
|
+
h('div', {
|
|
28
|
+
class: 'vxe-loading--warpper'
|
|
29
|
+
}, slots.default({}))
|
|
30
|
+
] : [
|
|
26
31
|
h('div', {
|
|
27
32
|
class: 'vxe-loading--chunk'
|
|
28
33
|
}, [
|
package/es/loading/style.css
CHANGED