vxe-table 4.7.0 → 4.7.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.
@@ -2723,6 +2723,19 @@ export default defineComponent({
2723
2723
  return tableMethods.recalculate();
2724
2724
  });
2725
2725
  },
2726
+ /**
2727
+ * 修改行数据
2728
+ */
2729
+ setRow(rows, record) {
2730
+ if (rows && record) {
2731
+ let rest = rows;
2732
+ if (!XEUtils.isArray(rows)) {
2733
+ rest = [rows];
2734
+ }
2735
+ rest.forEach(item => Object.assign(item, record));
2736
+ }
2737
+ return nextTick();
2738
+ },
2726
2739
  /**
2727
2740
  * 局部加载行数据并恢复到初始状态
2728
2741
  * 对于行数据需要局部更改的场景中可能会用到
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { VxeUI } from 'vxe-pc-ui';
2
- VxeUI.version = "4.7.0";
3
- VxeUI.tableVersion = "4.7.0";
1
+ import { VxeUI, modal, drawer, saveFile, readFile } from 'vxe-pc-ui';
2
+ VxeUI.version = "4.7.1";
3
+ VxeUI.tableVersion = "4.7.1";
4
4
  VxeUI.setConfig({
5
5
  emptyCell: ' ',
6
6
  table: {
@@ -273,5 +273,5 @@ export const _t = VxeUI._t;
273
273
  * @deprecated
274
274
  */
275
275
  export const VXETable = VxeUI;
276
- export { VxeUI };
276
+ export { VxeUI, modal, drawer, saveFile, readFile };
277
277
  export default VxeUI;
@@ -0,0 +1,3 @@
1
+ import VxeUI from '../ui';
2
+ export * from '../ui';
3
+ export default VxeUI;
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ import VxeVXETable from '../v-x-e-table';
2
+ export * from '../v-x-e-table';
3
+ export default VxeVXETable;
File without changes
File without changes
package/lib/index.umd.js CHANGED
@@ -1693,6 +1693,7 @@ __webpack_require__.d(__webpack_exports__, {
1693
1693
  commands: function() { return /* reexport */ commands; },
1694
1694
  config: function() { return /* reexport */ config; },
1695
1695
  "default": function() { return /* binding */ entry_lib; },
1696
+ drawer: function() { return /* reexport */ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.drawer; },
1696
1697
  formats: function() { return /* reexport */ formats; },
1697
1698
  getConfig: function() { return /* reexport */ getConfig; },
1698
1699
  getI18n: function() { return /* reexport */ getI18n; },
@@ -1705,7 +1706,10 @@ __webpack_require__.d(__webpack_exports__, {
1705
1706
  interceptor: function() { return /* reexport */ interceptor; },
1706
1707
  log: function() { return /* reexport */ log; },
1707
1708
  menus: function() { return /* reexport */ menus; },
1709
+ modal: function() { return /* reexport */ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.modal; },
1710
+ readFile: function() { return /* reexport */ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.readFile; },
1708
1711
  renderer: function() { return /* reexport */ renderer; },
1712
+ saveFile: function() { return /* reexport */ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.saveFile; },
1709
1713
  setConfig: function() { return /* reexport */ setConfig; },
1710
1714
  setI18n: function() { return /* reexport */ setI18n; },
1711
1715
  setIcon: function() { return /* reexport */ setIcon; },
@@ -1737,6 +1741,7 @@ __webpack_require__.d(components_namespaceObject, {
1737
1741
  clipboard: function() { return clipboard; },
1738
1742
  commands: function() { return commands; },
1739
1743
  config: function() { return config; },
1744
+ drawer: function() { return external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.drawer; },
1740
1745
  formats: function() { return formats; },
1741
1746
  getConfig: function() { return getConfig; },
1742
1747
  getI18n: function() { return getI18n; },
@@ -1749,7 +1754,10 @@ __webpack_require__.d(components_namespaceObject, {
1749
1754
  interceptor: function() { return interceptor; },
1750
1755
  log: function() { return log; },
1751
1756
  menus: function() { return menus; },
1757
+ modal: function() { return external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.modal; },
1758
+ readFile: function() { return external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.readFile; },
1752
1759
  renderer: function() { return renderer; },
1760
+ saveFile: function() { return external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.saveFile; },
1753
1761
  setConfig: function() { return setConfig; },
1754
1762
  setI18n: function() { return setI18n; },
1755
1763
  setIcon: function() { return setIcon; },
@@ -10699,6 +10707,19 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
10699
10707
  return tableMethods.recalculate();
10700
10708
  });
10701
10709
  },
10710
+ /**
10711
+ * 修改行数据
10712
+ */
10713
+ setRow(rows, record) {
10714
+ if (rows && record) {
10715
+ let rest = rows;
10716
+ if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(rows)) {
10717
+ rest = [rows];
10718
+ }
10719
+ rest.forEach(item => Object.assign(item, record));
10720
+ }
10721
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
10722
+ },
10702
10723
  /**
10703
10724
  * 局部加载行数据并恢复到初始状态
10704
10725
  * 对于行数据需要局部更改的场景中可能会用到
@@ -22868,8 +22889,8 @@ const Grid = VxeGrid;
22868
22889
  /* harmony default export */ var packages_grid = ((/* unused pure expression or super */ null && (VxeGrid)));
22869
22890
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
22870
22891
 
22871
- external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.version = "4.7.0";
22872
- external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.tableVersion = "4.7.0";
22892
+ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.version = "4.7.1";
22893
+ external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.tableVersion = "4.7.1";
22873
22894
  external_root_VxeUI_commonjs_vxe_pc_ui_commonjs2_vxe_pc_ui_amd_vxe_pc_ui_.VxeUI.setConfig({
22874
22895
  emptyCell: ' ',
22875
22896
  table: {