starfish-form-custom 1.0.44 → 1.0.46
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-48f1f081.mjs → formAction-b76664af.mjs} +44 -52
- package/dist/{index-e7b2d7c0.mjs → index-0aa74f91.mjs} +40 -93
- package/dist/{index-e8b18d70.mjs → index-7fc8db96.mjs} +17 -22
- package/dist/{index-c2fdc90f.mjs → index-d1c1ba4b.mjs} +55 -81
- package/dist/{main-c6aa3683.mjs → main-d99755be.mjs} +273 -518
- package/dist/{starfish-form-ac5dbff7.mjs → starfish-form-0baee1df.mjs} +13 -9
- package/dist/starfish-form.mjs +1 -1
- package/dist/style.css +23 -130
- package/dist/types/form/src/common/Loading.vue.d.ts +2 -2
- package/dist/types/form/src/main.d.ts +17 -10
- package/dist/types/form/src/starfish-form.vue.d.ts +17 -10
- package/dist/types/form/src/utils/fieldProps.d.ts +4 -0
- package/package.json +43 -52
- package/src/components/CheckBox/index.vue +2 -2
- package/src/components/Date/index.vue +2 -2
- package/src/components/DateTime/index.vue +2 -2
- package/src/components/InputNumber/index.vue +2 -2
- package/src/components/Radio/index.vue +9 -1
- package/src/components/RichText/index.vue +65 -180
- package/src/components/Rule/index.vue +2 -2
- package/src/components/Rule/rules.js +3 -3
- package/src/components/Selected/index.vue +2 -2
- package/src/components/Selecteds/index.vue +2 -2
- package/src/components/Switch/index.vue +1 -1
- package/src/components/Text/index.vue +2 -2
- package/src/components/TextArea/index.vue +2 -2
- package/src/starfish-form.vue +8 -3
- package/src/styles/formedit.scss +115 -115
- package/src/styles/keyvalueConfig.scss +56 -56
- package/src/utils/customHooks.ts +0 -1
- package/src/utils/fieldProps.ts +5 -1
- package/stats.html +2230 -2123
- 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
|
}
|
package/src/utils/fieldProps.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType
|
|
1
|
+
import { PropType } from "vue";
|
|
2
2
|
|
|
3
3
|
interface FormConfig {
|
|
4
4
|
[key: string]: any;
|
|
@@ -26,6 +26,10 @@ export default {
|
|
|
26
26
|
type: Boolean,
|
|
27
27
|
default: false,
|
|
28
28
|
},
|
|
29
|
+
search: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: false,
|
|
32
|
+
},
|
|
29
33
|
labelalign: {
|
|
30
34
|
type: String,
|
|
31
35
|
default: 'top'
|