@indfnd/common 1.0.128 → 1.1.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
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
+ ### [1.1.1](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.0...v1.1.1) (2025-08-30)
6
+
7
+
8
+ ### Features
9
+
10
+ * 初始化加载exceljs ([f51a422](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/f51a422eb3a708c7cca36ce130a16106d77837db))
11
+
12
+ ## [1.1.0](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.128...v1.1.0) (2025-08-29)
13
+
5
14
  ### [1.0.128](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.127...v1.0.128) (2025-08-27)
6
15
 
7
16
  ### [1.0.127](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.126...v1.0.127) (2025-08-27)
@@ -5460,7 +5460,7 @@ var lodash = { exports: {} };
5460
5460
  })(lodash, lodash.exports);
5461
5461
  var _ = lodash.exports;
5462
5462
  const name$1 = "@indfnd/common";
5463
- const version = "1.0.127";
5463
+ const version = "1.1.0";
5464
5464
  const author = "huxuetong";
5465
5465
  const publishConfig = {
5466
5466
  registry: "https://registry.npmjs.org/"
@@ -43553,10 +43553,25 @@ function getAgColumnTitleAndData({ columns, datas }) {
43553
43553
  });
43554
43554
  var exportData = datasClo.map((d) => {
43555
43555
  return columnsCalc.map((dd, idx) => {
43556
- if (d[dd.field] && columnWidth[idx] < ("" + d[dd.field]).length * 2) {
43557
- columnWidth[idx] = ("" + d[dd.field]).length * 2;
43556
+ if (dd.columnWidth !== void 0) {
43557
+ columnWidth[idx] = dd.columnWidth;
43558
+ } else {
43559
+ if (d[dd.field] && columnWidth[idx] < ("" + d[dd.field]).length * 2) {
43560
+ columnWidth[idx] = ("" + d[dd.field]).length * 2;
43561
+ }
43562
+ }
43563
+ let formula = null;
43564
+ if (dd.formula) {
43565
+ if (dd.formula instanceof Function) {
43566
+ formula = dd.formula(d[dd.field], d, datasClo);
43567
+ } else {
43568
+ formula = dd.formula;
43569
+ }
43558
43570
  }
43559
- return d[dd.field] || "";
43571
+ return {
43572
+ formula,
43573
+ value: d[dd.field]
43574
+ };
43560
43575
  });
43561
43576
  });
43562
43577
  return {
@@ -49725,7 +49740,26 @@ var FormImpl = {
49725
49740
  }
49726
49741
  },
49727
49742
  [
49728
- this.scopedSlots[d.formKey] ? this.scopedSlots[d.formKey]({
49743
+ d.checkAble ? h("div", { style: { display: "flex" } }, [
49744
+ this.scopedSlots[d.formKey] ? this.scopedSlots[d.formKey]({
49745
+ form: this.form,
49746
+ item: d
49747
+ }) : itemInner,
49748
+ h(
49749
+ "Checkbox",
49750
+ {
49751
+ props: {
49752
+ label: d.formKey,
49753
+ value: d.checked
49754
+ },
49755
+ style: {
49756
+ flexShrink: 0,
49757
+ marginLeft: "10px"
49758
+ }
49759
+ },
49760
+ [d.checkLabel || "\u5206\u7EC4"]
49761
+ )
49762
+ ]) : this.scopedSlots[d.formKey] ? this.scopedSlots[d.formKey]({
49729
49763
  form: this.form,
49730
49764
  item: d
49731
49765
  }) : itemInner
@@ -72263,6 +72297,17 @@ const install = function(Vue2, opts = { theme: "" }) {
72263
72297
  if (!location.pathname.includes("scyxweb")) {
72264
72298
  initWps();
72265
72299
  }
72300
+ const addScript2 = function(src, cb) {
72301
+ var script = document.createElement("script");
72302
+ script.src = src;
72303
+ document.getElementsByTagName("head")[0].appendChild(script);
72304
+ script.onload = function() {
72305
+ if (!!cb) {
72306
+ cb();
72307
+ }
72308
+ };
72309
+ };
72310
+ addScript2(`//${location.host}/ind-uc-ext/vendor/exceljs.min.js`);
72266
72311
  const theme = opts.theme || getDefaultTheme();
72267
72312
  doChangeTheme(theme);
72268
72313
  if (!location.pathname.includes("scyxweb")) {