@qin-ui/antdv-next-pro 1.1.10 → 1.1.12

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;
@@ -95,11 +95,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
95
95
  var _a, _b, _c;
96
96
  return (_c = (_b = (_a = __props.form) == null ? void 0 : _a.fields.value) == null ? void 0 : _b.filter((f) => !f.hidden)) == null ? void 0 : _c.length;
97
97
  },
98
- () => formRef.value
98
+ () => formRef.value,
99
+ () => __props.expand
99
100
  ],
100
101
  () => {
101
102
  var _a, _b, _c, _d, _e;
102
- if (!expandStatus.value || !formRef.value) return;
103
+ if (!__props.expand || !expandStatus.value || !formRef.value) return;
103
104
  const proFormEl = (_a = formRef.value) == null ? void 0 : _a.$el;
104
105
  const { height = 0 } = ((_b = proFormEl == null ? void 0 : proFormEl.getBoundingClientRect) == null ? void 0 : _b.call(proFormEl)) || {};
105
106
  proFormHeight.value = height;
@@ -224,7 +225,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
224
225
  };
225
226
  }
226
227
  });
227
- const SearchForm = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-c418e780"]]);
228
+ const SearchForm = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-6dbd8950"]]);
228
229
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
229
230
  __name: "DefaultSearchFormContainer",
230
231
  setup(__props) {
@@ -679,7 +680,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
679
680
  };
680
681
  }
681
682
  });
682
- const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b87d832c"]]);
683
+ const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-060985c7"]]);
683
684
  const useTable = useTable$1;
684
685
  export {
685
686
  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.10",
3
+ "version": "1.1.12",
4
4
  "description": "基于 antdv-next 的二次封装组件",
5
5
  "type": "module",
6
6
  "module": "es/index.js",
@@ -15,7 +15,9 @@
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": {
@@ -23,6 +25,7 @@
23
25
  "url": "git+https://github.com/dufan3715/pro-components.git"
24
26
  },
25
27
  "scripts": {
28
+ "prebuild": "tsx ../../scripts/generate-api-json.ts antdv-next-pro",
26
29
  "build": "vue-tsc && vite build"
27
30
  },
28
31
  "author": "dufan3715",