mali-ui-plus 1.0.78 → 1.0.79

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.
@@ -19062,7 +19062,7 @@ __webpack_require__.d(__webpack_exports__, {
19062
19062
  "default": function() { return /* binding */ entry_lib; }
19063
19063
  });
19064
19064
 
19065
- // UNUSED EXPORTS: MaliClipboard, MaliLoading, MaliModal, MaliStorage, MaliToast, MaliUI, MaliUtils, MlAmountInput, MlAmountText, MlApprovalType, MlButton, MlCalendar, MlCard, MlCarousel, MlCarouselItem, MlCascader, MlCharts, MlCheckbox, MlCheckboxGroup, MlCol, MlColorPicker, MlDatePicker, MlDateRangePicker, MlDateTimePicker, MlDatetimePicker, MlDictType, MlDrawer, MlEditor, MlForm, MlGrid, MlIcon, MlImage, MlInput, MlInvoiceType, MlModal, MlNumberInput, MlPager, MlPopover, MlQuarterPicker, MlRadio, MlRadioButton, MlRadioGroup, MlRangePicker, MlRow, MlSearchInput, MlSelect, MlSwitch, MlTabPane, MlTable, MlTabs, MlText, MlTextarea, MlTooltip, MlTree, MlUpload, MlWeekPicker, components
19065
+ // UNUSED EXPORTS: MaliClipboard, MaliLoading, MaliModal, MaliNotify, MaliStorage, MaliToast, MaliUI, MaliUtils, MlAmountInput, MlAmountText, MlApprovalType, MlButton, MlCalendar, MlCard, MlCarousel, MlCarouselItem, MlCascader, MlCharts, MlCheckbox, MlCheckboxGroup, MlCol, MlColorPicker, MlDatePicker, MlDateRangePicker, MlDateTimePicker, MlDatetimePicker, MlDictType, MlDrawer, MlEditor, MlForm, MlGrid, MlIcon, MlImage, MlInput, MlInvoiceType, MlModal, MlNumberInput, MlPager, MlPopover, MlQuarterPicker, MlRadio, MlRadioButton, MlRadioGroup, MlRangePicker, MlRow, MlSearchInput, MlSelect, MlSwitch, MlTabPane, MlTable, MlTabs, MlText, MlTextarea, MlTooltip, MlTree, MlUpload, MlWeekPicker, components
19066
19066
 
19067
19067
  // NAMESPACE OBJECT: ./node_modules/vxe-table/es/all.js
19068
19068
  var all_namespaceObject = {};
