3h1-ui 3.0.0-next.227 → 3.0.0-next.229

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/es/index.js CHANGED
@@ -42586,7 +42586,7 @@ const Process = /* @__PURE__ */ defineComponent({
42586
42586
  }, {
42587
42587
  immediate: true
42588
42588
  });
42589
- const renderColumns = (record) => {
42589
+ const renderColumns = (record, index2) => {
42590
42590
  const getTreeData = (data, deep = 0) => {
42591
42591
  const renderTime = (record2) => record2[props2.fieldNames.time] ? createVNode("div", {
42592
42592
  "class": `${prefixCls2}-body-group-time`
@@ -42598,7 +42598,14 @@ const Process = /* @__PURE__ */ defineComponent({
42598
42598
  }, [getTreeData(ele, ++deep), renderTime(ele)]);
42599
42599
  });
42600
42600
  }
42601
- const columns = props2.columns.map((item) => {
42601
+ const columns = props2.columns.filter(({
42602
+ ifShow
42603
+ }) => {
42604
+ if (typeof ifShow === "function") {
42605
+ return ifShow(data, index2);
42606
+ }
42607
+ return ifShow !== false;
42608
+ }).map((item) => {
42602
42609
  const {
42603
42610
  labelWidth = props2.labelWidth,
42604
42611
  customRender
@@ -42626,7 +42633,7 @@ const Process = /* @__PURE__ */ defineComponent({
42626
42633
  return getTreeData(record);
42627
42634
  };
42628
42635
  const renderCollapsePanel = () => {
42629
- return props2.data.map((item) => {
42636
+ return props2.data.map((item, index2) => {
42630
42637
  return createVNode(CollapsePanel, {
42631
42638
  "key": item[props2.fieldNames.key],
42632
42639
  "class": `${prefixCls2}-item`
@@ -42638,7 +42645,7 @@ const Process = /* @__PURE__ */ defineComponent({
42638
42645
  "value": item[props2.fieldNames.status],
42639
42646
  "options": props2.options
42640
42647
  }, null),
42641
- default: () => renderColumns(item)
42648
+ default: () => renderColumns(item, index2)
42642
42649
  });
42643
42650
  });
42644
42651
  };
@@ -49445,7 +49452,7 @@ const Descriptions = /* @__PURE__ */ defineComponent({
49445
49452
  field
49446
49453
  } = item;
49447
49454
  const labelStyles = {
49448
- width: `${getProps.value.labelWidth}px`,
49455
+ width: getProps.value.mode === "horizontal" ? `${getProps.value.labelWidth}px` : "auto",
49449
49456
  ...unref(labelAlignCss),
49450
49457
  ...unref(getProps).labelStyle,
49451
49458
  ...labelStyle
package/lib/index.js CHANGED
@@ -42610,7 +42610,7 @@ const Process = /* @__PURE__ */ vue.defineComponent({
42610
42610
  }, {
42611
42611
  immediate: true
42612
42612
  });
42613
- const renderColumns = (record) => {
42613
+ const renderColumns = (record, index2) => {
42614
42614
  const getTreeData = (data, deep = 0) => {
42615
42615
  const renderTime = (record2) => record2[props2.fieldNames.time] ? vue.createVNode("div", {
42616
42616
  "class": `${prefixCls2}-body-group-time`
@@ -42622,7 +42622,14 @@ const Process = /* @__PURE__ */ vue.defineComponent({
42622
42622
  }, [getTreeData(ele, ++deep), renderTime(ele)]);
42623
42623
  });
42624
42624
  }
42625
- const columns = props2.columns.map((item) => {
42625
+ const columns = props2.columns.filter(({
42626
+ ifShow
42627
+ }) => {
42628
+ if (typeof ifShow === "function") {
42629
+ return ifShow(data, index2);
42630
+ }
42631
+ return ifShow !== false;
42632
+ }).map((item) => {
42626
42633
  const {
42627
42634
  labelWidth = props2.labelWidth,
42628
42635
  customRender
@@ -42650,7 +42657,7 @@ const Process = /* @__PURE__ */ vue.defineComponent({
42650
42657
  return getTreeData(record);
42651
42658
  };
42652
42659
  const renderCollapsePanel = () => {
42653
- return props2.data.map((item) => {
42660
+ return props2.data.map((item, index2) => {
42654
42661
  return vue.createVNode(antDesignVue.CollapsePanel, {
42655
42662
  "key": item[props2.fieldNames.key],
42656
42663
  "class": `${prefixCls2}-item`
@@ -42662,7 +42669,7 @@ const Process = /* @__PURE__ */ vue.defineComponent({
42662
42669
  "value": item[props2.fieldNames.status],
42663
42670
  "options": props2.options
42664
42671
  }, null),
42665
- default: () => renderColumns(item)
42672
+ default: () => renderColumns(item, index2)
42666
42673
  });
42667
42674
  });
42668
42675
  };
@@ -49469,7 +49476,7 @@ const Descriptions = /* @__PURE__ */ vue.defineComponent({
49469
49476
  field
49470
49477
  } = item;
49471
49478
  const labelStyles = {
49472
- width: `${getProps.value.labelWidth}px`,
49479
+ width: getProps.value.mode === "horizontal" ? `${getProps.value.labelWidth}px` : "auto",
49473
49480
  ...vue.unref(labelAlignCss),
49474
49481
  ...vue.unref(getProps).labelStyle,
49475
49482
  ...labelStyle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "3.0.0-next.227",
3
+ "version": "3.0.0-next.229",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -29,8 +29,8 @@
29
29
  "vue-json-pretty": "^2.2.3",
30
30
  "vxe-table": "^4.3.6",
31
31
  "xe-utils": "^3.5.7",
32
- "@shy-plugins/use": "1.0.1-next.5",
33
32
  "@shy-plugins/tinymce": "^1.0.6",
33
+ "@shy-plugins/use": "1.0.1-next.5",
34
34
  "@shy-plugins/utils": "1.0.0-next.1"
35
35
  },
36
36
  "types": "es/ui/index.d.ts",