qidian-vue-ui 1.2.97 → 1.2.99
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/table/index.css +9 -9
- package/dist/components/crud/table/index.vue.d.ts +3 -3
- package/dist/components/crud/table/index.vue.mjs +1 -1
- package/dist/components/crud/table/index.vue2.mjs +11 -17
- package/dist/components/crud/table/props.d.ts +1 -1
- package/dist/components/crud/table/props.mjs +0 -1
- package/dist/components/crud/table/types.d.ts +1 -1
- package/dist/components/crud/tabs-table/props.d.ts +1 -1
- package/dist/components/dict/select/index.vue.d.ts +2 -0
- package/dist/components/dict/select/index.vue.mjs +51 -3
- package/dist/components/dict/select/types.d.ts +1 -0
- package/dist/components/service/table/index.css +7 -7
- package/dist/components/service/table/index.vue.d.ts +3 -2
- package/dist/components/service/table/index.vue.mjs +1 -1
- package/dist/components/service/table/index.vue2.mjs +29 -15
- package/dist/components/service/table/props.d.ts +9 -0
- package/dist/components/service/table/props.mjs +13 -0
- package/dist/components/service/table/types.d.ts +1 -0
- package/dist/components/service-dialog-table-select/index.vue.d.ts +3 -3
- package/dist/components/service-popup-table-select/index.vue.d.ts +3 -3
- package/package.json +2 -2
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
.qd-crud-table[data-v-
|
|
1
|
+
.qd-crud-table[data-v-7074f039] {
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 100%;
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
}
|
|
7
|
-
.qd-crud-table > .qd-crud-search:not(.qd-crud-search--hide) + .qd-crud-table__body[data-v-
|
|
7
|
+
.qd-crud-table > .qd-crud-search:not(.qd-crud-search--hide) + .qd-crud-table__body[data-v-7074f039] {
|
|
8
8
|
margin-top: var(--td-comp-margin-l);
|
|
9
9
|
}
|
|
10
|
-
.qd-crud-table__body[data-v-
|
|
10
|
+
.qd-crud-table__body[data-v-7074f039] {
|
|
11
11
|
flex: auto;
|
|
12
12
|
}
|
|
13
|
-
.qd-crud-table__body[data-v-
|
|
13
|
+
.qd-crud-table__body[data-v-7074f039] > .t-loading__parent > .t-card__body {
|
|
14
14
|
height: 100%;
|
|
15
15
|
min-height: 443px;
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
}
|
|
19
|
-
.qd-crud-table__body[data-v-
|
|
19
|
+
.qd-crud-table__body[data-v-7074f039] > .t-loading__parent > .t-card__body > .qd-service-table {
|
|
20
20
|
flex: 1 1 0;
|
|
21
21
|
overflow: hidden;
|
|
22
22
|
}
|
|
23
|
-
.qd-crud-table__body[data-v-
|
|
23
|
+
.qd-crud-table__body[data-v-7074f039] > .t-loading__parent > .t-card__body > .qd-service-table .t-table__pagination {
|
|
24
24
|
padding-bottom: 0;
|
|
25
25
|
}
|
|
26
|
-
.qd-crud-table__toolbar[data-v-
|
|
26
|
+
.qd-crud-table__toolbar[data-v-7074f039] {
|
|
27
27
|
display: flex;
|
|
28
28
|
justify-content: space-between;
|
|
29
29
|
}
|
|
30
|
-
.qd-crud-table__toolbar:has(.t-space-item) + .qd-service-table[data-v-
|
|
30
|
+
.qd-crud-table__toolbar:has(.t-space-item) + .qd-service-table[data-v-7074f039] {
|
|
31
31
|
margin-top: var(--td-comp-margin-l);
|
|
32
32
|
}
|
|
33
|
-
.qd-crud-table__toolbar-separator[data-v-
|
|
33
|
+
.qd-crud-table__toolbar-separator[data-v-7074f039] {
|
|
34
34
|
display: inline-block;
|
|
35
35
|
padding-left: var(--td-comp-paddingLR-s);
|
|
36
36
|
}
|
|
@@ -10,9 +10,9 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
|
|
|
10
10
|
readonly "onUpdate:expandedRowKeys"?: ((args_0: (string | number)[] | undefined) => any) | undefined;
|
|
11
11
|
readonly "onUpdate:filterValue"?: ((args_0: import("tdesign-vue-next").FilterValue | undefined) => any) | undefined;
|
|
12
12
|
readonly "onUpdate:sort"?: ((args_0: import("tdesign-vue-next").TableSort | undefined) => any) | undefined;
|
|
13
|
-
readonly "onUpdate:expandedTreeNodes"?: ((args_0: (string | number)[] | undefined) => any) | undefined;
|
|
14
13
|
readonly "onUpdate:searchData"?: ((args_0: import("tdesign-vue-next").Data | undefined) => any) | undefined;
|
|
15
|
-
|
|
14
|
+
readonly "onUpdate:expandedTreeNodes"?: ((args_0: (string | number)[] | undefined) => any) | undefined;
|
|
15
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:data" | "onUpdate:selectedRowKeys" | "onUpdate:activeRowKeys" | "onUpdate:columnControllerVisible" | "onUpdate:expandedRowKeys" | "onUpdate:filterValue" | "onUpdate:sort" | "onUpdate:searchData" | "onUpdate:expandedTreeNodes"> & QdCrudTableProps<D, R, P, TP, Pag> & Partial<{}>> & import("vue").PublicProps;
|
|
16
16
|
expose(exposed: import("vue").ShallowUnwrapRef<QdCrudTableInstanceFunctions<D, R, P, TP, Pag, false>>): void;
|
|
17
17
|
attrs: any;
|
|
18
18
|
slots: {
|
|
@@ -28,7 +28,7 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
|
|
|
28
28
|
} & {
|
|
29
29
|
'table-operation'?: (props: any) => any;
|
|
30
30
|
};
|
|
31
|
-
emit: ((evt: "update:data", args_0: D[] | undefined) => void) & ((evt: "update:selectedRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:activeRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:columnControllerVisible", args_0: boolean | undefined) => void) & ((evt: "update:expandedRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:filterValue", args_0: import("tdesign-vue-next").FilterValue | undefined) => void) & ((evt: "update:sort", args_0: import("tdesign-vue-next").TableSort | undefined) => void) & ((evt: "update:
|
|
31
|
+
emit: ((evt: "update:data", args_0: D[] | undefined) => void) & ((evt: "update:selectedRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:activeRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:columnControllerVisible", args_0: boolean | undefined) => void) & ((evt: "update:expandedRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:filterValue", args_0: import("tdesign-vue-next").FilterValue | undefined) => void) & ((evt: "update:sort", args_0: import("tdesign-vue-next").TableSort | undefined) => void) & ((evt: "update:searchData", args_0: import("tdesign-vue-next").Data | undefined) => void) & ((evt: "update:expandedTreeNodes", args_0: (string | number)[] | undefined) => void);
|
|
32
32
|
}>) => import("vue").VNode & {
|
|
33
33
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
34
34
|
};
|
|
@@ -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 QdCrudTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const QdCrudTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7074f039"]]);
|
|
6
6
|
export {
|
|
7
7
|
QdCrudTable as default
|
|
8
8
|
};
|
|
@@ -423,14 +423,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
423
423
|
selectType,
|
|
424
424
|
...serviceTableOptions
|
|
425
425
|
} = props;
|
|
426
|
-
const mergedTransformParams = (params) => {
|
|
427
|
-
const merged = {
|
|
428
|
-
...params,
|
|
429
|
-
...searchData.value
|
|
430
|
-
};
|
|
431
|
-
if (transformParams) return transformParams(merged);
|
|
432
|
-
return merged;
|
|
433
|
-
};
|
|
434
426
|
const reAdd = mergeAction({
|
|
435
427
|
crudMode: "add",
|
|
436
428
|
permiID: "add",
|
|
@@ -525,7 +517,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
525
517
|
serviceTableOptions: {
|
|
526
518
|
...serviceTableOptions,
|
|
527
519
|
selectType: reSelectType,
|
|
528
|
-
transformParams
|
|
520
|
+
transformParams
|
|
529
521
|
},
|
|
530
522
|
formOptions: form,
|
|
531
523
|
detailOptions: detail,
|
|
@@ -1053,7 +1045,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1053
1045
|
}, 1032, ["content", "disabled"])], 64);
|
|
1054
1046
|
}), 128)), !reProps.value.hideSearchVisible && reProps.value.searchOptions?.items?.length ? (openBlock(), createElementBlock(Fragment, {
|
|
1055
1047
|
key: 0
|
|
1056
|
-
}, [_cache[
|
|
1048
|
+
}, [_cache[12] || (_cache[12] = createElementVNode("span", {
|
|
1057
1049
|
class: "qd-crud-table__toolbar-separator"
|
|
1058
1050
|
}, null, -1)), createVNode(unref(Tooltip), {
|
|
1059
1051
|
content: searchVisible.value ? unref(t)("hideSearchText") : unref(t)("showSearchText")
|
|
@@ -1069,7 +1061,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1069
1061
|
_: 1
|
|
1070
1062
|
}, 8, ["content"])], 64)) : createCommentVNode("", true), !reProps.value.hideRefresh ? (openBlock(), createElementBlock(Fragment, {
|
|
1071
1063
|
key: 1
|
|
1072
|
-
}, [_cache[
|
|
1064
|
+
}, [_cache[13] || (_cache[13] = createElementVNode("span", {
|
|
1073
1065
|
class: "qd-crud-table__toolbar-separator"
|
|
1074
1066
|
}, null, -1)), createVNode(unref(Tooltip), {
|
|
1075
1067
|
content: unref(t)("refreshText")
|
|
@@ -1085,7 +1077,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1085
1077
|
_: 1
|
|
1086
1078
|
}, 8, ["content"])], 64)) : createCommentVNode("", true), !reProps.value.hideTreeExpand && !unref(isEmpty)(reProps.value.serviceTableOptions.tree) && !reProps.value.serviceTableOptions.tree.lazyLoad ? (openBlock(), createElementBlock(Fragment, {
|
|
1087
1079
|
key: 2
|
|
1088
|
-
}, [_cache[
|
|
1080
|
+
}, [_cache[14] || (_cache[14] = createElementVNode("span", {
|
|
1089
1081
|
class: "qd-crud-table__toolbar-separator"
|
|
1090
1082
|
}, null, -1)), createVNode(unref(Tooltip), {
|
|
1091
1083
|
content: treeIsExpand.value ? unref(t)("collapseTreeText") : unref(t)("expandTreeText")
|
|
@@ -1105,7 +1097,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1105
1097
|
_: 1
|
|
1106
1098
|
}, 8, ["content"])], 64)) : createCommentVNode("", true), reProps.value.serviceTableOptions.columnController?.hideTriggerButton !== true && !reProps.value.hideColumnController ? (openBlock(), createElementBlock(Fragment, {
|
|
1107
1099
|
key: 3
|
|
1108
|
-
}, [_cache[
|
|
1100
|
+
}, [_cache[15] || (_cache[15] = createElementVNode("span", {
|
|
1109
1101
|
class: "qd-crud-table__toolbar-separator"
|
|
1110
1102
|
}, null, -1)), createVNode(unref(Tooltip), {
|
|
1111
1103
|
content: unref(t)("columnControllerText")
|
|
@@ -1135,8 +1127,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1135
1127
|
"onUpdate:filterValue": _cache[6] || (_cache[6] = ($event) => isRef(filterValue) ? filterValue.value = $event : null),
|
|
1136
1128
|
sort: unref(sort),
|
|
1137
1129
|
"onUpdate:sort": _cache[7] || (_cache[7] = ($event) => isRef(sort) ? sort.value = $event : null),
|
|
1130
|
+
"search-data": unref(searchData),
|
|
1131
|
+
"onUpdate:searchData": _cache[8] || (_cache[8] = ($event) => isRef(searchData) ? searchData.value = $event : null),
|
|
1138
1132
|
"expanded-tree-nodes": unref(expandedTreeNodes),
|
|
1139
|
-
"onUpdate:expandedTreeNodes": _cache[
|
|
1133
|
+
"onUpdate:expandedTreeNodes": _cache[9] || (_cache[9] = ($event) => isRef(expandedTreeNodes) ? expandedTreeNodes.value = $event : null),
|
|
1140
1134
|
columns: showColumns.value
|
|
1141
1135
|
}, reProps.value.serviceTableOptions, {
|
|
1142
1136
|
onColumnResizeChange: handleColumnResizeChange
|
|
@@ -1180,7 +1174,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1180
1174
|
name: item.filterName,
|
|
1181
1175
|
fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, item.originalName, normalizeProps(guardReactiveProps(slotProps)), void 0, true)])
|
|
1182
1176
|
};
|
|
1183
|
-
})]), 1040, ["data", "selected-row-keys", "active-row-keys", "expanded-row-keys", "filter-value", "sort", "expanded-tree-nodes", "columns"])]),
|
|
1177
|
+
})]), 1040, ["data", "selected-row-keys", "active-row-keys", "expanded-row-keys", "filter-value", "sort", "search-data", "expanded-tree-nodes", "columns"])]),
|
|
1184
1178
|
_: 3
|
|
1185
1179
|
}), (openBlock(true), createElementBlock(Fragment, null, renderList(dialogFormMap, (dialogForm, uid) => {
|
|
1186
1180
|
return openBlock(), createBlock(unref(_sfc_main$1), {
|
|
@@ -1196,9 +1190,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1196
1190
|
}, null, 8, ["config", "context"]);
|
|
1197
1191
|
}), 128)), createVNode(unref(QdColumnsController), {
|
|
1198
1192
|
visible: unref(columnControllerVisible),
|
|
1199
|
-
"onUpdate:visible": _cache[
|
|
1193
|
+
"onUpdate:visible": _cache[10] || (_cache[10] = ($event) => isRef(columnControllerVisible) ? columnControllerVisible.value = $event : null),
|
|
1200
1194
|
columns: mergeColumns.value,
|
|
1201
|
-
"onUpdate:columns": _cache[
|
|
1195
|
+
"onUpdate:columns": _cache[11] || (_cache[11] = ($event) => mergeColumns.value = $event),
|
|
1202
1196
|
"default-columns": reProps.value.columns
|
|
1203
1197
|
}, null, 8, ["visible", "columns", "default-columns"])]);
|
|
1204
1198
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const qdCrudTableProps: {
|
|
2
2
|
readonly resizable: true;
|
|
3
3
|
readonly hideRefresh: true;
|
|
4
|
-
readonly searchData: () => {};
|
|
5
4
|
readonly form: undefined;
|
|
6
5
|
readonly add: undefined;
|
|
7
6
|
readonly actions: undefined;
|
|
@@ -20,6 +19,7 @@ export declare const qdCrudTableProps: {
|
|
|
20
19
|
readonly filterValue: undefined;
|
|
21
20
|
readonly sort: undefined;
|
|
22
21
|
readonly expandedTreeNodes: () => never[];
|
|
22
|
+
readonly searchData: () => {};
|
|
23
23
|
readonly rowKey: "id";
|
|
24
24
|
readonly expandIcon: true;
|
|
25
25
|
readonly selectOnRowClick: undefined;
|
|
@@ -67,7 +67,7 @@ export interface QdCrudTableTool<D extends TableRowData = TableRowData> {
|
|
|
67
67
|
disabled?: boolean | ((ctx: QdCrudTableToolContext<D>) => boolean);
|
|
68
68
|
onClick?: (ctx: QdCrudTableToolContext<D>, e: MouseEvent) => void | Promise<void>;
|
|
69
69
|
}
|
|
70
|
-
export interface QdCrudTableProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = ServicePagination> extends Omit<QdServiceTableProps<D, R, P, TP, Pag>, 'columns' | 'displayColumns'> {
|
|
70
|
+
export interface QdCrudTableProps<D extends TableRowData = TableRowData, R = unknown, P = ServicePageParams, TP = P, Pag extends ServicePagination = ServicePagination> extends Omit<QdServiceTableProps<D, R, P, TP, Pag>, 'columns' | 'displayColumns' | 'searchData'> {
|
|
71
71
|
title?: string;
|
|
72
72
|
permiPrefix?: string;
|
|
73
73
|
tableMinHeight?: string | number | boolean;
|
|
@@ -2,7 +2,6 @@ export declare const qdCrudTabsTableProps: {
|
|
|
2
2
|
readonly sharedSearch: true;
|
|
3
3
|
readonly resizable: true;
|
|
4
4
|
readonly hideRefresh: true;
|
|
5
|
-
readonly searchData: () => {};
|
|
6
5
|
readonly form: undefined;
|
|
7
6
|
readonly add: undefined;
|
|
8
7
|
readonly actions: undefined;
|
|
@@ -21,6 +20,7 @@ export declare const qdCrudTabsTableProps: {
|
|
|
21
20
|
readonly filterValue: undefined;
|
|
22
21
|
readonly sort: undefined;
|
|
23
22
|
readonly expandedTreeNodes: () => never[];
|
|
23
|
+
readonly searchData: () => {};
|
|
24
24
|
readonly rowKey: "id";
|
|
25
25
|
readonly expandIcon: true;
|
|
26
26
|
readonly selectOnRowClick: undefined;
|
|
@@ -5,10 +5,12 @@ type __VLS_Slots = {} & {
|
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<QdDictSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
"update:modelValue": (args_0: import("tdesign-vue-next").SelectValue<import("tdesign-vue-next").SelectOption> | undefined) => any;
|
|
8
|
+
"update:valueLabel": (args_0: string | string[] | undefined) => any;
|
|
8
9
|
"update:inputValue": (args_0: string | undefined) => any;
|
|
9
10
|
"update:popupVisible": (args_0: boolean | undefined) => any;
|
|
10
11
|
}, string, import("vue").PublicProps, Readonly<QdDictSelectProps> & Readonly<{
|
|
11
12
|
"onUpdate:modelValue"?: ((args_0: import("tdesign-vue-next").SelectValue<import("tdesign-vue-next").SelectOption> | undefined) => any) | undefined;
|
|
13
|
+
"onUpdate:valueLabel"?: ((args_0: string | string[] | undefined) => any) | undefined;
|
|
12
14
|
"onUpdate:inputValue"?: ((args_0: string | undefined) => any) | undefined;
|
|
13
15
|
"onUpdate:popupVisible"?: ((args_0: boolean | undefined) => any) | undefined;
|
|
14
16
|
}>, {
|
|
@@ -15,6 +15,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
defaultSelectFirst: { type: Boolean },
|
|
16
16
|
onDefaultSelectFirst: { type: Function },
|
|
17
17
|
convStr: { type: [Boolean, String] },
|
|
18
|
+
valueLabel: {},
|
|
18
19
|
dedupe: { type: Boolean },
|
|
19
20
|
strict: { type: Boolean },
|
|
20
21
|
autoWidth: { type: Boolean },
|
|
@@ -73,11 +74,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
74
|
onRemove: { type: Function },
|
|
74
75
|
onSearch: { type: Function }
|
|
75
76
|
}, qdDictSelectProps),
|
|
76
|
-
emits: ["update:modelValue", "update:inputValue", "update:popupVisible"],
|
|
77
|
+
emits: ["update:modelValue", "update:valueLabel", "update:inputValue", "update:popupVisible"],
|
|
77
78
|
setup(__props, { emit: __emit }) {
|
|
78
79
|
const props = __props;
|
|
79
80
|
const emit = __emit;
|
|
80
|
-
const { modelValue, inputValue, popupVisible } = useVModels(props, emit, {
|
|
81
|
+
const { modelValue, valueLabel, inputValue, popupVisible } = useVModels(props, emit, {
|
|
82
|
+
passive: true
|
|
83
|
+
});
|
|
81
84
|
const reModelValue = computed({
|
|
82
85
|
get: () => {
|
|
83
86
|
const { convStr, strict, selectOptions } = reProps.value;
|
|
@@ -118,6 +121,35 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
118
121
|
}
|
|
119
122
|
}
|
|
120
123
|
});
|
|
124
|
+
const reValueLabel = computed({
|
|
125
|
+
get: () => {
|
|
126
|
+
const { convStr, selectOptions } = reProps.value;
|
|
127
|
+
const { multiple, valueType } = selectOptions;
|
|
128
|
+
if (!multiple || valueType === "object") return valueLabel.value;
|
|
129
|
+
if (isEmpty(valueLabel.value)) return [];
|
|
130
|
+
if (typeof valueLabel.value === "string") {
|
|
131
|
+
return valueLabel.value.split(
|
|
132
|
+
(typeof convStr === "string" ? convStr : "") || qdDictConvStrSeparator
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
return valueLabel.value;
|
|
136
|
+
},
|
|
137
|
+
set: (val) => {
|
|
138
|
+
const { convStr, selectOptions } = reProps.value;
|
|
139
|
+
const { multiple, valueType } = selectOptions;
|
|
140
|
+
if (!multiple || valueType === "object") {
|
|
141
|
+
valueLabel.value = val;
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
if (convStr && Array.isArray(val)) {
|
|
145
|
+
valueLabel.value = val.join(
|
|
146
|
+
(typeof convStr === "string" ? convStr : "") || qdDictConvStrSeparator
|
|
147
|
+
);
|
|
148
|
+
} else {
|
|
149
|
+
valueLabel.value = val;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
});
|
|
121
153
|
const dictType = toRef(props, "dictType");
|
|
122
154
|
let hasAutoSelected = false;
|
|
123
155
|
let unWatchAutoSelected;
|
|
@@ -128,14 +160,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
128
160
|
modelValue: modelValue2,
|
|
129
161
|
inputValue: inputValue2,
|
|
130
162
|
popupVisible: popupVisible2,
|
|
163
|
+
valueLabel: valueLabel2,
|
|
131
164
|
dictType: dictType2,
|
|
132
165
|
loading,
|
|
133
166
|
defaultSelectFirst,
|
|
134
167
|
onDefaultSelectFirst,
|
|
135
168
|
dedupe,
|
|
136
169
|
options,
|
|
170
|
+
onChange,
|
|
137
171
|
...selectOptions
|
|
138
172
|
} = props;
|
|
173
|
+
const labelKey = selectOptions.keys?.label || "label";
|
|
174
|
+
const reOnChange = (value, context) => {
|
|
175
|
+
onChange?.(value, context);
|
|
176
|
+
const { multiple } = selectOptions;
|
|
177
|
+
if (multiple) {
|
|
178
|
+
const selectedLabels = context.selectedOptions?.map((option) => option[labelKey]).filter(Boolean) || [];
|
|
179
|
+
reValueLabel.value = selectedLabels;
|
|
180
|
+
} else {
|
|
181
|
+
reValueLabel.value = context.option?.[labelKey] || "";
|
|
182
|
+
}
|
|
183
|
+
};
|
|
139
184
|
return {
|
|
140
185
|
convStr,
|
|
141
186
|
strict,
|
|
@@ -145,7 +190,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
145
190
|
onDefaultSelectFirst,
|
|
146
191
|
dedupe,
|
|
147
192
|
options,
|
|
148
|
-
selectOptions
|
|
193
|
+
selectOptions: {
|
|
194
|
+
...selectOptions,
|
|
195
|
+
onChange: reOnChange
|
|
196
|
+
},
|
|
149
197
|
models: {
|
|
150
198
|
modelValue: modelValue2,
|
|
151
199
|
inputValue: inputValue2,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
.qd-service-table[data-v-
|
|
1
|
+
.qd-service-table[data-v-46eba1ae] {
|
|
2
2
|
height: 100%;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
}
|
|
6
|
-
.qd-service-table[data-v-
|
|
6
|
+
.qd-service-table[data-v-46eba1ae] > .t-table__content {
|
|
7
7
|
flex: 1;
|
|
8
8
|
}
|
|
9
|
-
.qd-service-table[data-v-
|
|
9
|
+
.qd-service-table[data-v-46eba1ae] .t-table__tree-col:not(:has(.t-table__tree-op-icon)) {
|
|
10
10
|
margin-left: calc(var(--td-font-size-body-large) + var(--td-comp-margin-s));
|
|
11
11
|
}
|
|
12
|
-
.qd-service-table[data-v-
|
|
12
|
+
.qd-service-table[data-v-46eba1ae] .t-table__tree-leaf-node .t-table__tree-op-icon:empty {
|
|
13
13
|
width: calc(var(--td-font-size-body-large) + var(--td-comp-margin-s));
|
|
14
14
|
}
|
|
15
|
-
.qd-service-table--ps-x-fixed[data-v-
|
|
15
|
+
.qd-service-table--ps-x-fixed[data-v-46eba1ae] .ps__rail-x {
|
|
16
16
|
position: fixed;
|
|
17
|
-
left: var(--
|
|
18
|
-
bottom: var(--
|
|
17
|
+
left: var(--v783492ca) !important;
|
|
18
|
+
bottom: var(--c8df1cb2) !important;
|
|
19
19
|
}
|
|
@@ -12,15 +12,16 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
|
|
|
12
12
|
readonly "onUpdate:expandedRowKeys"?: ((args_0: (string | number)[] | undefined) => any) | undefined;
|
|
13
13
|
readonly "onUpdate:filterValue"?: ((args_0: import("tdesign-vue-next").FilterValue | undefined) => any) | undefined;
|
|
14
14
|
readonly "onUpdate:sort"?: ((args_0: TableSort | undefined) => any) | undefined;
|
|
15
|
+
readonly "onUpdate:searchData"?: ((args_0: Record<string, unknown> | undefined) => any) | undefined;
|
|
15
16
|
readonly "onUpdate:expandedTreeNodes"?: ((args_0: (string | number)[] | undefined) => any) | undefined;
|
|
16
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:data" | "onUpdate:selectedRowKeys" | "onUpdate:activeRowKeys" | "onUpdate:columnControllerVisible" | "onUpdate:displayColumns" | "onUpdate:expandedRowKeys" | "onUpdate:filterValue" | "onUpdate:sort" | "onUpdate:expandedTreeNodes"> & QdServiceTableProps<D, R, P, TP, Pag> & Partial<{}>> & import("vue").PublicProps;
|
|
17
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:data" | "onUpdate:selectedRowKeys" | "onUpdate:activeRowKeys" | "onUpdate:columnControllerVisible" | "onUpdate:displayColumns" | "onUpdate:expandedRowKeys" | "onUpdate:filterValue" | "onUpdate:sort" | "onUpdate:searchData" | "onUpdate:expandedTreeNodes"> & QdServiceTableProps<D, R, P, TP, Pag> & Partial<{}>> & import("vue").PublicProps;
|
|
17
18
|
expose(exposed: import("vue").ShallowUnwrapRef<QdServiceTableInstanceFunctions<D, R, P, TP, Pag, false>>): void;
|
|
18
19
|
attrs: any;
|
|
19
20
|
slots: {
|
|
20
21
|
[x: string]: ((props: any) => any) | undefined;
|
|
21
22
|
[x: number]: ((props: any) => any) | undefined;
|
|
22
23
|
};
|
|
23
|
-
emit: ((evt: "update:data", args_0: D[] | undefined) => void) & ((evt: "update:selectedRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:activeRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:columnControllerVisible", args_0: boolean | undefined) => void) & ((evt: "update:displayColumns", args_0: import("tdesign-vue-next").CheckboxGroupValue | undefined) => void) & ((evt: "update:expandedRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:filterValue", args_0: import("tdesign-vue-next").FilterValue | undefined) => void) & ((evt: "update:sort", args_0: TableSort | undefined) => void) & ((evt: "update:expandedTreeNodes", args_0: (string | number)[] | undefined) => void);
|
|
24
|
+
emit: ((evt: "update:data", args_0: D[] | undefined) => void) & ((evt: "update:selectedRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:activeRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:columnControllerVisible", args_0: boolean | undefined) => void) & ((evt: "update:displayColumns", args_0: import("tdesign-vue-next").CheckboxGroupValue | undefined) => void) & ((evt: "update:expandedRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:filterValue", args_0: import("tdesign-vue-next").FilterValue | undefined) => void) & ((evt: "update:sort", args_0: TableSort | undefined) => void) & ((evt: "update:searchData", args_0: Record<string, unknown> | undefined) => void) & ((evt: "update:expandedTreeNodes", args_0: (string | number)[] | undefined) => void);
|
|
24
25
|
}>) => import("vue").VNode & {
|
|
25
26
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
26
27
|
};
|
|
@@ -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 QdServiceTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const QdServiceTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-46eba1ae"]]);
|
|
6
6
|
export {
|
|
7
7
|
QdServiceTable as default
|
|
8
8
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import { defineComponent, mergeDefaults, useCssVars, computed, ref, useTemplateRef, reactive, createVNode,
|
|
2
|
+
import { defineComponent, mergeDefaults, useCssVars, computed, ref, useTemplateRef, reactive, createVNode, watch, nextTick, onActivated, onDeactivated, onBeforeUnmount, withDirectives, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, isRef, createSlots, withCtx, renderList, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
3
3
|
import { useVModels, useElementBounding, useIntersectionObserver, useMouseInElement } 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 { easyCopy, isEmpty, suspectedWrapperPromise, useServicePagination, createExposeProxy, resizeDirective, getScrollEl } from "qidian-shared";
|
|
5
5
|
import { LoadingIcon, AddRectangleIcon, MinusRectangleIcon } from "tdesign-icons-vue-next";
|
|
6
6
|
import { EnhancedTable, Table, Empty } from "tdesign-vue-next";
|
|
7
7
|
import { useConfig } from "../../config-provider/useConfig.mjs";
|
|
8
|
-
import { qdServiceTableTreeConfig, qdServiceTableProps } from "./props.mjs";
|
|
8
|
+
import { qdServiceTableTreeConfig, qdServiceTableProps, getSortParams } from "./props.mjs";
|
|
9
9
|
import get from "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.mjs";
|
|
10
10
|
import { usePerfectScrollbar } from "../../../hooks/usePerfectScrollbar.mjs";
|
|
11
11
|
const defaultMinWidth = 80;
|
|
@@ -20,6 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
headerBg: {
|
|
21
21
|
type: Boolean
|
|
22
22
|
},
|
|
23
|
+
searchData: {},
|
|
23
24
|
tree: {},
|
|
24
25
|
loadingWithData: {
|
|
25
26
|
type: Boolean
|
|
@@ -296,14 +297,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
296
297
|
},
|
|
297
298
|
pagination: {}
|
|
298
299
|
}, qdServiceTableProps),
|
|
299
|
-
emits: ["update:data", "update:selectedRowKeys", "update:activeRowKeys", "update:columnControllerVisible", "update:displayColumns", "update:expandedRowKeys", "update:filterValue", "update:sort", "update:expandedTreeNodes"],
|
|
300
|
+
emits: ["update:data", "update:selectedRowKeys", "update:activeRowKeys", "update:columnControllerVisible", "update:displayColumns", "update:expandedRowKeys", "update:filterValue", "update:sort", "update:searchData", "update:expandedTreeNodes"],
|
|
300
301
|
setup(__props, {
|
|
301
302
|
expose: __expose,
|
|
302
303
|
emit: __emit
|
|
303
304
|
}) {
|
|
304
305
|
useCssVars((_ctx) => ({
|
|
305
|
-
"
|
|
306
|
-
"
|
|
306
|
+
"v783492ca": tableContentLeft.value,
|
|
307
|
+
"c8df1cb2": outsideBottom.value
|
|
307
308
|
}));
|
|
308
309
|
const props = __props;
|
|
309
310
|
const emit = __emit;
|
|
@@ -316,6 +317,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
316
317
|
expandedRowKeys,
|
|
317
318
|
filterValue,
|
|
318
319
|
sort,
|
|
320
|
+
searchData,
|
|
319
321
|
expandedTreeNodes
|
|
320
322
|
} = useVModels(props, emit, {
|
|
321
323
|
passive: true
|
|
@@ -419,6 +421,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
419
421
|
expandedRowKeys: expandedRowKeys2,
|
|
420
422
|
filterValue: filterValue2,
|
|
421
423
|
sort: sort2,
|
|
424
|
+
searchData: _searchData,
|
|
422
425
|
expandedTreeNodes: expandedTreeNodes2,
|
|
423
426
|
selectOnRowClick,
|
|
424
427
|
expandOnRowClick,
|
|
@@ -643,6 +646,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
643
646
|
};
|
|
644
647
|
});
|
|
645
648
|
});
|
|
649
|
+
watch([reSort, () => searchData.value?.orderByColumn, () => searchData.value?.isAsc], syncSearchDataSort, {
|
|
650
|
+
immediate: true,
|
|
651
|
+
flush: "sync"
|
|
652
|
+
});
|
|
646
653
|
const {
|
|
647
654
|
firstLoad,
|
|
648
655
|
manualTriggerLoad,
|
|
@@ -711,23 +718,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
711
718
|
if (props.defaultSort) return normalizeSort(props.defaultSort);
|
|
712
719
|
return props.multipleSort ? [] : void 0;
|
|
713
720
|
}
|
|
714
|
-
function getSortParams(sortValue) {
|
|
715
|
-
const sortList = Array.isArray(sortValue) ? sortValue : sortValue ? [sortValue] : [];
|
|
716
|
-
const validSortList = sortList.filter((item) => item.sortBy && item.descending !== void 0);
|
|
717
|
-
if (!validSortList.length) return {};
|
|
718
|
-
return {
|
|
719
|
-
orderByColumn: validSortList.map((item) => item.sortBy).join(","),
|
|
720
|
-
isAsc: validSortList.map((item) => item.descending ? "desc" : "asc").join(",")
|
|
721
|
-
};
|
|
722
|
-
}
|
|
723
721
|
async function transformServiceParams(params) {
|
|
724
722
|
const mergedParams = {
|
|
725
723
|
...params,
|
|
726
|
-
...
|
|
724
|
+
...searchData.value
|
|
727
725
|
};
|
|
728
726
|
if (props.transformParams) return props.transformParams(mergedParams);
|
|
729
727
|
return mergedParams;
|
|
730
728
|
}
|
|
729
|
+
function syncSearchDataSort() {
|
|
730
|
+
const sortParams = getSortParams(reSort.value);
|
|
731
|
+
const current2 = searchData.value;
|
|
732
|
+
if (!current2) return;
|
|
733
|
+
if (sortParams.orderByColumn) {
|
|
734
|
+
if (current2.orderByColumn !== sortParams.orderByColumn) {
|
|
735
|
+
current2.orderByColumn = sortParams.orderByColumn;
|
|
736
|
+
}
|
|
737
|
+
if (current2.isAsc !== sortParams.isAsc) {
|
|
738
|
+
current2.isAsc = sortParams.isAsc;
|
|
739
|
+
}
|
|
740
|
+
return;
|
|
741
|
+
}
|
|
742
|
+
if ("orderByColumn" in current2) delete current2.orderByColumn;
|
|
743
|
+
if ("isAsc" in current2) delete current2.isAsc;
|
|
744
|
+
}
|
|
731
745
|
function removeTreeLoadId(id) {
|
|
732
746
|
const index = treeLoadIds.value.findIndex((item) => item === id);
|
|
733
747
|
if (index === -1) return;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TableSort } from 'tdesign-vue-next';
|
|
1
2
|
export declare const qdServiceTableProps: {
|
|
2
3
|
readonly data: () => never[];
|
|
3
4
|
readonly selectedRowKeys: () => never[];
|
|
@@ -8,6 +9,7 @@ export declare const qdServiceTableProps: {
|
|
|
8
9
|
readonly filterValue: undefined;
|
|
9
10
|
readonly sort: undefined;
|
|
10
11
|
readonly expandedTreeNodes: () => never[];
|
|
12
|
+
readonly searchData: () => {};
|
|
11
13
|
readonly rowKey: "id";
|
|
12
14
|
readonly expandIcon: true;
|
|
13
15
|
readonly selectOnRowClick: undefined;
|
|
@@ -32,3 +34,10 @@ export declare const qdServiceTableTreeConfig: {
|
|
|
32
34
|
readonly checkStrictly: true;
|
|
33
35
|
readonly childrenKey: "children";
|
|
34
36
|
};
|
|
37
|
+
export declare function getSortParams(sortValue: TableSort | undefined): {
|
|
38
|
+
orderByColumn?: undefined;
|
|
39
|
+
isAsc?: undefined;
|
|
40
|
+
} | {
|
|
41
|
+
orderByColumn: string;
|
|
42
|
+
isAsc: string;
|
|
43
|
+
};
|
|
@@ -8,6 +8,7 @@ const qdServiceTableProps = {
|
|
|
8
8
|
filterValue: void 0,
|
|
9
9
|
sort: void 0,
|
|
10
10
|
expandedTreeNodes: () => [],
|
|
11
|
+
searchData: () => ({}),
|
|
11
12
|
rowKey: "id",
|
|
12
13
|
expandIcon: true,
|
|
13
14
|
selectOnRowClick: void 0,
|
|
@@ -32,7 +33,19 @@ const qdServiceTableTreeConfig = {
|
|
|
32
33
|
checkStrictly: true,
|
|
33
34
|
childrenKey: "children"
|
|
34
35
|
};
|
|
36
|
+
function getSortParams(sortValue) {
|
|
37
|
+
const sortList = Array.isArray(sortValue) ? sortValue : sortValue ? [sortValue] : [];
|
|
38
|
+
const validSortList = sortList.filter(
|
|
39
|
+
(item) => item.sortBy && item.descending !== void 0
|
|
40
|
+
);
|
|
41
|
+
if (!validSortList.length) return {};
|
|
42
|
+
return {
|
|
43
|
+
orderByColumn: validSortList.map((item) => item.sortBy).join(","),
|
|
44
|
+
isAsc: validSortList.map((item) => item.descending ? "desc" : "asc").join(",")
|
|
45
|
+
};
|
|
46
|
+
}
|
|
35
47
|
export {
|
|
48
|
+
getSortParams,
|
|
36
49
|
qdServiceTableProps,
|
|
37
50
|
qdServiceTableTreeConfig
|
|
38
51
|
};
|
|
@@ -16,6 +16,7 @@ export interface QdServiceTableProps<D extends TableRowData = TableRowData, R =
|
|
|
16
16
|
rowKey?: string;
|
|
17
17
|
selectType?: 'single' | 'multiple';
|
|
18
18
|
headerBg?: boolean;
|
|
19
|
+
searchData?: Record<string, unknown>;
|
|
19
20
|
tree?: TdEnhancedTableProps<D>['tree'] & {
|
|
20
21
|
lazyLoad?: boolean;
|
|
21
22
|
transformParams?: (options: TableTreeNodeExpandOptions<D>) => TP | Promise<TP>;
|
|
@@ -10,9 +10,9 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
|
|
|
10
10
|
readonly "onUpdate:expandedRowKeys"?: ((args_0: (string | number)[] | undefined) => any) | undefined;
|
|
11
11
|
readonly "onUpdate:filterValue"?: ((args_0: import("tdesign-vue-next").FilterValue | undefined) => any) | undefined;
|
|
12
12
|
readonly "onUpdate:sort"?: ((args_0: import("tdesign-vue-next").TableSort | undefined) => any) | undefined;
|
|
13
|
-
readonly "onUpdate:expandedTreeNodes"?: ((args_0: (string | number)[] | undefined) => any) | undefined;
|
|
14
13
|
readonly "onUpdate:searchData"?: ((args_0: import("tdesign-vue-next").Data | undefined) => any) | undefined;
|
|
15
|
-
|
|
14
|
+
readonly "onUpdate:expandedTreeNodes"?: ((args_0: (string | number)[] | undefined) => any) | undefined;
|
|
15
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:visible" | "onUpdate:data" | "onUpdate:columnControllerVisible" | "onUpdate:expandedRowKeys" | "onUpdate:filterValue" | "onUpdate:sort" | "onUpdate:searchData" | "onUpdate:expandedTreeNodes"> & QdServiceDialogTableSelectProps<D, R, P, TP, Pag> & Partial<{}>> & import("vue").PublicProps;
|
|
16
16
|
expose(exposed: import("vue").ShallowUnwrapRef<QdServiceDialogTableSelectInstanceFunctions>): void;
|
|
17
17
|
attrs: any;
|
|
18
18
|
slots: {
|
|
@@ -52,7 +52,7 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
|
|
|
52
52
|
};
|
|
53
53
|
}) => any;
|
|
54
54
|
};
|
|
55
|
-
emit: ((evt: "update:modelValue", args_0: SelectValue<import("tdesign-vue-next").SelectOption> | undefined) => void) & ((evt: "update:visible", args_0: boolean | undefined) => void) & ((evt: "update:data", args_0: D[] | undefined) => void) & ((evt: "update:columnControllerVisible", args_0: boolean | undefined) => void) & ((evt: "update:expandedRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:filterValue", args_0: import("tdesign-vue-next").FilterValue | undefined) => void) & ((evt: "update:sort", args_0: import("tdesign-vue-next").TableSort | undefined) => void) & ((evt: "update:
|
|
55
|
+
emit: ((evt: "update:modelValue", args_0: SelectValue<import("tdesign-vue-next").SelectOption> | undefined) => void) & ((evt: "update:visible", args_0: boolean | undefined) => void) & ((evt: "update:data", args_0: D[] | undefined) => void) & ((evt: "update:columnControllerVisible", args_0: boolean | undefined) => void) & ((evt: "update:expandedRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:filterValue", args_0: import("tdesign-vue-next").FilterValue | undefined) => void) & ((evt: "update:sort", args_0: import("tdesign-vue-next").TableSort | undefined) => void) & ((evt: "update:searchData", args_0: import("tdesign-vue-next").Data | undefined) => void) & ((evt: "update:expandedTreeNodes", args_0: (string | number)[] | undefined) => void);
|
|
56
56
|
}>) => import("vue").VNode & {
|
|
57
57
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
58
58
|
};
|
|
@@ -10,9 +10,9 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
|
|
|
10
10
|
readonly "onUpdate:expandedRowKeys"?: ((args_0: (string | number)[] | undefined) => any) | undefined;
|
|
11
11
|
readonly "onUpdate:filterValue"?: ((args_0: import("tdesign-vue-next").FilterValue | undefined) => any) | undefined;
|
|
12
12
|
readonly "onUpdate:sort"?: ((args_0: import("tdesign-vue-next").TableSort | undefined) => any) | undefined;
|
|
13
|
-
readonly "onUpdate:expandedTreeNodes"?: ((args_0: (string | number)[] | undefined) => any) | undefined;
|
|
14
13
|
readonly "onUpdate:searchData"?: ((args_0: import("tdesign-vue-next").Data | undefined) => any) | undefined;
|
|
15
|
-
|
|
14
|
+
readonly "onUpdate:expandedTreeNodes"?: ((args_0: (string | number)[] | undefined) => any) | undefined;
|
|
15
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:popupVisible" | "onUpdate:data" | "onUpdate:columnControllerVisible" | "onUpdate:expandedRowKeys" | "onUpdate:filterValue" | "onUpdate:sort" | "onUpdate:searchData" | "onUpdate:expandedTreeNodes"> & QdServicePopupTableSelectProps<D, R, P, TP, Pag> & Partial<{}>> & import("vue").PublicProps;
|
|
16
16
|
expose(exposed: import("vue").ShallowUnwrapRef<QdServicePopupTableSelectInstanceFunctions>): void;
|
|
17
17
|
attrs: any;
|
|
18
18
|
slots: {
|
|
@@ -52,7 +52,7 @@ declare const _default: <D extends TableRowData = TableRowData, R = unknown, P =
|
|
|
52
52
|
};
|
|
53
53
|
}) => any;
|
|
54
54
|
};
|
|
55
|
-
emit: ((evt: "update:modelValue", args_0: SelectValue<import("tdesign-vue-next").SelectOption> | undefined) => void) & ((evt: "update:popupVisible", args_0: boolean | undefined) => void) & ((evt: "update:data", args_0: D[] | undefined) => void) & ((evt: "update:columnControllerVisible", args_0: boolean | undefined) => void) & ((evt: "update:expandedRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:filterValue", args_0: import("tdesign-vue-next").FilterValue | undefined) => void) & ((evt: "update:sort", args_0: import("tdesign-vue-next").TableSort | undefined) => void) & ((evt: "update:
|
|
55
|
+
emit: ((evt: "update:modelValue", args_0: SelectValue<import("tdesign-vue-next").SelectOption> | undefined) => void) & ((evt: "update:popupVisible", args_0: boolean | undefined) => void) & ((evt: "update:data", args_0: D[] | undefined) => void) & ((evt: "update:columnControllerVisible", args_0: boolean | undefined) => void) & ((evt: "update:expandedRowKeys", args_0: (string | number)[] | undefined) => void) & ((evt: "update:filterValue", args_0: import("tdesign-vue-next").FilterValue | undefined) => void) & ((evt: "update:sort", args_0: import("tdesign-vue-next").TableSort | undefined) => void) & ((evt: "update:searchData", args_0: import("tdesign-vue-next").Data | undefined) => void) & ((evt: "update:expandedTreeNodes", args_0: (string | number)[] | undefined) => void);
|
|
56
56
|
}>) => import("vue").VNode & {
|
|
57
57
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
58
58
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qidian-vue-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.99",
|
|
4
4
|
"description": "基于 TDesign 的 QiDian Vue UI 组件库",
|
|
5
5
|
"author": "qidian",
|
|
6
6
|
"license": "MIT",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"vue-echarts": "^8.0.1",
|
|
129
129
|
"vue-stream-markdown": "^0.6.5",
|
|
130
130
|
"@flyfish-group/file-viewer3": "^1.0.18",
|
|
131
|
-
"qidian-shared": "1.0.
|
|
131
|
+
"qidian-shared": "1.0.74"
|
|
132
132
|
},
|
|
133
133
|
"scripts": {
|
|
134
134
|
"clean": "rm -rf dist",
|