@oneflowui/ui 0.6.0 → 0.7.0
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/Dashboard/index.vue.d.ts +3 -1
- package/dist/components/Dashboard/index.vue.js +2 -2
- package/dist/components/Dashboard/index.vue2.js +59 -30
- package/dist/components/database/DatabaseView.vue.js +3 -3
- package/dist/components/database/DatabaseView.vue2.js +482 -412
- package/dist/components/detail/DetailLayout.vue.d.ts +12 -1
- package/dist/components/detail/DetailLayout.vue.js +2 -2
- package/dist/components/detail/DetailLayout.vue2.js +115 -68
- package/dist/components/gallery/GalleryView.vue.d.ts +3 -1
- package/dist/components/gallery/GalleryView.vue.js +2 -2
- package/dist/components/gallery/GalleryView.vue2.js +51 -27
- package/dist/components/overlay/Drawer.vue.d.ts +2 -0
- package/dist/components/overlay/Drawer.vue.js +2 -2
- package/dist/components/overlay/Drawer.vue2.js +25 -24
- package/dist/components/overlay/SidePanel.vue.js +2 -2
- package/dist/components/overlay/SidePanel.vue2.js +3 -2
- package/dist/components/table/DataTable.vue.d.ts +26 -2
- package/dist/components/table/DataTable.vue.js +3 -3
- package/dist/components/table/DataTable.vue2.js +738 -603
- package/dist/components/table/FieldCell.vue.js +2 -2
- package/dist/components/table/FieldCell.vue2.js +26 -24
- package/dist/components/table/TableDataRow.vue.d.ts +19 -0
- package/dist/components/table/TableDataRow.vue.js +3 -3
- package/dist/components/table/TableDataRow.vue2.js +110 -73
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { FieldDef as CellFieldDef } from './FieldCell.vue';
|
|
2
2
|
import { Density, Task, TableColumn, ColorMap, DataRecord, TableSchema, ViewConfig, ActiveCell, AggregationConfig, GroupConfig } from '../../types';
|
|
3
|
+
export interface BulkActionItem {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
variant?: "default" | "danger";
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
clearSelectionAfter?: boolean;
|
|
9
|
+
}
|
|
3
10
|
declare const _default: <T extends {
|
|
4
11
|
id: string;
|
|
5
12
|
} & Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
@@ -55,7 +62,12 @@ declare const _default: <T extends {
|
|
|
55
62
|
readonly "onSchema-hide-field"?: ((fieldId: string) => any) | undefined;
|
|
56
63
|
readonly "onSchema-delete-field"?: ((fieldId: string) => any) | undefined;
|
|
57
64
|
readonly "onSchema-duplicate-field"?: ((fieldId: string) => any) | undefined;
|
|
58
|
-
|
|
65
|
+
readonly "onBulk-action"?: ((payload: {
|
|
66
|
+
actionKey: string;
|
|
67
|
+
rowIds: string[];
|
|
68
|
+
rows: (T | DataRecord)[];
|
|
69
|
+
}) => any) | undefined;
|
|
70
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onPaste" | "onRow-click" | "onAdd-row" | "onCell-edit" | "onRow-click-record" | "onSelection-change" | "onColumn-resize" | "onActive-cell-change" | "onRow-reorder" | "onRow-group-change" | "onDraft-commit" | "onDraft-discard" | "onDrafts-commit-all" | "onRow-delete" | "onSchema-add-field" | "onSchema-rename-field" | "onSchema-change-field-type" | "onSchema-hide-field" | "onSchema-delete-field" | "onSchema-duplicate-field" | "onBulk-action"> & {
|
|
59
71
|
tasks?: Task[];
|
|
60
72
|
records?: DataRecord[];
|
|
61
73
|
schema?: TableSchema;
|
|
@@ -90,6 +102,14 @@ declare const _default: <T extends {
|
|
|
90
102
|
enableFieldManagement?: boolean;
|
|
91
103
|
/** Density preset used for table, list, and detail affordances */
|
|
92
104
|
density?: Density;
|
|
105
|
+
/** 显示默认行级快捷操作 */
|
|
106
|
+
showRowActions?: boolean;
|
|
107
|
+
/** 显示批量操作条 */
|
|
108
|
+
showSelectionBar?: boolean;
|
|
109
|
+
/** 批量操作定义,默认仅提供清空选择 */
|
|
110
|
+
bulkActionItems?: BulkActionItem[];
|
|
111
|
+
/** 开启表格容器感知密度收缩 */
|
|
112
|
+
containerResponsive?: boolean;
|
|
93
113
|
} & Partial<{}>> & import('vue').PublicProps;
|
|
94
114
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
95
115
|
attrs: any;
|
|
@@ -168,7 +188,11 @@ declare const _default: <T extends {
|
|
|
168
188
|
}) => void) & ((evt: "schema-change-field-type", payload: {
|
|
169
189
|
fieldId: string;
|
|
170
190
|
newType: string;
|
|
171
|
-
}) => void) & ((evt: "schema-hide-field", fieldId: string) => void) & ((evt: "schema-delete-field", fieldId: string) => void) & ((evt: "schema-duplicate-field", fieldId: string) => void)
|
|
191
|
+
}) => void) & ((evt: "schema-hide-field", fieldId: string) => void) & ((evt: "schema-delete-field", fieldId: string) => void) & ((evt: "schema-duplicate-field", fieldId: string) => void) & ((evt: "bulk-action", payload: {
|
|
192
|
+
actionKey: string;
|
|
193
|
+
rowIds: string[];
|
|
194
|
+
rows: (T | DataRecord)[];
|
|
195
|
+
}) => void);
|
|
172
196
|
}>) => import('vue').VNode & {
|
|
173
197
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
174
198
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./DataTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */ o
|
|
3
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c743201c"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|