bm-admin-ui 1.2.25-alpha → 1.2.27-alpha

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.
@@ -18871,29 +18871,6 @@ const _sfc_main$7 = defineComponent({
18871
18871
  }
18872
18872
  }
18873
18873
  }));
18874
- const countText = computed(() => {
18875
- const cache = {};
18876
- props.rule.config.childRules?.forEach((rule) => {
18877
- if (rule.name === "numInput" && rule.config.count) {
18878
- cache[rule.field] = { title: rule.title.title, count: 0 };
18879
- }
18880
- });
18881
- data.forEach((row) => {
18882
- Object.keys(cache).forEach((key) => {
18883
- if (!isNaN(row[key]))
18884
- cache[key].count += row[key];
18885
- });
18886
- });
18887
- if (Object.keys(cache).length)
18888
- return `\uFF08\u5B57\u6BB5\u540D\u603B\u8BA1\uFF1A${Object.values(cache).reduce((pre, cur, index) => {
18889
- if (index !== 0)
18890
- pre += "\u3001";
18891
- pre += `${cur.title}\uFF1A${cur.count}`;
18892
- return pre;
18893
- }, "")}\uFF09`;
18894
- else
18895
- return "";
18896
- });
18897
18874
  const xGrid = computed(() => bmFloatTableRef.value.xGrid || {});
18898
18875
  const inputRef = ref();
18899
18876
  const childRulesMap = computed(
@@ -18922,6 +18899,44 @@ const _sfc_main$7 = defineComponent({
18922
18899
  "activityApply"
18923
18900
  ].includes(tableConfig.value.template)
18924
18901
  );
18902
+ const countText = computed(() => {
18903
+ let cache = {};
18904
+ props.rule.config.childRules?.forEach((rule) => {
18905
+ if (rule.name === "numInput" && rule.config.count) {
18906
+ cache[rule.field] = { title: rule.title.title, count: 0 };
18907
+ }
18908
+ });
18909
+ data.forEach((row) => {
18910
+ Object.keys(cache).forEach((key) => {
18911
+ if (!isNaN(row[key]))
18912
+ cache[key].count += row[key];
18913
+ });
18914
+ });
18915
+ if (props.rule.config.showTotal) {
18916
+ cache = {
18917
+ _total: { title: "\u884C\u6570", count: data?.length || 0 },
18918
+ ...cache
18919
+ };
18920
+ }
18921
+ if (Object.keys(cache).length) {
18922
+ if (isProductCenter.value) {
18923
+ return `\uFF08${Object.values(cache).reduce((pre, cur, index) => {
18924
+ if (index !== 0)
18925
+ pre += "\u3001";
18926
+ pre += `${cur.title}\u603B\u8BA1\uFF1A${cur.count}`;
18927
+ return pre;
18928
+ }, "")}\uFF09`;
18929
+ }
18930
+ return `\uFF08\u5B57\u6BB5\u540D\u603B\u8BA1\uFF1A${Object.values(cache).reduce((pre, cur, index) => {
18931
+ if (index !== 0)
18932
+ pre += "\u3001";
18933
+ pre += `${cur.title}\uFF1A${cur.count}`;
18934
+ return pre;
18935
+ }, "")}\uFF09`;
18936
+ } else {
18937
+ return "";
18938
+ }
18939
+ });
18925
18940
  function isShow(key) {
18926
18941
  return props.rule.config.tableAdvancedFeatures.includes(key);
18927
18942
  }
@@ -18982,7 +18997,7 @@ const _sfc_main$7 = defineComponent({
18982
18997
  color: "#9393A3"
18983
18998
  }
18984
18999
  },
18985
- ["\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA"]
19000
+ ["\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6"]
18986
19001
  );
18987
19002
  }
18988
19003
  }
@@ -19087,7 +19102,7 @@ const _sfc_main$7 = defineComponent({
19087
19102
  color: "#9393A3"
19088
19103
  }
19089
19104
  },
19090
- [row[childField] || "\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA"]
19105
+ [row[childField] || "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6"]
19091
19106
  );
19092
19107
  }
19093
19108
  }
@@ -20283,7 +20298,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
20283
20298
  flex: 1
