@qin-ui/vant-pro 1.0.2 → 1.0.4

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.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import _sfc_main from "./form/index.js";
2
- import { BaseField, BaseFormItem, ContainerFragment, GroupedFieldAttrs, InjectionPopupKey, PathProvider, SlotComponent, TeleportComponentNamePrefix, componentMap, getInitProps, useFields, useForm, useFormPopup, useFormRef } from "./form/index.js";
3
- import _sfc_main$1 from "./component-provider/index.js";
4
- import { INJECT_COMPONENTS, INJECT_CONFIG, ensureInjectConfig, getInjectConfig } from "./component-provider/index.js";
5
- import { I, a, e } from "./core/index-D-2iAH6o.js";
2
+ import { ContainerFragment, SlotComponent, useFields, useForm, useFormRef } from "./form/index.js";
3
+ import { _ as _sfc_main$1 } from "./component-provider/index-DC_k4_R3.js";
4
+ import { e } from "./core/index-B5vvm4Fj.js";
6
5
  const withInstall = (comp) => {
7
6
  comp.install = (app) => {
8
7
  app.component(comp.name, comp);
@@ -13,6 +12,20 @@ const ProForm = withInstall(_sfc_main);
13
12
  const ProComponentProvider = withInstall(_sfc_main$1);
14
13
  const components = [ProForm, ProComponentProvider];
15
14
  const index = {
15
+ /**
16
+ * @qin-ui/vant-pro 安装方法
17
+ * @description 全局注册所有组件(ProForm、ProComponentProvider)
18
+ *
19
+ * @param {App} app - Vue 应用实例
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * import { createApp } from 'vue'
24
+ * import QinUI from '@qin-ui/vant-pro'
25
+ * const app = createApp(App)
26
+ * app.use(QinUI)
27
+ * ```
28
+ */
16
29
  install(app) {
17
30
  components.forEach((component) => {
18
31
  if (component.name) {
@@ -22,29 +35,13 @@ const index = {
22
35
  }
23
36
  };
24
37
  export {
25
- BaseField,
26
- _sfc_main as BaseForm,
27
- BaseFormItem,
28
38
  ContainerFragment,
29
- GroupedFieldAttrs,
30
- INJECT_COMPONENTS,
31
- INJECT_CONFIG,
32
- I as InjectionFormKey,
33
- a as InjectionPathKey,
34
- InjectionPopupKey,
35
- PathProvider,
36
39
  ProComponentProvider,
37
40
  ProForm,
38
41
  SlotComponent,
39
- TeleportComponentNamePrefix,
40
- componentMap,
41
42
  index as default,
42
- ensureInjectConfig,
43
- getInitProps,
44
- getInjectConfig,
45
43
  useFields,
46
44
  useForm,
47
45
  e as useFormData,
48
- useFormPopup,
49
46
  useFormRef
50
47
  };
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@qin-ui/vant-pro",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "基于 vant 和 @qin-ui/core 封装的高级表单和列表组件库",
5
+ "bin": {
6
+ "vant-pro": "./bin/init-ai.mjs"
7
+ },
5
8
  "type": "module",
6
9
  "module": "es/index.js",
7
10
  "types": "es/index.d.ts",
@@ -14,8 +17,11 @@
14
17
  },
15
18
  "files": [
16
19
  "es",
20
+ "bin",
17
21
  "README.md",
18
- "LICENSE"
22
+ "LICENSE",
23
+ "api.json",
24
+ "AI-CONTEXT.md"
19
25
  ],
20
26
  "homepage": "https://dufan3715.github.io/pro-components/",
21
27
  "repository": {
@@ -23,6 +29,7 @@
23
29
  "url": "git+https://github.com/dufan3715/pro-components.git"
24
30
  },
25
31
  "scripts": {
32
+ "prebuild": "tsx ../../scripts/generate-api-json.ts vant-pro",
26
33
  "build": "vue-tsc && vite build"
27
34
  },
28
35
  "author": "dufan3715",