@qin-ui/element-plus-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,11 +1,12 @@
1
1
  import "./element-plus-pro.css";
2
- import { a as _sfc_main } from "./form/index-CWHWUZhj.js";
3
- import { c, B, b, F, d, T, e, h, f, u, g } from "./form/index-CWHWUZhj.js";
4
- import { I, a, e as e2 } from "./core/index-DVXUNE-L.js";
2
+ import { a as _sfc_main } from "./form/index-D8btGgqa.js";
3
+ import { b, c, d, u, e } from "./form/index-D8btGgqa.js";
4
+ import "vue";
5
+ import { e as e2 } from "./core/index-C0Pbv44C.js";
6
+ import "element-plus";
5
7
  import BaseTable from "./table/index.js";
6
8
  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";
9
+ import { _ as _sfc_main$1 } from "./component-provider/index-Bmx9Q9Q-.js";
9
10
  const withInstall = (comp) => {
10
11
  comp.install = (app) => {
11
12
  app.component(comp.name, comp);
@@ -17,6 +18,20 @@ const ProTable = withInstall(BaseTable);
17
18
  const ProComponentProvider = withInstall(_sfc_main$1);
18
19
  const components = [ProForm, ProTable, ProComponentProvider];
19
20
  const index = {
21
+ /**
22
+ * @qin-ui/element-plus-pro 安装方法
23
+ * @description 全局注册所有组件(ProForm、ProTable、ProComponentProvider)
24
+ *
25
+ * @param {App} app - Vue 应用实例
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * import { createApp } from 'vue'
30
+ * import QinUI from '@qin-ui/element-plus-pro'
31
+ * const app = createApp(App)
32
+ * app.use(QinUI)
33
+ * ```
34
+ */
20
35
  install(app) {
21
36
  components.forEach((component) => {
22
37
  app.component(component.name, component);
@@ -24,28 +39,15 @@ const index = {
24
39
  }
25
40
  };
26
41
  export {
27
- c as BaseField,
28
- _sfc_main as BaseForm,
29
- B as BaseFormItem,
30
42
  b as ContainerFragment,
31
- F as FORM_ITEM_SLOT_KEYS,
32
- INJECT_COMPONENTS,
33
- INJECT_CONFIG,
34
- I as InjectionFormKey,
35
- a as InjectionPathKey,
36
43
  ProComponentProvider,
37
44
  ProForm,
38
45
  ProTable,
39
- d as SlotComponent,
40
- T as TeleportComponentNamePrefix,
41
- e as componentMap,
46
+ c as SlotComponent,
42
47
  index as default,
43
- ensureInjectConfig,
44
- h as getInitProps,
45
- getInjectConfig,
46
- f as useFields,
48
+ d as useFields,
47
49
  u as useForm,
48
50
  e2 as useFormData,
49
- g as useFormRef,
51
+ e as useFormRef,
50
52
  useTable
51
53
  };
package/es/table/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createElementBlock, openBlock, createElementVNode, defineComponent, ref, computed, watch, watchEffect, createBlock, unref, mergeProps, withKeys, withCtx, createVNode, renderSlot, resolveDynamicComponent, createTextVNode, createCommentVNode, Fragment, toDisplayString, normalizeStyle, useModel, renderList, withModifiers, mergeModels, inject, useAttrs, useSlots, onMounted, resolveDirective, normalizeClass, withDirectives, createSlots, normalizeProps, guardReactiveProps, nextTick } from "vue";
2
2
  import { ElSpace, ElButton, ElDropdown, ElDropdownMenu, ElDropdownItem, ElCheckbox, ElTableColumn, ElTable, ElPagination } from "element-plus";
3
- import { _ as _export_sfc, a as _sfc_main$a, t as tableProps, p as paginationProps, b as _sfc_main$b } from "../form/index-CWHWUZhj.js";
4
- import { INJECT_CONFIG } from "../component-provider/index.js";
5
- import { c as camelizeProperties, g as getObject, f as useTable$1 } from "../core/index-DVXUNE-L.js";
3
+ import { _ as _export_sfc, a as _sfc_main$a, t as tableProps, p as paginationProps, b as _sfc_main$b } from "../form/index-D8btGgqa.js";
4
+ import { I as INJECT_CONFIG } from "../component-provider/index-Bmx9Q9Q-.js";
5
+ import { c as camelizeProperties, g as getObject, f as useTable$1 } from "../core/index-C0Pbv44C.js";
6
6
  import { g as get, t as toPath, p as pick } from "../vendor/utils/lodash-es-p6jau26B.js";
7
7
  const _sfc_main$9 = {};
8
8
  const _hoisted_1$5 = {
@@ -831,7 +831,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
831
831
  };
832
832
  }
833
833
  });
834
- const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-890fd0f5"]]);
834
+ const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-939fc661"]]);
835
835
  const useTable = (params = {}) => {
836
836
  const { data, ...rest } = params;
837
837
  const coreTable = useTable$1({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qin-ui/element-plus-pro",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "基于 element-plus 的二次封装组件",
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,14 +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
  "element-plus": "^2.13.6",
42
40
  "lodash-es": "^4.17.21",
43
- "vue": "^3.5.29"
41
+ "@qin-ui/core": "^1.0.0"
44
42
  },
45
43
  "publishConfig": {
46
44
  "access": "public",
47
45
  "registry": "https://registry.npmjs.org/"
46
+ },
47
+ "scripts": {
48
+ "prebuild": "tsx ../../scripts/generate-api-json.ts element-plus-pro",
49
+ "build": "vue-tsc && vite build"
48
50
  }
49
- }
51
+ }