@newview/ui 1.1.6 → 1.1.7
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 +3 -0
- package/dist/newview-ui.js +3230 -3247
- package/dist/style.css +1 -1
- package/package.json +1 -2
- package/types/DocxTemplat.d.ts +27 -4
- package/types/Grid.d.ts +28 -3
- package/types/LuckySheet.d.ts +11 -5
- package/types/Toolbar.d.ts +4 -0
- package/vite.config.ts +5 -2
- package/dist/newview-ui.umd.cjs +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newview/ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"author": "newview",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/newview-ui.umd.cjs",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"ace-builds": "^1.23.1",
|
|
38
38
|
"bin-editor-next": "^1.1.0",
|
|
39
39
|
"dayjs": "1.11.7",
|
|
40
|
-
"docx": "8.2.2",
|
|
41
40
|
"jquery": "3.6.3",
|
|
42
41
|
"jszip": "3.10.1",
|
|
43
42
|
"linq": "4.0.1",
|
package/types/DocxTemplat.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Table, TableCell, ImageRun, Footer, TextRun, Header, Paragraph, TableRow, HeightRule, WidthType, VerticalAlign, Document, TableOfContents, StyleLevel, HeadingLevel, AlignmentType, Tab, NumberFormat, PageNumber, LineRuleType, Packer } from "docx";
|
|
2
|
+
export { Table, TableCell, ImageRun, Footer, TextRun, Header, Paragraph, TableRow, HeightRule, WidthType, VerticalAlign, Document, TableOfContents, StyleLevel, HeadingLevel, AlignmentType, Tab, NumberFormat, PageNumber, LineRuleType, Packer }
|
|
3
3
|
export enum FontSize {
|
|
4
4
|
初号 = "42pt",
|
|
5
5
|
小初 = "36pt",
|
|
@@ -15,6 +15,29 @@ export enum FontSize {
|
|
|
15
15
|
小五 = "9pt",
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export async function GetImageArr(imgPath): Promises<ArrayBuffer> { }
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
|
|
20
|
+
import { BaseInstance } from "@newview/base-vue";
|
|
21
|
+
import type { DefineComponent } from 'vue';
|
|
22
|
+
|
|
23
|
+
export declare class DocxDesignerInstance extends BaseInstance {
|
|
24
|
+
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export declare const DocxDesigner: DefineComponent<{
|
|
28
|
+
|
|
29
|
+
}>
|
|
30
|
+
export declare const ContentTree: DefineComponent<{
|
|
31
|
+
|
|
32
|
+
}>
|
|
33
|
+
export declare class ContentTreeInstance extends BaseInstance {
|
|
34
|
+
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export declare class ContentTreeViewInstance extends BaseInstance {
|
|
38
|
+
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export declare const ContentTreeView: DefineComponent<{
|
|
42
|
+
|
|
43
|
+
}>
|
package/types/Grid.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export interface GridOptions {
|
|
|
78
78
|
/**
|
|
79
79
|
* 列参数
|
|
80
80
|
*/
|
|
81
|
-
columns?: GridColumn[];
|
|
81
|
+
columns?: GridColumn[];
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
/**
|
|
@@ -182,14 +182,17 @@ export interface GridSelectProp {
|
|
|
182
182
|
*/
|
|
183
183
|
data?: GridSelectOptionProp[],
|
|
184
184
|
multiple?: boolean,
|
|
185
|
-
clearable?: boolean
|
|
185
|
+
clearable?: boolean,
|
|
186
|
+
transfer?: boolean
|
|
186
187
|
}
|
|
187
188
|
|
|
188
189
|
/**
|
|
189
190
|
* 树形下拉配置
|
|
190
191
|
*/
|
|
191
192
|
export interface GridTreeSelectProp {
|
|
192
|
-
data?: GridTreeSelectOptionProp[]
|
|
193
|
+
data?: GridTreeSelectOptionProp[],
|
|
194
|
+
multiple?: boolean,
|
|
195
|
+
transfer?: boolean
|
|
193
196
|
}
|
|
194
197
|
|
|
195
198
|
/**
|
|
@@ -260,6 +263,10 @@ export interface GridSetting {
|
|
|
260
263
|
* 树配置
|
|
261
264
|
*/
|
|
262
265
|
treeConfig?: VxeTablePropTypes.TreeConfig;
|
|
266
|
+
/**
|
|
267
|
+
* 分页组件配置
|
|
268
|
+
*/
|
|
269
|
+
pageConfig?: PageConfig
|
|
263
270
|
/**
|
|
264
271
|
* 是否显示边框
|
|
265
272
|
*/
|
|
@@ -310,6 +317,17 @@ export interface SearchConfig {
|
|
|
310
317
|
defaultShowSearch?: boolean;
|
|
311
318
|
}
|
|
312
319
|
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* 分页组件配置
|
|
323
|
+
*/
|
|
324
|
+
export interface PageConfig {
|
|
325
|
+
/**
|
|
326
|
+
* 简洁版
|
|
327
|
+
*/
|
|
328
|
+
simple?: boolean
|
|
329
|
+
}
|
|
330
|
+
|
|
313
331
|
/**
|
|
314
332
|
* 事件
|
|
315
333
|
*/
|
|
@@ -349,6 +367,13 @@ export interface GridEvent extends VxeTableListeners {
|
|
|
349
367
|
* 编辑行之前事件
|
|
350
368
|
*/
|
|
351
369
|
event_editRowBefore?: (row: any, parentRow: any) => any;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* 数据加载完成事件
|
|
373
|
+
* @param datas
|
|
374
|
+
* @returns
|
|
375
|
+
*/
|
|
376
|
+
event_loaded?: (datas: any[]) => void;
|
|
352
377
|
}
|
|
353
378
|
|
|
354
379
|
/**
|
package/types/LuckySheet.d.ts
CHANGED
|
@@ -203,7 +203,7 @@ export declare class SheetApi {
|
|
|
203
203
|
/**
|
|
204
204
|
* 获取sheet页sheettag属性 19
|
|
205
205
|
*/
|
|
206
|
-
getSheetTag(sheetIndex
|
|
206
|
+
getSheetTag(sheetIndex?: number): any;
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
209
|
* 获取指定sheetIndex的信息表头表尾等
|
|
@@ -846,6 +846,10 @@ export declare class PrintApi {
|
|
|
846
846
|
* @returns
|
|
847
847
|
*/
|
|
848
848
|
getPrintContent(): Promise<string>;
|
|
849
|
+
/**
|
|
850
|
+
* 获取预览内容
|
|
851
|
+
*/
|
|
852
|
+
getPreviewContent(): Promise<string>;
|
|
849
853
|
}
|
|
850
854
|
|
|
851
855
|
export declare class GraphicsApi {
|
|
@@ -978,11 +982,13 @@ export declare class MergeApi {
|
|
|
978
982
|
|
|
979
983
|
/**
|
|
980
984
|
* 解除某个区域的合并
|
|
981
|
-
* @param
|
|
982
|
-
* @param
|
|
983
|
-
* @param
|
|
985
|
+
* @param row1
|
|
986
|
+
* @param col1
|
|
987
|
+
* @param row2
|
|
988
|
+
* @param col2
|
|
989
|
+
* @param strhandle
|
|
984
990
|
*/
|
|
985
|
-
deMerg(
|
|
991
|
+
deMerg(row1: number, col1: number, row2: number, col2: number, strhandle?: string): void;
|
|
986
992
|
|
|
987
993
|
}
|
|
988
994
|
|
package/types/Toolbar.d.ts
CHANGED
package/vite.config.ts
CHANGED
|
@@ -26,12 +26,15 @@ export default defineConfig({
|
|
|
26
26
|
"qrcodejs2",
|
|
27
27
|
"sass",
|
|
28
28
|
"view-ui-plus",
|
|
29
|
-
"vue",
|
|
30
29
|
"vue-router",
|
|
31
30
|
"vxe-table",
|
|
32
31
|
"x2js",
|
|
33
32
|
"xe-utils",
|
|
34
|
-
"xlsx"
|
|
33
|
+
"xlsx",
|
|
34
|
+
"vue",
|
|
35
|
+
"sortablejs",
|
|
36
|
+
"vue-draggable-next",
|
|
37
|
+
"@vue-office/docx"
|
|
35
38
|
],
|
|
36
39
|
output: {
|
|
37
40
|
globals: {
|