@oneflowui/ui 0.5.3 → 0.5.5
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.en.md +3 -1
- package/README.md +3 -1
- package/dist/components/breadcrumb/Breadcrumb.vue.js +2 -2
- package/dist/components/breadcrumb/BreadcrumbItem.vue.js +2 -2
- package/dist/components/table/DataTable.vue.d.ts +12 -0
- package/dist/components/table/DataTable.vue.js +4 -4
- package/dist/components/table/DataTable.vue2.js +438 -416
- package/dist/components/table/TableDataRow.vue.js +1 -1
- package/dist/components/table/TableDataRow.vue2.js +45 -41
- package/dist/components/table/TableGroupRow.vue.js +2 -2
- package/dist/components/table/TableGroupRow.vue2.js +37 -31
- package/dist/components/table/TableHeaderRow.vue.js +1 -1
- package/dist/components/table/TableHeaderRow.vue2.js +31 -24
- package/dist/index.d.ts +0 -1
- package/dist/index.js +195 -198
- package/dist/style.css +1 -1
- package/package.json +5 -1
- package/dist/dev/App.vue.d.ts +0 -2
- package/dist/dev/main.d.ts +0 -0
- package/dist/tests/database-view.integration.spec.d.ts +0 -1
- package/dist/tests/drawer.integration.spec.d.ts +0 -1
- package/dist/tests/fielddef.integration.spec.d.ts +0 -1
- package/dist/tests/gantt.integration.spec.d.ts +0 -1
- package/dist/tests/shallowRef.integration.spec.d.ts +0 -1
- package/dist/tests/table-detail.integration.spec.d.ts +0 -1
- package/dist/tests/three-layer-model.integration.spec.d.ts +0 -1
- package/dist/tests/useStream.integration.spec.d.ts +0 -1
- package/dist/tests/useTypewriter.integration.spec.d.ts +0 -1
- package/dist/tests/useVirtualList.integration.spec.d.ts +0 -1
package/README.en.md
CHANGED
|
@@ -93,7 +93,7 @@ pnpm add mermaid # required only when using MermaidChart
|
|
|
93
93
|
```ts
|
|
94
94
|
import { createApp } from 'vue'
|
|
95
95
|
import App from './App.vue'
|
|
96
|
-
import OneflowUI from '@oneflowui/ui'
|
|
96
|
+
import OneflowUI from '@oneflowui/ui/plugin'
|
|
97
97
|
import '@oneflowui/ui/styles'
|
|
98
98
|
|
|
99
99
|
const app = createApp(App)
|
|
@@ -108,6 +108,8 @@ import { KanbanBoard, DataTable, AiMessageList, MermaidChart } from '@oneflowui/
|
|
|
108
108
|
import '@oneflowui/ui/styles'
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
+
Note: starting from `0.5.4`, the plugin entry is separated from the root entry. Use `@oneflowui/ui/plugin` for `app.use(...)`, and keep named imports on `@oneflowui/ui`.
|
|
112
|
+
|
|
111
113
|
---
|
|
112
114
|
|
|
113
115
|
## Usage Examples
|
package/README.md
CHANGED
|
@@ -80,7 +80,7 @@ pnpm add mermaid # 使用 MermaidChart 时需要
|
|
|
80
80
|
```ts
|
|
81
81
|
import { createApp } from 'vue'
|
|
82
82
|
import App from './App.vue'
|
|
83
|
-
import OneflowUI from '@oneflowui/ui'
|
|
83
|
+
import OneflowUI from '@oneflowui/ui/plugin'
|
|
84
84
|
import '@oneflowui/ui/styles'
|
|
85
85
|
|
|
86
86
|
const app = createApp(App)
|
|
@@ -95,6 +95,8 @@ import { KanbanBoard, DataTable, AiMessageList, MermaidChart } from '@oneflowui/
|
|
|
95
95
|
import '@oneflowui/ui/styles'
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
+
说明:从 `0.5.4` 开始,`plugin` 入口与根入口解耦。全局注册走 `@oneflowui/ui/plugin`,命名导入继续走 `@oneflowui/ui`。
|
|
99
|
+
|
|
98
100
|
---
|
|
99
101
|
|
|
100
102
|
## 页面级方案
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Breadcrumb.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1a7571e0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./BreadcrumbItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-cfd104cd"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -115,6 +115,18 @@ declare const _default: <T extends {
|
|
|
115
115
|
};
|
|
116
116
|
col: TableColumn;
|
|
117
117
|
}): any;
|
|
118
|
+
cell?(_: {
|
|
119
|
+
row: Record<string, unknown> & {
|
|
120
|
+
id: string;
|
|
121
|
+
};
|
|
122
|
+
col: TableColumn;
|
|
123
|
+
}): any;
|
|
124
|
+
cell?(_: {
|
|
125
|
+
row: Record<string, unknown> & {
|
|
126
|
+
id: string;
|
|
127
|
+
};
|
|
128
|
+
col: TableColumn;
|
|
129
|
+
}): any;
|
|
118
130
|
};
|
|
119
131
|
emit: ((evt: "paste", payload: {
|
|
120
132
|
startRowId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from "./DataTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = /* @__PURE__ */ o(a, [["__scopeId", "data-v-2581396a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|