qidian-vue-ui 2.8.9 → 2.8.11
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/dist/components/crud/list/index.vue.d.ts +3 -1
- package/dist/components/crud/search/index.vue.d.ts +3 -1
- package/dist/components/crud/table/index.vue.d.ts +3 -1
- package/dist/components/crud/tabs-table/index.vue.d.ts +3 -1
- package/dist/components/dialog/form.vue.d.ts +3 -1
- package/dist/components/form/index.css +24 -24
- package/dist/components/form/index.vue.d.ts +4 -0
- package/dist/components/form/index.vue.mjs +1 -1
- package/dist/components/form/index.vue2.mjs +13 -5
- package/dist/components/form/item.css +7 -7
- package/dist/components/form/item.vue.d.ts +7 -2
- package/dist/components/form/item.vue.mjs +1 -1
- package/dist/components/form/item.vue2.mjs +10 -5
- package/package.json +1 -1
|
@@ -9,7 +9,9 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
|
|
|
9
9
|
expose(exposed: import("vue").ShallowUnwrapRef<QdCrudListInstanceFunctions<D, R, P, TP, Pag>>): void;
|
|
10
10
|
attrs: any;
|
|
11
11
|
slots: {
|
|
12
|
-
[x: string]: ((props:
|
|
12
|
+
[x: string]: ((props: {
|
|
13
|
+
context: import("tdesign-vue-next").Data;
|
|
14
|
+
}) => any) | undefined;
|
|
13
15
|
} & {
|
|
14
16
|
[x: string]: ((props: any) => any) | undefined;
|
|
15
17
|
} & {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { QdCrudSearchProps } from './types';
|
|
2
|
-
declare var __VLS_8: string, __VLS_9: any, __VLS_58: string, __VLS_59:
|
|
2
|
+
declare var __VLS_8: string, __VLS_9: any, __VLS_58: string, __VLS_59: {
|
|
3
|
+
context: import("tdesign-vue-next").Data;
|
|
4
|
+
};
|
|
3
5
|
type __VLS_Slots = {} & {
|
|
4
6
|
[K in NonNullable<typeof __VLS_8>]?: (props: typeof __VLS_9) => any;
|
|
5
7
|
} & {
|
|
@@ -17,7 +17,9 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
|
|
|
17
17
|
expose(exposed: import("vue").ShallowUnwrapRef<QdCrudTableInstanceFunctions<D, R, P, TP, Pag, false>>): void;
|
|
18
18
|
attrs: any;
|
|
19
19
|
slots: {
|
|
20
|
-
[x: string]: ((props:
|
|
20
|
+
[x: string]: ((props: {
|
|
21
|
+
context: import("tdesign-vue-next").Data;
|
|
22
|
+
}) => any) | undefined;
|
|
21
23
|
} & {
|
|
22
24
|
[x: string]: ((props: any) => any) | undefined;
|
|
23
25
|
} & {
|
|
@@ -10,7 +10,9 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
|
|
|
10
10
|
expose(exposed: import("vue").ShallowUnwrapRef<QdCrudTabsTableInstanceFunctions<D, R, P, TP, Pag>>): void;
|
|
11
11
|
attrs: any;
|
|
12
12
|
slots: {
|
|
13
|
-
[x: string]: ((props:
|
|
13
|
+
[x: string]: ((props: {
|
|
14
|
+
context: import("tdesign-vue-next").Data;
|
|
15
|
+
}) => any) | undefined;
|
|
14
16
|
} & {
|
|
15
17
|
[x: string]: ((props: any) => any) | undefined;
|
|
16
18
|
} & {
|
|
@@ -10,7 +10,9 @@ declare const _default: <FD extends Data = Data>(__VLS_props: NonNullable<Awaite
|
|
|
10
10
|
slots: {
|
|
11
11
|
[x: string]: ((props: any) => any) | undefined;
|
|
12
12
|
} & {
|
|
13
|
-
[x: string]: ((props:
|
|
13
|
+
[x: string]: ((props: {
|
|
14
|
+
context: Data;
|
|
15
|
+
}) => any) | undefined;
|
|
14
16
|
};
|
|
15
17
|
emit: ((evt: "update:visible", args_0: boolean | undefined) => void) & ((evt: "update:data", args_0: FD | undefined) => void);
|
|
16
18
|
}>) => import("vue").VNode & {
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
.qd-form--small[data-v-
|
|
1
|
+
.qd-form--small[data-v-9e4da837] {
|
|
2
2
|
font: var(--td-font-body-small);
|
|
3
3
|
}
|
|
4
|
-
.qd-form--small[data-v-
|
|
4
|
+
.qd-form--small[data-v-9e4da837] .t-form__label--top {
|
|
5
5
|
min-height: var(--td-comp-margin-xxl);
|
|
6
6
|
line-height: var(--td-comp-margin-xxl);
|
|
7
7
|
}
|
|
8
|
-
.qd-form--small[data-v-
|
|
9
|
-
.qd-form--small[data-v-
|
|
8
|
+
.qd-form--small[data-v-9e4da837] .t-form__controls,
|
|
9
|
+
.qd-form--small[data-v-9e4da837] .t-form__controls-content {
|
|
10
10
|
min-height: var(--td-comp-margin-xxl);
|
|
11
11
|
}
|
|
12
|
-
.qd-form--descriptions[data-v-
|
|
12
|
+
.qd-form--descriptions[data-v-9e4da837] .qd-grid {
|
|
13
13
|
border: 1px solid var(--td-component-border);
|
|
14
14
|
background-color: var(--td-component-border);
|
|
15
15
|
gap: 1px !important;
|
|
16
16
|
overflow: hidden;
|
|
17
17
|
}
|
|
18
|
-
.qd-form--descriptions[data-v-
|
|
18
|
+
.qd-form--descriptions[data-v-9e4da837] .qd-grid-item {
|
|
19
19
|
background-color: var(--td-bg-color-container);
|
|
20
20
|
}
|
|
21
|
-
.qd-form--descriptions[data-v-
|
|
21
|
+
.qd-form--descriptions[data-v-9e4da837] .t-form__item {
|
|
22
22
|
display: flex;
|
|
23
23
|
align-items: stretch;
|
|
24
24
|
height: 100%;
|
|
25
25
|
margin-bottom: 0 !important;
|
|
26
26
|
}
|
|
27
|
-
.qd-form--descriptions[data-v-
|
|
27
|
+
.qd-form--descriptions[data-v-9e4da837] .t-form__label {
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
30
30
|
justify-content: center;
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
height: 100%;
|
|
34
34
|
min-height: var(--td-comp-margin-xxl);
|
|
35
35
|
}
|
|
36
|
-
.qd-form--descriptions[data-v-
|
|
36
|
+
.qd-form--descriptions[data-v-9e4da837] .t-form__label--top {
|
|
37
37
|
border-bottom: 1px solid var(--td-component-border);
|
|
38
38
|
height: var(--qd-form-description-label-height, auto);
|
|
39
39
|
white-space: normal;
|
|
40
40
|
}
|
|
41
|
-
.qd-form--descriptions[data-v-
|
|
41
|
+
.qd-form--descriptions[data-v-9e4da837] .t-form__controls {
|
|
42
42
|
flex: 1 1 0;
|
|
43
43
|
overflow: hidden;
|
|
44
44
|
display: flex;
|
|
@@ -48,44 +48,44 @@
|
|
|
48
48
|
height: 100%;
|
|
49
49
|
min-height: var(--td-comp-margin-xxl);
|
|
50
50
|
}
|
|
51
|
-
.qd-form--descriptions[data-v-
|
|
51
|
+
.qd-form--descriptions[data-v-9e4da837] .t-form__controls-content {
|
|
52
52
|
min-height: auto;
|
|
53
53
|
}
|
|
54
|
-
.qd-form--descriptions[data-v-
|
|
54
|
+
.qd-form--descriptions[data-v-9e4da837] .qd-form-item--label-top {
|
|
55
55
|
display: grid;
|
|
56
56
|
grid-template-rows: auto minmax(min-content, 1fr);
|
|
57
57
|
grid-row: span 2 !important;
|
|
58
58
|
}
|
|
59
|
-
.qd-form--descriptions[data-v-
|
|
59
|
+
.qd-form--descriptions[data-v-9e4da837] .qd-form-item--label-top > .t-form__item {
|
|
60
60
|
display: contents;
|
|
61
61
|
}
|
|
62
|
-
.qd-form--descriptions[data-v-
|
|
62
|
+
.qd-form--descriptions[data-v-9e4da837] .qd-form-item--label-top .t-form__controls-content {
|
|
63
63
|
white-space: normal;
|
|
64
64
|
}
|
|
65
|
-
.qd-form--descriptions[data-v-
|
|
65
|
+
.qd-form--descriptions[data-v-9e4da837] .qd-form-item--empty-content .t-form__controls {
|
|
66
66
|
padding: 0 !important;
|
|
67
67
|
min-height: 0;
|
|
68
68
|
height: 0;
|
|
69
69
|
overflow: hidden;
|
|
70
70
|
}
|
|
71
|
-
.qd-form--descriptions[data-v-
|
|
72
|
-
.qd-form--descriptions[data-v-
|
|
71
|
+
.qd-form--descriptions[data-v-9e4da837] .t-form__item-with-extra .t-form__controls,
|
|
72
|
+
.qd-form--descriptions[data-v-9e4da837] .t-form__item-with-help .t-form__controls {
|
|
73
73
|
height: auto;
|
|
74
74
|
overflow: visible;
|
|
75
75
|
}
|
|
76
|
-
.qd-form--descriptions[data-v-
|
|
77
|
-
.qd-form--descriptions[data-v-
|
|
76
|
+
.qd-form--descriptions[data-v-9e4da837] .t-form__item-with-extra .t-input__extra,
|
|
77
|
+
.qd-form--descriptions[data-v-9e4da837] .t-form__item-with-help .t-input__extra {
|
|
78
78
|
position: static;
|
|
79
79
|
}
|
|
80
|
-
.qd-form--descriptions[data-v-
|
|
80
|
+
.qd-form--descriptions[data-v-9e4da837] .qd-form-item:not(.qd-form-item--label-top):not(.qd-form-item--label-width-full) .t-form__label {
|
|
81
81
|
border-right: 1px solid var(--td-component-border);
|
|
82
82
|
}
|
|
83
|
-
.qd-form--descriptions[data-v-
|
|
84
|
-
.qd-form--descriptions[data-v-
|
|
83
|
+
.qd-form--descriptions[data-v-9e4da837] .qd-form-item--filler,
|
|
84
|
+
.qd-form--descriptions[data-v-9e4da837] .qd-grid-item--fill {
|
|
85
85
|
background-color: var(--td-bg-color-secondarycontainer);
|
|
86
86
|
}
|
|
87
|
-
.qd-form--descriptions-mini[data-v-
|
|
88
|
-
.qd-form--descriptions-mini[data-v-
|
|
87
|
+
.qd-form--descriptions-mini[data-v-9e4da837] .t-form__label,
|
|
88
|
+
.qd-form--descriptions-mini[data-v-9e4da837] .t-form__controls {
|
|
89
89
|
padding: var(--td-comp-paddingTB-xxs) var(--td-comp-paddingLR-xxs);
|
|
90
90
|
font: var(--td-font-body-small);
|
|
91
91
|
}
|
|
@@ -7,6 +7,10 @@ declare const _default: <FD extends Data = Data>(__VLS_props: NonNullable<Awaite
|
|
|
7
7
|
expose(exposed: import("vue").ShallowUnwrapRef<QdFormInstanceFunctions<FD>>): void;
|
|
8
8
|
attrs: any;
|
|
9
9
|
slots: {
|
|
10
|
+
[x: string]: ((props: {
|
|
11
|
+
context: Data;
|
|
12
|
+
}) => any) | undefined;
|
|
13
|
+
} & {
|
|
10
14
|
header?: (props: {
|
|
11
15
|
context: Data;
|
|
12
16
|
}) => any;
|
|
@@ -2,7 +2,7 @@ import './index.css'
|
|
|
2
2
|
import _sfc_main from "./index.vue2.mjs";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const QdForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const QdForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9e4da837"]]);
|
|
6
6
|
export {
|
|
7
7
|
QdForm as default
|
|
8
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import { defineComponent, mergeDefaults, provide, nextTick, onBeforeUnmount, shallowRef, useTemplateRef, ref, computed, watch, onMounted, withDirectives, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot, normalizeProps, guardReactiveProps, createElementBlock, Fragment, renderList } from "vue";
|
|
2
|
+
import { defineComponent, mergeDefaults, provide, nextTick, onBeforeUnmount, shallowRef, useTemplateRef, ref, computed, watch, onMounted, withDirectives, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot, normalizeProps, guardReactiveProps, createElementBlock, Fragment, renderList, createSlots } from "vue";
|
|
3
3
|
import { useVModels } from "../../node_modules/.pnpm/@vueuse_core@14.2.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs";
|
|
4
4
|
import { createExposeProxy, resizeDirective, easyCopy, hasOwn, to, suspectedWrapperPromise } from "qidian-shared";
|
|
5
5
|
import { Form, LoadingDirective } from "tdesign-vue-next";
|
|
@@ -389,16 +389,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
389
389
|
(openBlock(true), createElementBlock(Fragment, null, renderList(gridNodes.value, (node, index) => {
|
|
390
390
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
391
391
|
node.type === "item" ? (openBlock(), createBlock(QdFormItem, mergeProps({
|
|
392
|
-
key:
|
|
392
|
+
key: node.index,
|
|
393
393
|
"crud-mode": __props.crudMode,
|
|
394
394
|
context: unref(data),
|
|
395
395
|
"default-clearable": __props.defaultClearable,
|
|
396
396
|
"label-align": reProps.value.formItems?.[node.index].labelAlign ?? reProps.value.labelAlignClass,
|
|
397
|
-
"content-align": reProps.value.formItems?.[node.index].contentAlign ?? reProps.value.contentAlign
|
|
397
|
+
"content-align": reProps.value.formItems?.[node.index].contentAlign ?? (reProps.value.formItems?.[node.index].labelAlign ? void 0 : reProps.value.contentAlign)
|
|
398
398
|
}, { ref_for: true }, reProps.value.formItems?.[node.index], {
|
|
399
399
|
"grid-index": node.index,
|
|
400
400
|
size: reProps.value.formItems?.[node.index].size ?? reProps.value.itemSize
|
|
401
|
-
}),
|
|
401
|
+
}), createSlots({ _: 2 }, [
|
|
402
|
+
reProps.value.formItems?.[node.index].name && _ctx.$slots[reProps.value.formItems?.[node.index].name] ? {
|
|
403
|
+
name: "default",
|
|
404
|
+
fn: withCtx(() => [
|
|
405
|
+
renderSlot(_ctx.$slots, reProps.value.formItems?.[node.index].name, { context: unref(data) }, void 0, true)
|
|
406
|
+
]),
|
|
407
|
+
key: "0"
|
|
408
|
+
} : void 0
|
|
409
|
+
]), 1040, ["crud-mode", "context", "default-clearable", "label-align", "content-align", "grid-index", "size"])) : (openBlock(), createBlock(unref(QdGridItem), {
|
|
402
410
|
key: 1,
|
|
403
411
|
class: "qd-form-item--filler",
|
|
404
412
|
col: node.span,
|
|
@@ -407,7 +415,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
407
415
|
], 64);
|
|
408
416
|
}), 128))
|
|
409
417
|
]),
|
|
410
|
-
_:
|
|
418
|
+
_: 3
|
|
411
419
|
}, 16)), [
|
|
412
420
|
[unref(vResize), syncDescriptionLabelRows]
|
|
413
421
|
])
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
.qd-form-item--content-center[data-v-
|
|
1
|
+
.qd-form-item--content-center[data-v-7520242e] .t-form__controls {
|
|
2
2
|
text-align: center;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
}
|
|
5
|
-
.qd-form-item--content-center[data-v-
|
|
5
|
+
.qd-form-item--content-center[data-v-7520242e] .t-form__controls-content {
|
|
6
6
|
text-align: center;
|
|
7
7
|
justify-content: center;
|
|
8
8
|
}
|
|
9
|
-
.qd-form-item--content-center-top[data-v-
|
|
9
|
+
.qd-form-item--content-center-top[data-v-7520242e] .t-form__controls-content {
|
|
10
10
|
text-align: center;
|
|
11
11
|
justify-content: center;
|
|
12
12
|
}
|
|
13
|
-
.qd-form-item--content-left-center[data-v-
|
|
13
|
+
.qd-form-item--content-left-center[data-v-7520242e] .t-form__controls {
|
|
14
14
|
justify-content: center;
|
|
15
15
|
}
|
|
16
|
-
.qd-form-item--label-top-center[data-v-
|
|
16
|
+
.qd-form-item--label-top-center[data-v-7520242e] .t-form__label {
|
|
17
17
|
text-align: center;
|
|
18
18
|
align-items: center;
|
|
19
19
|
}
|
|
20
|
-
.qd-form-item[data-v-
|
|
20
|
+
.qd-form-item[data-v-7520242e] > .t-form__item > .t-form__controls > .t-form__controls-content > *:not(.t-switch):not(.t-tag):not(.t-icon):not(.qd-file-icon) {
|
|
21
21
|
width: 100%;
|
|
22
22
|
}
|
|
23
|
-
.qd-form-item__component[data-v-
|
|
23
|
+
.qd-form-item__component[data-v-7520242e]:not(.t-switch):not(.t-tag):not(.t-icon):not(.qd-file-icon) {
|
|
24
24
|
width: 100%;
|
|
25
25
|
}
|
|
@@ -2,9 +2,14 @@ import type { QdFormItemProps } from './types';
|
|
|
2
2
|
declare var __VLS_10: {
|
|
3
3
|
crudMode: "view" | "add" | "edit" | undefined;
|
|
4
4
|
context: Record<string, unknown> | undefined;
|
|
5
|
-
},
|
|
5
|
+
}, __VLS_13: string | undefined, __VLS_14: {
|
|
6
|
+
crudMode: "view" | "add" | "edit" | undefined;
|
|
7
|
+
context: Record<string, unknown> | undefined;
|
|
8
|
+
}, __VLS_21: string, __VLS_22: any;
|
|
6
9
|
type __VLS_Slots = {} & {
|
|
7
|
-
[K in NonNullable<typeof
|
|
10
|
+
[K in NonNullable<typeof __VLS_13>]?: (props: typeof __VLS_14) => any;
|
|
11
|
+
} & {
|
|
12
|
+
[K in NonNullable<typeof __VLS_21>]?: (props: typeof __VLS_22) => any;
|
|
8
13
|
} & {
|
|
9
14
|
default?: (props: typeof __VLS_10) => any;
|
|
10
15
|
};
|
|
@@ -2,7 +2,7 @@ import './item.css'
|
|
|
2
2
|
import _sfc_main from "./item.vue2.mjs";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const QdFormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const QdFormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7520242e"]]);
|
|
6
6
|
export {
|
|
7
7
|
QdFormItem as default
|
|
8
8
|
};
|
|
@@ -55,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
55
|
() => props.labelAlign ?? injectedLabelAlign?.value
|
|
56
56
|
);
|
|
57
57
|
const effectiveContentAlign = computed(
|
|
58
|
-
() => props.contentAlign ?? injectedContentAlign?.value
|
|
58
|
+
() => props.labelAlign ? props.contentAlign : props.contentAlign ?? injectedContentAlign?.value
|
|
59
59
|
);
|
|
60
60
|
const effectiveDefaultContentAlign = computed(() => {
|
|
61
61
|
if (effectiveLabelAlign.value === "top-center") return "center";
|
|
@@ -163,10 +163,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
163
163
|
crudMode: props.crudMode,
|
|
164
164
|
context: __props.context
|
|
165
165
|
}, () => [
|
|
166
|
-
reProps.value.
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
},
|
|
166
|
+
renderSlot(_ctx.$slots, reProps.value.formItemOptions.name, {
|
|
167
|
+
crudMode: props.crudMode,
|
|
168
|
+
context: __props.context
|
|
169
|
+
}, () => [
|
|
170
|
+
reProps.value.configRendererOptions.config ? (openBlock(), createBlock(unref(_sfc_main$1), mergeProps({
|
|
171
|
+
key: 0,
|
|
172
|
+
class: "qd-form-item__component"
|
|
173
|
+
}, reProps.value.configRendererOptions), null, 16)) : createCommentVNode("", true)
|
|
174
|
+
], true)
|
|
170
175
|
], true)
|
|
171
176
|
]),
|
|
172
177
|
_: 2
|