@fangzhongya/fang-ui 0.1.18 → 0.1.19
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/forms-div/src/data.cjs +6 -0
- package/dist/components/forms-div/src/data.d.ts +6 -0
- package/dist/components/forms-div/src/data.js +6 -0
- package/dist/components/forms-div/src/index2.cjs +28 -9
- package/dist/components/forms-div/src/index2.js +29 -10
- package/dist/components/index.scss +2 -1
- package/dist/css/index.css +22 -0
- package/dist/icons/index.json +1 -1
- package/dist/index.css +22 -0
- package/package.json +6 -6
- /package/dist/components/{global-config → date-picker}/index.css +0 -0
- /package/dist/css/{global-config.css → date-picker.css} +0 -0
|
@@ -27,6 +27,12 @@ export declare const dataProps: {
|
|
|
27
27
|
valueobj: {
|
|
28
28
|
type: ObjectConstructor;
|
|
29
29
|
};
|
|
30
|
+
compon: {
|
|
31
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
32
|
+
};
|
|
33
|
+
componValueName: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
};
|
|
30
36
|
/**
|
|
31
37
|
* 传入值
|
|
32
38
|
* @props { Object } modelValue={} ( )
|
|
@@ -32,6 +32,31 @@ const _sfc_main = vue.defineComponent({
|
|
|
32
32
|
}
|
|
33
33
|
return o;
|
|
34
34
|
});
|
|
35
|
+
const record = vue.ref();
|
|
36
|
+
const setPropComputedValue = (prop, computed2, value2) => {
|
|
37
|
+
if (!isEqual.isEqual(prop, computed2)) {
|
|
38
|
+
if (prop !== record.value) {
|
|
39
|
+
if (props.computed instanceof Array) {
|
|
40
|
+
props.computed.forEach((k, i) => {
|
|
41
|
+
if (prop instanceof Array) {
|
|
42
|
+
value2[k] = prop[i];
|
|
43
|
+
} else {
|
|
44
|
+
value2[k] = prop ? prop[k] : void 0;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
} else if (props.computed.set) {
|
|
48
|
+
props.computed.set(prop, value2, props);
|
|
49
|
+
}
|
|
50
|
+
} else {
|
|
51
|
+
if (props.pars) {
|
|
52
|
+
objValue.setObjValue(value2, props.prop, computed2);
|
|
53
|
+
} else {
|
|
54
|
+
value2[props.prop] = computed2;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
record.value = prop;
|
|
59
|
+
};
|
|
35
60
|
const binds = vue.computed(() => {
|
|
36
61
|
const obj = { ...props.config, ...formvalue.value };
|
|
37
62
|
const binds2 = {};
|
|
@@ -68,13 +93,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
68
93
|
c = props.computed.get(r, v, props);
|
|
69
94
|
}
|
|
70
95
|
if (prop) {
|
|
71
|
-
|
|
72
|
-
if (props.pars) {
|
|
73
|
-
objValue.setObjValue(v, prop, c);
|
|
74
|
-
} else {
|
|
75
|
-
v[prop] = c;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
96
|
+
setPropComputedValue(r, c, v);
|
|
78
97
|
}
|
|
79
98
|
r = c;
|
|
80
99
|
}
|
|
@@ -127,8 +146,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
127
146
|
}
|
|
128
147
|
});
|
|
129
148
|
const render = () => {
|
|
130
|
-
const compon = props.compon || "input";
|
|
131
|
-
const componValueName = "modelValue";
|
|
149
|
+
const compon = props.compon || prs.compon || "input";
|
|
150
|
+
const componValueName = prs.componValueName || "modelValue";
|
|
132
151
|
const componObj = {
|
|
133
152
|
...binds.value,
|
|
134
153
|
...use.getOnObjs(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, inject, computed, h, resolveComponent } from "vue";
|
|
1
|
+
import { defineComponent, inject, computed, ref, h, resolveComponent } from "vue";
|
|
2
2
|
import { name, dataProps, dataEmits, dataExpose } from "./data.js";
|
|
3
3
|
import "../../../utils/index.js";
|
|
4
4
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
@@ -30,6 +30,31 @@ const _sfc_main = defineComponent({
|
|
|
30
30
|
}
|
|
31
31
|
return o;
|
|
32
32
|
});
|
|
33
|
+
const record = ref();
|
|
34
|
+
const setPropComputedValue = (prop, computed2, value2) => {
|
|
35
|
+
if (!isEqual(prop, computed2)) {
|
|
36
|
+
if (prop !== record.value) {
|
|
37
|
+
if (props.computed instanceof Array) {
|
|
38
|
+
props.computed.forEach((k, i) => {
|
|
39
|
+
if (prop instanceof Array) {
|
|
40
|
+
value2[k] = prop[i];
|
|
41
|
+
} else {
|
|
42
|
+
value2[k] = prop ? prop[k] : void 0;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
} else if (props.computed.set) {
|
|
46
|
+
props.computed.set(prop, value2, props);
|
|
47
|
+
}
|
|
48
|
+
} else {
|
|
49
|
+
if (props.pars) {
|
|
50
|
+
setObjValue(value2, props.prop, computed2);
|
|
51
|
+
} else {
|
|
52
|
+
value2[props.prop] = computed2;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
record.value = prop;
|
|
57
|
+
};
|
|
33
58
|
const binds = computed(() => {
|
|
34
59
|
const obj = { ...props.config, ...formvalue.value };
|
|
35
60
|
const binds2 = {};
|
|
@@ -66,13 +91,7 @@ const _sfc_main = defineComponent({
|
|
|
66
91
|
c = props.computed.get(r, v, props);
|
|
67
92
|
}
|
|
68
93
|
if (prop) {
|
|
69
|
-
|
|
70
|
-
if (props.pars) {
|
|
71
|
-
setObjValue(v, prop, c);
|
|
72
|
-
} else {
|
|
73
|
-
v[prop] = c;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
94
|
+
setPropComputedValue(r, c, v);
|
|
76
95
|
}
|
|
77
96
|
r = c;
|
|
78
97
|
}
|
|
@@ -125,8 +144,8 @@ const _sfc_main = defineComponent({
|
|
|
125
144
|
}
|
|
126
145
|
});
|
|
127
146
|
const render = () => {
|
|
128
|
-
const compon = props.compon || "input";
|
|
129
|
-
const componValueName = "modelValue";
|
|
147
|
+
const compon = props.compon || prs.compon || "input";
|
|
148
|
+
const componValueName = prs.componValueName || "modelValue";
|
|
130
149
|
const componObj = {
|
|
131
150
|
...binds.value,
|
|
132
151
|
...getOnObjs(
|
package/dist/css/index.css
CHANGED
|
@@ -1772,4 +1772,26 @@
|
|
|
1772
1772
|
left: 0;
|
|
1773
1773
|
z-index: 1;
|
|
1774
1774
|
opacity: 0;
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
.tablesvp {
|
|
1778
|
+
width: 100%;
|
|
1779
|
+
height: var(--tablesvp-height);
|
|
1780
|
+
display: flex;
|
|
1781
|
+
flex-direction: column;
|
|
1782
|
+
}
|
|
1783
|
+
.tablesvp-main {
|
|
1784
|
+
display: flex;
|
|
1785
|
+
flex-direction: column;
|
|
1786
|
+
flex: 1;
|
|
1787
|
+
width: 100%;
|
|
1788
|
+
}
|
|
1789
|
+
.tablesvp-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
|
|
1790
|
+
display: none;
|
|
1791
|
+
}
|
|
1792
|
+
.tablesvp-paginat {
|
|
1793
|
+
overflow: hidden;
|
|
1794
|
+
}
|
|
1795
|
+
.tablesvp-paginat .el-pagination {
|
|
1796
|
+
justify-content: flex-end;
|
|
1775
1797
|
}
|
package/dist/icons/index.json
CHANGED
package/dist/index.css
CHANGED
|
@@ -1772,4 +1772,26 @@
|
|
|
1772
1772
|
left: 0;
|
|
1773
1773
|
z-index: 1;
|
|
1774
1774
|
opacity: 0;
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
.tablesvp {
|
|
1778
|
+
width: 100%;
|
|
1779
|
+
height: var(--tablesvp-height);
|
|
1780
|
+
display: flex;
|
|
1781
|
+
flex-direction: column;
|
|
1782
|
+
}
|
|
1783
|
+
.tablesvp-main {
|
|
1784
|
+
display: flex;
|
|
1785
|
+
flex-direction: column;
|
|
1786
|
+
flex: 1;
|
|
1787
|
+
width: 100%;
|
|
1788
|
+
}
|
|
1789
|
+
.tablesvp-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
|
|
1790
|
+
display: none;
|
|
1791
|
+
}
|
|
1792
|
+
.tablesvp-paginat {
|
|
1793
|
+
overflow: hidden;
|
|
1794
|
+
}
|
|
1795
|
+
.tablesvp-paginat .el-pagination {
|
|
1796
|
+
justify-content: flex-end;
|
|
1775
1797
|
}
|
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.19",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description ": "fang-ui",
|
|
7
7
|
"keywords": [
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"vue-tsc": "^3.1.3",
|
|
50
50
|
"vuedraggable": "4.1.0",
|
|
51
51
|
"vxe-table": "4.17.13",
|
|
52
|
-
"@fang-ui/hooks": "0.0.1-0",
|
|
53
52
|
"@fang-ui/components": "0.0.1-0",
|
|
54
|
-
"@fang-ui/locale": "0.0.1-0",
|
|
55
|
-
"@fang-ui/icons": "0.0.1-0",
|
|
56
|
-
"@fang-ui/utils": "0.0.1-0",
|
|
57
53
|
"@fang-ui/directives": "0.0.1-0",
|
|
54
|
+
"@fang-ui/icons": "0.0.1-0",
|
|
55
|
+
"@fang-ui/hooks": "0.0.1-0",
|
|
56
|
+
"@fang-ui/locale": "0.0.1-0",
|
|
58
57
|
"@fang-ui/theme": "0.0.1-0",
|
|
59
|
-
"@fang-ui/types": "0.0.1-0"
|
|
58
|
+
"@fang-ui/types": "0.0.1-0",
|
|
59
|
+
"@fang-ui/utils": "0.0.1-0"
|
|
60
60
|
},
|
|
61
61
|
"main": "./dist/index.cjs",
|
|
62
62
|
"module": "./dist/index.js",
|
|
File without changes
|
|
File without changes
|