@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.
- package/dist/components/common/use.cjs +8 -0
- package/dist/components/common/use.d.ts +1 -0
- package/dist/components/common/use.js +8 -0
- package/dist/components/forms/index.css +3 -0
- package/dist/components/forms-item/index.scss +3 -0
- package/dist/components/forms-item/src/label.cjs +1 -1
- package/dist/components/forms-item/src/label.js +2 -2
- package/dist/components/{forms-item → forms-items}/index.css +3 -0
- package/dist/components/index.scss +2 -1
- package/dist/components/list/src/util.cjs +1 -1
- package/dist/components/list/src/util.js +2 -2
- package/dist/components/page/index.css +3 -0
- package/dist/components/scss/common.scss +3 -0
- package/dist/css/{forms-item.css → forms-items.css} +3 -0
- package/dist/css/forms.css +3 -0
- package/dist/css/index.css +31 -0
- package/dist/css/page.css +3 -0
- package/dist/icons/index.json +1 -1
- package/dist/index.css +31 -0
- package/package.json +4 -4
- /package/dist/components/{global-config → keep-com}/index.css +0 -0
- /package/dist/css/{global-config.css → keep-com.css} +0 -0
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, inject } from "vue";
|
|
2
|
-
import { useGetDomLabel,
|
|
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
|
|
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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "vue";
|
|
2
|
-
import { useSetSlot, useSetCompon, useGetDomValue, useGetDomLabel,
|
|
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
|
|
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;
|
|
@@ -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;
|
package/dist/css/forms.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;
|
package/dist/css/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/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;
|
package/dist/icons/index.json
CHANGED
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.
|
|
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/
|
|
60
|
-
"@fang-ui/
|
|
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
|
|
File without changes
|