vxe-table 4.10.11 → 4.10.13

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.
Files changed (56) hide show
  1. package/es/index.css +1 -1
  2. package/es/index.min.css +1 -1
  3. package/es/style.css +1 -1
  4. package/es/style.min.css +1 -1
  5. package/es/table/module/edit/hook.js +7 -8
  6. package/es/table/module/export/hook.js +3 -2
  7. package/es/table/module/validator/hook.js +11 -0
  8. package/es/table/render/index.js +104 -43
  9. package/es/table/src/body.js +1 -0
  10. package/es/table/src/table.js +41 -31
  11. package/es/table/style.css +10 -2
  12. package/es/table/style.min.css +1 -1
  13. package/es/ui/index.js +1 -1
  14. package/es/ui/src/log.js +1 -1
  15. package/es/vxe-table/style.css +10 -2
  16. package/es/vxe-table/style.min.css +1 -1
  17. package/lib/index.css +1 -1
  18. package/lib/index.min.css +1 -1
  19. package/lib/index.umd.js +193 -95
  20. package/lib/index.umd.min.js +1 -1
  21. package/lib/style.css +1 -1
  22. package/lib/style.min.css +1 -1
  23. package/lib/table/module/edit/hook.js +7 -8
  24. package/lib/table/module/edit/hook.min.js +1 -1
  25. package/lib/table/module/export/hook.js +3 -2
  26. package/lib/table/module/export/hook.min.js +1 -1
  27. package/lib/table/module/validator/hook.js +16 -0
  28. package/lib/table/module/validator/hook.min.js +1 -1
  29. package/lib/table/render/index.js +109 -41
  30. package/lib/table/render/index.min.js +1 -1
  31. package/lib/table/src/body.js +1 -0
  32. package/lib/table/src/body.min.js +1 -1
  33. package/lib/table/src/table.js +55 -42
  34. package/lib/table/src/table.min.js +1 -1
  35. package/lib/table/style/style.css +10 -2
  36. package/lib/table/style/style.min.css +1 -1
  37. package/lib/ui/index.js +1 -1
  38. package/lib/ui/index.min.js +1 -1
  39. package/lib/ui/src/log.js +1 -1
  40. package/lib/ui/src/log.min.js +1 -1
  41. package/lib/vxe-table/style/style.css +10 -2
  42. package/lib/vxe-table/style/style.min.css +1 -1
  43. package/package.json +1 -1
  44. package/packages/table/module/edit/hook.ts +7 -8
  45. package/packages/table/module/export/hook.ts +3 -2
  46. package/packages/table/module/validator/hook.ts +11 -0
  47. package/packages/table/render/index.ts +120 -51
  48. package/packages/table/src/body.ts +1 -0
  49. package/packages/table/src/table.ts +44 -31
  50. package/styles/components/table.scss +10 -2
  51. /package/es/{iconfont.1739164577907.ttf → iconfont.1739257038865.ttf} +0 -0
  52. /package/es/{iconfont.1739164577907.woff → iconfont.1739257038865.woff} +0 -0
  53. /package/es/{iconfont.1739164577907.woff2 → iconfont.1739257038865.woff2} +0 -0
  54. /package/lib/{iconfont.1739164577907.ttf → iconfont.1739257038865.ttf} +0 -0
  55. /package/lib/{iconfont.1739164577907.woff → iconfont.1739257038865.woff} +0 -0
  56. /package/lib/{iconfont.1739164577907.woff2 → iconfont.1739257038865.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -3138,7 +3138,7 @@ function eqEmptyValue(cellValue) {
3138
3138
  ;// ./packages/ui/index.ts
3139
3139
 
3140
3140
 
3141
- const version = "4.10.11";
3141
+ const version = "4.10.13";
3142
3142
  core_.VxeUI.version = version;
3143
3143
  core_.VxeUI.tableVersion = version;
3144
3144
  core_.VxeUI.setConfig({
@@ -3585,7 +3585,7 @@ var esnext_iterator_some = __webpack_require__(7550);
3585
3585
  const {
3586
3586
  log: log_log
3587
3587
  } = core_.VxeUI;
3588
- const log_version = `table v${"4.10.11"}`;
3588
+ const log_version = `table v${"4.10.13"}`;
3589
3589
  const warnLog = log_log.create('warn', log_version);
3590
3590
  const errLog = log_log.create('error', log_version);
3591
3591
  ;// ./packages/table/src/columnInfo.ts
@@ -6606,6 +6606,7 @@ const renderType = 'body';
6606
6606
  'fixed--width': !isAutoCellWidth,
6607
6607
  'fixed--hidden': fixedHiddenColumn,
6608
6608
  'is--padding': isCellPadding,
6609
+ 'is--progress': fixedHiddenColumn && isAllOverflow || isVNPreEmptyStatus,
6609
6610
  'is--drag-cell': isRowDragCell && (isCrossDrag || isPeerDrag || !rowLevel),
6610
6611
  'is--drag-disabled': isDisabledDrag,
6611
6612
  'col--dirty': isDirty,
@@ -12059,7 +12060,10 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
12059
12060
  const treeOpts = computeTreeOpts.value;
12060
12061
  const childrenField = treeOpts.children || treeOpts.childrenField;
12061
12062
  const {
12062
- transform
12063
+ transform,
12064
+ rowField,
12065
+ parentField,
12066
+ mapChildrenField
12063
12067
  } = treeOpts;
12064
12068
  const {
12065
12069
  remote: allRemoteFilter,
@@ -12073,7 +12077,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
12073
12077
  } = sortOpts;
12074
12078
  let tableData = [];
12075
12079
  let tableTree = [];
12076
- // 处理列
12080
+ // 处理数据
12077
12081
  if (!allRemoteFilter || !allRemoteSort) {
12078
12082
  const filterColumns = [];
12079
12083
  let orderColumns = [];
@@ -12175,7 +12179,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
12175
12179
  tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(tableFullTreeData, handleFilter, {
12176
12180
  original: true,
12177
12181
  isEvery: true,
12178
- children: treeOpts.mapChildrenField,
12182
+ children: mapChildrenField,
12179
12183
  mapChildren: childrenField
12180
12184
  });
12181
12185
  tableData = tableTree;
@@ -12189,7 +12193,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
12189
12193
  tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(tableFullTreeData, () => true, {
12190
12194
  original: true,
12191
12195
  isEvery: true,
12192
- children: treeOpts.mapChildrenField,
12196
+ children: mapChildrenField,
12193
12197
  mapChildren: childrenField
12194
12198
  });
12195
12199
  tableData = tableTree;
@@ -12211,10 +12215,18 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
12211
12215
  });
12212
12216
  tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(sortRests) ? sortRests : tableTree;
12213
12217
  } else {
12214
- tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(tableTree, orderColumns.map(({
12218
+ const treeList = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toTreeArray(tableTree, {
12219
+ children: mapChildrenField
12220
+ });
12221
+ tableTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toArrayTree(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().orderBy(treeList, orderColumns.map(({
12215
12222
  column,
12216
12223
  order
12217
- }) => [getOrderField(column), order]));
12224
+ }) => [getOrderField(column), order])), {
12225
+ key: rowField,
12226
+ parentKey: parentField,
12227
+ children: childrenField,
12228
+ mapChildren: mapChildrenField
12229
+ });
12218
12230
  }
12219
12231
  tableData = tableTree;
12220
12232
  } else {
@@ -16535,46 +16547,12 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
16535
16547
  * 如果单元格配置了校验规则,则会进行校验
16536
16548
  */
16537
16549
  updateStatus(slotParams, cellValue) {
16538
- const customVal = !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(cellValue);
16539
16550
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
16540
16551
  const {
16541
16552
  editRules
16542
16553
  } = props;
16543
- const {
16544
- validStore
16545
- } = reactData;
16546
- const tableBody = refTableBody.value;
16547
- if (slotParams && tableBody && editRules) {
16548
- const {
16549
- row,
16550
- column
16551
- } = slotParams;
16552
- const type = 'change';
16553
- if ($xeTable.hasCellRules) {
16554
- if ($xeTable.hasCellRules(type, row, column)) {
16555
- const cell = tableMethods.getCellElement(row, column);
16556
- if (cell) {
16557
- return $xeTable.validCellRules(type, row, column, cellValue).then(() => {
16558
- if (customVal && validStore.visible) {
16559
- setCellValue(row, column, cellValue);
16560
- }
16561
- $xeTable.clearValidate(row, column);
16562
- }).catch(({
16563
- rule
16564
- }) => {
16565
- if (customVal) {
16566
- setCellValue(row, column, cellValue);
16567
- }
16568
- $xeTable.showValidTooltip({
16569
- rule,
16570
- row,
16571
- column,
16572
- cell
16573
- });
16574
- });
16575
- }
16576
- }
16577
- }
16554
+ if (slotParams && editRules) {
16555
+ return $xeTable.handleCellRuleUpdateStatus('change', slotParams, cellValue);
16578
16556
  }
16579
16557
  });
16580
16558
  },
@@ -19284,6 +19262,42 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
19284
19262
  $xeTable.handleColumnSortEvent(evnt, column);
19285
19263
  }
