@indfnd/common 0.1.11 → 0.1.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.13](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.12...v0.1.13) (2024-03-30)
6
+
7
+
8
+ ### Features
9
+
10
+ * 表格组件默认单元格不换行 ([833839a](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/833839ad5826b08e560b3da11c1b7d9f76c92d9f))
11
+ * 优化报表指标选择组件,支持列宽切换单位等选项 ([39e09b5](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/39e09b55b218b2ea560630b5d81020901d702207))
12
+
13
+ ### [0.1.12](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.11...v0.1.12) (2024-03-29)
14
+
5
15
  ### [0.1.11](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.10...v0.1.11) (2024-03-29)
6
16
 
7
17
 
@@ -2,7 +2,7 @@ import { Button as Button$1, ButtonGroup as ButtonGroup$1, Input, Drawer as Draw
2
2
  import { isNil, formatDate as formatDate$1, useConfig, getLocalStorage, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, isFunction, isString, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, putOssFileApi, isEqual, getCaptchaURL, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, getToken, putOssFileUrl, getOssFileUrl, responseInterceptors, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, getSessionStorage, setSessionStorage, getAppListApi, getPermissionCache, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, getIndexDescCache, listIndexDescApi, setIndexDescCache } from "@indfnd/utils";
3
3
  import Vue$1 from "vue";
4
4
  const name$1 = "@indfnd/common";
5
- const version = "0.1.10";
5
+ const version = "0.1.12";
6
6
  const author = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -50031,9 +50031,9 @@ const __vue2_script$15 = {
50031
50031
  var _a, _b;
50032
50032
  this.tableParsedColumns = this.parsedColumns;
50033
50033
  if (this.exportFileName) {
50034
- this.fileName = this.exportFileName + dayjs().format("YYYYMMDDHHmmss");
50034
+ this.fileName = this.exportFileName;
50035
50035
  } else {
50036
- this.fileName = ((_b = (_a = this.$route) == null ? void 0 : _a.meta) == null ? void 0 : _b.title) + dayjs().format("YYYYMMDDHHmmss");
50036
+ this.fileName = (_b = (_a = this.$route) == null ? void 0 : _a.meta) == null ? void 0 : _b.title;
50037
50037
  }
50038
50038
  },
50039
50039
  methods: {
@@ -51959,6 +51959,10 @@ const __vue2_script$V = {
51959
51959
  type: Boolean,
51960
51960
  default: true
51961
51961
  },
51962
+ cellAutoHeight: {
51963
+ type: Boolean,
51964
+ default: false
51965
+ },
51962
51966
  renderDataFn: Function,
51963
51967
  revertBtn: Boolean,
51964
51968
  isIndexManageTable: Boolean,
@@ -51995,7 +51999,6 @@ const __vue2_script$V = {
51995
51999
  noRowsTemplate: String
51996
52000
  },
51997
52001
  data() {
51998
- var _a, _b, _c, _d;
51999
52002
  return {
52000
52003
  tableRef: null,
52001
52004
  refreshTable: false,
@@ -52032,8 +52035,8 @@ const __vue2_script$V = {
52032
52035
  suppressMenu: true,
52033
52036
  wrapHeaderText: this.headerAutoHeight,
52034
52037
  autoHeaderHeight: this.headerAutoHeight,
52035
- wrapText: ((_b = (_a = this.$store) == null ? void 0 : _a.getters) == null ? void 0 : _b.getTheme) != "theme1",
52036
- autoHeight: ((_d = (_c = this.$store) == null ? void 0 : _c.getters) == null ? void 0 : _d.getTheme) != "theme1",
52038
+ wrapText: this.cellAutoHeight,
52039
+ autoHeight: this.cellAutoHeight,
52037
52040
  suppressKeyboardEvent: (params) => {
52038
52041
  return suppressNavigation(params);
52039
52042
  }
@@ -52067,6 +52070,7 @@ const __vue2_script$V = {
52067
52070
  deepEach$3(null, this.columns, (d) => {
52068
52071
  rlt.push(d);
52069
52072
  });
52073
+ console.log("flatColumns length is", rlt.length);
52070
52074
  return rlt;
52071
52075
  },
52072
52076
  columnCalcMap() {
@@ -60268,12 +60272,21 @@ function addNodeToTree(tree, node) {
60268
60272
  let midPathNode = path2.shift();
60269
60273
  let midNode = _.find(subTree, { id: midPathNode == null ? void 0 : midPathNode.id });
60270
60274
  if (!midNode) {
60271
- midNode = {
60272
- pathStr: path2.length == 0 ? node.pathStr : "",
60273
- id: path2.length == 0 ? node.pathStr : midPathNode == null ? void 0 : midPathNode.id,
60274
- title: midPathNode == null ? void 0 : midPathNode.title,
60275
- children: []
60276
- };
60275
+ if (path2.length == 0) {
60276
+ midNode = {
60277
+ ...node,
60278
+ pathStr: node.pathStr,
60279
+ id: node.pathStr,
60280
+ title: midPathNode == null ? void 0 : midPathNode.title
60281
+ };
60282
+ } else {
60283
+ midNode = {
60284
+ pathStr: path2.length == 0 ? node.pathStr : "",
60285
+ id: path2.length == 0 ? node.pathStr : midPathNode == null ? void 0 : midPathNode.id,
60286
+ title: midPathNode == null ? void 0 : midPathNode.title,
60287
+ children: []
60288
+ };
60289
+ }
60277
60290
  subTree.push(midNode);
60278
60291
  }
60279
60292
  addNodeToTreeInner(midNode.children, path2);