vxe-table 4.22.3 → 4.22.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 +72 -67
- package/dist/style.css +1 -1
- package/es/grid/src/grid.js +10 -5
- package/es/style.css +1 -1
- package/es/table/src/table.js +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +13 -5
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +102 -94
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/table.js +1 -1
- package/lib/table/src/table.min.js +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/grid/src/grid.ts +11 -5
- package/packages/table/src/table.ts +1 -1
- /package/es/{iconfont.1790757600308.ttf → iconfont.1791617063720.ttf} +0 -0
- /package/es/{iconfont.1790757600308.woff → iconfont.1791617063720.woff} +0 -0
- /package/es/{iconfont.1790757600308.woff2 → iconfont.1791617063720.woff2} +0 -0
- /package/lib/{iconfont.1790757600308.ttf → iconfont.1791617063720.ttf} +0 -0
- /package/lib/{iconfont.1790757600308.woff → iconfont.1791617063720.woff} +0 -0
- /package/lib/{iconfont.1790757600308.woff2 → iconfont.1791617063720.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -47,7 +47,7 @@ function getDefaultConfig(val1, def1) {
|
|
|
47
47
|
return XEUtils.eqNull(val1) ? def1 : val1;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
const version = "4.22.
|
|
50
|
+
const version = "4.22.4";
|
|
51
51
|
VxeUI.version = version;
|
|
52
52
|
VxeUI.tableVersion = version;
|
|
53
53
|
VxeUI.setConfig({
|
|
@@ -931,7 +931,7 @@ function getPopupWrapperElement(panelElem) {
|
|
|
931
931
|
}
|
|
932
932
|
|
|
933
933
|
const { log } = VxeUI;
|
|
934
|
-
const tableVersion = `table v${"4.22.
|
|
934
|
+
const tableVersion = `table v${"4.22.4"}`;
|
|
935
935
|
function createComponentLog(name) {
|
|
936
936
|
const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : '';
|
|
937
937
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -30599,7 +30599,7 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
30599
30599
|
const parentEl = $xeTable.getParentElem();
|
|
30600
30600
|
resizeObserver = globalResize.create(() => {
|
|
30601
30601
|
if (props.autoResize) {
|
|
30602
|
-
|
|
30602
|
+
layoutReFlag.value++;
|
|
30603
30603
|
}
|
|
30604
30604
|
});
|
|
30605
30605
|
if (el) {
|
|
@@ -30717,6 +30717,54 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
30717
30717
|
}
|
|
30718
30718
|
});
|
|
30719
30719
|
|
|
30720
|
+
function useCellView(props) {
|
|
30721
|
+
const currColumn = computed(() => {
|
|
30722
|
+
const { renderParams } = props;
|
|
30723
|
+
return renderParams.column;
|
|
30724
|
+
});
|
|
30725
|
+
const currRow = computed(() => {
|
|
30726
|
+
const { renderParams } = props;
|
|
30727
|
+
return renderParams.row;
|
|
30728
|
+
});
|
|
30729
|
+
const cellOptions = computed(() => {
|
|
30730
|
+
const { renderOpts } = props;
|
|
30731
|
+
return renderOpts.props || {};
|
|
30732
|
+
});
|
|
30733
|
+
const cellModel = computed({
|
|
30734
|
+
get() {
|
|
30735
|
+
const { renderParams } = props;
|
|
30736
|
+
const { row, column } = renderParams;
|
|
30737
|
+
return XEUtils.get(row, column.field);
|
|
30738
|
+
},
|
|
30739
|
+
set(value) {
|
|
30740
|
+
const { renderParams } = props;
|
|
30741
|
+
const { row, column } = renderParams;
|
|
30742
|
+
return XEUtils.set(row, column.field, value);
|
|
30743
|
+
}
|
|
30744
|
+
});
|
|
30745
|
+
return {
|
|
30746
|
+
currColumn,
|
|
30747
|
+
currRow,
|
|
30748
|
+
cellModel,
|
|
30749
|
+
cellOptions
|
|
30750
|
+
};
|
|
30751
|
+
}
|
|
30752
|
+
|
|
30753
|
+
const VxeTable = Object.assign({}, VxeTableComponent, {
|
|
30754
|
+
install(app) {
|
|
30755
|
+
app.component(VxeTableComponent.name, VxeTableComponent);
|
|
30756
|
+
}
|
|
30757
|
+
});
|
|
30758
|
+
const tableHandle = {
|
|
30759
|
+
useCellView
|
|
30760
|
+
};
|
|
30761
|
+
if (VxeUI.dynamicApp) {
|
|
30762
|
+
VxeUI.dynamicApp.component(VxeTableComponent.name, VxeTableComponent);
|
|
30763
|
+
}
|
|
30764
|
+
VxeUI.component(VxeTableComponent);
|
|
30765
|
+
VxeUI.tableHandle = tableHandle;
|
|
30766
|
+
const Table = VxeTable;
|
|
30767
|
+
|
|
30720
30768
|
const { warnLog: warnLog$1, errLog: errLog$1 } = createComponentLog('toolbar');
|
|
30721
30769
|
const { getConfig: getConfig$1, getIcon, getI18n: getI18n$1, renderer, commands: commands$1, createEvent: createEvent$1, useFns: useFns$1 } = VxeUI;
|
|
30722
30770
|
function createReactData$1() {
|
|
@@ -31335,6 +31383,17 @@ var VxeToolbarComponent = defineVxeComponent({
|
|
|
31335
31383
|
}
|
|
31336
31384
|
});
|
|
31337
31385
|
|
|
31386
|
+
const VxeToolbar = Object.assign({}, VxeToolbarComponent, {
|
|
31387
|
+
install(app) {
|
|
31388
|
+
app.component(VxeToolbarComponent.name, VxeToolbarComponent);
|
|
31389
|
+
}
|
|
31390
|
+
});
|
|
31391
|
+
if (VxeUI.dynamicApp) {
|
|
31392
|
+
VxeUI.dynamicApp.component(VxeToolbarComponent.name, VxeToolbarComponent);
|
|
31393
|
+
}
|
|
31394
|
+
VxeUI.component(VxeToolbarComponent);
|
|
31395
|
+
const Toolbar = VxeToolbar;
|
|
31396
|
+
|
|
31338
31397
|
const { warnLog, errLog } = createComponentLog('grid');
|
|
31339
31398
|
const { getConfig, getI18n, commands, hooks, useFns, createEvent, globalEvents, GLOBAL_EVENT_KEYS, renderEmptyElement } = VxeUI;
|
|
31340
31399
|
const tableComponentPropKeys = Object.keys(tableProps);
|
|
@@ -31423,6 +31482,10 @@ var VxeGridComponent = defineVxeComponent({
|
|
|
31423
31482
|
const computePagerOpts = computed(() => {
|
|
31424
31483
|
return Object.assign({}, getConfig().grid.pagerConfig, props.pagerConfig);
|
|
31425
31484
|
});
|
|
31485
|
+
const computePagerProps = computed(() => {
|
|
31486
|
+
const pagerOpts = computePagerOpts.value;
|
|
31487
|
+
return Object.assign({}, pagerOpts, { enabled: undefined, slots: undefined });
|
|
31488
|
+
});
|
|
31426
31489
|
const computeFormOpts = computed(() => {
|
|
31427
31490
|
return Object.assign({}, getConfig().grid.formConfig, props.formConfig);
|
|
31428
31491
|
});
|
|
@@ -31931,7 +31994,7 @@ var VxeGridComponent = defineVxeComponent({
|
|
|
31931
31994
|
toolbarSlots.toolSuffix = toolSuffixSlot;
|
|
31932
31995
|
}
|
|
31933
31996
|
}
|
|
31934
|
-
slotVNs.push(h(
|
|
31997
|
+
slotVNs.push(h(VxeToolbar, Object.assign(Object.assign({ ref: refToolbar }, toolbarOpts), { slots: undefined }), toolbarSlots));
|
|
31935
31998
|
}
|
|
31936
31999
|
return h('div', {
|
|
31937
32000
|
ref: refToolbarWrapper,
|
|
@@ -32023,7 +32086,7 @@ var VxeGridComponent = defineVxeComponent({
|
|
|
32023
32086
|
return h('div', {
|
|
32024
32087
|
class: 'vxe-grid--table-wrapper'
|
|
32025
32088
|
}, [
|
|
32026
|
-
h(
|
|
32089
|
+
h(VxeTable, Object.assign(Object.assign({ ref: refTable }, tableProps), tableOns), slotObj)
|
|
32027
32090
|
]);
|
|
32028
32091
|
};
|
|
32029
32092
|
/**
|
|
@@ -32046,6 +32109,7 @@ var VxeGridComponent = defineVxeComponent({
|
|
|
32046
32109
|
const { proxyConfig, pagerConfig } = props;
|
|
32047
32110
|
const proxyOpts = computeProxyOpts.value;
|
|
32048
32111
|
const pagerOpts = computePagerOpts.value;
|
|
32112
|
+
const pagerProps = computePagerProps.value;
|
|
32049
32113
|
const pagerSlot = slots.pager;
|
|
32050
32114
|
if ((pagerConfig && isEnableConf(pagerOpts)) || slots.pager) {
|
|
32051
32115
|
return h('div', {
|
|
@@ -32056,7 +32120,7 @@ var VxeGridComponent = defineVxeComponent({
|
|
|
32056
32120
|
? pagerSlot({ $grid: $xeGrid, $gantt: null })
|
|
32057
32121
|
: [
|
|
32058
32122
|
VxeUIPagerComponent
|
|
32059
|
-
? h(VxeUIPagerComponent, Object.assign(Object.assign(Object.assign({ ref: refPager },
|
|
32123
|
+
? h(VxeUIPagerComponent, Object.assign(Object.assign(Object.assign({ ref: refPager }, pagerProps), (proxyConfig && isEnableConf(proxyOpts) ? reactData.tablePage : {})), { onPageChange: pageChangeEvent }), getConfigSlot(pagerOpts.slots))
|
|
32060
32124
|
: renderEmptyElement($xeGrid)
|
|
32061
32125
|
]);
|
|
32062
32126
|
}
|
|
@@ -32808,14 +32872,14 @@ var VxeGridComponent = defineVxeComponent({
|
|
|
32808
32872
|
if ($form) {
|
|
32809
32873
|
return $form.validate();
|
|
32810
32874
|
}
|
|
32811
|
-
return
|
|
32875
|
+
return Promise.resolve();
|
|
32812
32876
|
},
|
|
32813
32877
|
validateFormField(field) {
|
|
32814
32878
|
const $form = refForm.value;
|
|
32815
32879
|
if ($form) {
|
|
32816
32880
|
return $form.validateField(field);
|
|
32817
32881
|
}
|
|
32818
|
-
return
|
|
32882
|
+
return Promise.resolve();
|
|
32819
32883
|
},
|
|
32820
32884
|
clearFormValidate(field) {
|
|
32821
32885
|
const $form = refForm.value;
|
|
@@ -33132,65 +33196,6 @@ if (VxeUI.dynamicApp) {
|
|
|
33132
33196
|
VxeUI.component(VxeGridComponent);
|
|
33133
33197
|
const Grid = VxeGrid;
|
|
33134
33198
|
|
|
33135
|
-
function useCellView(props) {
|
|
33136
|
-
const currColumn = computed(() => {
|
|
33137
|
-
const { renderParams } = props;
|
|
33138
|
-
return renderParams.column;
|
|
33139
|
-
});
|
|
33140
|
-
const currRow = computed(() => {
|
|
33141
|
-
const { renderParams } = props;
|
|
33142
|
-
return renderParams.row;
|
|
33143
|
-
});
|
|
33144
|
-
const cellOptions = computed(() => {
|
|
33145
|
-
const { renderOpts } = props;
|
|
33146
|
-
return renderOpts.props || {};
|
|
33147
|
-
});
|
|
33148
|
-
const cellModel = computed({
|
|
33149
|
-
get() {
|
|
33150
|
-
const { renderParams } = props;
|
|
33151
|
-
const { row, column } = renderParams;
|
|
33152
|
-
return XEUtils.get(row, column.field);
|
|
33153
|
-
},
|
|
33154
|
-
set(value) {
|
|
33155
|
-
const { renderParams } = props;
|
|
33156
|
-
const { row, column } = renderParams;
|
|
33157
|
-
return XEUtils.set(row, column.field, value);
|
|
33158
|
-
}
|
|
33159
|
-
});
|
|
33160
|
-
return {
|
|
33161
|
-
currColumn,
|
|
33162
|
-
currRow,
|
|
33163
|
-
cellModel,
|
|
33164
|
-
cellOptions
|
|
33165
|
-
};
|
|
33166
|
-
}
|
|
33167
|
-
|
|
33168
|
-
const VxeTable = Object.assign({}, VxeTableComponent, {
|
|
33169
|
-
install(app) {
|
|
33170
|
-
app.component(VxeTableComponent.name, VxeTableComponent);
|
|
33171
|
-
}
|
|
33172
|
-
});
|
|
33173
|
-
const tableHandle = {
|
|
33174
|
-
useCellView
|
|
33175
|
-
};
|
|
33176
|
-
if (VxeUI.dynamicApp) {
|
|
33177
|
-
VxeUI.dynamicApp.component(VxeTableComponent.name, VxeTableComponent);
|
|
33178
|
-
}
|
|
33179
|
-
VxeUI.component(VxeTableComponent);
|
|
33180
|
-
VxeUI.tableHandle = tableHandle;
|
|
33181
|
-
const Table = VxeTable;
|
|
33182
|
-
|
|
33183
|
-
const VxeToolbar = Object.assign({}, VxeToolbarComponent, {
|
|
33184
|
-
install(app) {
|
|
33185
|
-
app.component(VxeToolbarComponent.name, VxeToolbarComponent);
|
|
33186
|
-
}
|
|
33187
|
-
});
|
|
33188
|
-
if (VxeUI.dynamicApp) {
|
|
33189
|
-
VxeUI.dynamicApp.component(VxeToolbarComponent.name, VxeToolbarComponent);
|
|
33190
|
-
}
|
|
33191
|
-
VxeUI.component(VxeToolbarComponent);
|
|
33192
|
-
const Toolbar = VxeToolbar;
|
|
33193
|
-
|
|
33194
33199
|
var zhCN = {
|
|
33195
33200
|
vxe: {
|
|
33196
33201
|
base: {
|