19286
19264
  },
19265
+ handleCellRuleUpdateStatus(type, cellParams, cellValue) {
19266
+ const {
19267
+ validStore
19268
+ } = reactData;
19269
+ const {
19270
+ row,
19271
+ column
19272
+ } = cellParams;
19273
+ if ($xeTable.hasCellRules) {
19274
+ if ($xeTable.hasCellRules(type, row, column)) {
19275
+ const cell = $xeTable.getCellElement(row, column);
19276
+ if (cell) {
19277
+ const customVal = !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(cellValue);
19278
+ return $xeTable.validCellRules(type, row, column, cellValue).then(() => {
19279
+ if (customVal && validStore.visible) {
19280
+ setCellValue(row, column, cellValue);
19281
+ }
19282
+ $xeTable.clearValidate(row, column);
19283
+ }).catch(({
19284
+ rule
19285
+ }) => {
19286
+ if (customVal) {
19287
+ setCellValue(row, column, cellValue);
19288
+ }
19289
+ $xeTable.showValidTooltip({
19290
+ rule,
19291
+ row,
19292
+ column,
19293
+ cell
19294
+ });
19295
+ });
19296
+ }
19297
+ }
19298
+ }
19299
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
19300
+ },
19287
19301
  /**
19288
19302
  * 表头单元格按下事件
19289
19303
  */
