@qin-ui/antd-vue-pro 2.1.9 → 2.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,10 @@
1
1
  import "./antd-vue-pro.css";
2
2
  import _sfc_main from "./form/index.js";
3
- import { BaseField, BaseFormItem, ContainerFragment, FORM_ITEM_SLOT_KEYS, SlotComponent, TeleportComponentNamePrefix, componentMap, getInitProps, useFields, useForm, useFormRef } from "./form/index.js";
3
+ import { ContainerFragment, SlotComponent, useFields, useForm, useFormRef } from "./form/index.js";
4
4
  import BaseTable from "./table/index.js";
5
5
  import { useTable } from "./table/index.js";
6
- import _sfc_main$1 from "./component-provider/index.js";
7
- import { INJECT_COMPONENTS, INJECT_CONFIG, ensureInjectConfig, getInjectConfig } from "./component-provider/index.js";
8
- import { I, a, e } from "./core/index-C98RSrpN.js";
6
+ import { _ as _sfc_main$1 } from "./component-provider/index-Dmz32tSB.js";
7
+ import { e } from "./core/index-ghYuQ3Sy.js";
9
8
  const withInstall = (comp) => {
10
9
  comp.install = (app) => {
11
10
  app.component(comp.name, comp);
@@ -17,6 +16,21 @@ const ProTable = withInstall(BaseTable);
17
16
  const ProComponentProvider = withInstall(_sfc_main$1);
18
17
  const components = [ProForm, ProTable, ProComponentProvider];
19
18
  const index = {
19
+ /**
20
+ * @qin-ui/antd-vue-pro 安装方法
21
+ * @description 全局注册所有组件(ProForm、ProTable、ProComponentProvider)
22
+ *
23
+ * @param {App} app - Vue 应用实例
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * import { createApp } from 'vue'
28
+ * import QinUI from '@qin-ui/antd-vue-pro'
29
+ *
30
+ * const app = createApp(App)
31
+ * app.use(QinUI) // 全局注册所有组件
32
+ * ```
33
+ */
20
34
  install(app) {
21
35
  components.forEach((component) => {
22
36
  app.component(component.name, component);
@@ -24,25 +38,12 @@ const index = {
24
38
  }
25
39
  };
26
40
  export {
27
- BaseField,
28
- _sfc_main as BaseForm,
29
- BaseFormItem,
30
41
  ContainerFragment,
31
- FORM_ITEM_SLOT_KEYS,
32
- INJECT_COMPONENTS,
33
- INJECT_CONFIG,
34
- I as InjectionFormKey,
35
- a as InjectionPathKey,
36
42
  ProComponentProvider,
37
43
  ProForm,
38
44
  ProTable,
39
45
  SlotComponent,
40
- TeleportComponentNamePrefix,
41
- componentMap,
42
46
  index as default,
43
- ensureInjectConfig,
44
- getInitProps,
45
- getInjectConfig,
46
47
  useFields,
47
48
  useForm,
48
49
  e as useFormData,
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, renderList, withModifiers, mergeModels, inject, useAttrs, useSlots, onMounted, normalizeClass, createSlots, normalizeProps, guardReactiveProps, nextTick } from "vue";
2
- import { INJECT_CONFIG } from "../component-provider/index.js";
2
+ import { I as INJECT_CONFIG } from "../component-provider/index-Dmz32tSB.js";
3
3
  import _sfc_main$9, { ContainerFragment as _sfc_main$a } from "../form/index.js";
4
4
  import { Space, Button, theme, Dropdown, Menu, MenuItem, Checkbox, MenuDivider, Table } from "ant-design-vue";
5
5
  import { p as pick } from "../vendor/utils/lodash-es-p6jau26B.js";
6
- import { g as getObject, c as camelizeProperties, f as useTable$1 } from "../core/index-C98RSrpN.js";
6
+ import { g as getObject, c as camelizeProperties, f as useTable$1 } from "../core/index-ghYuQ3Sy.js";
7
7
  import { useConfigContextInject } from "ant-design-vue/es/config-provider/context";
8
8
  import { tableProps } from "ant-design-vue/es/table";
9
9
  const _export_sfc = (sfc, props) => {
@@ -690,7 +690,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
690
690
  };
691
691
  }
692
692
  });
693
- const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8502b3b9"]]);
693
+ const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c4d455c8"]]);
694
694
  const useTable = useTable$1;
695
695
  export {
696
696
  BaseTable as default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qin-ui/antd-vue-pro",
3
- "version": "2.1.9",
3
+ "version": "2.1.11",
4
4
  "description": "二次封装antd vue组件",
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
  "bugs": {
30
29
  "url": "https://github.com/dufan3715/pro-components/issues"
@@ -39,11 +38,11 @@
39
38
  "vue-component-type-helpers": "^3.2.5"
40
39
  },
41
40
  "devDependencies": {
42
- "@qin-ui/core": "workspace:^",
43
41
  "@types/lodash-es": "^4.17.12",
44
42
  "ant-design-vue": "^4",
45
43
  "lodash-es": "^4.17.21",
46
- "scroll-into-view-if-needed": "^3.1.0"
44
+ "scroll-into-view-if-needed": "^3.1.0",
45
+ "@qin-ui/core": "^1.0.0"
47
46
  },
48
47
  "sideEffects": false,
49
48
  "publishConfig": {
@@ -64,5 +63,9 @@
64
63
  "table",
65
64
  "pro-form",
66
65
  "pro-table"
67
- ]
68
- }
66
+ ],
67
+ "scripts": {
68
+ "prebuild": "tsx ../../scripts/generate-api-json.ts antd-vue-pro",
69
+ "build": "vue-tsc && vite build"
70
+ }
71
+ }