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

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.
@@ -1,4 +1,6 @@
1
1
  import { defineComponent, provide, renderSlot } from "vue";
2
+ import "ant-design-vue";
3
+ import { INJECT_COMPONENT_PROPS_KEYS } from "../form/index.js";
2
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
3
5
  __name: "index",
4
6
  props: {
@@ -8,8 +10,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8
10
  const props = __props;
9
11
  if (props.componentVars) {
10
12
  Object.values(props.componentVars).forEach((item) => {
13
+ const injectKeys = { ...INJECT_COMPONENT_PROPS_KEYS };
11
14
  Object.entries(item).forEach(([key, value]) => {
12
- provide(key, value);
15
+ if (Object.hasOwn(injectKeys, key)) {
16
+ provide(injectKeys[key], value);
17
+ }
13
18
  });
14
19
  });
15
20
  }
package/es/form/index.js CHANGED
@@ -15884,7 +15884,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
15884
15884
  return {
15885
15885
  name,
15886
15886
  fn: withCtx(() => [
15887
- unref(FORM_ITEM_SLOT_KEYS).includes(name) ? (openBlock(), createBlock(unref(_sfc_main$1), mergeProps({ key: 0 }, { path: _ctx.path }, { component: slot }), null, 16, ["component"])) : createCommentVNode("", true)
15887
+ unref(FORM_ITEM_SLOT_KEYS).includes(name) ? (openBlock(), createBlock(unref(_sfc_main$1), mergeProps({ key: 0 }, { path: getPath(field.key) }, { component: slot }), null, 16, ["component"])) : createCommentVNode("", true)
15888
15888
  ])
15889
15889
  };
15890
15890
  })
package/es/index.d.ts CHANGED
@@ -228,7 +228,7 @@ export declare type Condition = {
228
228
  disabled?: boolean;
229
229
  };
230
230
 
231
- export declare type ContainerComponent = FunctionalComponent | DefineComponent;
231
+ export declare type ContainerComponent = FunctionalComponent<Pick<RenderProps, 'path'>> | DefineComponent<Pick<RenderProps, 'path'>>;
232
232
 
233
233
  export declare const ContainerFragment: __VLS_WithTemplateSlots_2<DefineComponent<{
234
234
  component: {
@@ -257,7 +257,7 @@ declare const _default_2: __VLS_WithTemplateSlots<DefineComponent<{
257
257
  type: PropType<string>;
258
258
  };
259
259
  size: {
260
- type: PropType<"middle" | "small" | "large">;
260
+ type: PropType<"small" | "middle" | "large">;
261
261
  };
262
262
  disabled: {
263
263
  type: PropType<boolean>;
@@ -434,7 +434,7 @@ declare const _default_2: __VLS_WithTemplateSlots<DefineComponent<{
434
434
  type: PropType<string>;
435
435
  };
436
436
  size: {
437
- type: PropType<"middle" | "small" | "large">;
437
+ type: PropType<"small" | "middle" | "large">;
438
438
  };
439
439
  disabled: {
440
440
  type: PropType<boolean>;
@@ -861,7 +861,6 @@ export declare const ProComponentProvider: SFCWithInstall<{
861
861
  $props: {
862
862
  key?: string | number | symbol | undefined;
863
863
  style?: unknown;
864
- readonly componentVars: ComponentVars;
865
864
  ref?: VNodeRef | undefined;
866
865
  ref_for?: boolean | undefined;
867
866
  ref_key?: string | undefined;
@@ -904,6 +903,7 @@ export declare const ProComponentProvider: SFCWithInstall<{
904
903
  [key: string]: any;
905
904
  }>) => void)[] | undefined;
906
905
  class?: unknown;
906
+ readonly componentVars: ComponentVars;
907
907
  };
908
908
  $attrs: {
909
909
  [x: string]: unknown;
@@ -975,7 +975,7 @@ export declare const ProForm: SFCWithInstall<{
975
975
  autoCommandDisabled?: boolean | undefined;
976
976
  readonly prefixCls?: string | undefined;
977
977
  readonly name?: string | undefined;
978
- readonly size?: "middle" | "small" | "large" | undefined;
978
+ readonly size?: "small" | "middle" | "large" | undefined;
979
979
  readonly disabled?: boolean | undefined;
980
980
  readonly labelCol?: (Partial<ExtractPropTypes<{
981
981
  span: (StringConstructor | NumberConstructor)[];
@@ -1132,7 +1132,7 @@ export declare const ProForm: SFCWithInstall<{
1132
1132
  type: PropType<string>;
1133
1133
  };
1134
1134
  size: {
1135
- type: PropType<"middle" | "small" | "large">;
1135
+ type: PropType<"small" | "middle" | "large">;
1136
1136
  };
1137
1137
  disabled: {
1138
1138
  type: PropType<boolean>;
@@ -1337,7 +1337,7 @@ export declare const ProForm: SFCWithInstall<{
1337
1337
  type: PropType<string>;
1338
1338
  };
1339
1339
  size: {
1340
- type: PropType<"middle" | "small" | "large">;
1340
+ type: PropType<"small" | "middle" | "large">;
1341
1341
  };
1342
1342
  disabled: {
1343
1343
  type: PropType<boolean>;
@@ -1518,7 +1518,7 @@ export declare const ProForm: SFCWithInstall<{
1518
1518
  type: PropType<string>;
1519
1519
  };
1520
1520
  size: {
1521
- type: PropType<"middle" | "small" | "large">;
1521
+ type: PropType<"small" | "middle" | "large">;
1522
1522
  };
1523
1523
  disabled: {
1524
1524
  type: PropType<boolean>;
@@ -1778,7 +1778,7 @@ export declare const SlotComponent: DefineComponent<{
1778
1778
  };
1779
1779
  }>>, {}, {}>;
1780
1780
 
1781
- export declare type SlotComponentType = string | VNode | FunctionalComponent;
1781
+ export declare type SlotComponentType = string | VNode | FunctionalComponent<Pick<RenderProps, 'path'>>;
1782
1782
 
1783
1783
  declare type SwitchSlots = FieldSlot<'checkedChildren' | 'unCheckedChildren'>;
1784
1784
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qin-ui/antd-vue-pro",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "二次封装antd vue组件",
5
5
  "type": "module",
6
6
  "main": "",