@fangzhongya/fang-ui 0.1.43 → 0.1.44
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/index2.cjs +27 -19
- package/dist/components/forms-div/src/index2.js +27 -19
- package/dist/components/forms-item/src/data.cjs +2 -5
- package/dist/components/forms-item/src/data.d.ts +2 -3
- package/dist/components/forms-item/src/data.js +2 -5
- package/dist/components/forms-item/src/indexts.d.ts +2 -5
- package/dist/icons/index.json +1 -1
- package/package.json +6 -6
- /package/dist/components/{input-tag → global-config}/index.css +0 -0
- /package/dist/css/{input-tag.css → global-config.css} +0 -0
|
@@ -31,17 +31,32 @@ const _sfc_main = vue.defineComponent({
|
|
|
31
31
|
}
|
|
32
32
|
return o;
|
|
33
33
|
});
|
|
34
|
-
const record = vue.ref();
|
|
34
|
+
const record = vue.ref(props.default);
|
|
35
35
|
const setPropComputedValue = (prop, computed2, value2) => {
|
|
36
|
-
if (
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
if (props.prop) {
|
|
37
|
+
if (isEqual.isEqual(prop, computed2)) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (prop !== record.value) {
|
|
41
|
+
handlePropNotEqualRecord(prop, value2);
|
|
42
|
+
} else {
|
|
43
|
+
if (props.pars) {
|
|
44
|
+
objValue.setObjValue(value2, props.prop, computed2);
|
|
45
|
+
} else {
|
|
46
|
+
value2[props.prop] = computed2;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
record.value = prop;
|
|
41
50
|
} else {
|
|
42
|
-
|
|
51
|
+
prop = record.value;
|
|
52
|
+
if (isEqual.isEqual(prop, computed2)) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
if (prop !== computed2) {
|
|
56
|
+
handlePropNotEqualRecord(computed2, value2);
|
|
57
|
+
}
|
|
58
|
+
record.value = computed2;
|
|
43
59
|
}
|
|
44
|
-
record.value = prop;
|
|
45
60
|
};
|
|
46
61
|
const handlePropNotEqualRecord = (prop, value2) => {
|
|
47
62
|
if (Array.isArray(props.computed)) {
|
|
@@ -60,13 +75,6 @@ const _sfc_main = vue.defineComponent({
|
|
|
60
75
|
}
|
|
61
76
|
}
|
|
62
77
|
};
|
|
63
|
-
const handlePropEqualRecord = (computed2, value2) => {
|
|
64
|
-
if (props.pars) {
|
|
65
|
-
objValue.setObjValue(value2, props.prop, computed2);
|
|
66
|
-
} else {
|
|
67
|
-
value2[props.prop] = computed2;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
78
|
const binds = vue.computed(() => {
|
|
71
79
|
const obj = { ...props.config, ...formvalue.value };
|
|
72
80
|
const binds2 = {};
|
|
@@ -122,7 +130,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
122
130
|
props
|
|
123
131
|
);
|
|
124
132
|
}
|
|
125
|
-
if (
|
|
133
|
+
if (computedValue !== void 0) {
|
|
126
134
|
setPropComputedValue(currentValue, computedValue, source);
|
|
127
135
|
}
|
|
128
136
|
return computedValue;
|
|
@@ -136,10 +144,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
136
144
|
if (props.computed) {
|
|
137
145
|
handleComputedSet(newValue, v);
|
|
138
146
|
}
|
|
139
|
-
if (!props.orig && !prop) {
|
|
147
|
+
if (!props.orig && !(prop || props.computed)) {
|
|
140
148
|
emit("update:modelValue", newValue);
|
|
141
149
|
}
|
|
142
|
-
if (prop) {
|
|
150
|
+
if (prop || props.computed) {
|
|
143
151
|
emit("upform", newValue, props, v);
|
|
144
152
|
}
|
|
145
153
|
}
|
|
@@ -184,7 +192,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
184
192
|
[componValueName]: value.value,
|
|
185
193
|
["onUpdate:" + componValueName]: (v) => value.value = v,
|
|
186
194
|
["onUpform"]: (...arr) => {
|
|
187
|
-
if (props.prop) {
|
|
195
|
+
if (props.prop || props.computed) {
|
|
188
196
|
emit("upform", ...arr);
|
|
189
197
|
}
|
|
190
198
|
}
|
|
@@ -29,17 +29,32 @@ const _sfc_main = defineComponent({
|
|
|
29
29
|
}
|
|
30
30
|
return o;
|
|
31
31
|
});
|
|
32
|
-
const record = ref();
|
|
32
|
+
const record = ref(props.default);
|
|
33
33
|
const setPropComputedValue = (prop, computed2, value2) => {
|
|
34
|
-
if (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
if (props.prop) {
|
|
35
|
+
if (isEqual(prop, computed2)) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
if (prop !== record.value) {
|
|
39
|
+
handlePropNotEqualRecord(prop, value2);
|
|
40
|
+
} else {
|
|
41
|
+
if (props.pars) {
|
|
42
|
+
setObjValue(value2, props.prop, computed2);
|
|
43
|
+
} else {
|
|
44
|
+
value2[props.prop] = computed2;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
record.value = prop;
|
|
39
48
|
} else {
|
|
40
|
-
|
|
49
|
+
prop = record.value;
|
|
50
|
+
if (isEqual(prop, computed2)) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (prop !== computed2) {
|
|
54
|
+
handlePropNotEqualRecord(computed2, value2);
|
|
55
|
+
}
|
|
56
|
+
record.value = computed2;
|
|
41
57
|
}
|
|
42
|
-
record.value = prop;
|
|
43
58
|
};
|
|
44
59
|
const handlePropNotEqualRecord = (prop, value2) => {
|
|
45
60
|
if (Array.isArray(props.computed)) {
|
|
@@ -58,13 +73,6 @@ const _sfc_main = defineComponent({
|
|
|
58
73
|
}
|
|
59
74
|
}
|
|
60
75
|
};
|
|
61
|
-
const handlePropEqualRecord = (computed2, value2) => {
|
|
62
|
-
if (props.pars) {
|
|
63
|
-
setObjValue(value2, props.prop, computed2);
|
|
64
|
-
} else {
|
|
65
|
-
value2[props.prop] = computed2;
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
76
|
const binds = computed(() => {
|
|
69
77
|
const obj = { ...props.config, ...formvalue.value };
|
|
70
78
|
const binds2 = {};
|
|
@@ -120,7 +128,7 @@ const _sfc_main = defineComponent({
|
|
|
120
128
|
props
|
|
121
129
|
);
|
|
122
130
|
}
|
|
123
|
-
if (
|
|
131
|
+
if (computedValue !== void 0) {
|
|
124
132
|
setPropComputedValue(currentValue, computedValue, source);
|
|
125
133
|
}
|
|
126
134
|
return computedValue;
|
|
@@ -134,10 +142,10 @@ const _sfc_main = defineComponent({
|
|
|
134
142
|
if (props.computed) {
|
|
135
143
|
handleComputedSet(newValue, v);
|
|
136
144
|
}
|
|
137
|
-
if (!props.orig && !prop) {
|
|
145
|
+
if (!props.orig && !(prop || props.computed)) {
|
|
138
146
|
emit("update:modelValue", newValue);
|
|
139
147
|
}
|
|
140
|
-
if (prop) {
|
|
148
|
+
if (prop || props.computed) {
|
|
141
149
|
emit("upform", newValue, props, v);
|
|
142
150
|
}
|
|
143
151
|
}
|
|
@@ -182,7 +190,7 @@ const _sfc_main = defineComponent({
|
|
|
182
190
|
[componValueName]: value.value,
|
|
183
191
|
["onUpdate:" + componValueName]: (v) => value.value = v,
|
|
184
192
|
["onUpform"]: (...arr) => {
|
|
185
|
-
if (props.prop) {
|
|
193
|
+
if (props.prop || props.computed) {
|
|
186
194
|
emit("upform", ...arr);
|
|
187
195
|
}
|
|
188
196
|
}
|
|
@@ -56,13 +56,10 @@ const dataProps = {
|
|
|
56
56
|
hideLabel: Boolean,
|
|
57
57
|
/**
|
|
58
58
|
* 传入值
|
|
59
|
-
* @props { Object } modelValue
|
|
59
|
+
* @props { Object } modelValue ( )
|
|
60
60
|
*/
|
|
61
61
|
modelValue: {
|
|
62
|
-
type:
|
|
63
|
-
default() {
|
|
64
|
-
return {};
|
|
65
|
-
}
|
|
62
|
+
type: null
|
|
66
63
|
}
|
|
67
64
|
};
|
|
68
65
|
const dataEmits = ["update:modelValue", "upform"];
|
|
@@ -67,11 +67,10 @@ export declare const dataProps: {
|
|
|
67
67
|
hideLabel: BooleanConstructor;
|
|
68
68
|
/**
|
|
69
69
|
* 传入值
|
|
70
|
-
* @props { Object } modelValue
|
|
70
|
+
* @props { Object } modelValue ( )
|
|
71
71
|
*/
|
|
72
72
|
modelValue: {
|
|
73
|
-
type:
|
|
74
|
-
default(): {};
|
|
73
|
+
type: null;
|
|
75
74
|
};
|
|
76
75
|
};
|
|
77
76
|
export type DataProps = ExtractPropTypes<typeof dataProps>;
|
|
@@ -54,13 +54,10 @@ const dataProps = {
|
|
|
54
54
|
hideLabel: Boolean,
|
|
55
55
|
/**
|
|
56
56
|
* 传入值
|
|
57
|
-
* @props { Object } modelValue
|
|
57
|
+
* @props { Object } modelValue ( )
|
|
58
58
|
*/
|
|
59
59
|
modelValue: {
|
|
60
|
-
type:
|
|
61
|
-
default() {
|
|
62
|
-
return {};
|
|
63
|
-
}
|
|
60
|
+
type: null
|
|
64
61
|
}
|
|
65
62
|
};
|
|
66
63
|
const dataEmits = ["update:modelValue", "upform"];
|
|
@@ -38,8 +38,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
38
38
|
};
|
|
39
39
|
hideLabel: BooleanConstructor;
|
|
40
40
|
modelValue: {
|
|
41
|
-
type:
|
|
42
|
-
default(): {};
|
|
41
|
+
type: null;
|
|
43
42
|
};
|
|
44
43
|
}>, () => VNode<RendererNode, RendererElement, {
|
|
45
44
|
[key: string]: any;
|
|
@@ -82,13 +81,11 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
82
81
|
};
|
|
83
82
|
hideLabel: BooleanConstructor;
|
|
84
83
|
modelValue: {
|
|
85
|
-
type:
|
|
86
|
-
default(): {};
|
|
84
|
+
type: null;
|
|
87
85
|
};
|
|
88
86
|
}>> & Readonly<{
|
|
89
87
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
90
88
|
}>, {
|
|
91
|
-
modelValue: Record<string, any>;
|
|
92
89
|
index: number[];
|
|
93
90
|
optionss: ObjAny;
|
|
94
91
|
listobj: ListObj;
|
package/dist/icons/index.json
CHANGED
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.44",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description ": "fang-ui",
|
|
7
7
|
"keywords": [
|
|
@@ -34,27 +34,27 @@
|
|
|
34
34
|
"@vue/shared": "3.5.25",
|
|
35
35
|
"axios": "^1.13.2",
|
|
36
36
|
"d3-timer": "3.0.1",
|
|
37
|
-
"element-plus": "^2.11.
|
|
37
|
+
"element-plus": "^2.11.9",
|
|
38
38
|
"fast-glob": "^3.3.3",
|
|
39
39
|
"sass": "^1.94.2",
|
|
40
40
|
"sortablejs": "1.15.6",
|
|
41
41
|
"ts-node": "^10.9.2",
|
|
42
42
|
"tsup": "^8.5.1",
|
|
43
43
|
"typescript": "^5.9.3",
|
|
44
|
-
"unplugin-auto-import": "20.
|
|
44
|
+
"unplugin-auto-import": "20.3.0",
|
|
45
45
|
"unplugin-dts": "1.0.0-beta.6",
|
|
46
46
|
"unplugin-vue-components": "30.0.0",
|
|
47
47
|
"vite": "^6.3.5",
|
|
48
48
|
"vitepress": "1.6.4",
|
|
49
|
-
"vitest": "^4.0.
|
|
49
|
+
"vitest": "^4.0.14",
|
|
50
50
|
"vue": "^3.5.25",
|
|
51
51
|
"vue-tsc": "^3.1.5",
|
|
52
52
|
"vxe-table": "4.6.20",
|
|
53
|
-
"@fang-ui/directives": "0.0.1-0",
|
|
54
53
|
"@fang-ui/components": "0.0.1-0",
|
|
55
54
|
"@fang-ui/hooks": "0.0.1-0",
|
|
56
|
-
"@fang-ui/locale": "0.0.1-0",
|
|
57
55
|
"@fang-ui/icons": "0.0.1-0",
|
|
56
|
+
"@fang-ui/locale": "0.0.1-0",
|
|
57
|
+
"@fang-ui/directives": "0.0.1-0",
|
|
58
58
|
"@fang-ui/theme": "0.0.1-0",
|
|
59
59
|
"@fang-ui/types": "0.0.1-0",
|
|
60
60
|
"@fang-ui/utils": "0.0.1-0"
|
|
File without changes
|
|
File without changes
|