@@ -19574,7 +19574,7 @@ var GlobalConfig = {
19574
19574
  ;// CONCATENATED MODULE: ./node_modules/vxe-table/es/tools/log.js
19575
19575
 
19576
19576
  function getLog(message, params) {
19577
- return "[vxe-table v".concat("4.3.14", "] ").concat(conf.i18n(message, params));
19577
+ return "[vxe-table v".concat("4.4.0-beta.3", "] ").concat(conf.i18n(message, params));
19578
19578
  }
19579
19579
  function outLog(type) {
19580
19580
  return function (message, params) {
@@ -21174,7 +21174,7 @@ var config = new VXETableConfig();
21174
21174
  var v = 'v4';
21175
21175
  var VXETable = {
21176
21176
  v: v,
21177
- version: "4.3.14",
21177
+ version: "4.4.0-beta.3",
21178
21178
  setup: setup,
21179
21179
  interceptor: interceptor,
21180
21180
  renderer: renderer,
@@ -33040,7 +33040,7 @@ var grid_spreadArray = undefined && undefined.__spreadArray || function (to, fro
33040
33040
 
33041
33041
 
33042
33042
  var tableComponentPropKeys = Object.keys(props);
33043
- var tableComponentMethodKeys = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'createData', 'createRow', 'revertData', 'clearData', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getData', 'getCheckboxRecords', 'getParentRow', 'getRowSeq', 'getRowById', 'getRowid', 'getTableData', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isAllCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'isCheckedByCheckboxRow', 'isIndeterminateByCheckboxRow', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'setRadioRow', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'sort', 'clearSort', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadRowExpand', 'reloadRowExpand', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeExpand', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'scrollTo', 'scrollToRow', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeInsertRow', 'removeMergeCells', 'getMergeCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'openTooltip', 'focus', 'blur', 'connect'];
33043
+ var tableComponentMethodKeys = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'createData', 'createRow', 'revertData', 'clearData', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getData', 'getCheckboxRecords', 'getParentRow', 'getRowSeq', 'getRowById', 'getRowid', 'getTableData', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isAllCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'isCheckedByCheckboxRow', 'isIndeterminateByCheckboxRow', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'setRadioRow', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'sort', 'clearSort', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'isActiveFilterByColumn', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadRowExpand', 'reloadRowExpand', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeExpand', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'scrollTo', 'scrollToRow', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeInsertRow', 'removeMergeCells', 'getMergeCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'openTooltip', 'focus', 'blur', 'connect'];
33044
33044
  var gridComponentEmits = grid_spreadArray(grid_spreadArray([], emits, true), ['page-change', 'form-submit', 'form-submit-invalid', 'form-reset', 'form-collapse', 'form-toggle-collapse', 'proxy-query', 'proxy-delete', 'proxy-save', 'toolbar-button-click', 'toolbar-tool-click', 'zoom'], false);
33045
33045
  /* harmony default export */ var grid = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
33046
33046
  name: 'VxeGrid',
@@ -36901,6 +36901,8 @@ var VxeFormConfigItem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineC
36901
36901
  var compConf = isEnableConf(itemRender) ? VXETable.renderer.get(itemRender.name) : null;
36902
36902
  var itemClassName = compConf ? compConf.itemClassName : '';
36903
36903
  var itemStyle = compConf ? compConf.itemStyle : null;
36904
+ var itemContentClassName = compConf ? compConf.itemContentClassName : '';
36905
+ var itemContentStyle = compConf ? compConf.itemContentStyle : null;
36904
36906
  var defaultSlot = slots ? slots.default : null;
36905
36907
  var titleSlot = slots ? slots.title : null;
36906
36908
  var span = item.span || allSpan;
@@ -37001,7 +37003,8 @@ var VxeFormConfigItem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineC
37001
37003
  } : null,
37002
37004
  title: showTitle ? getFuncText(title) : null
37003
37005
  }, ons), renderTitle($xeform, item)) : null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
37004
- class: ['vxe-form--item-content', align ? "align--".concat(align) : null]
37006
+ class: ['vxe-form--item-content', align ? "align--".concat(align) : '', itemContentClassName ? xe_utils_default().isFunction(itemContentClassName) ? itemContentClassName(params) : itemContentClassName : ''],
37007
+ style: xe_utils_default().isFunction(itemContentStyle) ? itemContentStyle(params) : itemContentStyle
37005
37008
  }, contentVNs)])]);
37006
37009
  };
37007
37010
  var $xeformconfigitem = {
@@ -37854,6 +37857,8 @@ var formItemProps = {
37854
37857
  var compConf = isEnableConf(itemRender) ? VXETable.renderer.get(itemRender.name) : null;
37855
37858
  var itemClassName = compConf ? compConf.itemClassName : '';
37856
37859
  var itemStyle = compConf ? compConf.itemStyle : null;
37860
+ var itemContentClassName = compConf ? compConf.itemContentClassName : '';
37861
+ var itemContentStyle = compConf ? compConf.itemContentStyle : null;
37857
37862
  var defaultSlot = slots ? slots.default : null;
37858
37863
  var titleSlot = slots ? slots.title : null;
37859
37864
  var span = item.span || props.span;
@@ -37942,7 +37947,8 @@ var formItemProps = {
37942
37947
  } : null,
37943
37948
  title: showTitle ? getFuncText(title) : null
37944
37949
  }, ons), renderTitle($xeform, item)) : null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
