@fewangsit/wangsvue 1.5.203-alpha.2 → 1.5.203-alpha.3

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.
@@ -330,6 +330,14 @@ declare class DialogForm extends ClassComponent<
330
330
  value: GenericObject[T],
331
331
  shouldValidate?: boolean,
332
332
  ) => void;
333
+
334
+ /**
335
+ * Set errors fields
336
+ * @param fields - {
337
+ * name: 'This name already exists'
338
+ * }
339
+ */
340
+ setErrors(fields: GenericObject): void;
333
341
  }
334
342
 
335
343
  declare module '@vue/runtime-core' {
@@ -20,7 +20,7 @@ export interface MultiSelectFilterField extends MultiSelectProps {
20
20
  export interface DropdownFilterField extends DropdownProps {
21
21
  type: 'dropdown';
22
22
  field: string; // The name of the field this filter applies to
23
- optionField: string; // @example - actionOptions
23
+ optionField?: string; // @example - actionOptions
24
24
  fetchOptionFn?:
25
25
  | ((args?: any) => MultiSelectOption[]) // Sync function to fetch options
26
26
  | ((args?: any) => Promise<MultiSelectOption[]>); // Async function
@@ -281,6 +281,14 @@ declare class Form extends ClassComponent<FormProps, FormSlots, FormEmits> {
281
281
  value: GenericObject[T],
282
282
  shouldValidate?: boolean,
283
283
  ): void;
284
+
285
+ /**
286
+ * Set errors fields
287
+ * @param fields - {
288
+ * name: 'This name already exists'
289
+ * }
290
+ */
291
+ setErrors(fields: GenericObject): void;
284
292
  }
285
293
 
286
294
  declare module '@vue/runtime-core' {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue",
3
- "version": "1.5.203-alpha.2",
3
+ "version": "1.5.203-alpha.3",
4
4
  "author": "fewangsit",
5
5
  "description": "Wangsit VueJS Component Library",
6
6
  "module": "./wangsvue.es.js",