@form-create/view-design 2.5.23 → 2.5.26
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/form-create.js +195 -142
- package/dist/form-create.min.js +2 -2
- package/dist/form-create.min.js.map +1 -1
- package/package.json +4 -5
- package/types/config.d.ts +9 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@form-create/view-design",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.26",
|
|
4
4
|
"description": "view-design动态表单|form-create is a form generation component that can generate dynamic rendering, data collection, verification and submission functions through JSON. Supports 3 UI frameworks, and supports the generation of any Vue components. Built-in 20 kinds of commonly used form components and custom components, no matter how complex forms can be easily handled.",
|
|
5
5
|
"main": "./dist/form-create.min.js",
|
|
6
6
|
"module": "./dist/form-create.min.js",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
},
|
|
45
45
|
"homepage": "http://www.form-create.com",
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@form-create/core": "^2.5.
|
|
48
|
-
"@form-create/iview": "^2.5.
|
|
47
|
+
"@form-create/core": "^2.5.26",
|
|
48
|
+
"@form-create/iview": "^2.5.26"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
@@ -54,9 +54,8 @@
|
|
|
54
54
|
"@form-create/component-wangeditor": "^2.5.15",
|
|
55
55
|
"@vue/cli-plugin-babel": "^4.5.9",
|
|
56
56
|
"@vue/cli-service": "^4.5.3",
|
|
57
|
-
"@vue/composition-api": "^1.0.0-beta.22",
|
|
58
57
|
"v-jsoneditor": "^1.4.2",
|
|
59
58
|
"view-design": "^4.0.2"
|
|
60
59
|
},
|
|
61
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "a98b4876f74f56f070980b81834c7fa10e23b2e9"
|
|
62
61
|
}
|
package/types/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {FormData,
|
|
1
|
+
import {FormData, VNodeRule} from "@form-create/core";
|
|
2
2
|
import {Col, Row, Tooltip, Poptip, Button} from "view-design";
|
|
3
3
|
import {Api} from "./index";
|
|
4
4
|
|
|
@@ -10,14 +10,14 @@ export interface OptionAttrs {
|
|
|
10
10
|
row?: Boolean | Row & {
|
|
11
11
|
show?: Boolean;
|
|
12
12
|
};
|
|
13
|
-
info?: Boolean | (Tooltip | Poptip) &
|
|
13
|
+
info?: Boolean | (Tooltip | Poptip) & VNodeRule & {
|
|
14
14
|
show?: Boolean;
|
|
15
15
|
native?: Boolean;
|
|
16
16
|
icon?: string;
|
|
17
17
|
align?: 'left' | 'right';
|
|
18
18
|
info?: string;
|
|
19
19
|
};
|
|
20
|
-
wrap?: Boolean |
|
|
20
|
+
wrap?: Boolean | VNodeRule & {
|
|
21
21
|
labelWidth?: number;
|
|
22
22
|
labelFor?: string;
|
|
23
23
|
required?: boolean;
|
|
@@ -49,25 +49,21 @@ export interface OptionAttrs {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
declare const optionAttrs: OptionAttrs & {
|
|
52
|
-
title?: Boolean |
|
|
52
|
+
title?: Boolean | VNodeRule & {
|
|
53
53
|
show?: Boolean;
|
|
54
54
|
native?: Boolean;
|
|
55
55
|
title?: string;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
interface children {
|
|
60
|
-
children?: VNodeData[]
|
|
61
|
-
}
|
|
62
|
-
|
|
63
59
|
export interface CreatorAttrs {
|
|
64
60
|
col(props: typeof optionAttrs.col): this;
|
|
65
61
|
|
|
66
62
|
wrap(props: typeof optionAttrs.wrap): this;
|
|
67
63
|
|
|
68
|
-
title(props: string | typeof optionAttrs.title
|
|
64
|
+
title(props: string | typeof optionAttrs.title): this;
|
|
69
65
|
|
|
70
|
-
info(props: string | typeof optionAttrs.info
|
|
66
|
+
info(props: string | typeof optionAttrs.info): this;
|
|
71
67
|
|
|
72
68
|
className(prop: string): this;
|
|
73
69
|
|
|
@@ -76,8 +72,8 @@ export interface CreatorAttrs {
|
|
|
76
72
|
export interface RuleAttrs {
|
|
77
73
|
col?: typeof optionAttrs.col;
|
|
78
74
|
wrap?: typeof optionAttrs.wrap;
|
|
79
|
-
title?: string | typeof optionAttrs.title
|
|
80
|
-
info?: string | typeof optionAttrs.info
|
|
75
|
+
title?: string | typeof optionAttrs.title;
|
|
76
|
+
info?: string | typeof optionAttrs.info;
|
|
81
77
|
className?: string;
|
|
82
78
|
}
|
|
83
79
|
|
|
@@ -107,4 +103,4 @@ export interface ApiAttrs {
|
|
|
107
103
|
|
|
108
104
|
resetBtnProps(props: Button): void;
|
|
109
105
|
|
|
110
|
-
}
|
|
106
|
+
}
|