37945
- class: ['vxe-form--item-content', align ? "align--".concat(align) : null]
37950
+ class: ['vxe-form--item-content', align ? "align--".concat(align) : '', itemContentClassName ? xe_utils_default().isFunction(itemContentClassName) ? itemContentClassName(params) : itemContentClassName : ''],
37951
+ style: xe_utils_default().isFunction(itemContentStyle) ? itemContentStyle(params) : itemContentStyle
37946
37952
  }, contentVNs)])]);
37947
37953
  };
37948
37954
  var renderVN = function () {
@@ -41772,12 +41778,15 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
41772
41778
  var fullColumnIdData = internalData.fullColumnIdData = {};
41773
41779
  var fullColumnFieldData = internalData.fullColumnFieldData = {};
41774
41780
  var mouseOpts = computeMouseOpts.value;
41781
+ var columnOpts = computeColumnOpts.value;
41782
+ var rowOpts = computeRowOpts.value;
41775
41783
  var isGroup = collectColumn.some(hasChildrenList);
41776
41784
  var isAllOverflow = !!props.showOverflow;
41777
41785
  var expandColumn;
41778
41786
  var treeNodeColumn;
41779
41787
  var checkboxColumn;
41780
41788
  var radioColumn;
41789
+ var htmlColumn;
41781
41790
  var hasFixed;
41782
41791
  var handleFunc = function (column, index, items, path, parent) {
41783
41792
  var colid = column.id,
@@ -41799,6 +41808,9 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
41799
41808
  if (!hasFixed && fixed) {
41800
41809
  hasFixed = fixed;
41801
41810
  }
41811
+ if (!htmlColumn && type === 'html') {
41812
+ htmlColumn = column;
41813
+ }
41802
41814
  if (treeNode) {
41803
41815
  if (false) {}
41804
41816
  if (!treeNodeColumn) {
@@ -41828,6 +41840,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
41828
41840
  tableFullColumn.forEach(handleFunc);
41829
41841
  }
41830
41842
  if (false) {}
41843
+ if (false) {}
41831
41844
  reactData.isGroup = isGroup;
41832
41845
  reactData.treeNodeColumn = treeNodeColumn;
41833
41846
  reactData.expandColumn = expandColumn;
@@ -43807,14 +43820,8 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
43807
43820
  * @param {Array} records 新数据
43808
43821
  */
43809
43822
  createData: function (records) {
43810
- var treeConfig = props.treeConfig;
43811
- var treeOpts = computeTreeOpts.value;
43812
- var handleRrecord = function (record) {
43813
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)(tablePrivateMethods.defineField(record || {}));
43814
- };
43815
- var rows = treeConfig ? xe_utils_default().mapTree(records, handleRrecord, treeOpts) : records.map(handleRrecord);
43816
43823
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(function () {
43817
- return rows;
43824
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)(tablePrivateMethods.defineField(records));
43818
43825
  });
43819
43826
  },
43820
43827
  /**
@@ -43825,12 +43832,10 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
43825
43832
  createRow: function (records) {
43826
43833
  var isArr = xe_utils_default().isArray(records);
43827
43834
  if (!isArr) {
43828
- records = [records];
43835
+ records = [records || {}];
43829
43836
  }
43830
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(function () {
43831
- return tableMethods.createData(records).then(function (rows) {
43832
- return isArr ? rows : rows[0];
43833
- });
43837
+ return tableMethods.createData(records).then(function (rows) {
43838
+ return isArr ? rows : rows[0];
43834
43839
  });
43835
43840
  },
43836
43841
  /**
@@ -44211,7 +44216,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
44211
44216
  return new Promise(function (resolve) {
44212
44217
  // 还原滚动条位置
44213
44218
  if (lastScrollLeft || lastScrollTop) {
44214
- return restoreScrollLocation($xetable, lastScrollLeft, lastScrollTop).then(resolve).then(function () {
44219
+ return restoreScrollLocation($xetable, lastScrollLeft, lastScrollTop).then().then(function () {
44215
44220
  // 存在滚动行为未结束情况
44216
44221
  setTimeout(resolve, 30);
44217
44222
  });
@@ -44698,7 +44703,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
44698
44703
  * 判断指定列是否为筛选状态,如果为空则判断所有列
44699
44704
  * @param {String} fieldOrColumn 字段名
44700
44705
  */
44701
- isFilter: function (fieldOrColumn) {
44706
+ isActiveFilterByColumn: function (fieldOrColumn) {
44702
44707
  var column = handleFieldOrColumn($xetable, fieldOrColumn);
44703
44708
  if (column) {
44704
44709
  return column.filters && column.filters.some(function (option) {
@@ -44707,6 +44712,9 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
44707
44712
  }
44708
44713
  return $xetable.getCheckedFilters().length > 0;
44709
44714
  },
44715
+ isFilter: function (fieldOrColumn) {
44716
+ return tableMethods.isActiveFilterByColumn(fieldOrColumn);
44717
+ },
44710
44718
  /**
44711
44719
  * 判断展开行是否懒加载完成
44712
44720
  * @param {Row} row 行对象
@@ -46425,7 +46433,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
46425
46433
  var column = params.column;
46426
46434
  var tooltipStore = reactData.tooltipStore;
46427
46435
  var cell = evnt.currentTarget;
46428
- handleTargetEnterEvent(tooltipStore.column !== column || tooltipStore.row);
46436
+ handleTargetEnterEvent(tooltipStore.column !== column || !!tooltipStore.row);
46429
46437
  if (tooltipStore.column !== column || !tooltipStore.visible) {
46430
46438
  handleTooltip(evnt, cell, cell.querySelector('.vxe-cell--item') || cell.children[0], null, params);
46431
46439
  }
@@ -71324,6 +71332,40 @@ const MaliModal = {
71324
71332
  }
71325
71333
  };
71326
71334
  /* harmony default export */ var modal_modal_0 = (MaliModal);
71335
+ ;// CONCATENATED MODULE: ./modal/notify.ts
71336
+
71337
+
71338
+ const notify_modal = index_esm.modal;
71339
+ const MaliNotify = {
71340
+ success(option) {
71341
+ const opts = xe_utils_default().isString(option) ? {
71342
+ content: option
71343
+ } : {
71344
+ ...option
71345
+ };
71346
+ return notify_modal.message({
71347
+ status: 'success',
71348
+ content: opts.content || '操作成功'
71349
+ });
71350
+ },
71351
+ error(option) {
71352
+ const opts = xe_utils_default().isString(option) ? {
71353
+ content: option
71354
+ } : {
71355
+ ...option
71356
+ };
71357
+ return notify_modal.message({
71358
+ status: 'error',
71359
+ content: opts.content || '操作失败'
71360
+ });
71361
+ },
71362
+ hide() {
71363
+ return new Promise(resolve => {
71364
+ setTimeout(resolve, 2000);
71365
+ });
71366
+ }
71367
+ };
71368
+ /* harmony default export */ var modal_notify = (MaliNotify);
71327
71369
  ;// CONCATENATED MODULE: ./modal/loading.ts
71328
71370
  const MaliLoading = {
71329
71371
  show(option) {
@@ -73121,6 +73163,7 @@ VXETable.setup({
73121
73163
 
73122
73164
 
73123
73165
 
73166
+
73124
73167
  const index_MlIcon = MlIcon;
73125
73168
  const index_MlRow = MlRow;
73126
73169
  const index_MlCol = MlCol;
@@ -73258,7 +73301,7 @@ function index_config(options) {
73258
73301
  return config_0;
73259
73302
  }
73260
73303
  const MaliUI = {
73261
- version: "1.0.77",
73304
+ version: "1.0.78",
73262
73305
  install: index_install,
73263
73306
  config: index_config,
73264
73307
  renderer: index_esm.renderer,
@@ -73266,6 +73309,7 @@ const MaliUI = {
73266
73309
  MaliClipboard: clipboard,
73267
73310
  MaliToast: toast,
73268
73311
  MaliModal: modal_modal_0,
73312
+ MaliNotify: modal_notify,
73269
73313
  MaliLoading: modal_loading,
73270
73314
  MaliStorage: storage,
73271
73315
  KindEditor: kindeditor
@@ -19072,7 +19072,7 @@ __webpack_require__.d(__webpack_exports__, {
19072
19072
  "default": function() { return /* binding */ entry_lib; }
19073
19073
  });
19074
19074
 
19075
- // UNUSED EXPORTS: MaliClipboard, MaliLoading, MaliModal, MaliStorage, MaliToast, MaliUI, MaliUtils, MlAmountInput, MlAmountText, MlApprovalType, MlButton, MlCalendar, MlCard, MlCarousel, MlCarouselItem, MlCascader, MlCharts, MlCheckbox, MlCheckboxGroup, MlCol, MlColorPicker, MlDatePicker, MlDateRangePicker, MlDateTimePicker, MlDatetimePicker, MlDictType, MlDrawer, MlEditor, MlForm, MlGrid, MlIcon, MlImage, MlInput, MlInvoiceType, MlModal, MlNumberInput, MlPager, MlPopover, MlQuarterPicker, MlRadio, MlRadioButton, MlRadioGroup, MlRangePicker, MlRow, MlSearchInput, MlSelect, MlSwitch, MlTabPane, MlTable, MlTabs, MlText, MlTextarea, MlTooltip, MlTree, MlUpload, MlWeekPicker, components
19075
+ // UNUSED EXPORTS: MaliClipboard, MaliLoading, MaliModal, MaliNotify, MaliStorage, MaliToast, MaliUI, MaliUtils, MlAmountInput, MlAmountText, MlApprovalType, MlButton, MlCalendar, MlCard, MlCarousel, MlCarouselItem, MlCascader, MlCharts, MlCheckbox, MlCheckboxGroup, MlCol, MlColorPicker, MlDatePicker, MlDateRangePicker, MlDateTimePicker, MlDatetimePicker, MlDictType, MlDrawer, MlEditor, MlForm, MlGrid, MlIcon, MlImage, MlInput, MlInvoiceType, MlModal, MlNumberInput, MlPager, MlPopover, MlQuarterPicker, MlRadio, MlRadioButton, MlRadioGroup, MlRangePicker, MlRow, MlSearchInput, MlSelect, MlSwitch, MlTabPane, MlTable, MlTabs, MlText, MlTextarea, MlTooltip, MlTree, MlUpload, MlWeekPicker, components
19076
19076
 
19077
19077
  // NAMESPACE OBJECT: ./node_modules/vxe-table/es/all.js
19078
19078
  var all_namespaceObject = {};
@@ -19584,7 +19584,7 @@ var GlobalConfig = {
19584
19584
  ;// CONCATENATED MODULE: ./node_modules/vxe-table/es/tools/log.js
19585
19585
 
19586
19586
  function getLog(message, params) {
19587
- return "[vxe-table v".concat("4.3.14", "] ").concat(conf.i18n(message, params));
19587
+ return "[vxe-table v".concat("4.4.0-beta.3", "] ").concat(conf.i18n(message, params));
19588
19588
  }
19589
19589
  function outLog(type) {
19590
19590
  return function (message, params) {
@@ -21184,7 +21184,7 @@ var config = new VXETableConfig();
21184
21184
  var v = 'v4';
21185
21185
  var VXETable = {
21186
21186
  v: v,
21187
- version: "4.3.14",
21187
+ version: "4.4.0-beta.3",
21188
21188
  setup: setup,
21189
21189
  interceptor: interceptor,
21190
21190
  renderer: renderer,
@@ -33050,7 +33050,7 @@ var grid_spreadArray = undefined && undefined.__spreadArray || function (to, fro
33050
33050
 
33051
33051
 
33052
33052
  var tableComponentPropKeys = Object.keys(props);
33053
- var tableComponentMethodKeys = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'createData', 'createRow', 'revertData', 'clearData', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getData', 'getCheckboxRecords', 'getParentRow', 'getRowSeq', 'getRowById', 'getRowid', 'getTableData', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isAllCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'isCheckedByCheckboxRow', 'isIndeterminateByCheckboxRow', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'setRadioRow', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'sort', 'clearSort', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadRowExpand', 'reloadRowExpand', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeExpand', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'scrollTo', 'scrollToRow', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeInsertRow', 'removeMergeCells', 'getMergeCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'openTooltip', 'focus', 'blur', 'connect'];
33053
+ var tableComponentMethodKeys = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'createData', 'createRow', 'revertData', 'clearData', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getData', 'getCheckboxRecords', 'getParentRow', 'getRowSeq', 'getRowById', 'getRowid', 'getTableData', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isAllCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'isCheckedByCheckboxRow', 'isIndeterminateByCheckboxRow', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'setRadioRow', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'sort', 'clearSort', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'isActiveFilterByColumn', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadRowExpand', 'reloadRowExpand', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeExpand', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'scrollTo', 'scrollToRow', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeInsertRow', 'removeMergeCells', 'getMergeCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'openTooltip', 'focus', 'blur', 'connect'];
33054
33054
  var gridComponentEmits = grid_spreadArray(grid_spreadArray([], emits, true), ['page-change', 'form-submit', 'form-submit-invalid', 'form-reset', 'form-collapse', 'form-toggle-collapse', 'proxy-query', 'proxy-delete', 'proxy-save', 'toolbar-button-click', 'toolbar-tool-click', 'zoom'], false);
33055
33055
  /* harmony default export */ var grid = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
33056
33056
  name: 'VxeGrid',
@@ -36911,6 +36911,8 @@ var VxeFormConfigItem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineC
36911
36911
  var compConf = isEnableConf(itemRender) ? VXETable.renderer.get(itemRender.name) : null;
36912
36912
  var itemClassName = compConf ? compConf.itemClassName : '';
36913
36913
  var itemStyle = compConf ? compConf.itemStyle : null;
36914
+ var itemContentClassName = compConf ? compConf.itemContentClassName : '';
36915
+ var itemContentStyle = compConf ? compConf.itemContentStyle : null;
36914
36916
  var defaultSlot = slots ? slots.default : null;
36915
36917
  var titleSlot = slots ? slots.title : null;
36916
36918
  var span = item.span || allSpan;
@@ -37011,7 +37013,8 @@ var VxeFormConfigItem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineC
37011
37013
  } : null,
37012
37014
  title: showTitle ? getFuncText(title) : null
37013
37015
  }, ons), renderTitle($xeform, item)) : null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
37014
- class: ['vxe-form--item-content', align ? "align--".concat(align) : null]
37016
+ class: ['vxe-form--item-content', align ? "align--".concat(align) : '', itemContentClassName ? xe_utils_default().isFunction(itemContentClassName) ? itemContentClassName(params) : itemContentClassName : ''],
37017
+ style: xe_utils_default().isFunction(itemContentStyle) ? itemContentStyle(params) : itemContentStyle
37015
37018
  }, contentVNs)])]);
37016
37019
  };
37017
37020
  var $xeformconfigitem = {
@@ -37864,6 +37867,8 @@ var formItemProps = {
37864
37867
  var compConf = isEnableConf(itemRender) ? VXETable.renderer.get(itemRender.name) : null;
37865
37868
  var itemClassName = compConf ? compConf.itemClassName : '';
37866
37869
  var itemStyle = compConf ? compConf.itemStyle : null;
37870
+ var itemContentClassName = compConf ? compConf.itemContentClassName : '';
37871
+ var itemContentStyle = compConf ? compConf.itemContentStyle : null;
37867
37872
  var defaultSlot = slots ? slots.default : null;
37868
37873
  var titleSlot = slots ? slots.title : null;
37869
37874
  var span = item.span || props.span;
@@ -37952,7 +37957,8 @@ var formItemProps = {
37952
37957
  } : null,
37953
37958
  title: showTitle ? getFuncText(title) : null
37954
37959
  }, ons), renderTitle($xeform, item)) : null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
37955
- class: ['vxe-form--item-content', align ? "align--".concat(align) : null]
37960
+ class: ['vxe-form--item-content', align ? "align--".concat(align) : '', itemContentClassName ? xe_utils_default().isFunction(itemContentClassName) ? itemContentClassName(params) : itemContentClassName : ''],
37961
+ style: xe_utils_default().isFunction(itemContentStyle) ? itemContentStyle(params) : itemContentStyle
37956
37962
  }, contentVNs)])]);