@@ -23021,11 +23035,8 @@ edit_hook_hooks.add('tableEditModule', {
23021
23035
  $columnIndex: $xeTable.getVMColumnIndex(column)
23022
23036
  }, evnt || null);
23023
23037
  }
23024
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
23025
- if (mouseConfig && mouseOpts.area && $xeTable.handleRecalculateCellAreas) {
23026
- return $xeTable.handleRecalculateCellAreas();
23027
- }
23028
- });
23038
+ focused.row = null;
23039
+ focused.column = null;
23029
23040
  if (validOpts.autoClear) {
23030
23041
  if (validOpts.msgMode !== 'full' || hook_getConfig().cellVaildMode === 'obsolete') {
23031
23042
  if ($xeTable.clearValidate) {
@@ -23033,9 +23044,11 @@ edit_hook_hooks.add('tableEditModule', {
23033
23044
  }
23034
23045
  }
23035
23046
  }
23036
- focused.row = null;
23037
- focused.column = null;
23038
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
23047
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
23048
+ if (mouseConfig && mouseOpts.area && $xeTable.handleRecalculateCellAreas) {
23049
+ return $xeTable.handleRecalculateCellAreas();
23050
+ }
23051
+ });
23039
23052
  };
23040
23053
  editMethods = {
23041
23054
  /**
@@ -23802,6 +23815,7 @@ function createHtmlPage(opts, content) {
23802
23815
 
23803
23816
 
23804
23817
 
23818
+
23805
23819
  const {
23806
23820
  getI18n: export_hook_getI18n,
23807
23821
  hooks: export_hook_hooks,
@@ -24203,7 +24217,7 @@ export_hook_hooks.add('tableExportModule', {
24203
24217
  cellValue = htmlCellElem.innerText.trim();
24204
24218
  } else {
24205
24219
  const cell = $xeTable.getCellElement(row, column);
24206
- if (cell) {
24220
+ if (cell && !hasClass(cell, 'is--progress')) {
24207
24221
  cellValue = cell.innerText.trim();
24208
24222
  }
24209
24223
  }
@@ -24273,7 +24287,7 @@ export_hook_hooks.add('tableExportModule', {
24273
24287
  cellValue = htmlCellElem.innerText.trim();
24274
24288
  } else {
24275
24289
  const cell = $xeTable.getCellElement(row, column);
24276
- if (cell) {
24290
+ if (cell && !hasClass(cell, 'is--progress')) {
24277
24291
  cellValue = cell.innerText.trim();
24278
24292
  }
24279
24293
  }
@@ -26178,9 +26192,16 @@ validator_hook_hooks.add('tableValidatorModule', {
26178
26192
  editRules,
26179
26193
  treeConfig
26180
26194
  } = props;
26195
+ const {
26196
+ editStore,
26197
+ pendingRowMaps
26198
+ } = reactData;
26181
26199
  const {
26182
26200
  afterFullData
26183
26201
  } = internalData;
26202
+ const {
26203
+ removeMaps
26204
+ } = editStore;
26184
26205
  const treeOpts = computeTreeOpts.value;
26185
26206
  const childrenField = treeOpts.children || treeOpts.childrenField;
26186
26207
  const validOpts = computeValidOpts.value;
@@ -26209,6 +26230,15 @@ validator_hook_hooks.add('tableValidatorModule', {
26209
26230
  if (editRules) {
26210
26231
  const columns = cols && cols.length ? cols : $xeTable.getColumns();
26211
26232
  const handleVaild = row => {
26233
+ const rowid = getRowid($xeTable, row);
26234
+ // 是否删除
26235
+ if (removeMaps[rowid]) {
26236
+ return;
26237
+ }
26238
+ // 是否标记删除
26239
+ if (pendingRowMaps[rowid]) {
26240
+ return;
26241
+ }
26212
26242
  if (isFull || !validRuleErr) {
26213
26243
  const colVailds = [];
26214
26244
  columns.forEach(column => {
@@ -27132,12 +27162,17 @@ function getCellLabelVNs(renderOpts, params, cellLabel) {
27132
27162
  * @param modelFunc
27133
27163
  * @param changeFunc
27134
27164
  */
27135
- function getNativeElementOns(renderOpts, params, modelFunc, changeFunc) {
27165
+ function getNativeElementOns(renderOpts, params, eFns) {
27136
27166
  const {
27137
27167
  events
27138
27168
  } = renderOpts;
27139
27169
  const modelEvent = getModelEvent(renderOpts);
27140
27170
  const changeEvent = getChangeEvent(renderOpts);
27171
+ const {
27172
+ model: modelFunc,
27173
+ change: changeFunc,
27174
+ blur: blurFunc
27175
+ } = eFns || {};
27141
27176
  const isSameEvent = changeEvent === modelEvent;
27142
27177
  const ons = {};
27143
27178
  if (events) {
@@ -27159,15 +27194,24 @@ function getNativeElementOns(renderOpts, params, modelFunc, changeFunc) {
27159
27194
  };
27160
27195
  }
27161
27196
  if (!isSameEvent && changeFunc) {
27162
- ons[getOnName(changeEvent)] = function (...args) {
27163
- changeFunc(...args);
27197
+ ons[getOnName(changeEvent)] = function (evnt) {
27198
+ changeFunc(evnt);
27164
27199
  if (events && events[changeEvent]) {
27165
- events[changeEvent](params, ...args);
27200
+ events[changeEvent](params, evnt);
27201
+ }
27202
+ };
27203
+ }
27204
+ if (blurFunc) {
27205
+ ons[getOnName(blurEvent)] = function (evnt) {
27206
+ blurFunc(evnt);
27207
+ if (events && events[blurEvent]) {
27208
+ events[blurEvent](params, evnt);
27166
27209
  }
27167
27210
  };
27168
27211
  }
27169
27212
  return ons;
27170
27213
  }
27214
+ const blurEvent = 'blur';
27171
27215
  /**
27172
27216
  * 组件事件处理
27173
27217
  * @param renderOpts
@@ -27175,12 +27219,17 @@ function getNativeElementOns(renderOpts, params, modelFunc, changeFunc) {
27175
27219
  * @param modelFunc
27176
27220
  * @param changeFunc
27177
27221
  */
27178
- function getComponentOns(renderOpts, params, modelFunc, changeFunc) {
27222
+ function getComponentOns(renderOpts, params, eFns) {
27179
27223
  const {
27180
27224
  events
27181
27225
  } = renderOpts;
27182
27226
  const modelEvent = getModelEvent(renderOpts);
27183
27227
  const changeEvent = getChangeEvent(renderOpts);
27228
+ const {
27229
+ model: modelFunc,
27230
+ change: changeFunc,
27231
+ blur: blurFunc
27232
+ } = eFns || {};
27184
27233
  const ons = {};
27185
27234
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().objectEach(events, (func, key) => {
27186
27235
  ons[getOnName(key)] = function (...args) {
@@ -27208,6 +27257,14 @@ function getComponentOns(renderOpts, params, modelFunc, changeFunc) {
27208
27257
  }
27209
27258
  };
27210
27259
  }
27260
+ if (blurFunc) {
27261
+ ons[getOnName(blurEvent)] = function (...args) {
27262
+ blurFunc(...args);
27263
+ if (events && events[blurEvent]) {
27264
+ events[blurEvent](params, ...args);
27265
+ }
27266
+ };
27267
+ }
27211
27268
  return ons;
27212
27269
  }
27213
27270
  function getEditOns(renderOpts, params) {
@@ -27223,31 +27280,47 @@ function getEditOns(renderOpts, params) {
27223
27280
  model
27224
27281
  } = column;
27225
27282
  const isImmediate = isImmediateCell(renderOpts, params);
27226
- return getComponentOns(renderOpts, params, cellValue => {
27227
- // 处理 model 值双向绑定
27228
- model.update = true;
27229
- model.value = cellValue;
27230
- if (isImmediate) {
27231
- setCellValue(row, column, cellValue);
27232
- }
27233
- }, eventParams => {
27234
- // 处理 change 事件相关逻辑
27235
- if (!isImmediate && ['VxeInput', 'VxeNumberInput', 'VxeTextarea', '$input', '$textarea'].includes(name)) {
27236
- const cellValue = eventParams.value;
27283
+ return getComponentOns(renderOpts, params, {
27284
+ model(cellValue) {
27285
+ // 处理 model 值双向绑定
27237
27286
  model.update = true;
27238
27287
  model.value = cellValue;
27239
- $table.updateStatus(params, cellValue);
27240
- } else {
27241
- $table.updateStatus(params);
27288
+ if (isImmediate) {
27289
+ setCellValue(row, column, cellValue);
27290
+ }
27291
+ },
27292
+ change(eventParams) {
27293
+ // 处理 change 事件相关逻辑
27294
+ if (!isImmediate && name && ['VxeInput', 'VxeNumberInput', 'VxeTextarea', '$input', '$textarea'].includes(name)) {
27295
+ const cellValue = eventParams.value;
27296
+ model.update = true;
27297
+ model.value = cellValue;
27298
+ $table.updateStatus(params, cellValue);
27299
+ } else {
27300
+ $table.updateStatus(params);
27301
+ }
27302
+ },
27303
+ blur() {
27304
+ if (isImmediate) {
27305
+ $table.handleCellRuleUpdateStatus('blur', params);
27306
+ } else {
27307
+ $table.handleCellRuleUpdateStatus('blur', params, model.value);
27308
+ }
27242
27309
  }
27243
27310
  });
27244
27311
  }
27245
27312
  function getFilterOns(renderOpts, params, option) {
27246
- return getComponentOns(renderOpts, params, value => {
27247
- // 处理 model 值双向绑定
27248
- option.data = value;
27249
- }, () => {
27250
- handleConfirmFilter(params, !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(option.data), option);
27313
+ return getComponentOns(renderOpts, params, {
27314
+ model(value) {
27315
+ // 处理 model 值双向绑定
27316
+ option.data = value;
27317
+ },
27318
+ change() {
27319
+ handleConfirmFilter(params, !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(option.data), option);
27320
+ },
27321
+ blur() {
27322
+ handleConfirmFilter(params, !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(option.data), option);
27323
+ }
27251
27324
  });
27252
27325
  }
27253
27326
  function getNativeEditOns(renderOpts, params) {
@@ -27259,27 +27332,52 @@ function getNativeEditOns(renderOpts, params) {
27259
27332
  const {
27260
27333
  model
27261
27334
  } = column;
27262
- return getNativeElementOns(renderOpts, params, evnt => {
27263
- // 处理 model 值双向绑定
27264
- const cellValue = evnt.target.value;
27265
- if (isImmediateCell(renderOpts, params)) {
27266
- setCellValue(row, column, cellValue);
27267
- } else {
27268
- model.update = true;
27269
- model.value = cellValue;
27335
+ return getNativeElementOns(renderOpts, params, {
27336
+ model(evnt) {
27337
+ // 处理 model 值双向绑定
27338
+ const targetEl = evnt.target;
27339
+ if (targetEl) {
27340
+ const cellValue = targetEl.value;
27341
+ if (isImmediateCell(renderOpts, params)) {
27342
+ setCellValue(row, column, cellValue);
27343
+ } else {
27344
+ model.update = true;
27345
+ model.value = cellValue;
27346
+ }
27347
+ }
27348
+ },
27349
+ change(evnt) {
27350
+ // 处理 change 事件相关逻辑
27351
+ const targetEl = evnt.target;
27352
+ if (targetEl) {
27353
+ const cellValue = targetEl.value;
27354
+ $table.updateStatus(params, cellValue);
27355
+ }
27356
+ },
27357
+ blur(evnt) {
27358
+ const targetEl = evnt.target;
27359
+ if (targetEl) {
27360
+ const cellValue = targetEl.value;
27361
+ $table.updateStatus(params, cellValue);
27362
+ }
27270
27363
  }
27271
- }, evnt => {
27272
- // 处理 change 事件相关逻辑
27273
- const cellValue = evnt.target.value;
27274
- $table.updateStatus(params, cellValue);
27275
27364
  });
27276
27365
  }
27277
27366
  function getNativeFilterOns(renderOpts, params, option) {
27278
- return getNativeElementOns(renderOpts, params, evnt => {
27279
- // 处理 model 值双向绑定
27280
- option.data = evnt.target.value;
27281
- }, () => {
27282
- handleConfirmFilter(params, !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(option.data), option);
27367
+ return getNativeElementOns(renderOpts, params, {
27368
+ model(evnt) {
27369
+ // 处理 model 值双向绑定
27370
+ const targetEl = evnt.target;
27371
+ if (targetEl) {
27372
+ option.data = targetEl.value;
27373
+ }
27374
+ },
27375
+ change() {
27376
+ handleConfirmFilter(params, !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(option.data), option);
27377
+ },
27378
+ blur() {
27379
+ handleConfirmFilter(params, !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(option.data), option);
27380
+ }
27283
27381
  });
27284
27382
  }
27285
27383
  /**