@oneflowui/ui 0.5.7 → 0.5.9
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/README.md +11 -0
- package/dist/components/ContextMenu/index.vue.js +2 -2
- package/dist/components/Dashboard/index.vue.d.ts +1 -1
- package/dist/components/Dashboard/index.vue.js +3 -3
- package/dist/components/database/DatabaseView.vue.d.ts +6 -1
- package/dist/components/database/DatabaseView.vue.js +2 -2
- package/dist/components/database/DatabaseView.vue2.js +438 -293
- package/dist/components/overlay/Drawer.vue.d.ts +1 -1
- package/dist/components/overlay/Modal.vue.d.ts +1 -1
- package/dist/components/table/ColumnHeaderMenu.vue.d.ts +2 -2
- package/dist/components/table/DataTable.vue.d.ts +3 -1
- package/dist/components/table/DataTable.vue.js +2 -2
- package/dist/components/table/DataTable.vue2.js +598 -526
- package/dist/components/table/DetailSheet.vue.d.ts +2 -0
- package/dist/components/table/DetailSheet.vue.js +2 -2
- package/dist/components/table/DetailSheet.vue2.js +155 -76
- package/dist/components/table/TableDataRow.vue.d.ts +3 -1
- package/dist/components/table/TableDataRow.vue.js +3 -3
- package/dist/components/table/TableDataRow.vue2.js +95 -68
- package/dist/components/table/TableHeaderRow.vue.d.ts +3 -1
- package/dist/components/table/TableHeaderRow.vue.js +3 -3
- package/dist/components/table/TableHeaderRow.vue2.js +96 -60
- package/dist/composables/useColumnResize.d.ts +4 -1
- package/dist/composables/useColumnResize.js +114 -45
- package/dist/composables/useRowDrag.d.ts +1 -1
- package/dist/composables/useVirtualList.d.ts +1 -0
- package/dist/composables/useVirtualList.js +89 -77
- package/dist/plugin.js +240 -171
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/utils/icon.js +25 -68
- package/dist/utils/iconRegistry.d.ts +7 -0
- package/dist/utils/iconRegistry.js +60 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -109,6 +109,8 @@ import { DatabaseView, useDatabaseView } from '@oneflowui/ui'
|
|
|
109
109
|
|
|
110
110
|
`DatabaseView` 负责统一页面容器,`useDatabaseView` 负责页面状态编排。`dev` app 也已经接入这条链路,
|
|
111
111
|
用于证明 `local/provider` 双模式、视图切换、selected record 与 detail workspace 可以在同一页面层里闭环。
|
|
112
|
+
当前页面级契约还把 `detailPresentation` 和 `density` 作为明确的对齐方向:桌面端优先右侧 workspace,
|
|
113
|
+
移动端保留 sheet fallback;页面密度则统一按 `compact / standard / comfortable` 三档表达。
|
|
112
114
|
|
|
113
115
|
```ts
|
|
114
116
|
const view = useDatabaseView({
|
|
@@ -156,6 +158,15 @@ type DatabaseViewActions = {
|
|
|
156
158
|
|
|
157
159
|
这证明页面级方案已经具备“列表视图 + 选中态 + 详情工作区”的最小闭环,并且可以作为业务页面底座直接接入。
|
|
158
160
|
|
|
161
|
+
### `detailPresentation` / `density`
|
|
162
|
+
|
|
163
|
+
页面级方案在语义上继续收敛两个关键契约:
|
|
164
|
+
|
|
165
|
+
- `detailPresentation`:用于描述详情工作区的呈现方式,默认思路是桌面端 `side-panel`、移动端 `sheet`。
|
|
166
|
+
- `density`:用于统一页面与表格的视觉密度语义,建议仅使用 `compact`、`standard`、`comfortable` 三档。
|
|
167
|
+
|
|
168
|
+
这两个契约的目标不是替换现有组件,而是让页面层把右侧工作区、行高密度和默认布局策略收成一致的入口语义。
|
|
169
|
+
|
|
159
170
|
### 已支持 / 暂未支持
|
|
160
171
|
|
|
161
172
|
| 已支持 | 暂未支持 |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-32503f28"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -18,7 +18,7 @@ type __VLS_Props = {
|
|
|
18
18
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
19
|
title: string;
|
|
20
20
|
columns: number;
|
|
21
|
-
widgets: DashboardWidget[];
|
|
22
21
|
gap: number;
|
|
22
|
+
widgets: DashboardWidget[];
|
|
23
23
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
24
24
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d68d4403"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
2
|
import { DatabaseViewActions as ViewDatabaseActions, DatabaseViewMode, DatabaseSchemaEvent, DatabaseViewProvider as ViewDatabaseProvider } from '../../composables/useDatabaseView';
|
|
3
3
|
import { FilterLogic } from '../../composables/useTableFilter';
|
|
4
|
-
import { DataRecord, TableColumn, TableSchema, ViewConfig } from '../../types';
|
|
4
|
+
import { DataRecord, Density, TableColumn, TableSchema, ViewConfig } from '../../types';
|
|
5
5
|
export interface DatabaseViewViewTab {
|
|
6
6
|
value: string;
|
|
7
7
|
label: string;
|
|
@@ -32,9 +32,12 @@ export interface DatabaseViewActions extends ViewDatabaseActions<DataRecord> {
|
|
|
32
32
|
export interface DatabaseViewUiOptions {
|
|
33
33
|
enableFieldManagement?: boolean;
|
|
34
34
|
}
|
|
35
|
+
export type DatabaseViewDetailPresentation = "auto" | "side-panel" | "sheet" | "full-page";
|
|
35
36
|
export interface DatabaseViewProps {
|
|
36
37
|
tableId?: string;
|
|
37
38
|
mode?: DatabaseViewMode;
|
|
39
|
+
detailPresentation?: DatabaseViewDetailPresentation;
|
|
40
|
+
density?: Density;
|
|
38
41
|
schema?: TableSchema | null;
|
|
39
42
|
records?: DataRecord[];
|
|
40
43
|
views?: ViewConfig[];
|
|
@@ -147,6 +150,7 @@ declare const _default: import('vue').DefineComponent<DatabaseViewProps, {}, {},
|
|
|
147
150
|
showSort: boolean;
|
|
148
151
|
showSearch: boolean;
|
|
149
152
|
actions: DatabaseViewActions;
|
|
153
|
+
density: Density;
|
|
150
154
|
readonly: boolean;
|
|
151
155
|
pageSize: number;
|
|
152
156
|
records: DataRecord[];
|
|
@@ -159,6 +163,7 @@ declare const _default: import('vue').DefineComponent<DatabaseViewProps, {}, {},
|
|
|
159
163
|
tableId: string;
|
|
160
164
|
views: ViewConfig[];
|
|
161
165
|
provider: ViewDatabaseProvider<DataRecord>;
|
|
166
|
+
detailPresentation: DatabaseViewDetailPresentation;
|
|
162
167
|
defaultView: ViewConfig;
|
|
163
168
|
currentViewId: string;
|
|
164
169
|
initialViewId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DatabaseView.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-de3fe42f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|