37957
37963
  };
37958
37964
  var renderVN = function () {
@@ -41782,12 +41788,15 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
41782
41788
  var fullColumnIdData = internalData.fullColumnIdData = {};
41783
41789
  var fullColumnFieldData = internalData.fullColumnFieldData = {};
41784
41790
  var mouseOpts = computeMouseOpts.value;
41791
+ var columnOpts = computeColumnOpts.value;
41792
+ var rowOpts = computeRowOpts.value;
41785
41793
  var isGroup = collectColumn.some(hasChildrenList);
41786
41794
  var isAllOverflow = !!props.showOverflow;
41787
41795
  var expandColumn;
41788
41796
  var treeNodeColumn;
41789
41797
  var checkboxColumn;
41790
41798
  var radioColumn;
41799
+ var htmlColumn;
41791
41800
  var hasFixed;
41792
41801
  var handleFunc = function (column, index, items, path, parent) {
41793
41802
  var colid = column.id,
@@ -41809,6 +41818,9 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
41809
41818
  if (!hasFixed && fixed) {
41810
41819
  hasFixed = fixed;
41811
41820
  }
41821
+ if (!htmlColumn && type === 'html') {
41822
+ htmlColumn = column;
41823
+ }
41812
41824
  if (treeNode) {
41813
41825
  if (false) {}
41814
41826
  if (!treeNodeColumn) {
@@ -41838,6 +41850,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
41838
41850
  tableFullColumn.forEach(handleFunc);
41839
41851
  }
41840
41852
  if (false) {}
41853
+ if (false) {}
41841
41854
  reactData.isGroup = isGroup;
41842
41855
  reactData.treeNodeColumn = treeNodeColumn;
41843
41856
  reactData.expandColumn = expandColumn;
@@ -43817,14 +43830,8 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
43817
43830
  * @param {Array} records 新数据
43818
43831
  */
43819
43832
  createData: function (records) {
43820
- var treeConfig = props.treeConfig;
43821
- var treeOpts = computeTreeOpts.value;
43822
- var handleRrecord = function (record) {
43823
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)(tablePrivateMethods.defineField(record || {}));
43824
- };
43825
- var rows = treeConfig ? xe_utils_default().mapTree(records, handleRrecord, treeOpts) : records.map(handleRrecord);
43826
43833
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(function () {
43827
- return rows;
43834
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)(tablePrivateMethods.defineField(records));
43828
43835
  });
43829
43836
  },
43830
43837
  /**
@@ -43835,12 +43842,10 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
43835
43842
  createRow: function (records) {
43836
43843
  var isArr = xe_utils_default().isArray(records);
43837
43844
  if (!isArr) {
43838
- records = [records];
43845
+ records = [records || {}];
43839
43846
  }
43840
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(function () {
43841
- return tableMethods.createData(records).then(function (rows) {
43842
- return isArr ? rows : rows[0];
43843
- });
43847
+ return tableMethods.createData(records).then(function (rows) {
43848
+ return isArr ? rows : rows[0];
43844
43849
  });
43845
43850
  },
43846
43851
  /**
@@ -44221,7 +44226,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
44221
44226
  return new Promise(function (resolve) {
44222
44227
  // 还原滚动条位置
44223
44228
  if (lastScrollLeft || lastScrollTop) {
44224
- return restoreScrollLocation($xetable, lastScrollLeft, lastScrollTop).then(resolve).then(function () {
44229
+ return restoreScrollLocation($xetable, lastScrollLeft, lastScrollTop).then().then(function () {
44225
44230
  // 存在滚动行为未结束情况
44226
44231
  setTimeout(resolve, 30);
44227
44232
  });
@@ -44708,7 +44713,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
44708
44713
  * 判断指定列是否为筛选状态,如果为空则判断所有列
44709
44714
  * @param {String} fieldOrColumn 字段名
44710
44715
  */
44711
- isFilter: function (fieldOrColumn) {
44716
+ isActiveFilterByColumn: function (fieldOrColumn) {
44712
44717
  var column = handleFieldOrColumn($xetable, fieldOrColumn);
44713
44718
  if (column) {
44714
44719
  return column.filters && column.filters.some(function (option) {
@@ -44717,6 +44722,9 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
44717
44722
  }
44718
44723
  return $xetable.getCheckedFilters().length > 0;
44719
44724
  },
44725
+ isFilter: function (fieldOrColumn) {
44726
+ return tableMethods.isActiveFilterByColumn(fieldOrColumn);
44727
+ },
44720
44728
  /**
44721
44729
  * 判断展开行是否懒加载完成
44722
44730
  * @param {Row} row 行对象
@@ -46435,7 +46443,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
46435
46443
  var column = params.column;
46436
46444
  var tooltipStore = reactData.tooltipStore;
46437
46445
  var cell = evnt.currentTarget;
46438
- handleTargetEnterEvent(tooltipStore.column !== column || tooltipStore.row);
46446
+ handleTargetEnterEvent(tooltipStore.column !== column || !!tooltipStore.row);
46439
46447
  if (tooltipStore.column !== column || !tooltipStore.visible) {
46440
46448
  handleTooltip(evnt, cell, cell.querySelector('.vxe-cell--item') || cell.children[0], null, params);
46441
46449
  }
@@ -71334,6 +71342,40 @@ const MaliModal = {
71334
71342
  }
71335
71343
  };
71336
71344
  /* harmony default export */ var modal_modal_0 = (MaliModal);
71345
+ ;// CONCATENATED MODULE: ./modal/notify.ts
71346
+
71347
+
71348
+ const notify_modal = index_esm.modal;
71349
+ const MaliNotify = {
71350
+ success(option) {
71351
+ const opts = xe_utils_default().isString(option) ? {
71352
+ content: option
71353
+ } : {
71354
+ ...option
71355
+ };
71356
+ return notify_modal.message({
71357
+ status: 'success',
71358
+ content: opts.content || '操作成功'
71359
+ });
71360
+ },
71361
+ error(option) {
71362
+ const opts = xe_utils_default().isString(option) ? {
71363
+ content: option
71364
+ } : {
71365
+ ...option
71366
+ };
71367
+ return notify_modal.message({
71368
+ status: 'error',
71369
+ content: opts.content || '操作失败'
71370
+ });
71371
+ },
71372
+ hide() {
71373
+ return new Promise(resolve => {
71374
+ setTimeout(resolve, 2000);
71375
+ });
71376
+ }
71377
+ };
71378
+ /* harmony default export */ var modal_notify = (MaliNotify);
71337
71379
  ;// CONCATENATED MODULE: ./modal/loading.ts
71338
71380
  const MaliLoading = {
71339
71381
  show(option) {
@@ -73131,6 +73173,7 @@ VXETable.setup({
73131
73173
 
73132
73174
 
73133
73175
 
73176
+
73134
73177
  const index_MlIcon = MlIcon;
73135
73178
  const index_MlRow = MlRow;
73136
73179
  const index_MlCol = MlCol;
@@ -73268,7 +73311,7 @@ function index_config(options) {
73268
73311
  return config_0;
73269
73312
  }
73270
73313
  const MaliUI = {
73271
- version: "1.0.77",
73314
+ version: "1.0.78",
73272
73315
  install: index_install,
73273
73316
  config: index_config,
73274
73317
  renderer: index_esm.renderer,
@@ -73276,6 +73319,7 @@ const MaliUI = {
73276
73319
  MaliClipboard: clipboard,
73277
73320
  MaliToast: toast,
73278
73321
  MaliModal: modal_modal_0,
73322
+ MaliNotify: modal_notify,
73279
73323
  MaliLoading: modal_loading,
73280
73324
  MaliStorage: storage,
73281
73325
  KindEditor: kindeditor