@qin-ui/element-plus-pro 1.0.3 → 1.0.5
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/AI-CONTEXT.md +37 -0
- package/README.md +324 -28
- package/api.json +222 -0
- package/es/component-provider/index-Bmx9Q9Q-.js +220 -0
- package/es/component-provider/index.js +2 -218
- package/es/core/{index-DVXUNE-L.js → index-C0Pbv44C.js} +28 -28
- package/es/element-plus-pro.css +10 -10
- package/es/form/{index-CWHWUZhj.js → index-D8btGgqa.js} +73 -79
- package/es/form/index.js +8 -15
- package/es/index.d.ts +672 -129
- package/es/index.js +23 -21
- package/es/table/index.js +8 -7
- package/package.json +5 -2
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-
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
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
|
|
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
|
-
|
|
40
|
-
T as TeleportComponentNamePrefix,
|
|
41
|
-
e as componentMap,
|
|
46
|
+
c as SlotComponent,
|
|
42
47
|
index as default,
|
|
43
|
-
|
|
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
|
-
|
|
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-
|
|
4
|
-
import { INJECT_CONFIG } from "../component-provider/index
|
|
5
|
-
import { c as camelizeProperties, g as getObject, f as useTable$1 } from "../core/index-
|
|
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 = {
|
|
@@ -87,11 +87,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
87
87
|
var _a, _b, _c;
|
|
88
88
|
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;
|
|
89
89
|
},
|
|
90
|
-
() => formRef.value
|
|
90
|
+
() => formRef.value,
|
|
91
|
+
() => __props.expand
|
|
91
92
|
],
|
|
92
93
|
() => {
|
|
93
94
|
var _a, _b, _c, _d, _e;
|
|
94
|
-
if (!expandStatus.value || !formRef.value) return;
|
|
95
|
+
if (!__props.expand || !expandStatus.value || !formRef.value) return;
|
|
95
96
|
const proFormEl = (_a = formRef.value) == null ? void 0 : _a.$el;
|
|
96
97
|
const { height = 0 } = ((_b = proFormEl == null ? void 0 : proFormEl.getBoundingClientRect) == null ? void 0 : _b.call(proFormEl)) || {};
|
|
97
98
|
proFormHeight.value = height;
|
|
@@ -222,7 +223,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
222
223
|
};
|
|
223
224
|
}
|
|
224
225
|
});
|
|
225
|
-
const SearchForm = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
226
|
+
const SearchForm = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-157833fb"]]);
|
|
226
227
|
const _sfc_main$7 = {};
|
|
227
228
|
const _hoisted_1$4 = { class: "pro-table_search-form-container" };
|
|
228
229
|
function _sfc_render$3(_ctx, _cache) {
|
|
@@ -831,7 +832,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
831
832
|
};
|
|
832
833
|
}
|
|
833
834
|
});
|
|
834
|
-
const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
835
|
+
const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-939fc661"]]);
|
|
835
836
|
const useTable = (params = {}) => {
|
|
836
837
|
const { data, ...rest } = params;
|
|
837
838
|
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.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "基于 element-plus 的二次封装组件",
|
|
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 element-plus-pro",
|
|
26
29
|
"build": "vue-tsc && vite build"
|
|
27
30
|
},
|
|
28
31
|
"author": "dufan3715",
|