@newview/ui 1.1.20 → 1.1.21
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 +14 -7
- package/dist/newview-ui.js +3292 -23641
- package/dist/newview-ui.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -6
- package/types/Grid.d.ts +23 -14
- package/types/NvModal.ts +5 -0
- package/types/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newview/ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.21",
|
|
4
4
|
"author": "newview",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/newview-ui.umd.cjs",
|
|
@@ -31,16 +31,15 @@
|
|
|
31
31
|
"build-watch": "vite build --watch",
|
|
32
32
|
"type-check": "vue-tsc --noEmit",
|
|
33
33
|
"p": "npm publish --access public",
|
|
34
|
-
"build-p":"run-p type-check build-only p"
|
|
34
|
+
"build-p": "run-p type-check build-only p"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@newview/base-vue": "^1.1.0",
|
|
38
38
|
"@newview/infrastructure": "^1.1.0",
|
|
39
39
|
"@newview/tools": "^1.1.0",
|
|
40
40
|
"@vue-office/docx": "1.3.0",
|
|
41
|
-
"ace-builds": "
|
|
42
|
-
"axios": "1.
|
|
43
|
-
"bin-editor-next": "^1.1.0",
|
|
41
|
+
"ace-builds": "1.23.1",
|
|
42
|
+
"axios": "1.6.2",
|
|
44
43
|
"dayjs": "1.11.7",
|
|
45
44
|
"docx": "8.2.2",
|
|
46
45
|
"jquery": "3.6.3",
|
|
@@ -73,4 +72,4 @@
|
|
|
73
72
|
"vite": "4.0.0",
|
|
74
73
|
"vue-tsc": "1.0.11"
|
|
75
74
|
}
|
|
76
|
-
}
|
|
75
|
+
}
|
package/types/Grid.d.ts
CHANGED
|
@@ -246,11 +246,11 @@ export interface GridFilterProp {
|
|
|
246
246
|
/**
|
|
247
247
|
* 下拉列表数据
|
|
248
248
|
*/
|
|
249
|
-
options?:FilterSelectOptionProp[]
|
|
249
|
+
options?: FilterSelectOptionProp[]
|
|
250
250
|
/**
|
|
251
251
|
* 下拉选项是否多选
|
|
252
252
|
*/
|
|
253
|
-
multiple?:boolean
|
|
253
|
+
multiple?: boolean
|
|
254
254
|
|
|
255
255
|
}
|
|
256
256
|
|
|
@@ -274,6 +274,10 @@ export interface GridSetting {
|
|
|
274
274
|
* 是否为Tree
|
|
275
275
|
*/
|
|
276
276
|
isTree?: boolean;
|
|
277
|
+
/**
|
|
278
|
+
* 空数据提示语
|
|
279
|
+
*/
|
|
280
|
+
emptyText?: string;
|
|
277
281
|
/**
|
|
278
282
|
* 是否显示孩子节点
|
|
279
283
|
*/
|
|
@@ -445,20 +449,25 @@ export interface GridEvent extends VxeTableListeners {
|
|
|
445
449
|
* @returns
|
|
446
450
|
*/
|
|
447
451
|
event_loaded?: (datas: any[]) => void;
|
|
448
|
-
|
|
452
|
+
|
|
449
453
|
/**
|
|
450
454
|
* 表头筛选项发生改变事件
|
|
451
455
|
* @param param
|
|
452
456
|
* @returns
|
|
453
457
|
*/
|
|
454
|
-
event_filterChange?: (param,param2) => void;
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
458
|
+
event_filterChange?: (param, param2) => void;
|
|
459
|
+
/**
|
|
460
|
+
* 合并行或列
|
|
461
|
+
* @param param0
|
|
462
|
+
* @returns
|
|
463
|
+
*/
|
|
460
464
|
|
|
461
465
|
event_rowspanMethod?: ({ row, _rowIndex, column, visibleData }) => void
|
|
466
|
+
/**
|
|
467
|
+
* 页码改变前事件
|
|
468
|
+
* @returns
|
|
469
|
+
*/
|
|
470
|
+
event_pageChangeBefore?: () => boolean;
|
|
462
471
|
}
|
|
463
472
|
|
|
464
473
|
/**
|
|
@@ -740,13 +749,13 @@ export declare class GridInstance extends BaseInstance {
|
|
|
740
749
|
* @param field
|
|
741
750
|
* @param options
|
|
742
751
|
*/
|
|
743
|
-
setFilter(field,options): void
|
|
752
|
+
setFilter(field, options): void
|
|
744
753
|
|
|
745
754
|
/**
|
|
746
755
|
* 根据表头筛选数据获取拼接好的查询条件
|
|
747
756
|
* @param filterParam
|
|
748
757
|
*/
|
|
749
|
-
getHeaderFilter(filterParam):void
|
|
758
|
+
getHeaderFilter(filterParam): void
|
|
750
759
|
|
|
751
760
|
/**
|
|
752
761
|
* 加载表头筛选数据
|
|
@@ -757,15 +766,15 @@ export declare class GridInstance extends BaseInstance {
|
|
|
757
766
|
/**
|
|
758
767
|
* 正在执行方法中遮罩配置
|
|
759
768
|
*/
|
|
760
|
-
export interface doMethodLoadingType{
|
|
769
|
+
export interface doMethodLoadingType {
|
|
761
770
|
/**
|
|
762
771
|
* 是否显示正在执行遮罩
|
|
763
772
|
*/
|
|
764
|
-
show?:boolean;
|
|
773
|
+
show?: boolean;
|
|
765
774
|
/**
|
|
766
775
|
* 正在执行遮罩文本内容
|
|
767
776
|
*/
|
|
768
|
-
text?:string
|
|
777
|
+
text?: string
|
|
769
778
|
}
|
|
770
779
|
|
|
771
780
|
import type { DefineComponent } from 'vue';
|
package/types/NvModal.ts
ADDED