@qin-ui/antdv-next-pro 1.1.4 → 1.1.6
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/antdv-next-pro.css
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
.pro-table_search-form[data-v-
|
|
1
|
+
.pro-table_search-form[data-v-c418e780] [class*='-form-item'] {
|
|
2
2
|
margin: 0;
|
|
3
3
|
}
|
|
4
|
-
.pro-table_search-form_expand-toggle-button[data-v-
|
|
4
|
+
.pro-table_search-form_expand-toggle-button[data-v-c418e780] {
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: center;
|
|
7
7
|
padding: 0;
|
|
8
8
|
padding-left: 4px;
|
|
9
9
|
}
|
|
10
|
-
.pro-table_search-form .transition[data-v-
|
|
10
|
+
.pro-table_search-form .transition[data-v-c418e780] {
|
|
11
11
|
transition: all 0.25s;
|
|
12
12
|
}
|
|
13
13
|
.pro-table_search-form-container[data-v-f115fbbe] {
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
.pro-table_column-control_button[data-v-246b0faf] svg {
|
|
37
37
|
transform: scale(1.2, 1.4);
|
|
38
38
|
}
|
|
39
|
-
.pro-table_header[data-v-
|
|
39
|
+
.pro-table_header[data-v-da8d2778] {
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
42
|
justify-content: flex-end;
|
|
43
43
|
}
|
|
44
|
-
.pro-table_header[data-v-
|
|
44
|
+
.pro-table_header[data-v-da8d2778]:empty {
|
|
45
45
|
display: none;
|
|
46
46
|
}
|
|
47
|
-
.pro-table_header + .pro-table_header_content[data-v-
|
|
47
|
+
.pro-table_header + .pro-table_header_content[data-v-da8d2778] {
|
|
48
48
|
margin-top: 16px;
|
|
49
49
|
}
|
|
50
|
-
.pro-table_header_button-bar[data-v-
|
|
50
|
+
.pro-table_header_button-bar[data-v-da8d2778] {
|
|
51
51
|
flex: 1;
|
|
52
52
|
}
|
|
53
|
-
.pro-table_header_toolbar[data-v-
|
|
53
|
+
.pro-table_header_toolbar[data-v-da8d2778] {
|
|
54
54
|
margin-left: 12px;
|
|
55
55
|
}
|
|
56
|
-
.pro-table[data-v-
|
|
56
|
+
.pro-table[data-v-da8d2778] [class*='-pagination'] [class*='-pagination-total-text'] {
|
|
57
57
|
flex: 1;
|
|
58
58
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, provide, renderSlot } from "vue";
|
|
2
2
|
import { g as getObject } from "../core/index-BrBzu6aj.js";
|
|
3
|
-
const getPopupContainer = (triggerNode) => triggerNode.closest("
|
|
3
|
+
const getPopupContainer = (triggerNode) => triggerNode.closest("form[class*='-form']");
|
|
4
4
|
const INJECT_CONFIG = {
|
|
5
5
|
"pro-table": {
|
|
6
6
|
injectionKey: Symbol(""),
|
|
@@ -106,7 +106,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
106
106
|
const componentProps = { slots: {} };
|
|
107
107
|
const formItemSlots = {};
|
|
108
108
|
if (isPlainObject(props.field)) {
|
|
109
|
-
const { path, name, fields, formItemClass, formItemStyle, formItemContainer, hidden, span, getFormItemRef, getComponentRef, getFormItemComputedProps, getComponentComputedProps, slots = {}, formItemDataAttrs = {}, componentDataAttrs = {}, ...rest } = props.field;
|
|
109
|
+
const { path, name, fields, formItemClass, formItemStyle, formItemContainer, hidden, span, getFormItemRef, getComponentRef, getFormItemComputedProps, getComponentComputedProps, slots = {}, formItemDataAttrs = {}, componentDataAttrs = {}, extraProps, ...rest } = props.field;
|
|
110
110
|
const {
|
|
111
111
|
class: injectClassName,
|
|
112
112
|
style: injectStyle,
|
package/es/form/index.js
CHANGED
package/es/index.d.ts
CHANGED
|
@@ -214,7 +214,11 @@ export declare interface Base<D extends Data = Data> {
|
|
|
214
214
|
* @description 组件v-model双向绑定更新属性名,默认'value'
|
|
215
215
|
*/
|
|
216
216
|
modelProp?: string;
|
|
217
|
-
|
|
217
|
+
/**
|
|
218
|
+
* @description 额外的自定义属性,不会被当作组件参数,仅用做给字段添加标识属性等功能
|
|
219
|
+
* @example { group: 'group-1' }
|
|
220
|
+
*/
|
|
221
|
+
extraProps?: Record<string, any>;
|
|
218
222
|
}
|
|
219
223
|
|
|
220
224
|
declare interface BaseColumn<D extends Data = Data> {
|
|
@@ -488,6 +492,7 @@ export declare type Fields<D extends Data = Data> = Array<Field<ComponentName, D
|
|
|
488
492
|
export declare type FieldTypeMap<D extends Data = Data> = {
|
|
489
493
|
[K in ComponentName]: K extends 'custom' ? WithCommon<{
|
|
490
494
|
slots?: Slots;
|
|
495
|
+
[x: string]: any;
|
|
491
496
|
}, D> & {
|
|
492
497
|
component?: RenderComponentType | Raw<RenderComponentType>;
|
|
493
498
|
} : WithComponent<GetComponentType<K>, D> & {
|
package/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./antdv-next-pro.css";
|
|
2
|
-
import { _ as _sfc_main } from "./form/index-
|
|
3
|
-
import { c, b, a, F, d, T, e, h, f, u, g } from "./form/index-
|
|
2
|
+
import { _ as _sfc_main } from "./form/index-Br8U5Kva.js";
|
|
3
|
+
import { c, b, a, F, d, T, e, h, f, u, g } from "./form/index-Br8U5Kva.js";
|
|
4
4
|
import { I, a as a2, e as e2 } from "./core/index-BrBzu6aj.js";
|
|
5
5
|
import BaseTable from "./table/index.js";
|
|
6
6
|
import { useTable } from "./table/index.js";
|
package/es/table/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
+
import { _ as _sfc_main$9, t as tableProps, a as _sfc_main$a } from "../form/index-Br8U5Kva.js";
|
|
5
5
|
import { INJECT_CONFIG } from "../component-provider/index.js";
|
|
6
6
|
import { g as getObject, c as camelizeProperties, f as useTable$1 } from "../core/index-BrBzu6aj.js";
|
|
7
7
|
import { p as pick } from "../vendor/utils/lodash-es-p6jau26B.js";
|
|
@@ -67,7 +67,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
67
67
|
expandStatus.value = false;
|
|
68
68
|
if (formRef.value && __props.expand) {
|
|
69
69
|
const formEl = formRef.value.$el;
|
|
70
|
-
const formItemsEl = formEl.querySelectorAll(
|
|
70
|
+
const formItemsEl = formEl.querySelectorAll(
|
|
71
|
+
"[class*='-form-item'] > [path]"
|
|
72
|
+
);
|
|
71
73
|
const observer = new IntersectionObserver(
|
|
72
74
|
(entries) => {
|
|
73
75
|
expandStatus.value = entries.some((e) => {
|
|
@@ -101,7 +103,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
101
103
|
const proFormEl = (_a = formRef.value) == null ? void 0 : _a.$el;
|
|
102
104
|
const { height = 0 } = ((_b = proFormEl == null ? void 0 : proFormEl.getBoundingClientRect) == null ? void 0 : _b.call(proFormEl)) || {};
|
|
103
105
|
proFormHeight.value = height;
|
|
104
|
-
rowHeight = (_e = (_d = (_c = proFormEl == null ? void 0 : proFormEl.querySelector("
|
|
106
|
+
rowHeight = (_e = (_d = (_c = proFormEl == null ? void 0 : proFormEl.querySelector("[class*='-form-item']")) == null ? void 0 : _c.getBoundingClientRect) == null ? void 0 : _d.call(_c)) == null ? void 0 : _e.height;
|
|
105
107
|
},
|
|
106
108
|
{ flush: "post", immediate: true }
|
|
107
109
|
);
|
|
@@ -222,7 +224,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
222
224
|
};
|
|
223
225
|
}
|
|
224
226
|
});
|
|
225
|
-
const SearchForm = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-
|
|
227
|
+
const SearchForm = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-c418e780"]]);
|
|
226
228
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
227
229
|
__name: "DefaultSearchFormContainer",
|
|
228
230
|
setup(__props) {
|
|
@@ -677,7 +679,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
677
679
|
};
|
|
678
680
|
}
|
|
679
681
|
});
|
|
680
|
-
const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
682
|
+
const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-da8d2778"]]);
|
|
681
683
|
const useTable = useTable$1;
|
|
682
684
|
export {
|
|
683
685
|
BaseTable as default,
|