@vunk/form 0.0.1-alpha.20 → 0.0.1-alpha.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "0.0.1-alpha.20",
3
+ "version": "0.0.1-alpha.21",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {
@@ -1,7 +1,7 @@
1
1
  import { VkfButton } from '@vunk/form/components/button';
2
2
  import { VueComponentPropsType } from '@vunk/core';
3
3
  import { BasicSource } from '@vunk/form/shared/types/basic-source';
4
- export interface VkfButtonSource extends VueComponentPropsType<typeof VkfButton>, BasicSource {
5
- prop?: string;
4
+ export interface VkfButtonSource<P extends string = string> extends VueComponentPropsType<typeof VkfButton>, BasicSource {
5
+ prop?: P;
6
6
  templateType: 'VkfButton';
7
7
  }
@@ -20,4 +20,4 @@ export * from './checkbox';
20
20
  export * from './upload';
21
21
  export * from './color-picker';
22
22
  export * from './button';
23
- export declare type FormItemRendererSource<P extends string = string> = VkfInputSource<P> | VkfSwitchSource<P> | VkfSelectSource<P> | VkfDatePickerSource<P> | VkfInputNumberSource<P> | VkfRadioSource<P> | VkfCheckboxSource<P> | VkfUploadSource<P> | VkfColorPickerSource<P> | VkfButtonSource | ComponentSource;
23
+ export declare type FormItemRendererSource<P extends string = string> = VkfInputSource<P> | VkfSwitchSource<P> | VkfSelectSource<P> | VkfDatePickerSource<P> | VkfInputNumberSource<P> | VkfRadioSource<P> | VkfCheckboxSource<P> | VkfUploadSource<P> | VkfColorPickerSource<P> | VkfButtonSource<P> | ComponentSource;