@vxe-ui/plugin-render-antd 3.2.3 → 3.3.1

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.
@@ -0,0 +1,533 @@
1
+ import XEUtils from 'xe-utils';
2
+ /**
3
+ * 表格 - 渲染器
4
+ */
5
+ export function defineTableRender(VxeUI) {
6
+ function isEmptyValue(cellValue) {
7
+ return cellValue === null || cellValue === undefined || cellValue === '';
8
+ }
9
+ function getOnName(type) {
10
+ return XEUtils.kebabCase(type);
11
+ }
12
+ function getModelProp(renderOpts) {
13
+ let prop = 'value';
14
+ switch (renderOpts.name) {
15
+ case 'ASwitch':
16
+ prop = 'checked';
17
+ break;
18
+ }
19
+ return prop;
20
+ }
21
+ function getModelEvent(renderOpts) {
22
+ let type = 'change';
23
+ switch (renderOpts.name) {
24
+ case 'AInput':
25
+ type = 'change.value';
26
+ break;
27
+ case 'ARadio':
28
+ case 'ACheckbox':
29
+ type = 'input';
30
+ break;
31
+ }
32
+ return type;
33
+ }
34
+ function dateFormatToVxeFormat(format) {
35
+ if (format) {
36
+ return `${format}`.replace('YYYY', 'yyyy').replace('DD', 'dd');
37
+ }
38
+ return format;
39
+ }
40
+ function getChangeEvent(renderOpts) {
41
+ return 'change';
42
+ }
43
+ function getCellEditFilterProps(renderOpts, params, value, defaultProps) {
44
+ return XEUtils.assign({}, defaultProps, renderOpts.props, { [getModelProp(renderOpts)]: value });
45
+ }
46
+ function formatText(cellValue) {
47
+ return '' + (isEmptyValue(cellValue) ? '' : cellValue);
48
+ }
49
+ function getCellLabelVNs(h, renderOpts, params, cellLabel) {
50
+ const { placeholder } = renderOpts;
51
+ return [
52
+ h('span', {
53
+ class: 'vxe-cell--label'
54
+ }, placeholder && isEmptyValue(cellLabel)
55
+ ? [
56
+ h('span', {
57
+ class: 'vxe-cell--placeholder'
58
+ }, formatText(placeholder))
59
+ ]
60
+ : formatText(cellLabel))
61
+ ];
62
+ }
63
+ function getOns(renderOpts, params, inputFunc, changeFunc) {
64
+ const { events } = renderOpts;
65
+ const modelEvent = getModelEvent(renderOpts);
66
+ const changeEvent = getChangeEvent(renderOpts);
67
+ const isSameEvent = changeEvent === modelEvent;
68
+ const ons = {};
69
+ XEUtils.objectEach(events, (func, key) => {
70
+ ons[getOnName(key)] = function (...args) {
71
+ func(params, ...args);
72
+ };
73
+ });
74
+ if (inputFunc) {
75
+ ons[getOnName(modelEvent)] = function (targetEvnt) {
76
+ inputFunc(targetEvnt);
77
+ if (events && events[modelEvent]) {
78
+ events[modelEvent](params, targetEvnt);
79
+ }
80
+ if (isSameEvent && changeFunc) {
81
+ changeFunc(targetEvnt);
82
+ }
83
+ };
84
+ }
85
+ if (!isSameEvent && changeFunc) {
86
+ ons[getOnName(changeEvent)] = function (...args) {
87
+ changeFunc(...args);
88
+ if (events && events[changeEvent]) {
89
+ events[changeEvent](params, ...args);
90
+ }
91
+ };
92
+ }
93
+ return ons;
94
+ }
95
+ function getEditOns(renderOpts, params) {
96
+ const { $table, row, column } = params;
97
+ return getOns(renderOpts, params, (value) => {
98
+ // 处理 model 值双向绑定
99
+ XEUtils.set(row, column.field, value);
100
+ }, () => {
101
+ // 处理 change 事件相关逻辑
102
+ $table.updateStatus(params);
103
+ });
104
+ }
105
+ function getFilterOns(renderOpts, params, option, changeFunc) {
106
+ return getOns(renderOpts, params, (value) => {
107
+ // 处理 model 值双向绑定
108
+ option.data = value;
109
+ }, changeFunc);
110
+ }
111
+ function matchCascaderData(index, list, values, labels) {
112
+ const val = values[index];
113
+ if (list && values.length > index) {
114
+ XEUtils.each(list, (item) => {
115
+ if (item.value === val) {
116
+ labels.push(item.label);
117
+ matchCascaderData(++index, item.children, values, labels);
118
+ }
119
+ });
120
+ }
121
+ }
122
+ function formatDatePicker(defaultFormat) {
123
+ return function (h, renderOpts, params) {
124
+ return getCellLabelVNs(h, renderOpts, params, getDatePickerCellValue(renderOpts, params, defaultFormat));
125
+ };
126
+ }
127
+ function formatTimePicker(defaultFormat) {
128
+ return function (h, renderOpts, params) {
129
+ const { props = {} } = renderOpts;
130
+ const { row, column } = params;
131
+ let cellValue = XEUtils.get(row, column.field);
132
+ try {
133
+ if (cellValue) {
134
+ if (!XEUtils.isString(cellValue)) {
135
+ cellValue = cellValue.format ? cellValue.format(props.format || props.valueFormat || defaultFormat) : XEUtils.toDateString(cellValue, dateFormatToVxeFormat(props.format || props.valueFormat || defaultFormat));
136
+ }
137
+ }
138
+ }
139
+ catch (e) { }
140
+ return getCellLabelVNs(h, renderOpts, params, cellValue);
141
+ };
142
+ }
143
+ function getSelectCellValue(renderOpts, params) {
144
+ const { options = [], optionGroups, props = {}, optionProps = {}, optionGroupProps = {} } = renderOpts;
145
+ const { row, column } = params;
146
+ const labelProp = optionProps.label || 'label';
147
+ const valueProp = optionProps.value || 'value';
148
+ const groupOptions = optionGroupProps.options || 'options';
149
+ const cellValue = XEUtils.get(row, column.field);
150
+ if (!isEmptyValue(cellValue)) {
151
+ return XEUtils.map(props.mode === 'multiple' ? cellValue : [cellValue], optionGroups
152
+ ? (value) => {
153
+ let selectItem;
154
+ for (let index = 0; index < optionGroups.length; index++) {
155
+ selectItem = XEUtils.find(optionGroups[index][groupOptions], (item) => item[valueProp] === value);
156
+ if (selectItem) {
157
+ break;
158
+ }
159
+ }
160
+ return selectItem ? selectItem[labelProp] : value;
161
+ }
162
+ : (value) => {
163
+ const selectItem = XEUtils.find(options, (item) => item[valueProp] === value);
164
+ return selectItem ? selectItem[labelProp] : value;
165
+ }).join(', ');
166
+ }
167
+ return '';
168
+ }
169
+ function getCascaderCellValue(renderOpts, params) {
170
+ const { props = {} } = renderOpts;
171
+ const { row, column } = params;
172
+ const cellValue = XEUtils.get(row, column.field);
173
+ const values = cellValue || [];
174
+ const labels = [];
175
+ matchCascaderData(0, props.options, values, labels);
176
+ return (props.showAllLevels === false ? labels.slice(labels.length - 1, labels.length) : labels).join(` ${props.separator || '/'} `);
177
+ }
178
+ function getRangePickerCellValue(renderOpts, params) {
179
+ const { props = {} } = renderOpts;
180
+ const { row, column } = params;
181
+ let cellValue = XEUtils.get(row, column.field);
182
+ if (cellValue) {
183
+ cellValue = XEUtils.map(cellValue, (date) => {
184
+ return date && date.format ? date.format(props.format || 'YYYY-MM-DD') : XEUtils.toDateString(date, dateFormatToVxeFormat(props.format || 'YYYY-MM-DD'));
185
+ }).join(' ~ ');
186
+ }
187
+ return cellValue;
188
+ }
189
+ function getTreeSelectCellValue(renderOpts, params) {
190
+ const { props = {} } = renderOpts;
191
+ const { treeData, treeCheckable } = props;
192
+ const { row, column } = params;
193
+ const cellValue = XEUtils.get(row, column.field);
194
+ if (!isEmptyValue(cellValue)) {
195
+ return XEUtils.map(treeCheckable ? cellValue : [cellValue], (value) => {
196
+ const matchObj = XEUtils.findTree(treeData, (item) => item.value === value, { children: 'children' });
197
+ return matchObj ? matchObj.item.title : value;
198
+ }).join(', ');
199
+ }
200
+ return cellValue;
201
+ }
202
+ function getDatePickerCellValue(renderOpts, params, defaultFormat) {
203
+ const { props = {} } = renderOpts;
204
+ const { row, column } = params;
205
+ let cellValue = XEUtils.get(row, column.field);
206
+ try {
207
+ if (cellValue) {
208
+ if (!defaultFormat) {
209
+ if (renderOpts.name === 'ADatePicker') {
210
+ switch (props.picker) {
211
+ case 'week':
212
+ defaultFormat = 'YYYY-WW周';
213
+ break;
214
+ case 'month':
215
+ defaultFormat = 'YYYY-MM';
216
+ break;
217
+ case 'year':
218
+ defaultFormat = 'YYYY';
219
+ break;
220
+ default:
221
+ defaultFormat = props.showTime ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD';
222
+ break;
223
+ }
224
+ }
225
+ }
226
+ cellValue = cellValue.format ? cellValue.format(props.format || defaultFormat) : XEUtils.toDateString(cellValue, dateFormatToVxeFormat(props.format || defaultFormat));
227
+ }
228
+ }
229
+ catch (e) { }
230
+ return cellValue;
231
+ }
232
+ function createEditRender(defaultProps) {
233
+ return function (h, renderOpts, params) {
234
+ const { row, column } = params;
235
+ const { name, attrs } = renderOpts;
236
+ const cellValue = XEUtils.get(row, column.field);
237
+ return [
238
+ h(name, {
239
+ attrs,
240
+ props: getCellEditFilterProps(renderOpts, params, cellValue, defaultProps),
241
+ on: getEditOns(renderOpts, params)
242
+ })
243
+ ];
244
+ };
245
+ }
246
+ function defaultButtonEditRender(h, renderOpts, params) {
247
+ const { attrs } = renderOpts;
248
+ return [
249
+ h('a-button', {
250
+ attrs,
251
+ props: getCellEditFilterProps(renderOpts, params, null),
252
+ on: getOns(renderOpts, params)
253
+ }, cellText(renderOpts.content))
254
+ ];
255
+ }
256
+ function defaultButtonsEditRender(h, renderOpts, params) {
257
+ const { children } = renderOpts;
258
+ if (children) {
259
+ return children.map((childRenderOpts) => defaultButtonEditRender(h, childRenderOpts, params)[0]);
260
+ }
261
+ return [];
262
+ }
263
+ function createFilterRender(defaultProps) {
264
+ return function (h, renderOpts, params) {
265
+ const { column } = params;
266
+ const { name, attrs } = renderOpts;
267
+ return [
268
+ h('div', {
269
+ class: 'vxe-table--filter-antd-wrapper'
270
+ }, column.filters.map((option, oIndex) => {
271
+ const optionValue = option.data;
272
+ return h(name, {
273
+ key: oIndex,
274
+ attrs,
275
+ props: Object.assign({}, getCellEditFilterProps(renderOpts, params, optionValue, defaultProps)),
276
+ on: getFilterOns(renderOpts, params, option, () => {
277
+ // 处理 change 事件相关逻辑
278
+ handleConfirmFilter(params, !!option.data, option);
279
+ })
280
+ });
281
+ }))
282
+ ];
283
+ };
284
+ }
285
+ function handleConfirmFilter(params, checked, option) {
286
+ const { $panel } = params;
287
+ $panel.changeOption(null, checked, option);
288
+ }
289
+ /**
290
+ * 模糊匹配
291
+ * @param params
292
+ */
293
+ function defaultFuzzyFilterMethod(params) {
294
+ const { option, row, column } = params;
295
+ const { data } = option;
296
+ const cellValue = XEUtils.get(row, column.field);
297
+ return XEUtils.toValueString(cellValue).indexOf(data) > -1;
298
+ }
299
+ /**
300
+ * 精确匹配
301
+ * @param params
302
+ */
303
+ function defaultExactFilterMethod(params) {
304
+ const { option, row, column } = params;
305
+ const { data } = option;
306
+ const cellValue = XEUtils.get(row, column.field);
307
+ /* eslint-disable eqeqeq */
308
+ return cellValue === data;
309
+ }
310
+ function renderOptions(h, options, optionProps) {
311
+ const labelProp = optionProps.label || 'label';
312
+ const valueProp = optionProps.value || 'value';
313
+ return XEUtils.map(options, (item, oIndex) => {
314
+ return h('a-select-option', {
315
+ key: oIndex,
316
+ props: {
317
+ value: item[valueProp],
318
+ disabled: item.disabled
319
+ }
320
+ }, item[labelProp]);
321
+ });
322
+ }
323
+ function cellText(cellValue) {
324
+ return [formatText(cellValue)];
325
+ }
326
+ function createDatePickerExportMethod(defaultFormat) {
327
+ return function (params) {
328
+ const { row, column, options } = params;
329
+ return options && options.original ? XEUtils.get(row, column.field) : getDatePickerCellValue(column.editRender || column.cellRender, params, defaultFormat);
330
+ };
331
+ }
332
+ function createExportMethod(getExportCellValue) {
333
+ return function (params) {
334
+ const { row, column, options } = params;
335
+ return options && options.original ? XEUtils.get(row, column.field) : getExportCellValue(column.editRender || column.cellRender, params);
336
+ };
337
+ }
338
+ VxeUI.renderer.mixin({
339
+ AAutoComplete: {
340
+ tableAutoFocus: 'input',
341
+ renderTableDefault: createEditRender(),
342
+ renderTableEdit: createEditRender(),
343
+ renderTableFilter: createFilterRender(),
344
+ tableFilterDefaultMethod: defaultFuzzyFilterMethod
345
+ },
346
+ AInput: {
347
+ tableAutoFocus: 'input',
348
+ renderTableDefault: createEditRender(),
349
+ renderTableEdit: createEditRender(),
350
+ renderTableFilter: createFilterRender(),
351
+ tableFilterDefaultMethod: defaultFuzzyFilterMethod
352
+ },
353
+ AInputNumber: {
354
+ tableAutoFocus: 'input',
355
+ renderTableDefault: createEditRender(),
356
+ renderTableEdit: createEditRender(),
357
+ renderTableFilter: createFilterRender(),
358
+ tableFilterDefaultMethod: defaultFuzzyFilterMethod
359
+ },
360
+ ASelect: {
361
+ renderTableEdit(h, renderOpts, params) {
362
+ const { options = [], optionGroups, optionProps = {}, optionGroupProps = {} } = renderOpts;
363
+ const { row, column } = params;
364
+ const { attrs } = renderOpts;
365
+ const cellValue = XEUtils.get(row, column.field);
366
+ const props = getCellEditFilterProps(renderOpts, params, cellValue);
367
+ const ons = getEditOns(renderOpts, params);
368
+ if (optionGroups) {
369
+ const groupOptions = optionGroupProps.options || 'options';
370
+ const groupLabel = optionGroupProps.label || 'label';
371
+ return [
372
+ h('a-select', {
373
+ attrs,
374
+ props: Object.assign(Object.assign({}, props), { options: undefined }),
375
+ on: ons
376
+ }, XEUtils.map(optionGroups, (group, gIndex) => {
377
+ return h('a-select-opt-group', {
378
+ key: gIndex
379
+ }, [
380
+ h('span', {
381
+ slot: 'label'
382
+ }, group[groupLabel])
383
+ ].concat(renderOptions(h, group[groupOptions], optionProps)));
384
+ }))
385
+ ];
386
+ }
387
+ return [
388
+ h('a-select', {
389
+ attrs,
390
+ props: Object.assign(Object.assign({}, props), { options: props.options || options }),
391
+ on: ons
392
+ })
393
+ ];
394
+ },
395
+ renderTableCell(h, renderOpts, params) {
396
+ return getCellLabelVNs(h, renderOpts, params, getSelectCellValue(renderOpts, params));
397
+ },
398
+ renderTableFilter(h, renderOpts, params) {
399
+ const { options = [], optionGroups, optionGroupProps = {} } = renderOpts;
400
+ const groupOptions = optionGroupProps.options || 'options';
401
+ const { column } = params;
402
+ const { attrs } = renderOpts;
403
+ return [
404
+ h('div', {
405
+ class: 'vxe-table--filter-antd-wrapper'
406
+ }, optionGroups
407
+ ? column.filters.map((option, oIndex) => {
408
+ const optionValue = option.data;
409
+ const props = getCellEditFilterProps(renderOpts, params, optionValue);
410
+ return h('a-select', {
411
+ key: oIndex,
412
+ attrs,
413
+ props: Object.assign(Object.assign({}, props), { options: groupOptions }),
414
+ on: getFilterOns(renderOpts, params, option, () => {
415
+ // 处理 change 事件相关逻辑
416
+ handleConfirmFilter(params, props.mode === 'multiple' ? (option.data && option.data.length > 0) : !XEUtils.eqNull(option.data), option);
417
+ })
418
+ });
419
+ })
420
+ : column.filters.map((option, oIndex) => {
421
+ const optionValue = option.data;
422
+ const props = getCellEditFilterProps(renderOpts, params, optionValue);
423
+ return h('a-select', {
424
+ key: oIndex,
425
+ attrs,
426
+ props: Object.assign(Object.assign({}, props), { options: props.options || options }),
427
+ on: getFilterOns(renderOpts, params, option, () => {
428
+ // 处理 change 事件相关逻辑
429
+ handleConfirmFilter(params, props.mode === 'multiple' ? (option.data && option.data.length > 0) : !XEUtils.eqNull(option.data), option);
430
+ })
431
+ });
432
+ }))
433
+ ];
434
+ },
435
+ tableFilterDefaultMethod(params) {
436
+ const { option, row, column } = params;
437
+ const { data } = option;
438
+ const { field, filterRender: renderOpts } = column;
439
+ const { props = {} } = renderOpts;
440
+ const cellValue = XEUtils.get(row, field);
441
+ if (props.mode === 'multiple') {
442
+ if (XEUtils.isArray(cellValue)) {
443
+ return XEUtils.includeArrays(cellValue, data);
444
+ }
445
+ return data.indexOf(cellValue) > -1;
446
+ }
447
+ /* eslint-disable eqeqeq */
448
+ return cellValue == data;
449
+ },
450
+ tableExportMethod: createExportMethod(getSelectCellValue)
451
+ },
452
+ ACascader: {
453
+ renderTableEdit: createEditRender(),
454
+ renderTableCell(h, renderOpts, params) {
455
+ return getCellLabelVNs(h, renderOpts, params, getCascaderCellValue(renderOpts, params));
456
+ },
457
+ tableExportMethod: createExportMethod(getCascaderCellValue)
458
+ },
459
+ ADatePicker: {
460
+ renderTableEdit: createEditRender(),
461
+ renderTableCell: formatDatePicker(),
462
+ tableExportMethod: createDatePickerExportMethod()
463
+ },
464
+ AMonthPicker: {
465
+ renderTableEdit: createEditRender(),
466
+ renderTableCell: formatDatePicker('YYYY-MM'),
467
+ tableExportMethod: createDatePickerExportMethod('YYYY-MM')
468
+ },
469
+ ARangePicker: {
470
+ renderTableEdit: createEditRender(),
471
+ renderTableCell(h, renderOpts, params) {
472
+ return getCellLabelVNs(h, renderOpts, params, getRangePickerCellValue(renderOpts, params));
473
+ },
474
+ tableExportMethod: createExportMethod(getRangePickerCellValue)
475
+ },
476
+ AWeekPicker: {
477
+ renderTableEdit: createEditRender(),
478
+ renderTableCell: formatDatePicker('YYYY-WW周'),
479
+ tableExportMethod: createDatePickerExportMethod('YYYY-WW周')
480
+ },
481
+ ATimePicker: {
482
+ renderTableEdit: createEditRender(),
483
+ renderTableCell: formatTimePicker('HH:mm:ss'),
484
+ tableExportMethod: createDatePickerExportMethod('HH:mm:ss')
485
+ },
486
+ ATreeSelect: {
487
+ renderTableEdit: createEditRender(),
488
+ renderTableCell(h, renderOpts, params) {
489
+ return getCellLabelVNs(h, renderOpts, params, getTreeSelectCellValue(renderOpts, params));
490
+ },
491
+ tableExportMethod: createExportMethod(getTreeSelectCellValue)
492
+ },
493
+ ARate: {
494
+ renderTableDefault: createEditRender(),
495
+ renderTableEdit: createEditRender(),
496
+ renderTableFilter: createFilterRender(),
497
+ tableFilterDefaultMethod: defaultExactFilterMethod
498
+ },
499
+ ASwitch: {
500
+ renderTableDefault: createEditRender(),
501
+ renderTableEdit: createEditRender(),
502
+ renderTableFilter(h, renderOpts, params) {
503
+ const { column } = params;
504
+ const { name, attrs } = renderOpts;
505
+ return [
506
+ h('div', {
507
+ class: 'vxe-table--filter-antd-wrapper'
508
+ }, column.filters.map((option, oIndex) => {
509
+ const optionValue = option.data;
510
+ return h(name, {
511
+ key: oIndex,
512
+ attrs,
513
+ props: getCellEditFilterProps(renderOpts, params, optionValue),
514
+ on: getFilterOns(renderOpts, params, option, () => {
515
+ // 处理 change 事件相关逻辑
516
+ handleConfirmFilter(params, XEUtils.isBoolean(option.data), option);
517
+ })
518
+ });
519
+ }))
520
+ ];
521
+ },
522
+ tableFilterDefaultMethod: defaultExactFilterMethod
523
+ },
524
+ AButton: {
525
+ renderTableEdit: defaultButtonEditRender,
526
+ renderTableDefault: defaultButtonEditRender
527
+ },
528
+ AButtons: {
529
+ renderTableEdit: defaultButtonsEditRender,
530
+ renderTableDefault: defaultButtonsEditRender
531
+ }
532
+ });
533
+ }
@@ -0,0 +1,8 @@
1
+ import { componentMaps } from '../store';
2
+ export function getCurrComponent(name) {
3
+ const comp = componentMaps[name];
4
+ if (comp) {
5
+ return comp;
6
+ }
7
+ return 'name';
8
+ }
@@ -101,6 +101,9 @@ function defineFormRender(VxeUI) {
101
101
  }, function () {
102
102
  // 处理 change 事件相关逻辑
103
103
  $form.updateStatus(params);
104
+ if (renderOpts.changeToSubmit) {
105
+ $form.handleSubmitEvent(new Event('change'));
106
+ }
104
107
  });
