vxe-table 4.2.8 → 4.3.0-beta.2
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.js +14 -14
- package/es/button/style.css +1 -58
- package/es/checkbox/src/checkbox.js +7 -4
- package/es/checkbox/style.css +37 -58
- package/es/edit/src/hook.js +29 -13
- package/es/export/src/export-panel.js +10 -20
- package/es/export/src/hook.js +45 -45
- package/es/export/src/import-panel.js +2 -2
- package/es/export/src/util.js +7 -7
- package/es/export/style.css +27 -82
- package/es/filter/src/hook.js +5 -5
- package/es/filter/src/panel.js +9 -17
- package/es/filter/style.css +27 -79
- package/es/footer/src/footer.js +15 -15
- package/es/form/src/form-config-item.js +8 -7
- package/es/form/src/form-item.js +8 -7
- package/es/form/src/form.js +8 -6
- package/es/form/style.css +0 -3
- package/es/grid/src/grid.js +18 -13
- package/es/grid/style.css +1 -1
- package/es/header/src/header.js +18 -18
- package/es/header/style.css +0 -95
- package/es/icon/style.css +379 -0
- package/es/input/src/input.js +26 -26
- package/es/input/style.css +13 -4
- package/es/keyboard/src/hook.js +7 -7
- package/es/list/src/list.js +5 -5
- package/es/loading/src/loading.js +1 -1
- package/es/menu/src/hooks.js +9 -9
- package/es/menu/src/panel.js +2 -2
- package/es/modal/src/modal.js +52 -51
- package/es/modal/style.css +2 -3
- package/es/pager/src/pager.js +3 -3
- package/es/pager/style.css +4 -2
- package/es/pulldown/src/pulldown.js +7 -7
- package/es/radio/src/button.js +1 -1
- package/es/radio/src/radio.js +5 -4
- package/es/radio/style.css +32 -55
- package/es/select/src/select.js +13 -12
- package/es/select/style.css +1 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/switch/src/switch.js +1 -1
- package/es/table/src/body.js +38 -34
- package/es/table/src/cell.js +16 -28
- package/es/table/src/columnInfo.js +4 -4
- package/es/table/src/table.js +65 -60
- package/es/table/src/util.js +2 -2
- package/es/table/style.css +160 -139
- package/es/textarea/src/textarea.js +5 -5
- package/es/toolbar/src/toolbar.js +17 -24
- package/es/toolbar/style.css +28 -80
- package/es/tools/dom.js +2 -2
- package/es/tools/log.js +1 -1
- package/es/tools/vn.js +7 -0
- package/es/tooltip/src/tooltip.js +22 -10
- package/es/v-x-e-table/index.js +1 -1
- package/es/v-x-e-table/src/conf.js +43 -38
- package/es/v-x-e-table/src/interceptor.js +1 -1
- package/es/v-x-e-table/src/renderer.js +19 -15
- package/es/v-x-e-table/style.css +405 -2
- package/lib/button/src/button.js +10 -10
- package/lib/button/src/button.min.js +1 -1
- package/lib/button/style/style.css +1 -58
- package/lib/button/style/style.min.css +1 -1
- package/lib/checkbox/src/checkbox.js +5 -3
- package/lib/checkbox/src/checkbox.min.js +1 -1
- package/lib/checkbox/style/style.css +37 -58
- package/lib/checkbox/style/style.min.css +1 -1
- package/lib/edit/src/hook.js +14 -13
- package/lib/edit/src/hook.min.js +1 -1
- package/lib/export/src/export-panel.js +11 -17
- package/lib/export/src/export-panel.min.js +1 -1
- package/lib/export/src/hook.js +50 -50
- package/lib/export/src/hook.min.js +1 -1
- package/lib/export/src/import-panel.js +3 -3
- package/lib/export/src/import-panel.min.js +1 -1
- package/lib/export/src/util.js +4 -4
- package/lib/export/src/util.min.js +1 -1
- package/lib/export/style/style.css +27 -82
- package/lib/export/style/style.min.css +1 -1
- package/lib/filter/src/hook.js +5 -5
- package/lib/filter/src/hook.min.js +1 -1
- package/lib/filter/src/panel.js +11 -15
- package/lib/filter/src/panel.min.js +1 -1
- package/lib/filter/style/style.css +27 -79
- package/lib/filter/style/style.min.css +1 -1
- package/lib/footer/src/footer.js +14 -14
- package/lib/footer/src/footer.min.js +1 -1
- package/lib/form/src/form-config-item.js +9 -7
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-item.js +9 -7
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +9 -6
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/style/style.css +0 -3
- package/lib/form/style/style.min.css +1 -1
- package/lib/grid/src/grid.js +17 -13
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/grid/style/style.css +1 -1
- package/lib/grid/style/style.min.css +1 -1
- package/lib/header/src/header.js +17 -17
- package/lib/header/src/header.min.js +1 -1
- package/lib/header/style/style.css +0 -95
- package/lib/header/style/style.min.css +0 -1
- package/lib/icon/style/style.css +379 -0
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +163 -159
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +23 -23
- package/lib/input/src/input.min.js +1 -1
- package/lib/input/style/style.css +13 -4
- package/lib/input/style/style.min.css +1 -1
- package/lib/keyboard/src/hook.js +7 -7
- package/lib/keyboard/src/hook.min.js +1 -1
- package/lib/list/src/list.js +5 -5
- package/lib/list/src/list.min.js +1 -1
- package/lib/loading/src/loading.js +1 -1
- package/lib/loading/src/loading.min.js +1 -1
- package/lib/menu/src/hooks.js +9 -9
- package/lib/menu/src/hooks.min.js +1 -1
- package/lib/menu/src/panel.js +2 -2
- package/lib/menu/src/panel.min.js +1 -1
- package/lib/modal/src/modal.js +55 -53
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/modal/style/style.css +2 -3
- package/lib/modal/style/style.min.css +1 -1
- package/lib/pager/src/pager.js +2 -2
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/pager/style/style.css +4 -2
- package/lib/pager/style/style.min.css +1 -1
- package/lib/pulldown/src/pulldown.js +7 -7
- package/lib/pulldown/src/pulldown.min.js +1 -1
- package/lib/radio/src/button.js +1 -1
- package/lib/radio/src/button.min.js +1 -1
- package/lib/radio/src/radio.js +4 -4
- package/lib/radio/src/radio.min.js +1 -1
- package/lib/radio/style/style.css +32 -55
- package/lib/radio/style/style.min.css +1 -1
- package/lib/select/src/select.js +14 -12
- package/lib/select/src/select.min.js +1 -1
- package/lib/select/style/style.css +1 -0
- package/lib/select/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/switch/src/switch.js +1 -1
- package/lib/switch/src/switch.min.js +1 -1
- package/lib/table/src/body.js +36 -34
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +21 -29
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/columnInfo.js +4 -4
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/table.js +65 -61
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +2 -2
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +160 -139
- package/lib/table/style/style.min.css +1 -1
- package/lib/textarea/src/textarea.js +6 -6
- package/lib/textarea/src/textarea.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +20 -22
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/toolbar/style/style.css +28 -80
- package/lib/toolbar/style/style.min.css +1 -1
- package/lib/tools/dom.js +2 -2
- package/lib/tools/dom.min.js +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/tools/vn.js +13 -0
- package/lib/tools/vn.min.js +1 -1
- package/lib/tooltip/src/tooltip.js +22 -8
- package/lib/tooltip/src/tooltip.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/src/conf.js +43 -38
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/v-x-e-table/src/interceptor.js +1 -1
- package/lib/v-x-e-table/src/interceptor.min.js +1 -1
- package/lib/v-x-e-table/src/renderer.js +18 -16
- package/lib/v-x-e-table/src/renderer.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +405 -2
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/package.json +6 -6
- package/packages/checkbox/src/checkbox.ts +7 -4
- package/packages/edit/src/hook.ts +18 -6
- package/packages/export/src/export-panel.ts +9 -19
- package/packages/filter/src/panel.ts +8 -16
- package/packages/form/src/form-config-item.ts +4 -3
- package/packages/form/src/form-item.ts +4 -3
- package/packages/form/src/form.ts +6 -4
- package/packages/grid/src/grid.ts +2 -1
- package/packages/input/src/input.ts +3 -3
- package/packages/modal/src/modal.ts +5 -4
- package/packages/radio/src/radio.ts +4 -3
- package/packages/select/src/select.ts +2 -1
- package/packages/table/src/cell.ts +18 -35
- package/packages/table/src/table.ts +11 -10
- package/packages/toolbar/src/toolbar.ts +14 -21
- package/packages/tools/vn.ts +10 -0
- package/packages/tooltip/src/tooltip.ts +8 -4
- package/packages/v-x-e-table/src/conf.ts +43 -38
- package/styles/base/checked.scss +44 -148
- package/styles/button.scss +1 -43
- package/styles/checkbox.scss +6 -65
- package/styles/export.scss +2 -9
- package/styles/filter.scss +2 -6
- package/styles/form.scss +0 -3
- package/styles/header.scss +0 -134
- package/styles/icon.scss +509 -713
- package/styles/input.scss +8 -0
- package/styles/modal.scss +0 -1
- package/styles/old-icon.scss +713 -0
- package/styles/pager.scss +2 -0
- package/styles/radio.scss +9 -77
- package/styles/select.scss +1 -0
- package/styles/table.scss +144 -21
- package/styles/toolbar.scss +2 -6
- package/styles/variable.scss +5 -5
- package/types/all.d.ts +6 -0
- package/types/column.d.ts +11 -11
- package/types/component.d.ts +3 -1
- package/types/form-item.d.ts +1 -0
- package/types/form.d.ts +6 -2
- package/types/grid.d.ts +4 -4
- package/types/table.d.ts +2 -2
- package/types/v-x-e-table/renderer.d.ts +3 -2
package/es/input/src/input.js
CHANGED
|
@@ -245,7 +245,7 @@ export default defineComponent({
|
|
|
245
245
|
var computeDateLabelFormat = computed(function () {
|
|
246
246
|
var isDatePickerType = computeIsDatePickerType.value;
|
|
247
247
|
if (isDatePickerType) {
|
|
248
|
-
return props.labelFormat || GlobalConfig.i18n("vxe.input.date.labelFormat."
|
|
248
|
+
return props.labelFormat || GlobalConfig.i18n("vxe.input.date.labelFormat.".concat(props.type));
|
|
249
249
|
}
|
|
250
250
|
return null;
|
|
251
251
|
});
|
|
@@ -289,9 +289,9 @@ export default defineComponent({
|
|
|
289
289
|
return GlobalConfig.i18n('vxe.input.date.monthLabel', [year]);
|
|
290
290
|
}
|
|
291
291
|
else if (datePanelType === 'year') {
|
|
292
|
-
return yearList.length ? yearList[0].year
|
|
292
|
+
return yearList.length ? "".concat(yearList[0].year, " - ").concat(yearList[yearList.length - 1].year) : '';
|
|
293
293
|
}
|
|
294
|
-
return GlobalConfig.i18n('vxe.input.date.dayLabel', [year, month ? GlobalConfig.i18n("vxe.input.date.m"
|
|
294
|
+
return GlobalConfig.i18n('vxe.input.date.dayLabel', [year, month ? GlobalConfig.i18n("vxe.input.date.m".concat(month)) : '-']);
|
|
295
295
|
}
|
|
296
296
|
return '';
|
|
297
297
|
});
|
|
@@ -324,7 +324,7 @@ export default defineComponent({
|
|
|
324
324
|
return weekDatas.map(function (day) {
|
|
325
325
|
return {
|
|
326
326
|
value: day,
|
|
327
|
-
label: GlobalConfig.i18n("vxe.input.date.weeks.w"
|
|
327
|
+
label: GlobalConfig.i18n("vxe.input.date.weeks.w".concat(day))
|
|
328
328
|
};
|
|
329
329
|
});
|
|
330
330
|
}
|
|
@@ -661,7 +661,7 @@ export default defineComponent({
|
|
|
661
661
|
if (yyIndex > -1) {
|
|
662
662
|
var yyNum = Number(dLabel.substring(yyIndex, yyIndex + 4));
|
|
663
663
|
if (yyNum && !isNaN(yyNum)) {
|
|
664
|
-
dLabel = dLabel.replace(""
|
|
664
|
+
dLabel = dLabel.replace("".concat(yyNum), "".concat(yyNum - 1));
|
|
665
665
|
}
|
|
666
666
|
}
|
|
667
667
|
}
|
|
@@ -1387,15 +1387,15 @@ export default defineComponent({
|
|
|
1387
1387
|
left = marginSize;
|
|
1388
1388
|
}
|
|
1389
1389
|
Object.assign(panelStyle, {
|
|
1390
|
-
left: left
|
|
1391
|
-
top: top_1
|
|
1392
|
-
minWidth: targetWidth
|
|
1390
|
+
left: "".concat(left, "px"),
|
|
1391
|
+
top: "".concat(top_1, "px"),
|
|
1392
|
+
minWidth: "".concat(targetWidth, "px")
|
|
1393
1393
|
});
|
|
1394
1394
|
}
|
|
1395
1395
|
else {
|
|
1396
1396
|
if (placement === 'top') {
|
|
1397
1397
|
panelPlacement = 'top';
|
|
1398
|
-
panelStyle.bottom = targetHeight
|
|
1398
|
+
panelStyle.bottom = "".concat(targetHeight, "px");
|
|
1399
1399
|
}
|
|
1400
1400
|
else if (!placement) {
|
|
1401
1401
|
// 如果下面不够放,则向上
|
|
@@ -1403,7 +1403,7 @@ export default defineComponent({
|
|
|
1403
1403
|
// 如果上面不够放,则向下(优先)
|
|
1404
1404
|
if (boundingTop - targetHeight - panelHeight > marginSize) {
|
|
1405
1405
|
panelPlacement = 'top';
|
|
1406
|
-
panelStyle.bottom = targetHeight
|
|
1406
|
+
panelStyle.bottom = "".concat(targetHeight, "px");
|
|
1407
1407
|
}
|
|
1408
1408
|
}
|
|
1409
1409
|
}
|
|
@@ -1599,7 +1599,7 @@ export default defineComponent({
|
|
|
1599
1599
|
style: festivalItem.style
|
|
1600
1600
|
}, [
|
|
1601
1601
|
festivalLabels.length > 1 ? h('span', {
|
|
1602
|
-
class: ['vxe-input--date-festival--overlap', "overlap--"
|
|
1602
|
+
class: ['vxe-input--date-festival--overlap', "overlap--".concat(festivalLabels.length)]
|
|
1603
1603
|
}, festivalLabels.map(function (label) { return h('span', label.substring(0, 3)); })) : h('span', {
|
|
1604
1604
|
class: 'vxe-input--date-festival--label'
|
|
1605
1605
|
}, festivalLabels[0].substring(0, 3))
|
|
@@ -1619,7 +1619,7 @@ export default defineComponent({
|
|
|
1619
1619
|
var matchFormat = 'yyyyMMdd';
|
|
1620
1620
|
return [
|
|
1621
1621
|
h('table', {
|
|
1622
|
-
class: "vxe-input--date-"
|
|
1622
|
+
class: "vxe-input--date-".concat(datePanelType, "-view"),
|
|
1623
1623
|
cellspacing: 0,
|
|
1624
1624
|
cellpadding: 0,
|
|
1625
1625
|
border: 0
|
|
@@ -1659,7 +1659,7 @@ export default defineComponent({
|
|
|
1659
1659
|
var matchFormat = 'yyyyMMdd';
|
|
1660
1660
|
return [
|
|
1661
1661
|
h('table', {
|
|
1662
|
-
class: "vxe-input--date-"
|
|
1662
|
+
class: "vxe-input--date-".concat(datePanelType, "-view"),
|
|
1663
1663
|
cellspacing: 0,
|
|
1664
1664
|
cellpadding: 0,
|
|
1665
1665
|
border: 0
|
|
@@ -1701,7 +1701,7 @@ export default defineComponent({
|
|
|
1701
1701
|
var matchFormat = 'yyyyMM';
|
|
1702
1702
|
return [
|
|
1703
1703
|
h('table', {
|
|
1704
|
-
class: "vxe-input--date-"
|
|
1704
|
+
class: "vxe-input--date-".concat(datePanelType, "-view"),
|
|
1705
1705
|
cellspacing: 0,
|
|
1706
1706
|
cellpadding: 0,
|
|
1707
1707
|
border: 0
|
|
@@ -1720,7 +1720,7 @@ export default defineComponent({
|
|
|
1720
1720
|
},
|
|
1721
1721
|
onClick: function () { return dateSelectEvent(item); },
|
|
1722
1722
|
onMouseenter: function () { return dateMouseenterEvent(item); }
|
|
1723
|
-
}, renderDateLabel(item, GlobalConfig.i18n("vxe.input.date.months.m"
|
|
1723
|
+
}, renderDateLabel(item, GlobalConfig.i18n("vxe.input.date.months.m".concat(item.month))));
|
|
1724
1724
|
}));
|
|
1725
1725
|
}))
|
|
1726
1726
|
])
|
|
@@ -1735,7 +1735,7 @@ export default defineComponent({
|
|
|
1735
1735
|
var matchFormat = 'yyyyq';
|
|
1736
1736
|
return [
|
|
1737
1737
|
h('table', {
|
|
1738
|
-
class: "vxe-input--date-"
|
|
1738
|
+
class: "vxe-input--date-".concat(datePanelType, "-view"),
|
|
1739
1739
|
cellspacing: 0,
|
|
1740
1740
|
cellpadding: 0,
|
|
1741
1741
|
border: 0
|
|
@@ -1754,7 +1754,7 @@ export default defineComponent({
|
|
|
1754
1754
|
},
|
|
1755
1755
|
onClick: function () { return dateSelectEvent(item); },
|
|
1756
1756
|
onMouseenter: function () { return dateMouseenterEvent(item); }
|
|
1757
|
-
}, renderDateLabel(item, GlobalConfig.i18n("vxe.input.date.quarters.q"
|
|
1757
|
+
}, renderDateLabel(item, GlobalConfig.i18n("vxe.input.date.quarters.q".concat(item.quarter))));
|
|
1758
1758
|
}));
|
|
1759
1759
|
}))
|
|
1760
1760
|
])
|
|
@@ -1769,7 +1769,7 @@ export default defineComponent({
|
|
|
1769
1769
|
var matchFormat = 'yyyy';
|
|
1770
1770
|
return [
|
|
1771
1771
|
h('table', {
|
|
1772
|
-
class: "vxe-input--date-"
|
|
1772
|
+
class: "vxe-input--date-".concat(datePanelType, "-view"),
|
|
1773
1773
|
cellspacing: 0,
|
|
1774
1774
|
cellpadding: 0,
|
|
1775
1775
|
border: 0
|
|
@@ -1838,7 +1838,7 @@ export default defineComponent({
|
|
|
1838
1838
|
onClick: datePrevEvent
|
|
1839
1839
|
}, [
|
|
1840
1840
|
h('i', {
|
|
1841
|
-
class: 'vxe-icon
|
|
1841
|
+
class: 'vxe-icon-caret-left'
|
|
1842
1842
|
})
|
|
1843
1843
|
]),
|
|
1844
1844
|
h('span', {
|
|
@@ -1846,7 +1846,7 @@ export default defineComponent({
|
|
|
1846
1846
|
onClick: dateTodayMonthEvent
|
|
1847
1847
|
}, [
|
|
1848
1848
|
h('i', {
|
|
1849
|
-
class: 'vxe-icon
|
|
1849
|
+
class: 'vxe-icon-dot'
|
|
1850
1850
|
})
|
|
1851
1851
|
]),
|
|
1852
1852
|
h('span', {
|
|
@@ -1856,7 +1856,7 @@ export default defineComponent({
|
|
|
1856
1856
|
onClick: dateNextEvent
|
|
1857
1857
|
}, [
|
|
1858
1858
|
h('i', {
|
|
1859
|
-
class: 'vxe-icon
|
|
1859
|
+
class: 'vxe-icon-caret-right'
|
|
1860
1860
|
})
|
|
1861
1861
|
]),
|
|
1862
1862
|
multiple && computeSupportMultiples.value ? h('span', {
|
|
@@ -1970,8 +1970,8 @@ export default defineComponent({
|
|
|
1970
1970
|
}, [
|
|
1971
1971
|
h('div', {
|
|
1972
1972
|
ref: refInputPanel,
|
|
1973
|
-
class: ['vxe-table--ignore-clear vxe-input--panel', "type--"
|
|
1974
|
-
_a["size--"
|
|
1973
|
+
class: ['vxe-table--ignore-clear vxe-input--panel', "type--".concat(type), (_a = {},
|
|
1974
|
+
_a["size--".concat(vSize)] = vSize,
|
|
1975
1975
|
_a['is--transfer'] = transfer,
|
|
1976
1976
|
_a['animat--leave'] = animatVisible,
|
|
1977
1977
|
_a['animat--enter'] = visiblePanel,
|
|
@@ -2227,9 +2227,9 @@ export default defineComponent({
|
|
|
2227
2227
|
}
|
|
2228
2228
|
return h('div', {
|
|
2229
2229
|
ref: refElem,
|
|
2230
|
-
class: ['vxe-input', "type--"
|
|
2231
|
-
_a["size--"
|
|
2232
|
-
_a["is--"
|
|
2230
|
+
class: ['vxe-input', "type--".concat(type), className, (_a = {},
|
|
2231
|
+
_a["size--".concat(vSize)] = vSize,
|
|
2232
|
+
_a["is--".concat(align)] = align,
|
|
2233
2233
|
_a['is--controls'] = controls,
|
|
2234
2234
|
_a['is--prefix'] = !!prefix,
|
|
2235
2235
|
_a['is--suffix'] = !!suffix,
|
package/es/input/style.css
CHANGED
|
@@ -172,6 +172,10 @@
|
|
|
172
172
|
left: 50%;
|
|
173
173
|
top: 50%;
|
|
174
174
|
transform: translate(-50%, -50%); }
|
|
175
|
+
.vxe-input .vxe-input--date-picker-icon[class*="vxe-icon-"],
|
|
176
|
+
.vxe-input .vxe-input--search-icon[class*="vxe-icon-"],
|
|
177
|
+
.vxe-input .vxe-input--password-icon[class*="vxe-icon-"] {
|
|
178
|
+
font-size: 1.5em; }
|
|
175
179
|
|
|
176
180
|
.vxe-input .vxe-input--date-picker-suffix {
|
|
177
181
|
display: flex;
|
|
@@ -190,6 +194,7 @@
|
|
|
190
194
|
|
|
191
195
|
.vxe-input .vxe-input--number-prev-icon,
|
|
192
196
|
.vxe-input .vxe-input--number-next-icon {
|
|
197
|
+
line-height: 0.8em;
|
|
193
198
|
position: absolute;
|
|
194
199
|
left: 50%;
|
|
195
200
|
transform: translateX(-50%); }
|
|
@@ -521,24 +526,28 @@
|
|
|
521
526
|
|
|
522
527
|
.vxe-input {
|
|
523
528
|
font-size: 14px;
|
|
524
|
-
height: 34px;
|
|
529
|
+
height: 34px;
|
|
530
|
+
line-height: 34px; }
|
|
525
531
|
.vxe-input .vxe-input--inner[type="date"]::-webkit-inner-spin-button, .vxe-input .vxe-input--inner[type="month"]::-webkit-inner-spin-button, .vxe-input .vxe-input--inner[type="week"]::-webkit-inner-spin-button {
|
|
526
532
|
margin-top: 6px; }
|
|
527
533
|
.vxe-input .vxe-input--inner[type="date"]::-webkit-inner-spin-button, .vxe-input .vxe-input--inner[type="month"]::-webkit-inner-spin-button, .vxe-input .vxe-input--inner[type="week"]::-webkit-inner-spin-button, .vxe-input .vxe-input--inner[type="number"]::-webkit-inner-spin-button {
|
|
528
534
|
height: 24px; }
|
|
529
535
|
.vxe-input.size--medium {
|
|
530
536
|
font-size: 14px;
|
|
531
|
-
height: 32px;
|
|
537
|
+
height: 32px;
|
|
538
|
+
line-height: 32px; }
|
|
532
539
|
.vxe-input.size--medium .vxe-input--inner[type="date"]::-webkit-inner-spin-button, .vxe-input.size--medium .vxe-input--inner[type="month"]::-webkit-inner-spin-button, .vxe-input.size--medium .vxe-input--inner[type="week"]::-webkit-inner-spin-button {
|
|
533
540
|
margin-top: 4px; }
|
|
534
541
|
.vxe-input.size--small {
|
|
535
542
|
font-size: 13px;
|
|
536
|
-
height: 30px;
|
|
543
|
+
height: 30px;
|
|
544
|
+
line-height: 30px; }
|
|
537
545
|
.vxe-input.size--small .vxe-input--inner[type="date"]::-webkit-inner-spin-button, .vxe-input.size--small .vxe-input--inner[type="month"]::-webkit-inner-spin-button, .vxe-input.size--small .vxe-input--inner[type="week"]::-webkit-inner-spin-button {
|
|
538
546
|
margin-top: 2px; }
|
|
539
547
|
.vxe-input.size--mini {
|
|
540
548
|
font-size: 12px;
|
|
541
|
-
height: 28px;
|
|
549
|
+
height: 28px;
|
|
550
|
+
line-height: 28px; }
|
|
542
551
|
.vxe-input.size--mini .vxe-input--inner[type="date"]::-webkit-inner-spin-button, .vxe-input.size--mini .vxe-input--inner[type="month"]::-webkit-inner-spin-button, .vxe-input.size--mini .vxe-input--inner[type="week"]::-webkit-inner-spin-button {
|
|
543
552
|
margin-top: 0; }
|
|
544
553
|
|
package/es/keyboard/src/hook.js
CHANGED
|
@@ -49,7 +49,7 @@ var tableKeyboardHook = {
|
|
|
49
49
|
if (rowNodeRest) {
|
|
50
50
|
rangeRows.push(rowNodeRest.item);
|
|
51
51
|
countHeight += targetTrElem.offsetHeight;
|
|
52
|
-
targetTrElem = targetTrElem[siblingProp
|
|
52
|
+
targetTrElem = targetTrElem["".concat(siblingProp, "ElementSibling")];
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -62,7 +62,7 @@ var tableKeyboardHook = {
|
|
|
62
62
|
var elemStore = internalData.elemStore;
|
|
63
63
|
var disX_1 = evnt.clientX;
|
|
64
64
|
var disY_1 = evnt.clientY;
|
|
65
|
-
var bodyWrapperRef = elemStore[(column.fixed || 'main'
|
|
65
|
+
var bodyWrapperRef = elemStore["".concat(column.fixed || 'main', "-body-wrapper")] || elemStore['main-body-wrapper'];
|
|
66
66
|
var bodyWrapperElem_1 = bodyWrapperRef ? bodyWrapperRef.value : null;
|
|
67
67
|
if (!bodyWrapperElem_1) {
|
|
68
68
|
return;
|
|
@@ -83,7 +83,7 @@ var tableKeyboardHook = {
|
|
|
83
83
|
var isMouseScrollDown_1 = false;
|
|
84
84
|
var mouseScrollSpaceSize_1 = 1;
|
|
85
85
|
var triggerEvent_1 = function (type, evnt) {
|
|
86
|
-
$xetable.dispatchEvent("checkbox-range-"
|
|
86
|
+
$xetable.dispatchEvent("checkbox-range-".concat(type), { records: $xetable.getCheckboxRecords(), reserves: $xetable.getCheckboxReserveRecords() }, evnt);
|
|
87
87
|
};
|
|
88
88
|
var handleChecked_1 = function (evnt) {
|
|
89
89
|
var clientX = evnt.clientX, clientY = evnt.clientY;
|
|
@@ -117,10 +117,10 @@ var tableKeyboardHook = {
|
|
|
117
117
|
// 向右
|
|
118
118
|
rangeWidth = Math.min(rangeWidth, bodyWrapperElem_1.clientWidth - startLeft_1 - marginSize_1);
|
|
119
119
|
}
|
|
120
|
-
checkboxRangeElem_1.style.height = rangeHeight
|
|
121
|
-
checkboxRangeElem_1.style.width = rangeWidth
|
|
122
|
-
checkboxRangeElem_1.style.left = rangeLeft
|
|
123
|
-
checkboxRangeElem_1.style.top = rangeTop
|
|
120
|
+
checkboxRangeElem_1.style.height = "".concat(rangeHeight, "px");
|
|
121
|
+
checkboxRangeElem_1.style.width = "".concat(rangeWidth, "px");
|
|
122
|
+
checkboxRangeElem_1.style.left = "".concat(rangeLeft, "px");
|
|
123
|
+
checkboxRangeElem_1.style.top = "".concat(rangeTop, "px");
|
|
124
124
|
checkboxRangeElem_1.style.display = 'block';
|
|
125
125
|
var rangeRows = getCheckboxRangeRows(params, trElem_1, offsetTop < marginSize_1 ? -rangeHeight : rangeHeight);
|
|
126
126
|
// 至少滑动 10px 才能有效匹配
|
package/es/list/src/list.js
CHANGED
|
@@ -67,11 +67,11 @@ export default defineComponent({
|
|
|
67
67
|
var height = props.height, maxHeight = props.maxHeight;
|
|
68
68
|
var style = {};
|
|
69
69
|
if (height) {
|
|
70
|
-
style.height = ""
|
|
70
|
+
style.height = "".concat(isNaN(height) ? height : "".concat(height, "px"));
|
|
71
71
|
}
|
|
72
72
|
else if (maxHeight) {
|
|
73
73
|
style.height = 'auto';
|
|
74
|
-
style.maxHeight = ""
|
|
74
|
+
style.maxHeight = "".concat(isNaN(maxHeight) ? maxHeight : "".concat(maxHeight, "px"));
|
|
75
75
|
}
|
|
76
76
|
return style;
|
|
77
77
|
});
|
|
@@ -282,7 +282,7 @@ export default defineComponent({
|
|
|
282
282
|
return h('div', {
|
|
283
283
|
ref: refElem,
|
|
284
284
|
class: ['vxe-list', className ? (XEUtils.isFunction(className) ? className({ $list: $xelist }) : className) : '', (_a = {},
|
|
285
|
-
_a["size--"
|
|
285
|
+
_a["size--".concat(vSize)] = vSize,
|
|
286
286
|
_a['is--loading'] = loading,
|
|
287
287
|
_a)]
|
|
288
288
|
}, [
|
|
@@ -295,14 +295,14 @@ export default defineComponent({
|
|
|
295
295
|
h('div', {
|
|
296
296
|
class: 'vxe-list--y-space',
|
|
297
297
|
style: {
|
|
298
|
-
height: bodyHeight ? bodyHeight
|
|
298
|
+
height: bodyHeight ? "".concat(bodyHeight, "px") : ''
|
|
299
299
|
}
|
|
300
300
|
}),
|
|
301
301
|
h('div', {
|
|
302
302
|
ref: refVirtualBody,
|
|
303
303
|
class: 'vxe-list--body',
|
|
304
304
|
style: {
|
|
305
|
-
marginTop: topSpaceHeight ? topSpaceHeight
|
|
305
|
+
marginTop: topSpaceHeight ? "".concat(topSpaceHeight, "px") : ''
|
|
306
306
|
}
|
|
307
307
|
}, slots.default ? slots.default({ items: items, $list: $xelist }) : [])
|
|
308
308
|
]),
|
package/es/menu/src/hooks.js
CHANGED
|
@@ -56,8 +56,8 @@ var tableMenuHook = {
|
|
|
56
56
|
showChild: false,
|
|
57
57
|
style: {
|
|
58
58
|
zIndex: internalData.tZindex,
|
|
59
|
-
top: top_1
|
|
60
|
-
left: left_1
|
|
59
|
+
top: "".concat(top_1, "px"),
|
|
60
|
+
left: "".concat(left_1, "px")
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
nextTick(function () {
|
|
@@ -69,10 +69,10 @@ var tableMenuHook = {
|
|
|
69
69
|
var offsetTop = boundingTop + clientHeight - visibleHeight_1;
|
|
70
70
|
var offsetLeft = boundingLeft + clientWidth - visibleWidth_1;
|
|
71
71
|
if (offsetTop > -10) {
|
|
72
|
-
ctxMenuStore.style.top = Math.max(scrollTop_1 + 2, top_1 - clientHeight - 2)
|
|
72
|
+
ctxMenuStore.style.top = "".concat(Math.max(scrollTop_1 + 2, top_1 - clientHeight - 2), "px");
|
|
73
73
|
}
|
|
74
74
|
if (offsetLeft > -10) {
|
|
75
|
-
ctxMenuStore.style.left = Math.max(scrollLeft_1 + 2, left_1 - clientWidth - 2)
|
|
75
|
+
ctxMenuStore.style.left = "".concat(Math.max(scrollLeft_1 + 2, left_1 - clientWidth - 2), "px");
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
78
|
};
|
|
@@ -197,7 +197,7 @@ var tableMenuHook = {
|
|
|
197
197
|
// 分别匹配表尾、内容、表尾的快捷菜单
|
|
198
198
|
for (var index = 0; index < layoutList.length; index++) {
|
|
199
199
|
var layout = layoutList[index];
|
|
200
|
-
var columnTargetNode = getEventTargetNode(evnt, el, "vxe-"
|
|
200
|
+
var columnTargetNode = getEventTargetNode(evnt, el, "vxe-".concat(layout, "--column"), function (target) {
|
|
201
201
|
// target=td|th,直接向上找 table 去匹配即可
|
|
202
202
|
return target.parentNode.parentNode.parentNode.getAttribute('xid') === xID;
|
|
203
203
|
});
|
|
@@ -206,7 +206,7 @@ var tableMenuHook = {
|
|
|
206
206
|
var cell = columnTargetNode.targetElem;
|
|
207
207
|
var columnNodeRest = $xetable.getColumnNode(cell);
|
|
208
208
|
var column = columnNodeRest ? columnNodeRest.item : null;
|
|
209
|
-
var typePrefix = layout
|
|
209
|
+
var typePrefix = "".concat(layout, "-");
|
|
210
210
|
if (column) {
|
|
211
211
|
Object.assign(params, { column: column, columnIndex: $xetable.getColumnIndex(column), cell: cell });
|
|
212
212
|
}
|
|
@@ -219,12 +219,12 @@ var tableMenuHook = {
|
|
|
219
219
|
params.rowIndex = $xetable.getRowIndex(row);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
var eventType = typePrefix
|
|
222
|
+
var eventType = "".concat(typePrefix, "cell-menu");
|
|
223
223
|
openContextMenu(evnt, layout, params);
|
|
224
224
|
$xetable.dispatchEvent(eventType, params, evnt);
|
|
225
225
|
return;
|
|
226
226
|
}
|
|
227
|
-
else if (getEventTargetNode(evnt, el, "vxe-table--"
|
|
227
|
+
else if (getEventTargetNode(evnt, el, "vxe-table--".concat(layout, "-wrapper"), function (target) { return target.getAttribute('xid') === xID; }).flag) {
|
|
228
228
|
if (menuOpts.trigger === 'cell') {
|
|
229
229
|
evnt.preventDefault();
|
|
230
230
|
}
|
|
@@ -261,7 +261,7 @@ var tableMenuHook = {
|
|
|
261
261
|
// 是否超出右侧
|
|
262
262
|
if (posLeft + childWrapperElem.offsetWidth > visibleWidth - 10) {
|
|
263
263
|
left = 'auto';
|
|
264
|
-
right = menuElem.offsetWidth
|
|
264
|
+
right = "".concat(menuElem.offsetWidth, "px");
|
|
265
265
|
}
|
|
266
266
|
// 是否超出底部
|
|
267
267
|
var top_2 = '';
|
package/es/menu/src/panel.js
CHANGED
|
@@ -42,7 +42,7 @@ export default defineComponent({
|
|
|
42
42
|
'link--disabled': item.disabled,
|
|
43
43
|
'link--active': item === ctxMenuStore.selected
|
|
44
44
|
}],
|
|
45
|
-
key: gIndex
|
|
45
|
+
key: "".concat(gIndex, "_").concat(index)
|
|
46
46
|
}, [
|
|
47
47
|
h('a', {
|
|
48
48
|
class: 'vxe-context-menu--link',
|
|
@@ -76,7 +76,7 @@ export default defineComponent({
|
|
|
76
76
|
'link--disabled': child.disabled,
|
|
77
77
|
'link--active': child === ctxMenuStore.selectChild
|
|
78
78
|
}],
|
|
79
|
-
key: gIndex
|
|
79
|
+
key: "".concat(gIndex, "_").concat(index, "_").concat(cIndex)
|
|
80
80
|
}, [
|
|
81
81
|
h('a', {
|
|
82
82
|
class: 'vxe-context-menu--link',
|