20284
20299
  }, {
20285
20300
  default: withCtx(() => [
20286
- createTextVNode(toDisplayString(pane.tempSelected.materialCategoryNameShow || "\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA"), 1)
20301
+ createTextVNode(toDisplayString(pane.tempSelected.materialCategoryNameShow || "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6"), 1)
20287
20302
  ]),
20288
20303
  _: 2
20289
20304
  }, 1024)
@@ -20696,7 +20711,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
20696
20711
  createTextVNode(toDisplayString(getValue(field.value)), 1)
20697
20712
  ], 64))
20698
20713
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
20699
- createTextVNode("\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA")
20714
+ createTextVNode("\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6")
20700
20715
  ], 64))
20701
20716
  ]),
20702
20717
  _: 2
@@ -20952,7 +20967,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
20952
20967
  getValue(field2.value) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
20953
20968
  createTextVNode(toDisplayString(getValue(field2.value)), 1)
20954
20969
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
20955
- createTextVNode("\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA")
20970
+ createTextVNode("\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6")
20956
20971
  ], 64))
20957
20972
  ]),
20958
20973
  _: 2
@@ -2791,7 +2791,7 @@ var materialTemp = {
2791
2791
  const _hoisted_1$7 = /* @__PURE__ */ createElementVNode("div", { class: "bm-product-info-item__title" }, "\u5546\u54C1\u7F16\u53F7", -1);
2792
2792
  const _hoisted_2$5 = { class: "bm-product-info-item__content" };
2793
2793
  const _hoisted_3$4 = { class: "bm-product-info-item__title" };
2794
- const _hoisted_4$2 = /* @__PURE__ */ createElementVNode("div", { class: "bm-product-info-item__content" }, "\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA", -1);
2794
+ const _hoisted_4$2 = /* @__PURE__ */ createElementVNode("div", { class: "bm-product-info-item__content" }, "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6", -1);
2795
2795
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2796
2796
  __name: "product-info",
2797
2797
  props: ["formCreateInject"],
@@ -18885,29 +18885,6 @@ const _sfc_main$7 = vue.defineComponent({
18885
18885
  }
18886
18886
  }
18887
18887
  }));
18888
- const countText = vue.computed(() => {
18889
- const cache = {};
18890
- props.rule.config.childRules?.forEach((rule) => {
18891
- if (rule.name === "numInput" && rule.config.count) {
18892
- cache[rule.field] = { title: rule.title.title, count: 0 };
18893
- }
18894
- });
18895
- data.forEach((row) => {
18896
- Object.keys(cache).forEach((key) => {
18897
- if (!isNaN(row[key]))
18898
- cache[key].count += row[key];
18899
- });
18900
- });
18901
- if (Object.keys(cache).length)
18902
- return `\uFF08\u5B57\u6BB5\u540D\u603B\u8BA1\uFF1A${Object.values(cache).reduce((pre, cur, index) => {
18903
- if (index !== 0)
18904
- pre += "\u3001";
18905
- pre += `${cur.title}\uFF1A${cur.count}`;
18906
- return pre;
18907
- }, "")}\uFF09`;
18908
- else
18909
- return "";
18910
- });
18911
18888
  const xGrid = vue.computed(() => bmFloatTableRef.value.xGrid || {});
18912
18889
  const inputRef = vue.ref();