105
108
  }
106
109
  function renderOptions(h, options, optionProps) {
@@ -53,7 +53,7 @@ var VxeUIPluginRenderAntd = exports.VxeUIPluginRenderAntd = {
53
53
  _store.componentMaps[kcName] = comp;
54
54
  _store.componentMaps[ccName] = comp;
55
55
  } else {
56
- console.error('[@vxe-ui/plugin-render-antd 3.2.3] error component.', comp);
56
+ console.error('[@vxe-ui/plugin-render-antd 3.3.1] error component.', comp);
57
57
  }
58
58
  },
59
59
  install: function install(VxeUI, options) {
@@ -63,11 +63,11 @@ var VxeUIPluginRenderAntd = exports.VxeUIPluginRenderAntd = {
63
63
  var pVersion = 3;
64
64
  var sVersion = 13;
65
65
  if (!VxeUI.checkVersion(VxeUI.tableVersion, pVersion, sVersion)) {
66
- console.error("[@vxe-ui/plugin-render-antd 3.2.3] ".concat(VxeUI.getI18n('vxe.error.errorVersion', ["vxe-table@".concat(VxeUI.tableVersion || '?'), "vxe-table v".concat(pVersion, ".").concat(sVersion, "+")])));
66
+ console.error("[@vxe-ui/plugin-render-antd 3.3.1] ".concat(VxeUI.getI18n('vxe.error.errorVersion', ["vxe-table@".concat(VxeUI.tableVersion || '?'), "vxe-table v".concat(pVersion, ".").concat(sVersion, "+")])));
67
67
  }
68
68
  } else {
69
69
  if (!/^(3)\./.test(VxeUI.uiVersion || VxeUI.tableVersion)) {
70
- console.error('[@vxe-ui/plugin-render-antd 3.2.3] Requires vxe-table 3.9.0+ version. https://vxeui.com/other3/#/plugin-render-antd/install');
70
+ console.error('[@vxe-ui/plugin-render-antd 3.3.1] Requires vxe-table 3.9.0+ version. https://vxeui.com/other3/#/plugin-render-antd/install');
71
71
  }
72
72
  }
73
73
  /**
@@ -53,7 +53,7 @@ var VxeUIPluginRenderAntd = exports.VxeUIPluginRenderAntd = {
53
53
  _store.componentMaps[kcName] = comp;
54
54
  _store.componentMaps[ccName] = comp;
55
55
  } else {
56
- console.error('[@vxe-ui/plugin-render-antd 3.2.3] error component.', comp);
56
+ console.error('[@vxe-ui/plugin-render-antd 3.3.1] error component.', comp);
57
57
  }
58
58
  },
59
59
  install: function install(VxeUI, options) {
@@ -63,11 +63,11 @@ var VxeUIPluginRenderAntd = exports.VxeUIPluginRenderAntd = {
63
63
  var pVersion = 3;
64
64
  var sVersion = 13;
65
65
  if (!VxeUI.checkVersion(VxeUI.tableVersion, pVersion, sVersion)) {
66
- console.error("[@vxe-ui/plugin-render-antd 3.2.3] ".concat(VxeUI.getI18n('vxe.error.errorVersion', ["vxe-table@".concat(VxeUI.tableVersion || '?'), "vxe-table v".concat(pVersion, ".").concat(sVersion, "+")])));
66
+ console.error("[@vxe-ui/plugin-render-antd 3.3.1] ".concat(VxeUI.getI18n('vxe.error.errorVersion', ["vxe-table@".concat(VxeUI.tableVersion || '?'), "vxe-table v".concat(pVersion, ".").concat(sVersion, "+")])));
67
67
  }
68
68
  } else {
69
69
  if (!/^(3)\./.test(VxeUI.uiVersion || VxeUI.tableVersion)) {
70
- console.error('[@vxe-ui/plugin-render-antd 3.2.3] Requires vxe-table 3.9.0+ version. https://vxeui.com/other3/#/plugin-render-antd/install');
70
+ console.error('[@vxe-ui/plugin-render-antd 3.3.1] Requires vxe-table 3.9.0+ version. https://vxeui.com/other3/#/plugin-render-antd/install');
71
71
  }
72
72
  }
73
73
  /**