@qin-ui/antd-vue-pro 2.1.4 → 2.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/antd-vue-pro.css +9 -9
- package/es/component-provider/index.js +1 -1
- package/es/form/index.js +1 -1
- package/es/index.d.ts +6 -1
- package/es/table/index.js +6 -4
- package/package.json +1 -1
package/es/antd-vue-pro.css
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
.pro-table_search-form[data-v-
|
|
1
|
+
.pro-table_search-form[data-v-fffc2a28] [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-fffc2a28] {
|
|
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-fffc2a28] {
|
|
11
11
|
transition: all 0.25s;
|
|
12
12
|
}
|
|
13
13
|
.pro-table_search-form-container[data-v-c385cd54] {
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
.pro-table_column-control_button[data-v-d503f78a] svg {
|
|
37
37
|
transform: scale(1.2, 1.4);
|
|
38
38
|
}
|
|
39
|
-
.pro-table_header[data-v-
|
|
39
|
+
.pro-table_header[data-v-0e17ddec] {
|
|
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-0e17ddec]: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-0e17ddec] {
|
|
48
48
|
margin-top: 16px;
|
|
49
49
|
}
|
|
50
|
-
.pro-table_header_button-bar[data-v-
|
|
50
|
+
.pro-table_header_button-bar[data-v-0e17ddec] {
|
|
51
51
|
flex: 1;
|
|
52
52
|
}
|
|
53
|
-
.pro-table_header_toolbar[data-v-
|
|
53
|
+
.pro-table_header_toolbar[data-v-0e17ddec] {
|
|
54
54
|
margin-left: 12px;
|
|
55
55
|
}
|
|
56
|
-
.pro-table[data-v-
|
|
56
|
+
.pro-table[data-v-0e17ddec] [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_COMPONENTS = Symbol("INJECT_COMPONENTS");
|
|
5
5
|
const INJECT_CONFIG = {
|
|
6
6
|
"pro-table": {
|
package/es/form/index.js
CHANGED
|
@@ -111,7 +111,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
111
111
|
const componentProps = { slots: {} };
|
|
112
112
|
const formItemSlots = {};
|
|
113
113
|
if (isPlainObject(props.field)) {
|
|
114
|
-
const { path, name, fields, formItemClass, formItemStyle, hidden, span, getFormItemRef, getComponentRef, getFormItemComputedProps, getComponentComputedProps, slots = {}, formItemDataAttrs = {}, componentDataAttrs = {}, ...rest } = props.field;
|
|
114
|
+
const { path, name, fields, formItemClass, formItemStyle, hidden, span, getFormItemRef, getComponentRef, getFormItemComputedProps, getComponentComputedProps, slots = {}, formItemDataAttrs = {}, componentDataAttrs = {}, extraProps, ...rest } = props.field;
|
|
115
115
|
const {
|
|
116
116
|
class: injectClassName,
|
|
117
117
|
style: injectStyle,
|
package/es/index.d.ts
CHANGED
|
@@ -210,7 +210,11 @@ export declare interface Base<D extends Data = Data> {
|
|
|
210
210
|
* @example { 'data-test': 'input-value', 'aria-label': 'name' }
|
|
211
211
|
*/
|
|
212
212
|
componentDataAttrs?: Record<string, string>;
|
|
213
|
-
|
|
213
|
+
/**
|
|
214
|
+
* @description 额外的自定义属性,不会被当作组件参数,仅用做给字段添加标识属性等功能
|
|
215
|
+
* @example { group: 'group-1' }
|
|
216
|
+
*/
|
|
217
|
+
extraProps?: Record<string, any>;
|
|
214
218
|
}
|
|
215
219
|
|
|
216
220
|
declare interface BaseColumn<D extends Data = Data> {
|
|
@@ -461,6 +465,7 @@ export declare type Fields<D extends Data = Data> = Array<Field<ComponentName, D
|
|
|
461
465
|
export declare type FieldTypeMap<D extends Data = Data> = {
|
|
462
466
|
[K in ComponentName]: K extends 'custom' ? WithCommon<{
|
|
463
467
|
slots?: Slots;
|
|
468
|
+
[x: string]: any;
|
|
464
469
|
}, D> & {
|
|
465
470
|
component?: RenderComponentType | Raw<RenderComponentType>;
|
|
466
471
|
} : WithComponent<GetComponentType<K>, D> & {
|
package/es/table/index.js
CHANGED
|
@@ -68,7 +68,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
68
68
|
expandStatus.value = false;
|
|
69
69
|
if (formRef.value && __props.expand) {
|
|
70
70
|
const formEl = formRef.value.$el;
|
|
71
|
-
const formItemsEl = formEl.querySelectorAll(
|
|
71
|
+
const formItemsEl = formEl.querySelectorAll(
|
|
72
|
+
"[class*='-form-item'] > [path]"
|
|
73
|
+
);
|
|
72
74
|
const observer = new IntersectionObserver(
|
|
73
75
|
(entries) => {
|
|
74
76
|
expandStatus.value = entries.some((e) => {
|
|
@@ -102,7 +104,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
102
104
|
const proFormEl = (_a = formRef.value) == null ? void 0 : _a.$el;
|
|
103
105
|
const { height = 0 } = ((_b = proFormEl == null ? void 0 : proFormEl.getBoundingClientRect) == null ? void 0 : _b.call(proFormEl)) || {};
|
|
104
106
|
proFormHeight.value = height;
|
|
105
|
-
rowHeight = (_e = (_d = (_c = proFormEl == null ? void 0 : proFormEl.querySelector("
|
|
107
|
+
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;
|
|
106
108
|
},
|
|
107
109
|
{ flush: "post", immediate: true }
|
|
108
110
|
);
|
|
@@ -223,7 +225,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
223
225
|
};
|
|
224
226
|
}
|
|
225
227
|
});
|
|
226
|
-
const SearchForm = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-
|
|
228
|
+
const SearchForm = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-fffc2a28"]]);
|
|
227
229
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
228
230
|
__name: "DefaultSearchFormContainer",
|
|
229
231
|
setup(__props) {
|
|
@@ -688,7 +690,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
688
690
|
};
|
|
689
691
|
}
|
|
690
692
|
});
|
|
691
|
-
const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
693
|
+
const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0e17ddec"]]);
|
|
692
694
|
const useTable = useTable$1;
|
|
693
695
|
export {
|
|
694
696
|
BaseTable as default,
|