@fangzhongya/fang-ui 0.1.29 → 0.1.30

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.
@@ -410,6 +410,13 @@ function useAdditional(value, add) {
410
410
  return vue.h(vue.Fragment, {}, [value, add]);
411
411
  }
412
412
  }
413
+ function useLabelAdditional(value, add) {
414
+ if (typeof value === "string" && typeof add === "string") {
415
+ return value + add;
416
+ } else {
417
+ return vue.h(vue.Fragment, {}, [value, add]);
418
+ }
419
+ }
413
420
  function getVNodeContent(vnode) {
414
421
  const container = document.createElement("div");
415
422
  vue.render(vnode, container);
@@ -442,6 +449,7 @@ exports.useAdditional = useAdditional;
442
449
  exports.useGetDomLabel = useGetDomLabel;
443
450
  exports.useGetDomValue = useGetDomValue;
444
451
  exports.useHide = useHide;
452
+ exports.useLabelAdditional = useLabelAdditional;
445
453
  exports.useObjComponSelected = useObjComponSelected;
446
454
  exports.usePropsDefault = usePropsDefault;
447
455
  exports.useSetCompon = useSetCompon;
@@ -31,6 +31,7 @@ export declare function usePropsDefault(props: any, keyObj: {
31
31
  * @returns
32
32
  */
33
33
  export declare function useAdditional(value: string | VNode, add: string | VNode): string | VNode;
34
+ export declare function useLabelAdditional(value: string | VNode, add: string | VNode): string | VNode;
34
35
  /**
35
36
  * 获取VNode的展示文本
36
37
  * @param vnode
@@ -408,6 +408,13 @@ function useAdditional(value, add) {
408
408
  return h(Fragment, {}, [value, add]);
409
409
  }
410
410
  }
411
+ function useLabelAdditional(value, add) {
412
+ if (typeof value === "string" && typeof add === "string") {
413
+ return value + add;
414
+ } else {
415
+ return h(Fragment, {}, [value, add]);
416
+ }
417
+ }
411
418
  function getVNodeContent(vnode) {
412
419
  const container = document.createElement("div");
413
420
  render(vnode, container);
@@ -441,6 +448,7 @@ export {
441
448
  useGetDomLabel,
442
449
  useGetDomValue,
443
450
  useHide,
451
+ useLabelAdditional,
444
452
  useObjComponSelected,
445
453
  usePropsDefault,
446
454
  useSetCompon,
@@ -40,6 +40,9 @@
40
40
  height: var(--forms-item-row-height);
41
41
  line-height: var(--forms-item-row-height);
42
42
  }
43
+ .forms-item-el-item .el-form-item__label {
44
+ white-space: pre-wrap;
45
+ }
43
46
  .forms-item-el-item.is-top .el-form-item__content {
44
47
  min-height: var(--forms-item-row-height);
45
48
  display: grid;
@@ -11,6 +11,9 @@ $forms-item: 'forms-item';
11
11
  line-height: var(vdm('row-height', $forms-item));
12
12
  }
13
13
  }
14
+ .#{e()}form-item__label {
15
+ white-space: pre-wrap;
16
+ }
14
17
  &.is-top {
15
18
  .#{e()}form-item__content {
16
19
  min-height: var(vdm('row-height', $forms-item));
@@ -28,7 +28,7 @@ function render(props, emit, slots, form) {
28
28
  colon = ":";
29
29
  }
30
30
  if (label) {
31
- return use.useAdditional(label, colon);
31
+ return use.useLabelAdditional(label, colon);
32
32
  }
33
33
  }
34
34
  return label;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject } from "vue";
2
- import { useGetDomLabel, useAdditional } from "../../common/use.js";
2
+ import { useGetDomLabel, useLabelAdditional } from "../../common/use.js";
3
3
  import { provides } from "../../forms/common/config.js";
4
4
  import { useComponsGet } from "../../../hooks/compons/index.js";
5
5
  function render(props, emit, slots, form) {
@@ -26,7 +26,7 @@ function render(props, emit, slots, form) {
26
26
  colon = ":";
27
27
  }
28
28
  if (label) {
29
- return useAdditional(label, colon);
29
+ return useLabelAdditional(label, colon);
30
30
  }
31
31
  }
32
32
  return label;
@@ -39,6 +39,9 @@
39
39
  height: var(--forms-item-row-height);
40
40
  line-height: var(--forms-item-row-height);
41
41
  }
42
+ .forms-item-el-item .el-form-item__label {
43
+ white-space: pre-wrap;
44
+ }
42
45
  .forms-item-el-item.is-top .el-form-item__content {
43
46
  min-height: var(--forms-item-row-height);
44
47
  display: grid;
@@ -121,4 +121,5 @@
121
121
  @use './tablespd/index.scss' as *;
122
122
  @use './tabless/index.scss' as *;
123
123
  @use './tablesv/index.scss' as *;
124
- @use './tablesvp/index.scss' as *;
124
+ @use './tablesvp/index.scss' as *;
125
+ @use './tablesvpd/index.scss' as *;
@@ -53,7 +53,7 @@ function setLabel(obj, props, compons, emit, slots, isComponSelected, index) {
53
53
  colon = ":";
54
54
  }
55
55
  if (label) {
56
- return use.useAdditional(label, colon);
56
+ return use.useLabelAdditional(label, colon);
57
57
  }
58
58
  }
59
59
  return label;
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { useSetSlot, useSetCompon, useGetDomValue, useGetDomLabel, useAdditional } from "../../common/use.js";
2
+ import { useSetSlot, useSetCompon, useGetDomValue, useGetDomLabel, useLabelAdditional } from "../../common/use.js";
3
3
  const setClass = (item, data, index) => {
4
4
  const v = data[item.state ?? item.prop];
5
5
  if (item.setcss) {
@@ -51,7 +51,7 @@ function setLabel(obj, props, compons, emit, slots, isComponSelected, index) {
51
51
  colon = ":";
52
52
  }
53
53
  if (label) {
54
- return useAdditional(label, colon);
54
+ return useLabelAdditional(label, colon);
55
55
  }
56
56
  }
57
57
  return label;
@@ -40,6 +40,9 @@
40
40
  height: var(--forms-item-row-height);
41
41
  line-height: var(--forms-item-row-height);
42
42
  }
43
+ .forms-item-el-item .el-form-item__label {
44
+ white-space: pre-wrap;
45
+ }
43
46
  .forms-item-el-item.is-top .el-form-item__content {
44
47
  min-height: var(--forms-item-row-height);
45
48
  display: grid;
@@ -26,3 +26,6 @@
26
26
  .com-lable-array {
27
27
  line-height: 18px;
28
28
  }
29
+ // .com-lable-colon {
30
+ // white-space: pre-wrap; /* 保留空白符,并正常换行 */
31
+ // }
@@ -39,6 +39,9 @@
39
39
  height: var(--forms-item-row-height);
40
40
  line-height: var(--forms-item-row-height);
41
41
  }
42
+ .forms-item-el-item .el-form-item__label {
43
+ white-space: pre-wrap;
44
+ }
42
45
  .forms-item-el-item.is-top .el-form-item__content {
43
46
  min-height: var(--forms-item-row-height);
44
47
  display: grid;
@@ -40,6 +40,9 @@
40
40
  height: var(--forms-item-row-height);
41
41
  line-height: var(--forms-item-row-height);
42
42
  }
43
+ .forms-item-el-item .el-form-item__label {
44
+ white-space: pre-wrap;
45
+ }
43
46
  .forms-item-el-item.is-top .el-form-item__content {
44
47
  min-height: var(--forms-item-row-height);
45
48
  display: grid;
@@ -40,6 +40,9 @@
40
40
  height: var(--forms-item-row-height);
41
41
  line-height: var(--forms-item-row-height);
42
42
  }
43
+ .forms-item-el-item .el-form-item__label {
44
+ white-space: pre-wrap;
45
+ }
43
46
  .forms-item-el-item.is-top .el-form-item__content {
44
47
  min-height: var(--forms-item-row-height);
45
48
  display: grid;
@@ -1872,4 +1875,32 @@
1872
1875
  }
1873
1876
  .tablesvp-paginat .el-pagination {
1874
1877
  justify-content: flex-end;
1878
+ }
1879
+
1880
+ .tablesvpd {
1881
+ width: 100%;
1882
+ height: var(--tablesvpd-height);
1883
+ display: flex;
1884
+ flex-direction: column;
1885
+ }
1886
+ .tablesvpd-main {
1887
+ display: flex;
1888
+ flex-direction: column;
1889
+ flex: 1;
1890
+ width: 100%;
1891
+ }
1892
+ .tablesvpd-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
1893
+ display: none;
1894
+ }
1895
+ .tablesvpd-main.is-scroll .v-scroll-add {
1896
+ text-align: center;
1897
+ padding: 10px;
1898
+ color: #999;
1899
+ background-color: #eee;
1900
+ }
1901
+ .tablesvpd-paginat {
1902
+ overflow: hidden;
1903
+ }
1904
+ .tablesvpd-paginat .el-pagination {
1905
+ justify-content: flex-end;
1875
1906
  }
package/dist/css/page.css CHANGED
@@ -40,6 +40,9 @@
40
40
  height: var(--forms-item-row-height);
41
41
  line-height: var(--forms-item-row-height);
42
42
  }
