@qin-ui/antdv-next-pro 1.1.9 → 1.1.11

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,11 +1,13 @@
1
1
  import "./antdv-next-pro.css";
2
- import { _ as _sfc_main } from "./form/index-CyMXEA_9.js";
3
- import { c, b, a, F, d, T, e, h, f, u, g } from "./form/index-CyMXEA_9.js";
4
- import { I, a as a2, e as e2 } from "./core/index-C98RSrpN.js";
2
+ import { _ as _sfc_main } from "./form/index-7clzY8ZD.js";
3
+ import { a, b, c, u, d } from "./form/index-7clzY8ZD.js";
4
+ import "vue";
5
+ import { e } from "./core/index-ghYuQ3Sy.js";
6
+ import "antdv-next";
7
+ import "antdv-next/dist/config-provider/DisabledContext";
5
8
  import BaseTable from "./table/index.js";
6
9
  import { useTable } from "./table/index.js";
7
- import _sfc_main$1 from "./component-provider/index.js";
8
- import { INJECT_COMPONENTS, INJECT_CONFIG, ensureInjectConfig, getInjectConfig } from "./component-provider/index.js";
10
+ import { _ as _sfc_main$1 } from "./component-provider/index-Daiw7IxY.js";
9
11
  const withInstall = (comp) => {
10
12
  comp.install = (app) => {
11
13
  app.component(comp.name, comp);
@@ -17,6 +19,20 @@ const ProTable = withInstall(BaseTable);
17
19
  const ProComponentProvider = withInstall(_sfc_main$1);
18
20
  const components = [ProForm, ProTable, ProComponentProvider];
19
21
  const index = {
22
+ /**
23
+ * @qin-ui/antdv-next-pro 安装方法
24
+ * @description 全局注册所有组件(ProForm、ProTable、ProComponentProvider)
25
+ *
26
+ * @param {App} app - Vue 应用实例
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * import { createApp } from 'vue'
31
+ * import QinUI from '@qin-ui/antdv-next-pro'
32
+ * const app = createApp(App)
33
+ * app.use(QinUI)
34
+ * ```
35
+ */
20
36
  install(app) {
21
37
  components.forEach((component) => {
22
38
  app.component(component.name, component);
@@ -24,28 +40,15 @@ const index = {
24
40
  }
25
41
  };
26
42
  export {
27
- c as BaseField,
28
- _sfc_main as BaseForm,
29
- b as BaseFormItem,
30
43
  a as ContainerFragment,
31
- F as FORM_ITEM_SLOT_KEYS,
32
- INJECT_COMPONENTS,
33
- INJECT_CONFIG,
34
- I as InjectionFormKey,
35
- a2 as InjectionPathKey,
36
44
  ProComponentProvider,
37
45
  ProForm,
38
46
  ProTable,
39
- d as SlotComponent,
40
- T as TeleportComponentNamePrefix,
41
- e as componentMap,
47
+ b as SlotComponent,
42
48
  index as default,
43
- ensureInjectConfig,
44
- h as getInitProps,
45
- getInjectConfig,
46
- f as useFields,
49
+ c as useFields,
47
50
  u as useForm,
48
- e2 as useFormData,
49
- g as useFormRef,
51
+ e as useFormData,
52
+ d as useFormRef,
50
53
  useTable
51
54
  };
package/es/table/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { createElementBlock, openBlock, createElementVNode, defineComponent, ref, computed, watch, watchEffect, createBlock, unref, mergeProps, withCtx, createVNode, renderSlot, resolveDynamicComponent, createTextVNode, createCommentVNode, Fragment, toDisplayString, normalizeStyle, useModel, h, mergeModels, inject, useAttrs, useSlots, onMounted, normalizeClass, createSlots, renderList, normalizeProps, guardReactiveProps, nextTick } from "vue";
2
2
  import { Space, Button, theme, useConfig, Dropdown, Menu, Checkbox, Table } from "antdv-next";
3
3
  import "antdv-next/dist/config-provider/DisabledContext";
4
- import { _ as _sfc_main$9, t as tableProps, a as _sfc_main$a } from "../form/index-CyMXEA_9.js";
5
- import { INJECT_CONFIG } from "../component-provider/index.js";
6
- import { g as getObject, c as camelizeProperties, f as useTable$1 } from "../core/index-C98RSrpN.js";
4
+ import { _ as _sfc_main$9, t as tableProps, a as _sfc_main$a } from "../form/index-7clzY8ZD.js";
5
+ import { I as INJECT_CONFIG } from "../component-provider/index-Daiw7IxY.js";
6
+ import { g as getObject, c as camelizeProperties, f as useTable$1 } from "../core/index-ghYuQ3Sy.js";
7
7
  import { p as pick } from "../vendor/utils/lodash-es-p6jau26B.js";
8
8
  const _export_sfc = (sfc, props) => {
9
9
  const target = sfc.__vccOpts || sfc;
@@ -679,7 +679,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
679
679
  };
680
680
  }
681
681
  });
682
- const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-da8d2778"]]);
682
+ const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-060985c7"]]);
683
683
  const useTable = useTable$1;
684
684
  export {
685
685
  BaseTable as default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qin-ui/antdv-next-pro",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "基于 antdv-next 的二次封装组件",
5
5
  "type": "module",
6
6
  "module": "es/index.js",
@@ -15,16 +15,15 @@
15
15
  "files": [
16
16
  "es",
17
17
  "README.md",
18
- "LICENSE"
18
+ "LICENSE",
19
+ "api.json",
20
+ "AI-CONTEXT.md"
19
21
  ],
20
22
  "homepage": "https://dufan3715.github.io/pro-components/",
21
23
  "repository": {
22
24
  "type": "git",
23
25
  "url": "git+https://github.com/dufan3715/pro-components.git"
24
26
  },
25
- "scripts": {
26
- "build": "vue-tsc && vite build"
27
- },
28
27
  "author": "dufan3715",
29
28
  "license": "MIT",
30
29
  "private": false,
@@ -36,13 +35,17 @@
36
35
  "vue-component-type-helpers": "^3.2.5"
37
36
  },
38
37
  "devDependencies": {
39
- "@qin-ui/core": "workspace:^",
40
38
  "@types/lodash-es": "^4.17.12",
41
39
  "antdv-next": "^1.1.0",
42
- "lodash-es": "^4.17.21"
40
+ "lodash-es": "^4.17.21",
41
+ "@qin-ui/core": "^1.0.0"
43
42
  },
44
43
  "publishConfig": {
45
44
  "access": "public",
46
45
  "registry": "https://registry.npmjs.org/"
46
+ },
47
+ "scripts": {
48
+ "prebuild": "tsx ../../scripts/generate-api-json.ts antdv-next-pro",
49
+ "build": "vue-tsc && vite build"
47
50
  }
48
- }
51
+ }