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

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
@@ -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
+ }, index2) => {
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
@@ -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
@@ -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
+ }, index2) => {
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
@@ -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.228",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -29,9 +29,9 @@
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",
34
- "@shy-plugins/utils": "1.0.0-next.1"
33
+ "@shy-plugins/utils": "1.0.0-next.1",
34
+ "@shy-plugins/use": "1.0.1-next.5"
35
35
  },
36
36
  "types": "es/ui/index.d.ts",
37
37
  "devDependencies": {