jvs-excel-ui 0.0.0-stage → 0.1.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/README.md CHANGED
@@ -1,3 +1,208 @@
1
- # Temporary Holding Version
1
+ # jvs-excel-ui
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 基于 **Vue 3 + TypeScript + Vite + Element Plus** 构建的在线电子表格组件库,**底层表格引擎基于 [UniverJS](https://univer.ai/) (`@univerjs/* v1.4.0`) 插件化模式封装**,同时支持 **独立 Web 站点部署** 与 **Vue 3 插件 NPM 发布**。
4
+
5
+ ---
6
+
7
+ ## 1. 架构与特性
8
+
9
+ - **底层引擎**:采用 **UniverJS (`@univerjs/* 1.4.0`)** 插件模式构建,内置公式计算、数字格式化、筛选、排序、超链接、浮动图片/单元格图片、条件格式、数据验证、查找替换、十字高亮阅读模式等完整能力。
10
+ - **三段式模块化组件**:
11
+ - `ExcelHeader`(顶部自定义工具栏)
12
+ - `UniverSheet`(中间 UniverJS 核心表格画布)
13
+ - `ExcelFooter`(底部工作表管理、视图缩放、分页与高亮控制栏)
14
+ - **实例与 API 完全开放**:支持通过 `@ready` 事件或组件 `ref` 获取 `univerAPI`(`FUniver` Facade 实例)与底层 `Univer` 实例,可直接调用 UniverJS 全部官方 API、命令与事件系统。
15
+
16
+ ---
17
+
18
+ ## 2. 开发与构建指令
19
+
20
+ ```bash
21
+ # 安装依赖
22
+ pnpm install
23
+
24
+ # 启动本地开发调试
25
+ pnpm dev
26
+
27
+ # 类型检查
28
+ pnpm run type-check
29
+
30
+ # 构建可独立部署的 Web 应用(产物位于 dist/app)
31
+ pnpm build
32
+
33
+ # 构建可发布的 Vue 3 插件库(产物位于 dist/lib,包含 ES/UMD 与 .d.ts 类型声明)
34
+ pnpm build:lib
35
+ ```
36
+
37
+ ---
38
+
39
+ ## 3. 作为插件在外部项目中使用
40
+
41
+ ### 3.1 全局注册
42
+
43
+ ```ts
44
+ import { createApp } from 'vue'
45
+ import ElementPlus from 'element-plus'
46
+ import 'element-plus/dist/index.css'
47
+ import JvsExcelUi from 'jvs-excel-ui'
48
+ import 'jvs-excel-ui/style.css'
49
+ import App from './App.vue'
50
+
51
+ const app = createApp(App)
52
+ app.use(ElementPlus)
53
+ app.use(JvsExcelUi)
54
+ app.mount('#app')
55
+ ```
56
+
57
+ ### 3.2 按需引入与基础使用
58
+
59
+ ```vue
60
+ <template>
61
+ <div style="width: 100%; height: 100vh;">
62
+ <JvsExcel
63
+ ref="excelRef"
64
+ :workbookData="workbookData"
65
+ :isEdit="isEdit"
66
+ :uploadImage="handleUploadImage"
67
+ @ready="handleReady"
68
+ @newChanges="handleNewChanges"
69
+ @rangeChange="handleRangeChange"
70
+ @univerCellChange="handleCellChange"
71
+ />
72
+ </div>
73
+ </template>
74
+
75
+ <script setup lang="ts">
76
+ import { ref } from 'vue'
77
+ import { JvsExcel, type JvsExcelExpose } from 'jvs-excel-ui'
78
+ import 'jvs-excel-ui/style.css'
79
+
80
+ const excelRef = ref<JvsExcelExpose | null>(null)
81
+ const isEdit = ref(true)
82
+ const workbookData = ref<Record<string, any> | undefined>(undefined)
83
+
84
+ // 表格初始化完成回调,直接抛出 univerAPI (FUniver) 与底层 univer 实例
85
+ function handleReady(univerAPI: any, univer: any) {
86
+ console.log('Univer Facade API 实例:', univerAPI)
87
+ console.log('Univer 核心实例:', univer)
88
+ }
89
+
90
+ // 增量变更回调(1s 防抖聚合,可用于自动保存或协同广播)
91
+ function handleNewChanges(commands: any[]) {
92
+ console.log('增量变更命令列表:', commands)
93
+ }
94
+
95
+ // 选区变化回调
96
+ function handleRangeChange(rangeInfo: any) {
97
+ console.log('当前选区信息:', rangeInfo)
98
+ }
99
+
100
+ // 单元格内容/状态变化回调
101
+ function handleCellChange(currentCell: any, oldVal: any, cellData: any) {
102
+ console.log('单元格变化:', currentCell, oldVal, cellData)
103
+ }
104
+
105
+ // 自定义图片上传(可选,不传则默认转 Base64 插入)
106
+ async function handleUploadImage(file: File): Promise<string> {
107
+ return URL.createObjectURL(file)
108
+ }
109
+ </script>
110
+ ```
111
+
112
+ ---
113
+
114
+ ## 4. 组件 Props、事件与暴露实例 API
115
+
116
+ ### 4.1 Props 属性 (`JvsExcelProps`)
117
+
118
+ | 属性名 | 类型 | 默认值 | 说明 |
119
+ | --- | --- | --- | --- |
120
+ | `workbookData` | `Record<string, any>` | `undefined` | 工作簿初始 JSON 数据(Univer `IWorkbookData` 快照结构),不传则自动创建默认空白工作簿 |
121
+ | `fileContent` | `File \| Blob \| ArrayBuffer \| Uint8Array \| string` | `undefined` | 直接传入 `.xlsx` / `.xls` / `.csv` 文件内容(支持 `File`、`Blob`、`ArrayBuffer`、Base64 字符串或 JSON 字符串)自动解析渲染 |
122
+ | `fileUrl` | `string` | `undefined` | 传入远程或本地 `.xlsx` / `.xls` / `.csv` 文件 URL 地址,组件自动拉取并解析渲染 |
123
+ | `id` | `string` | `'jvs-excel'` | 实例唯一标识 |
124
+ | `designInfo` | `Record<string, any>` | `{ id: 'jvs-excel' }` | 文档/报表扩展元信息 |
125
+ | `isEdit` | `boolean` | `true` | 是否处于编辑模式(`false` 时隐藏顶部工具栏并进入只读预览模式) |
126
+ | `readonly` | `boolean` | `false` | 是否只读(为 `true` 时强制只读) |
127
+ | `locale` | `'zh-CN' \| 'en-US'` | `'zh-CN'` | 界面语言 |
128
+ | `memberList` | `any[]` | `[]` | 协同编辑成员光标列表 |
129
+ | `uploadImage` | `(file: File) => Promise<string>` | `undefined` | 自定义图片上传钩子,返回图片 URL;不传则默认使用 Base64 插入 |
130
+
131
+ ---
132
+
133
+ ### 4.2 Events 事件
134
+
135
+ | 事件名 | 回调参数 | 说明 |
136
+ | --- | --- | --- |
137
+ | `@ready` | `(univerAPI: FUniver, univer: Univer)` | UniverJS 实例初始化完成时触发,返回 Facade API 实例与底层核心实例 |
138
+ | `@newChanges` | `(commands: CommandListItem[])` | 工作簿产生数据变更时触发(1000ms 防抖聚合),返回命令数组 |
139
+ | `@commandExecuted` | `(command: ICommandInfo)` | 任意底层 Univer 命令执行后触发 |
140
+ | `@rangeChange` | `(rangeInfo: Record<string, any>)` | 选中单元格区域变化时触发 |
141
+ | `@univerCellChange` | `(currentCell, oldCellValue, cellData)` | 单元格值或样式变更时触发 |
142
+ | `@changePage` | `(pageInfo: { key: string, value: any })` | 底部栏分页参数变更时触发 |
143
+
144
+ ---
145
+
146
+ ### 4.3 暴露的方法与属性 (`defineExpose` / `JvsExcelExpose`)
147
+
148
+ 通过 `ref`(如 `const excelRef = ref<JvsExcelExpose | null>(null)`)可调用以下方法与属性:
149
+
150
+ | 方法 / 属性名 | 类型 | 说明 |
151
+ | --- | --- | --- |
152
+ | `getUniverAPI()` | `() => FUniver` | 获取 UniverJS 官方 Facade API 实例(`FUniver`) |
153
+ | `univerAPI` | `Ref<FUniver>` | 响应式的 `FUniver` Facade API 引用 |
154
+ | `getUniver()` | `() => Univer` | 获取底层 `Univer` 核心实例(可通过 `univer.__getInjector()` 访问 DI 容器) |
155
+ | `getActiveWorkbook()` | `() => FWorkbook` | 快捷获取当前激活的工作簿 Facade 实例 |
156
+ | `getActiveSheet()` | `() => FWorksheet` | 快捷获取当前激活的工作表 Facade 实例 |
157
+ | `getData(isEnd?)` | `(isEnd?: boolean) => Record<string, any>` | 获取当前工作簿完整 JSON 快照数据(内部调用 `activeWorkbook.save()`) |
158
+ | `setData(workbookData?)` | `(data?: Record<string, any>) => Promise<void>` | 动态加载/重置工作簿 JSON 快照数据 |
159
+ | `importExcelFile(source, fileName?)` | `(source: ExcelInputSource, fileName?: string) => Promise<Record<string, any>>` | 导入并渲染 `.xlsx` / `.xls` / `.csv` 文件(支持 `File`、`Blob`、`ArrayBuffer`、Base64 或文件 URL 地址) |
160
+ | `exportExcelFile(fileName?, download?)` | `(fileName?: string, download?: boolean) => Promise<Blob>` | 将当前工作簿导出为 `.xlsx` 文件(返回 `Blob`,`download` 默认为 `true` 自动触发浏览器下载) |
161
+ | `forceCommitEdit()` | `() => Promise<void>` | 强制提交当前正在编辑中的单元格,并立即刷新待发送的 `@newChanges` 队列 |
162
+ | `flushCommandList()` | `() => void` | 立即触发尚未满 1s 防抖的增量变更队列(`@newChanges`) |
163
+ | `resetCommandList()` | `() => void` | 清空待发送的增量变更命令队列 |
164
+ | `applyCollabCommands(cmds)` | `(commands: CommandListItem[]) => void` | 将远端协同增量命令列表回放到当前工作簿(自动标记 `fromCollab: true` 避免循环触发) |
165
+ | `doAction(item)` | `(item: any) => void` | 触发顶部工具栏或底部栏内置动作 |
166
+ | `createBaseReportData(docId?)` | `(docId?: string) => Record<string, any>` | 生成一份标准的初始空白工作簿 JSON 数据结构 |
167
+ | `univerSheetRef` | `Ref<any>` | 中间 `UniverSheet` 子组件实例引用 |
168
+
169
+ ---
170
+
171
+ ## 5. 调用底层 UniverJS API 示例
172
+
173
+ 当内置工具栏之外需要自定义业务交互时,可通过 `@ready` 或 `excelRef.value?.getUniverAPI()` 直接调用 UniverJS 官方 Facade API:
174
+
175
+ ```ts
176
+ // 获取 Facade API 实例
177
+ const univerAPI = excelRef.value?.getUniverAPI()
178
+ const workbook = excelRef.value?.getActiveWorkbook()
179
+ const sheet = excelRef.value?.getActiveSheet()
180
+
181
+ // 1. 读写指定单元格或区域数据
182
+ const range = sheet.getRange(0, 0, 1, 1) // 第1行第1列 (A1)
183
+ range.setValue('自定义写入内容')
184
+ console.log('A1 当前值:', range.getValue(), '完整单元格数据:', range.getCellData())
185
+
186
+ // 2. 插入浮动图片
187
+ await sheet.insertImage('https://example.com/logo.png', 2, 2, 0, 0)
188
+
189
+ // 3. 执行任意 Univer 命令(如撤销、重做、加粗、冻结行列等)
190
+ univerAPI.executeCommand('univer.command.undo')
191
+ univerAPI.executeCommand('sheet.command.set-range-bold')
192
+
193
+ // 4. 监听 Univer 事件
194
+ const disposable = univerAPI.addEvent(univerAPI.Event.CellClicked, (params: any) => {
195
+ console.log('点击了单元格:', params.row, params.column)
196
+ })
197
+ // 取消监听:disposable.dispose()
198
+
199
+ // 5. 保存前强制结束单元格编辑并导出完整快照
200
+ await excelRef.value?.forceCommitEdit()
201
+ const snapshot = excelRef.value?.getData(true)
202
+
203
+ // 6. 导入本地 File / ArrayBuffer / 远程 URL Excel 文件 (.xlsx / .xls / .csv)
204
+ await excelRef.value?.importExcelFile(fileOrUrl, '报表名称')
205
+
206
+ // 7. 导出当前工作簿为 .xlsx 文件
207
+ const xlsxBlob = await excelRef.value?.exportExcelFile('导出报表', true)
208
+ ```
@@ -0,0 +1,53 @@
1
+ type __VLS_Props = {
2
+ modelValue?: string;
3
+ resetColor?: string;
4
+ width?: string;
5
+ customClass?: string;
6
+ disable?: boolean;
7
+ openGradual?: boolean;
8
+ theme?: string;
9
+ };
10
+ declare function closePopover(): void;
11
+ declare function handleScroll(): void;
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: {
15
+ default?(_: {}): any;
16
+ };
17
+ refs: {
18
+ triggerRef: HTMLDivElement;
19
+ };
20
+ rootEl: any;
21
+ };
22
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
24
+ handleScroll: typeof handleScroll;
25
+ closePopover: typeof closePopover;
26
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
+ change: (val: string) => any;
28
+ "update:modelValue": (val: string) => any;
29
+ popShow: () => any;
30
+ popHidden: (val: boolean) => any;
31
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
32
+ onChange?: ((val: string) => any) | undefined;
33
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
34
+ onPopShow?: (() => any) | undefined;
35
+ onPopHidden?: ((val: boolean) => any) | undefined;
36
+ }>, {
37
+ modelValue: string;
38
+ resetColor: string;
39
+ width: string;
40
+ customClass: string;
41
+ disable: boolean;
42
+ openGradual: boolean;
43
+ theme: string;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
45
+ triggerRef: HTMLDivElement;
46
+ }, any>;
47
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
48
+ export default _default;
49
+ type __VLS_WithTemplateSlots<T, S> = T & {
50
+ new (): {
51
+ $slots: S;
52
+ };
53
+ };
@@ -0,0 +1,244 @@
1
+ declare function cellClick(): void;
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ name: StringConstructor;
4
+ sheetData: {
5
+ type: ObjectConstructor;
6
+ default: () => {};
7
+ };
8
+ id: StringConstructor;
9
+ sheetId: StringConstructor;
10
+ readonly: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ reportDesign: {
15
+ type: ObjectConstructor;
16
+ default: () => {};
17
+ };
18
+ designInfo: {
19
+ type: ObjectConstructor;
20
+ default: () => {};
21
+ };
22
+ isEdit: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ addSheet: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ changeSheet: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ openSheetMenu: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ updateSheet: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ copySheet: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ deleteSheet: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ type: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ }>, {
55
+ cellClick: typeof cellClick;
56
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
57
+ doAction: (...args: any[]) => void;
58
+ changePage: (...args: any[]) => void;
59
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
60
+ name: StringConstructor;
61
+ sheetData: {
62
+ type: ObjectConstructor;
63
+ default: () => {};
64
+ };
65
+ id: StringConstructor;
66
+ sheetId: StringConstructor;
67
+ readonly: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ reportDesign: {
72
+ type: ObjectConstructor;
73
+ default: () => {};
74
+ };
75
+ designInfo: {
76
+ type: ObjectConstructor;
77
+ default: () => {};
78
+ };
79
+ isEdit: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ addSheet: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ changeSheet: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ openSheetMenu: {
92
+ type: BooleanConstructor;
93
+ default: boolean;
94
+ };
95
+ updateSheet: {
96
+ type: BooleanConstructor;
97
+ default: boolean;
98
+ };
99
+ copySheet: {
100
+ type: BooleanConstructor;
101
+ default: boolean;
102
+ };
103
+ deleteSheet: {
104
+ type: BooleanConstructor;
105
+ default: boolean;
106
+ };
107
+ type: {
108
+ type: StringConstructor;
109
+ default: string;
110
+ };
111
+ }>> & Readonly<{
112
+ onDoAction?: ((...args: any[]) => any) | undefined;
113
+ onChangePage?: ((...args: any[]) => any) | undefined;
114
+ }>, {
115
+ type: string;
116
+ sheetData: Record<string, any>;
117
+ readonly: boolean;
118
+ reportDesign: Record<string, any>;
119
+ designInfo: Record<string, any>;
120
+ isEdit: boolean;
121
+ addSheet: boolean;
122
+ changeSheet: boolean;
123
+ openSheetMenu: boolean;
124
+ updateSheet: boolean;
125
+ copySheet: boolean;
126
+ deleteSheet: boolean;
127
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
128
+ footeContentRef: HTMLDivElement;
129
+ chagneSheetsButtonRef: HTMLDivElement;
130
+ sheetsNameBoxRef: HTMLDivElement;
131
+ sheetsNameContentRef: HTMLDivElement;
132
+ pageSelectRef: HTMLDivElement;
133
+ buttonColorRef: ({
134
+ $: import('vue').ComponentInternalInstance;
135
+ $data: {};
136
+ $props: {
137
+ readonly modelValue?: string | undefined;
138
+ readonly resetColor?: string | undefined;
139
+ readonly width?: string | undefined;
140
+ readonly customClass?: string | undefined;
141
+ readonly disable?: boolean | undefined;
142
+ readonly openGradual?: boolean | undefined;
143
+ readonly theme?: string | undefined;
144
+ readonly onChange?: ((val: string) => any) | undefined;
145
+ readonly "onUpdate:modelValue"?: ((val: string) => any) | undefined;
146
+ readonly onPopShow?: (() => any) | undefined;
147
+ readonly onPopHidden?: ((val: boolean) => any) | undefined;
148
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
149
+ $attrs: import('vue').Attrs;
150
+ $refs: {
151
+ [x: string]: unknown;
152
+ } & {
153
+ triggerRef: HTMLDivElement;
154
+ };
155
+ $slots: Readonly<{
156
+ [name: string]: import('vue').Slot<any> | undefined;
157
+ }>;
158
+ $root: import('vue').ComponentPublicInstance | null;
159
+ $parent: import('vue').ComponentPublicInstance | null;
160
+ $host: Element | null;
161
+ $emit: ((event: "change", val: string) => void) & ((event: "update:modelValue", val: string) => void) & ((event: "popShow") => void) & ((event: "popHidden", val: boolean) => void);
162
+ $el: any;
163
+ $options: import('vue').ComponentOptionsBase<Readonly<{
164
+ modelValue?: string;
165
+ resetColor?: string;
166
+ width?: string;
167
+ customClass?: string;
168
+ disable?: boolean;
169
+ openGradual?: boolean;
170
+ theme?: string;
171
+ }> & Readonly<{
172
+ onChange?: ((val: string) => any) | undefined;
173
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
174
+ onPopShow?: (() => any) | undefined;
175
+ onPopHidden?: ((val: boolean) => any) | undefined;
176
+ }>, {
177
+ handleScroll: () => void;
178
+ closePopover: () => void;
179
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
180
+ change: (val: string) => any;
181
+ "update:modelValue": (val: string) => any;
182
+ popShow: () => any;
183
+ popHidden: (val: boolean) => any;
184
+ }, string, {
185
+ modelValue: string;
186
+ resetColor: string;
187
+ width: string;
188
+ customClass: string;
189
+ disable: boolean;
190
+ openGradual: boolean;
191
+ theme: string;
192
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
193
+ beforeCreate?: (() => void) | (() => void)[];
194
+ created?: (() => void) | (() => void)[];
195
+ beforeMount?: (() => void) | (() => void)[];
196
+ mounted?: (() => void) | (() => void)[];
197
+ beforeUpdate?: (() => void) | (() => void)[];
198
+ updated?: (() => void) | (() => void)[];
199
+ activated?: (() => void) | (() => void)[];
200
+ deactivated?: (() => void) | (() => void)[];
201
+ beforeDestroy?: (() => void) | (() => void)[];
202
+ beforeUnmount?: (() => void) | (() => void)[];
203
+ destroyed?: (() => void) | (() => void)[];
204
+ unmounted?: (() => void) | (() => void)[];
205
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
206
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
207
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
208
+ };
209
+ $forceUpdate: () => void;
210
+ $nextTick: typeof import('vue').nextTick;
211
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
212
+ } & Readonly<{
213
+ modelValue: string;
214
+ resetColor: string;
215
+ width: string;
216
+ customClass: string;
217
+ disable: boolean;
218
+ openGradual: boolean;
219
+ theme: string;
220
+ }> & Omit<Readonly<{
221
+ modelValue?: string;
222
+ resetColor?: string;
223
+ width?: string;
224
+ customClass?: string;
225
+ disable?: boolean;
226
+ openGradual?: boolean;
227
+ theme?: string;
228
+ }> & Readonly<{
229
+ onChange?: ((val: string) => any) | undefined;
230
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
231
+ onPopShow?: (() => any) | undefined;
232
+ onPopHidden?: ((val: boolean) => any) | undefined;
233
+ }>, "handleScroll" | "closePopover" | ("modelValue" | "resetColor" | "width" | "customClass" | "disable" | "openGradual" | "theme")> & {
234
+ handleScroll: () => void;
235
+ closePopover: () => void;
236
+ } & {} & import('vue').ComponentCustomProperties & {} & {
237
+ $slots: {
238
+ default?(_: {}): any;
239
+ };
240
+ }) | null;
241
+ scaleBarRef: HTMLDivElement;
242
+ scaleRatioRef: HTMLDivElement;
243
+ }, HTMLDivElement>;
244
+ export default _default;
@@ -0,0 +1,42 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ item: {
3
+ type: ObjectConstructor;
4
+ default: () => {};
5
+ };
6
+ type: StringConstructor;
7
+ currentData: {
8
+ type: ObjectConstructor;
9
+ default: () => {};
10
+ };
11
+ sheetStyles: {
12
+ type: ObjectConstructor;
13
+ default: () => {};
14
+ };
15
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ doAction: (...args: any[]) => void;
17
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
18
+ item: {
19
+ type: ObjectConstructor;
20
+ default: () => {};
21
+ };
22
+ type: StringConstructor;
23
+ currentData: {
24
+ type: ObjectConstructor;
25
+ default: () => {};
26
+ };
27
+ sheetStyles: {
28
+ type: ObjectConstructor;
29
+ default: () => {};
30
+ };
31
+ }>> & Readonly<{
32
+ onDoAction?: ((...args: any[]) => any) | undefined;
33
+ }>, {
34
+ item: Record<string, any>;
35
+ currentData: Record<string, any>;
36
+ sheetStyles: Record<string, any>;
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
38
+ fontFamilyRef: HTMLDivElement;
39
+ fontSizeRef: HTMLDivElement;
40
+ fontPopoverRef: unknown;
41
+ }, HTMLDivElement>;
42
+ export default _default;
@@ -0,0 +1,39 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ item: {
3
+ type: ObjectConstructor;
4
+ default: () => {};
5
+ };
6
+ currentData: {
7
+ type: ObjectConstructor;
8
+ default: () => {};
9
+ };
10
+ sheetStyles: {
11
+ type: ObjectConstructor;
12
+ default: () => {};
13
+ };
14
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ doAction: (...args: any[]) => void;
16
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
17
+ item: {
18
+ type: ObjectConstructor;
19
+ default: () => {};
20
+ };
21
+ currentData: {
22
+ type: ObjectConstructor;
23
+ default: () => {};
24
+ };
25
+ sheetStyles: {
26
+ type: ObjectConstructor;
27
+ default: () => {};
28
+ };
29
+ }>> & Readonly<{
30
+ onDoAction?: ((...args: any[]) => any) | undefined;
31
+ }>, {
32
+ item: Record<string, any>;
33
+ currentData: Record<string, any>;
34
+ sheetStyles: Record<string, any>;
35
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
36
+ selectButtonRef: HTMLDivElement;
37
+ borderPopoverRef: unknown;
38
+ }, any>;
39
+ export default _default;