@form-create/element-ui 3.1.9 → 3.1.12

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/types/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import {FormData, VNodeData} from "@form-create/core";
1
+ import {FormData, VNodeRule} from "@form-create/core";
2
2
  import {ButtonProps, ValidateFieldCallback} from "element-plus";
3
3
  import {Api} from "./index";
4
4
 
@@ -37,14 +37,14 @@ export interface OptionAttrs {
37
37
  row?: Boolean | RowProps & {
38
38
  show?: Boolean;
39
39
  };
40
- info?: Boolean | VNodeData & {
40
+ info?: Boolean | VNodeRule & {
41
41
  show?: Boolean;
42
42
  native?: Boolean;
43
43
  icon?: string;
44
44
  align?: 'left' | 'right';
45
45
  info?: string;
46
46
  };
47
- wrap?: Boolean | VNodeData & {
47
+ wrap?: Boolean | VNodeRule & {
48
48
  labelWidth?: string
49
49
  required?: boolean
50
50
  error?: string
@@ -83,25 +83,21 @@ export interface OptionAttrs {
83
83
  }
84
84
 
85
85
  declare const optionAttrs: OptionAttrs & {
86
- title?: Boolean | VNodeData & {
86
+ title?: Boolean | VNodeRule & {
87
87
  show?: Boolean;
88
88
  native?: Boolean;
89
- title?: string;
89
+ title: string;
90
90
  };
91
91
  };
92
92
 
93
- interface children {
94
- children?: VNodeData[]
95
- }
96
-
97
93
  export interface CreatorAttrs {
98
94
  col(props: typeof optionAttrs.col): this;
99
95
 
100
96
  wrap(props: typeof optionAttrs.wrap): this;
101
97
 
102
- title(props: string | typeof optionAttrs.title & children): this;
98
+ title(props: string | typeof optionAttrs.title): this;
103
99
 
104
- info(props: string | typeof optionAttrs.info & children): this;
100
+ info(props: string | typeof optionAttrs.info): this;
105
101
 
106
102
  className(prop: string): this;
107
103
 
@@ -110,8 +106,8 @@ export interface CreatorAttrs {
110
106
  export interface RuleAttrs {
111
107
  col?: typeof optionAttrs.col;
112
108
  wrap?: typeof optionAttrs.wrap;
113
- title?: string | typeof optionAttrs.title & children;
114
- info?: string | typeof optionAttrs.info & children;
109
+ title?: string | typeof optionAttrs.title;
110
+ info?: string | typeof optionAttrs.info;
115
111
  className?: string;
116
112
  }
117
113