@qin-ui/antd-vue-pro 1.0.5 → 1.0.7

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/es/index.d.ts CHANGED
@@ -69,12 +69,6 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
69
69
  };
70
70
  };
71
71
 
72
- declare type __VLS_WithTemplateSlots_3<T, S> = T & {
73
- new (): {
74
- $slots: S;
75
- };
76
- };
77
-
78
72
  export declare type AppendField = (path: string, field: Field) => void;
79
73
 
80
74
  /**
@@ -89,7 +83,7 @@ export declare type AutoCommand = Record<CommandTrigger, Commands>;
89
83
 
90
84
  export declare type BaseComponentStringName = Exclude<Field['component'], RenderComponentType | undefined>;
91
85
 
92
- export declare const BaseField: __VLS_WithTemplateSlots_2<DefineComponent<{
86
+ export declare const BaseField: DefineComponent<{
93
87
  path: {
94
88
  type: PropType<string>;
95
89
  default: string;
@@ -125,7 +119,7 @@ export declare const BaseField: __VLS_WithTemplateSlots_2<DefineComponent<{
125
119
  path: string;
126
120
  label: SlotComponentType;
127
121
  component: RenderComponentType | "input" | "textarea" | "input-password" | "input-search" | "input-number" | "select" | "cascader" | "date-picker" | "range-picker" | "time-picker" | "checkbox-group" | "radio-group" | "switch" | "slider" | "tree-select" | "transfer" | undefined;
128
- }, {}>, Partial<Record<NonNullable<string | number>, (_: {}) => any>>>;
122
+ }, {}>;
129
123
 
130
124
  export declare type BaseFieldAttrs = FieldAttrsType[keyof FieldAttrsType];
131
125
 
@@ -191,7 +185,7 @@ declare interface Common {
191
185
  /** 中文名称 */
192
186
  label?: SlotComponentType;
193
187
  /** 插槽,可包含formItem插槽和component插槽 */
194
- slots?: Record<(typeof FORM_ITEM_SLOT_KEYS)[number], SlotComponentType>;
188
+ slots?: Partial<Record<(typeof FORM_ITEM_SLOT_KEYS)[number], SlotComponentType>>;
195
189
  /** 网格布局属性 */
196
190
  grid?: Grid;
197
191
  /** 子字段 */
@@ -236,7 +230,7 @@ export declare type Condition = {
236
230
 
237
231
  export declare type ContainerComponent = FunctionalComponent | DefineComponent;
238
232
 
239
- export declare const ContainerFragment: __VLS_WithTemplateSlots_3<DefineComponent<{
233
+ export declare const ContainerFragment: __VLS_WithTemplateSlots_2<DefineComponent<{
240
234
  component: {
241
235
  type: PropType<any>;
242
236
  };
@@ -620,7 +614,7 @@ declare type FieldAttrsType = {
620
614
 
621
615
  export declare type Fields = Array<Field>;
622
616
 
623
- declare type FieldSlot<T extends string> = Record<'label' | T, SlotComponentType>;
617
+ declare type FieldSlot<T extends string> = Partial<Record<T, SlotComponentType>>;
624
618
 
625
619
  /**
626
620
  * @type {FieldType} 字段类型集合
@@ -1720,7 +1714,7 @@ export declare type Refs = {
1720
1714
  * @description 自定义组件
1721
1715
  * @example (renderProps, ctx) => h('div', ctx.attrs)
1722
1716
  */
1723
- export declare type RenderComponentType = FunctionalComponent<RenderProps>;
1717
+ export declare type RenderComponentType = FunctionalComponent<RenderProps> | DefineComponent<RenderProps>;
1724
1718
 
1725
1719
  declare type RenderProps = {
1726
1720
  path: string;
package/es/style.css CHANGED
@@ -1,4 +1,4 @@
1
- .field-component[data-v-02f40823] {
1
+ .field-component[data-v-188e985a] {
2
2
  width: 100%;
3
3
  min-width: 120px;
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qin-ui/antd-vue-pro",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "二次封装antd vue组件",
5
5
  "type": "module",
6
6
  "main": "",
@@ -27,7 +27,7 @@
27
27
  "license": "MIT",
28
28
  "private": false,
29
29
  "peerDependencies": {
30
- "ant-design-vue": "^4.0.3",
30
+ "ant-design-vue": "^4.0.6",
31
31
  "vue": "^3.3.4"
32
32
  },
33
33
  "bugs": {