43
+ .forms-item-el-item .el-form-item__label {
44
+ white-space: pre-wrap;
45
+ }
43
46
  .forms-item-el-item.is-top .el-form-item__content {
44
47
  min-height: var(--forms-item-row-height);
45
48
  display: grid;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "prefix": "fang-ui",
3
3
  "info": {},
4
- "lastModified": 1763520174611,
4
+ "lastModified": 1763521936120,
5
5
  "icons": {
6
6
  "bar": {
7
7
  "body": " <path fill=\"currentColor\" d=\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\" ></path> "
package/dist/index.css CHANGED
@@ -40,6 +40,9 @@
40
40
  height: var(--forms-item-row-height);
41
41
  line-height: var(--forms-item-row-height);
42
42
  }
43
+ .forms-item-el-item .el-form-item__label {
44
+ white-space: pre-wrap;
45
+ }
43
46
  .forms-item-el-item.is-top .el-form-item__content {
44
47
  min-height: var(--forms-item-row-height);
45
48
  display: grid;
@@ -1872,4 +1875,32 @@
1872
1875
  }
1873
1876
  .tablesvp-paginat .el-pagination {
1874
1877
  justify-content: flex-end;
1878
+ }
1879
+
1880
+ .tablesvpd {
1881
+ width: 100%;
1882
+ height: var(--tablesvpd-height);
1883
+ display: flex;
1884
+ flex-direction: column;
1885
+ }
1886
+ .tablesvpd-main {
1887
+ display: flex;
1888
+ flex-direction: column;
1889
+ flex: 1;
1890
+ width: 100%;
1891
+ }
1892
+ .tablesvpd-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
1893
+ display: none;
1894
+ }
1895
+ .tablesvpd-main.is-scroll .v-scroll-add {
1896
+ text-align: center;
1897
+ padding: 10px;
1898
+ color: #999;
1899
+ background-color: #eee;
1900
+ }
1901
+ .tablesvpd-paginat {
1902
+ overflow: hidden;
1903
+ }
1904
+ .tablesvpd-paginat .el-pagination {
1905
+ justify-content: flex-end;
1875
1906
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/fang-ui",
3
3
  "private": false,
4
- "version": "0.1.29",
4
+ "version": "0.1.30",
5
5
  "type": "module",
6
6
  "description ": "fang-ui",
7
7
  "keywords": [
@@ -50,14 +50,14 @@
50
50
  "vue": "^3.5.24",
51
51
  "vue-tsc": "^3.1.4",
52
52
  "vxe-table": "4.6.20",
53
- "@fang-ui/components": "0.0.1-0",
54
53
  "@fang-ui/directives": "0.0.1-0",
54
+ "@fang-ui/components": "0.0.1-0",
55
55
  "@fang-ui/hooks": "0.0.1-0",
56
56
  "@fang-ui/icons": "0.0.1-0",
57
57
  "@fang-ui/locale": "0.0.1-0",
58
58
  "@fang-ui/theme": "0.0.1-0",
59
- "@fang-ui/types": "0.0.1-0",
60
- "@fang-ui/utils": "0.0.1-0"
59
+ "@fang-ui/utils": "0.0.1-0",
60
+ "@fang-ui/types": "0.0.1-0"
61
61
  },
62
62
  "main": "./dist/index.cjs",
63
63
  "module": "./dist/index.js",
File without changes