vxe-table 4.7.14 → 4.7.15

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/README.en.md CHANGED
@@ -14,19 +14,6 @@
14
14
 
15
15
  A [vue](https://www.npmjs.com/package/vue) based PC form component, support add delete change check, virtual tree, column drag and drop, lazy loading, shortcut menu, data verification, import/export/print, form rendering, custom template, renderer, JSON configuration...
16
16
 
17
- * Design concept
18
- * Efficient and concise API design for modern browsers.
19
- * Modular tables, on-demand loading.
20
- * Designed for single row table editing, supports addition, deletion, modification and query as well as more expansion, with powerful functions and performance at the same time.
21
-
22
- * Plan
23
- * [x] ~~v1.0 Based on vue2.6, Support for all major browsers.~~
24
- * [x] ~~v2.0 Based on vue2.6, Support for all major browsers.~~
25
- * [x] v3.0 Based on vue2.6+, supports modern browsers and retains compatibility with IE11.
26
- * [ ] v3.9 Based on vue2.6+, Reconstruct and split the components into [Vxe table](https://github.com/x-extends/vxe-table) and [Vxe UI](https://github.com/x-extends/vxe-pc-ui). Form Designer, list designer, process designer will be supported.
27
- * [x] v4.0 Based on vue3.2+, Only support modern browser, not IE.
28
- * [x] v4.7 Based on vue3.2+, Reconstruct and split the components into [Vxe table](https://github.com/x-extends/vxe-table) and [Vxe UI](https://github.com/x-extends/vxe-pc-ui). Form Designer, list designer, process designer will be supported.
29
-
30
17
  ## Browser Support
31
18
 
32
19
  ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png)
package/README.md CHANGED
@@ -23,9 +23,9 @@
23
23
  * [x] ~~v1.0 基于 vue2.6,支持所有主流的浏览器,实现表格的一切实用的功能~~
24
24
  * [x] ~~v2.0 基于 vue2.6,支持所有主流的浏览器,同时兼具功能与性能~~
25
25
  * [x] v3.0 基于 vue2.6+,支持现代浏览器并保留兼容 IE11
26
- * [ ] v3.9 基于 vue2.6+,重构拆分组件,分为 [Vxe table](https://github.com/x-extends/vxe-table) 和 [Vxe UI](https://github.com/x-extends/vxe-pc-ui),将支持表单设计器、列表你设计器、流程设计器
26
+ * [ ] v3.9 基于 vue2.6+,重构拆分组件,分为 [Vxe table](https://github.com/x-extends/vxe-table) 和 [Vxe UI](https://github.com/x-extends/vxe-pc-ui),将支持可视化组件
27
27
  * [x] v4.0 基于 vue3.2+,只支持现代浏览器,不支持 IE
28
- * [x] v4.7 基于 vue3.2+,重构拆分组件,分为 [Vxe table](https://github.com/x-extends/vxe-table) 和 [Vxe UI](https://github.com/x-extends/vxe-pc-ui),将支持表单设计器、列表你设计器、流程设计器
28
+ * [x] v4.7 基于 vue3.2+,重构拆分组件,分为 [Vxe table](https://github.com/x-extends/vxe-table) 和 [Vxe UI](https://github.com/x-extends/vxe-pc-ui),将支持可视化组件
29
29
  * [ ] 下一阶段:sticky 渲染模式、将虚拟滚动提升到极致、虚拟滚动动态行高、数据图表可视化
30
30
 
31
31
  ## 浏览器支持
package/README.zh-TW.md CHANGED
@@ -14,19 +14,6 @@
14
14
 
15
15
  一個基於 [vue](https://www.npmjs.com/package/vue) 的PC端表格組件,支持增刪改查、虛擬樹、列拖拽、懶加載、快捷菜單、數據校驗、導入/匯出/列印、表單渲染、自定義模板、渲染器、JSON 配置式…
16
16
 
17
- * 設計理念
18
- * 面向現代瀏覽器,高效的簡潔 API 設計
19
- * 模組化表格、按需加載
20
- * 為單行編輯表格而設計,支持增删改查及更多擴展,强大的功能的同時兼具效能
21
-
22
- * 計劃
23
- * [x] ~~v1.0 基於 vue2.6,支持所有主流的瀏覽器,實現表格的一切實用的功能~~
24
- * [x] ~~v2.0 基於 vue2.6,支持所有主流的瀏覽器,同時兼具功能與效能~~
25
- * [x] v3.0 基於 vue2.6+,支持現代瀏覽器並保留相容IE11
26
- * [ ] v3.9 基於 vue2.6+,重構拆分組件,分爲 [Vxe table](https://github.com/x-extends/vxe-table) 和 [Vxe UI](https://github.com/x-extends/vxe-pc-ui),將支持表單設計器、列表你設計器、流程設計器
27
- * [x] v4.0 基于 vue3.x,只支持現代瀏覽器,不支持IE
28
- * [x] v4.7 基於 vue3.x,重構拆分組件,分爲 [Vxe table](https://github.com/x-extends/vxe-table) 和 [Vxe UI](https://github.com/x-extends/vxe-pc-ui),將支持表單設計器、列表你設計器、流程設計器
29
-
30
17
  ## 瀏覽器支持
31
18
 
32
19
  ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png)
@@ -3699,6 +3699,9 @@ export default defineComponent({
3699
3699
  return nextTick();
3700
3700
  },
3701
3701
  hasPendingByRow(row) {
3702
+ return tableMethods.isPendingByRow(row);
3703
+ },
3704
+ isPendingByRow(row) {
3702
3705
  const { pendingRowMaps } = reactData;
3703
3706
  const rowid = getRowid($xeTable, row);
3704
3707
  return !!pendingRowMaps[rowid];
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
- VxeUI.version = "4.7.14";
3
- VxeUI.tableVersion = "4.7.14";
2
+ VxeUI.version = "4.7.15";
3
+ VxeUI.tableVersion = "4.7.15";
4
4
  VxeUI.setConfig({
5
5
  emptyCell: ' ',
6
6
  table: {
@@ -257,28 +257,40 @@ export const use = VxeUI.use;
257
257
  * 已废弃
258
258
  * @deprecated
259
259
  */
260
- export const setup = VxeUI.setup;
260
+ export const setup = (options) => {
261
+ return VxeUI.setup(options);
262
+ };
261
263
  /**
262
264
  * 已废弃
263
265
  * @deprecated
264
266
  */
265
- export const config = VxeUI.config;
267
+ export const config = (options) => {
268
+ return VxeUI.config(options);
269
+ };
266
270
  /**
267
271
  * 已废弃
268
272
  * @deprecated
269
273
  */
270
- export const t = VxeUI.t;
274
+ export const t = (key, args) => {
275
+ return VxeUI.t(key, args);
276
+ };
271
277
  /**
272
278
  * 已废弃
273
279
  * @deprecated
274
280
  */
275
- export const _t = VxeUI._t;
281
+ export const _t = (key, args) => {
282
+ return VxeUI._t(key, args);
283
+ };
276
284
  /**
277
285
  * 已废弃,兼容老版本
278
286
  * @deprecated
279
287
  */
280
288
  export const VXETable = VxeUI;
281
- export const saveFile = VxeUI.readFile;
282
- export const readFile = VxeUI.readFile;
289
+ export const saveFile = (options) => {
290
+ return VxeUI.saveFile(options);
291
+ };
292
+ export const readFile = (options) => {
293
+ return VxeUI.readFile(options);
294
+ };
283
295
  export { VxeUI };
284
296
  export default VxeUI;
package/es/ui/src/log.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const version = `table v${"4.7.14"}`;
3
+ const version = `table v${"4.7.15"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/index.umd.js CHANGED
@@ -1790,8 +1790,8 @@ if (typeof window !== 'undefined') {
1790
1790
  var core_ = __webpack_require__(4345);
1791
1791
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
1792
1792
 
1793
- core_.VxeUI.version = "4.7.14";
1794
- core_.VxeUI.tableVersion = "4.7.14";
1793
+ core_.VxeUI.version = "4.7.15";
1794
+ core_.VxeUI.tableVersion = "4.7.15";
1795
1795
  core_.VxeUI.setConfig({
1796
1796
  emptyCell: ' ',
1797
1797
  table: {
@@ -2048,29 +2048,41 @@ const use = core_.VxeUI.use;
2048
2048
  * 已废弃
2049
2049
  * @deprecated
2050
2050
  */
2051
- const setup = core_.VxeUI.setup;
2051
+ const setup = options => {
2052
+ return core_.VxeUI.setup(options);
2053
+ };
2052
2054
  /**
2053
2055
  * 已废弃
2054
2056
  * @deprecated
2055
2057
  */
2056
- const config = core_.VxeUI.config;
2058
+ const config = options => {
2059
+ return core_.VxeUI.config(options);
2060
+ };
2057
2061
  /**
2058
2062
  * 已废弃
2059
2063
  * @deprecated
2060
2064
  */
2061
- const t = core_.VxeUI.t;
2065
+ const t = (key, args) => {
2066
+ return core_.VxeUI.t(key, args);
2067
+ };
2062
2068
  /**
2063
2069
  * 已废弃
2064
2070
  * @deprecated
2065
2071
  */
2066
- const _t = core_.VxeUI._t;
2072
+ const _t = (key, args) => {
2073
+ return core_.VxeUI._t(key, args);
2074
+ };
2067
2075
  /**
2068
2076
  * 已废弃,兼容老版本
2069
2077
  * @deprecated
2070
2078
  */
2071
2079
  const VXETable = core_.VxeUI;
2072
- const saveFile = core_.VxeUI.readFile;
2073
- const readFile = core_.VxeUI.readFile;
2080
+ const saveFile = options => {
2081
+ return core_.VxeUI.saveFile(options);
2082
+ };
2083
+ const readFile = options => {
2084
+ return core_.VxeUI.readFile(options);
2085
+ };
2074
2086
 
2075
2087
  /* harmony default export */ var ui = ((/* unused pure expression or super */ null && (VxeUI)));
2076
2088
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
@@ -2240,7 +2252,7 @@ function eqEmptyValue(cellValue) {
2240
2252
  const {
2241
2253
  log: log_log
2242
2254
  } = core_.VxeUI;
2243
- const version = `table v${"4.7.14"}`;
2255
+ const version = `table v${"4.7.15"}`;
2244
2256
  const warnLog = log_log.create('warn', version);
2245
2257
  const errLog = log_log.create('error', version);
2246
2258
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -12305,6 +12317,9 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
12305
12317
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
12306
12318
  },
12307
12319
  hasPendingByRow(row) {
12320
+ return tableMethods.isPendingByRow(row);
12321
+ },
12322
+ isPendingByRow(row) {
12308
12323
  const {
12309
12324
  pendingRowMaps
12310
12325
  } = reactData;