@indfnd/common 0.1.12 → 0.1.14

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,21 @@
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.14](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.13...v0.1.14) (2024-03-30)
6
+
7
+
8
+ ### Features
9
+
10
+ * 表格居右对齐;支持form表单链接 ([395d689](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/395d6890a6277c4243fe04ddd7d640ab0909fd18))
11
+
12
+ ### [0.1.13](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.12...v0.1.13) (2024-03-30)
13
+
14
+
15
+ ### Features
16
+
17
+ * 表格组件默认单元格不换行 ([833839a](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/833839ad5826b08e560b3da11c1b7d9f76c92d9f))
18
+ * 优化报表指标选择组件,支持列宽切换单位等选项 ([39e09b5](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/39e09b55b218b2ea560630b5d81020901d702207))
19
+
5
20
  ### [0.1.12](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.11...v0.1.12) (2024-03-29)
6
21
 
7
22
  ### [0.1.11](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v0.1.10...v0.1.11) (2024-03-29)
@@ -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.11";
5
+ const version = "0.1.13";
6
6
  const author = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -48564,6 +48564,23 @@ var FormImpl = {
48564
48564
  } else {
48565
48565
  const disabled = d.disabled instanceof Function ? d.disabled(this.form) : d.disabled;
48566
48566
  switch (d.type) {
48567
+ case "link": {
48568
+ itemInner = h(
48569
+ "span",
48570
+ {
48571
+ ref: d.formKey,
48572
+ style: { color: "var(--ind-primary-color)", cursor: "pointer" },
48573
+ on: {
48574
+ click: (event) => {
48575
+ d.onClick && d.onClick(this.form);
48576
+ event.preventDefault();
48577
+ }
48578
+ }
48579
+ },
48580
+ this.form[d.formKey]
48581
+ );
48582
+ break;
48583
+ }
48567
48584
  case "input":
48568
48585
  case "email":
48569
48586
  case "phone":
@@ -50031,9 +50048,9 @@ const __vue2_script$15 = {
50031
50048
  var _a, _b;
50032
50049
  this.tableParsedColumns = this.parsedColumns;
50033
50050
  if (this.exportFileName) {
50034
- this.fileName = this.exportFileName + dayjs().format("YYYYMMDDHHmmss");
50051
+ this.fileName = this.exportFileName;
50035
50052
  } else {
50036
- this.fileName = ((_b = (_a = this.$route) == null ? void 0 : _a.meta) == null ? void 0 : _b.title) + dayjs().format("YYYYMMDDHHmmss");
50053
+ this.fileName = (_b = (_a = this.$route) == null ? void 0 : _a.meta) == null ? void 0 : _b.title;
50037
50054
  }
50038
50055
  },
50039
50056
  methods: {
@@ -51959,6 +51976,10 @@ const __vue2_script$V = {
51959
51976
  type: Boolean,
51960
51977
  default: true
51961
51978
  },
51979
+ cellAutoHeight: {
51980
+ type: Boolean,
51981
+ default: false
51982
+ },
51962
51983
  renderDataFn: Function,
51963
51984
  revertBtn: Boolean,
51964
51985
  isIndexManageTable: Boolean,
@@ -51995,7 +52016,6 @@ const __vue2_script$V = {
51995
52016
  noRowsTemplate: String
51996
52017
  },
51997
52018
  data() {
51998
- var _a, _b, _c, _d;
51999
52019
  return {
52000
52020
  tableRef: null,
52001
52021
  refreshTable: false,
@@ -52032,8 +52052,8 @@ const __vue2_script$V = {
52032
52052
  suppressMenu: true,
52033
52053
  wrapHeaderText: this.headerAutoHeight,
52034
52054
  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",
52055
+ wrapText: this.cellAutoHeight,
52056
+ autoHeight: this.cellAutoHeight,
52037
52057
  suppressKeyboardEvent: (params) => {
52038
52058
  return suppressNavigation(params);
52039
52059
  }
@@ -52067,6 +52087,7 @@ const __vue2_script$V = {
52067
52087
  deepEach$3(null, this.columns, (d) => {
52068
52088
  rlt.push(d);
52069
52089
  });
52090
+ console.log("flatColumns length is", rlt.length);
52070
52091
  return rlt;
52071
52092
  },
52072
52093
  columnCalcMap() {