18913
18890
  const childRulesMap = vue.computed(
@@ -18936,6 +18913,44 @@ const _sfc_main$7 = vue.defineComponent({
18936
18913
  "activityApply"
18937
18914
  ].includes(tableConfig.value.template)
18938
18915
  );
18916
+ const countText = vue.computed(() => {
18917
+ let cache = {};
18918
+ props.rule.config.childRules?.forEach((rule) => {
18919
+ if (rule.name === "numInput" && rule.config.count) {
18920
+ cache[rule.field] = { title: rule.title.title, count: 0 };
18921
+ }
18922
+ });
18923
+ data.forEach((row) => {
18924
+ Object.keys(cache).forEach((key) => {
18925
+ if (!isNaN(row[key]))
18926
+ cache[key].count += row[key];
18927
+ });
18928
+ });
18929
+ if (props.rule.config.showTotal) {
18930
+ cache = {
18931
+ _total: { title: "\u884C\u6570", count: data?.length || 0 },
18932
+ ...cache
18933
+ };
18934
+ }
18935
+ if (Object.keys(cache).length) {
18936
+ if (isProductCenter.value) {
18937
+ return `\uFF08${Object.values(cache).reduce((pre, cur, index) => {
18938
+ if (index !== 0)
18939
+ pre += "\u3001";
18940
+ pre += `${cur.title}\u603B\u8BA1\uFF1A${cur.count}`;
18941
+ return pre;
18942
+ }, "")}\uFF09`;
18943
+ }
18944
+ return `\uFF08\u5B57\u6BB5\u540D\u603B\u8BA1\uFF1A${Object.values(cache).reduce((pre, cur, index) => {
18945
+ if (index !== 0)
18946
+ pre += "\u3001";
18947
+ pre += `${cur.title}\uFF1A${cur.count}`;
18948
+ return pre;
18949
+ }, "")}\uFF09`;
18950
+ } else {
18951
+ return "";
18952
+ }
18953
+ });
18939
18954
  function isShow(key) {
18940
18955
  return props.rule.config.tableAdvancedFeatures.includes(key);
18941
18956
  }
@@ -18996,7 +19011,7 @@ const _sfc_main$7 = vue.defineComponent({
18996
19011
  color: "#9393A3"
18997
19012
  }
18998
19013
  },
18999
- ["\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA"]
19014
+ ["\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6"]
19000
19015
  );
19001
19016
  }
19002
19017
  }
@@ -19101,7 +19116,7 @@ const _sfc_main$7 = vue.defineComponent({
19101
19116
  color: "#9393A3"
19102
19117
  }
19103
19118
  },
19104
- [row[childField] || "\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA"]
19119
+ [row[childField] || "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6"]
19105
19120
  );
19106
19121
  }
19107
19122
  }
@@ -20297,7 +20312,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
20297
20312
  flex: 1
20298
20313
  }, {
20299
20314
  default: vue.withCtx(() => [
20300
- vue.createTextVNode(vue.toDisplayString(pane.tempSelected.materialCategoryNameShow || "\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA"), 1)
20315
+ vue.createTextVNode(vue.toDisplayString(pane.tempSelected.materialCategoryNameShow || "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6"), 1)
20301
20316
  ]),
20302
20317
  _: 2
20303
20318
  }, 1024)
@@ -20710,7 +20725,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
20710
20725
  vue.createTextVNode(vue.toDisplayString(getValue(field.value)), 1)
20711
20726
  ], 64))
20712
20727
  ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
20713
- vue.createTextVNode("\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA")
20728
+ vue.createTextVNode("\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6")
20714
20729
  ], 64))
20715
20730
  ]),
20716
20731
  _: 2
@@ -20966,7 +20981,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
20966
20981
  getValue(field2.value) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
20967
20982
  vue.createTextVNode(vue.toDisplayString(getValue(field2.value)), 1)
20968
20983
  ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
20969
- vue.createTextVNode("\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA")
20984
+ vue.createTextVNode("\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6")
20970
20985
  ], 64))
20971
20986
  ]),
20972
20987
  _: 2
@@ -2801,7 +2801,7 @@ var materialTemp = {
2801
2801
  const _hoisted_1$7 = /* @__PURE__ */ vue.createElementVNode("div", { class: "bm-product-info-item__title" }, "\u5546\u54C1\u7F16\u53F7", -1);
2802
2802
  const _hoisted_2$5 = { class: "bm-product-info-item__content" };
2803
2803
  const _hoisted_3$4 = { class: "bm-product-info-item__title" };
2804
- const _hoisted_4$2 = /* @__PURE__ */ vue.createElementVNode("div", { class: "bm-product-info-item__content" }, "\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA", -1);
2804
+ const _hoisted_4$2 = /* @__PURE__ */ vue.createElementVNode("div", { class: "bm-product-info-item__content" }, "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6", -1);
2805
2805
  const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
2806
2806
  __name: "product-info",
2807
2807
  props: ["formCreateInject"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bm-admin-ui",
3
- "version": "1.2.25-alpha",
3
+ "version": "1.2.27-alpha",
4
4
  "private": false,
5
5
  "description": "An Admin Component Library for Bm",
6
6
  "license": "UNLICENSED",