starfish-form-custom 1.0.43 → 1.0.45
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/.pnpm-debug.log +828 -828
- package/components.d.ts +0 -2
- package/dist/{formAction-5fa977d1.mjs → formAction-47da9ade.mjs} +44 -52
- package/dist/{index-9d339476.mjs → index-2d78c11c.mjs} +55 -81
- package/dist/index-b3b75fee.mjs +133 -0
- package/dist/{index-133a88e8.mjs → index-d029d3de.mjs} +17 -22
- package/dist/{main-08a90f8a.mjs → main-c9f94a75.mjs} +255 -504
- package/dist/{starfish-form-8c225a3b.mjs → starfish-form-ff99f526.mjs} +3 -5
- package/dist/starfish-form.mjs +1 -1
- package/dist/style.css +24 -133
- package/dist/types/form/src/common/Loading.vue.d.ts +2 -2
- package/dist/types/form/src/main.d.ts +8 -10
- package/dist/types/form/src/starfish-form.vue.d.ts +8 -10
- package/package.json +43 -52
- package/src/components/RichText/index.vue +62 -209
- package/src/components/Rule/index.vue +2 -2
- package/src/components/Rule/rules.js +3 -3
- package/src/starfish-form.vue +0 -1
- package/src/styles/formedit.scss +115 -115
- package/src/styles/keyvalueConfig.scss +56 -56
- package/src/utils/customHooks.ts +0 -1
- package/stats.html +2230 -2123
- package/dist/index-54d339ab.mjs +0 -214
- package/dist/types/form/src/common/formAction.vue.d.ts +0 -85
- package/dist/types/form/src/components/RichText/MenuBar.vue.d.ts +0 -34
- package/dist/types/form/src/components/RichText/MenuItem.vue.d.ts +0 -42
- package/src/components/RichText/MenuBar.vue +0 -144
- package/src/components/RichText/MenuItem.vue +0 -98
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
.starfish-keyValueItem {
|
|
2
|
-
display: flex;
|
|
3
|
-
justify-content: space-around;
|
|
4
|
-
align-items: center;
|
|
5
|
-
font-size: 12px;
|
|
6
|
-
border: 1px solid #eee;
|
|
7
|
-
margin-bottom: 6px;
|
|
8
|
-
border-radius: 10px;
|
|
9
|
-
padding: 10px 0;
|
|
10
|
-
.keyValueSelect {
|
|
11
|
-
width: 30px;
|
|
12
|
-
text-align: center;
|
|
13
|
-
}
|
|
14
|
-
.keyValueInput {
|
|
15
|
-
flex: 1;
|
|
16
|
-
.inputItem {
|
|
17
|
-
line-height: 20px;
|
|
18
|
-
}
|
|
19
|
-
> div {
|
|
20
|
-
margin-bottom: 7px;
|
|
21
|
-
span {
|
|
22
|
-
display: block;
|
|
23
|
-
margin-bottom: 6px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
.keyValueControl {
|
|
28
|
-
width: 40px;
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
justify-content: space-around;
|
|
32
|
-
align-items: center;
|
|
33
|
-
> div {
|
|
34
|
-
width: 18px;
|
|
35
|
-
height: 18px;
|
|
36
|
-
border-radius: 50%;
|
|
37
|
-
background: #fff;
|
|
38
|
-
display: flex;
|
|
39
|
-
align-items: center;
|
|
40
|
-
justify-content: center;
|
|
41
|
-
margin: 5px 0;
|
|
42
|
-
cursor: pointer;
|
|
43
|
-
}
|
|
44
|
-
.add {
|
|
45
|
-
background: #409eff;
|
|
46
|
-
color: white;
|
|
47
|
-
}
|
|
48
|
-
.remove {
|
|
49
|
-
background: #ec4747;
|
|
50
|
-
color: white;
|
|
51
|
-
}
|
|
52
|
-
i {
|
|
53
|
-
font-size: 12px;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
1
|
+
.starfish-keyValueItem {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-around;
|
|
4
|
+
align-items: center;
|
|
5
|
+
font-size: 12px;
|
|
6
|
+
border: 1px solid #eee;
|
|
7
|
+
margin-bottom: 6px;
|
|
8
|
+
border-radius: 10px;
|
|
9
|
+
padding: 10px 0;
|
|
10
|
+
.keyValueSelect {
|
|
11
|
+
width: 30px;
|
|
12
|
+
text-align: center;
|
|
13
|
+
}
|
|
14
|
+
.keyValueInput {
|
|
15
|
+
flex: 1;
|
|
16
|
+
.inputItem {
|
|
17
|
+
line-height: 20px;
|
|
18
|
+
}
|
|
19
|
+
> div {
|
|
20
|
+
margin-bottom: 7px;
|
|
21
|
+
span {
|
|
22
|
+
display: block;
|
|
23
|
+
margin-bottom: 6px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
.keyValueControl {
|
|
28
|
+
width: 40px;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
justify-content: space-around;
|
|
32
|
+
align-items: center;
|
|
33
|
+
> div {
|
|
34
|
+
width: 18px;
|
|
35
|
+
height: 18px;
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
background: #fff;
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
margin: 5px 0;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
}
|
|
44
|
+
.add {
|
|
45
|
+
background: #409eff;
|
|
46
|
+
color: white;
|
|
47
|
+
}
|
|
48
|
+
.remove {
|
|
49
|
+
background: #ec4747;
|
|
50
|
+
color: white;
|
|
51
|
+
}
|
|
52
|
+
i {
|
|
53
|
+
font-size: 12px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
package/src/utils/customHooks.ts
CHANGED
|
@@ -7,7 +7,6 @@ function useWatch(props: any) {
|
|
|
7
7
|
watch(
|
|
8
8
|
() => props.data[props.item.data.fieldName],
|
|
9
9
|
(val, oldVal) => {
|
|
10
|
-
console.log("watch", val, oldVal, 'props.item.data', props.item.data);
|
|
11
10
|
if (props.item.data.action && props.item.data.action.onChange) {
|
|
12
11
|
window.VApp.$Flex.funcExec(props.item.data.action.onChange, vm.proxy, [val, oldVal, props.data]);
|
|
13
12
|
}
|