@partex/one-core 2.0.99 → 2.0.101

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.
@@ -46,10 +46,10 @@ declare const _default: DefineComponent<{
46
46
  minlength?: number | null | undefined;
47
47
  maxlength?: number | null | undefined;
48
48
  rows?: number | null | undefined;
49
- label: string;
49
+ label: string | (() => string);
50
50
  key: string;
51
51
  show?: boolean | undefined;
52
- placeholder?: string | undefined;
52
+ placeholder?: string | (() => string) | undefined;
53
53
  span?: number | undefined;
54
54
  disabled?: boolean | undefined;
55
55
  readonly?: boolean | undefined;
@@ -74,10 +74,10 @@ declare const _default: DefineComponent<{
74
74
  max?: number | null | undefined;
75
75
  step?: number | null | undefined;
76
76
  precision?: number | null | undefined;
77
- label: string;
77
+ label: string | (() => string);
78
78
  key: string;
79
79
  show?: boolean | undefined;
80
- placeholder?: string | undefined;
80
+ placeholder?: string | (() => string) | undefined;
81
81
  span?: number | undefined;
82
82
  disabled?: boolean | undefined;
83
83
  readonly?: boolean | undefined;
@@ -107,10 +107,10 @@ declare const _default: DefineComponent<{
107
107
  isMinuteDisabled?: ((minute: number, hour: number | null) => boolean) | undefined;
108
108
  isSecondDisabled?: ((second: number, minute: number | null, hour: number | null) => boolean) | undefined;
109
109
  } | undefined;
110
- label: string;
110
+ label: string | (() => string);
111
111
  key: string;
112
112
  show?: boolean | undefined;
113
- placeholder?: string | undefined;
113
+ placeholder?: string | (() => string) | undefined;
114
114
  span?: number | undefined;
115
115
  disabled?: boolean | undefined;
116
116
  readonly?: boolean | undefined;
@@ -147,10 +147,10 @@ declare const _default: DefineComponent<{
147
147
  option: ObjectKey;
148
148
  handleClose: () => void;
149
149
  }) => VNodeChild) | undefined;
150
- label: string;
150
+ label: string | (() => string);
151
151
  key: string;
152
152
  show?: boolean | undefined;
153
- placeholder?: string | undefined;
153
+ placeholder?: string | (() => string) | undefined;
154
154
  span?: number | undefined;
155
155
  disabled?: boolean | undefined;
156
156
  readonly?: boolean | undefined;
@@ -171,10 +171,10 @@ declare const _default: DefineComponent<{
171
171
  } | {
172
172
  input: "time";
173
173
  format?: string | undefined;
174
- label: string;
174
+ label: string | (() => string);
175
175
  key: string;
176
176
  show?: boolean | undefined;
177
- placeholder?: string | undefined;
177
+ placeholder?: string | (() => string) | undefined;
178
178
  span?: number | undefined;
179
179
  disabled?: boolean | undefined;
180
180
  readonly?: boolean | undefined;
@@ -196,10 +196,10 @@ declare const _default: DefineComponent<{
196
196
  input: "upload";
197
197
  accept?: string | undefined;
198
198
  max?: number | null | undefined;
199
- label: string;
199
+ label: string | (() => string);
200
200
  key: string;
201
201
  show?: boolean | undefined;
202
- placeholder?: string | undefined;
202
+ placeholder?: string | (() => string) | undefined;
203
203
  span?: number | undefined;
204
204
  disabled?: boolean | undefined;
205
205
  readonly?: boolean | undefined;
@@ -219,10 +219,10 @@ declare const _default: DefineComponent<{
219
219
  updateValue?: string | Fn<any, any> | undefined;
220
220
  } | {
221
221
  input: "switch";
222
- label: string;
222
+ label: string | (() => string);
223
223
  key: string;
224
224
  show?: boolean | undefined;
225
- placeholder?: string | undefined;
225
+ placeholder?: string | (() => string) | undefined;
226
226
  span?: number | undefined;
227
227
  disabled?: boolean | undefined;
228
228
  readonly?: boolean | undefined;
@@ -3,10 +3,10 @@ import type { VNodeChild, VNode } from 'vue';
3
3
  type RuleType = 'string' | 'number' | 'boolean' | 'method' | 'regexp' | 'integer' | 'float' | 'array' | 'object' | 'enum' | 'date' | 'url' | 'hex' | 'email' | 'pattern' | 'any';
4
4
  type RuleTrigger = 'input' | 'change' | 'blur' | 'focus';
5
5
  interface IFormItemBase {
6
- label: string;
6
+ label: string | (() => string);
7
7
  key: string;
8
8
  show?: boolean;
9
- placeholder?: string;
9
+ placeholder?: string | (() => string);
10
10
  span?: number;
11
11
  disabled?: boolean;
12
12
  readonly?: boolean;