@newview/ui 1.1.19 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newview/ui",
3
- "version": "1.1.19",
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": "^1.23.1",
42
- "axios": "1.5.0",
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
@@ -242,15 +242,15 @@ export interface GridFilterProp {
242
242
  /**
243
243
  * 筛选类型
244
244
  */
245
- type: "select" | "input" | "date" | "month" | "year" | "time" | "datetime" | "daterange";
245
+ type: "select" | "input" | "date" | "month" | "year" | "time" | "datetime" | "daterange" | "numberrange";
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
  */
@@ -350,6 +354,10 @@ export interface GridSetting {
350
354
  * 表头筛选配置
351
355
  */
352
356
  filterConfig?: VxeTablePropTypes.FilterConfig;
357
+ /**
358
+ * 复选框配置项
359
+ */
360
+ checkboxConfig?: VxeTablePropTypes.CheckboxConfig;
353
361
  }
354
362
 
355
363
  /**
@@ -441,20 +449,25 @@ export interface GridEvent extends VxeTableListeners {
441
449
  * @returns
442
450
  */
443
451
  event_loaded?: (datas: any[]) => void;
444
-
452
+
445
453
  /**
446
454
  * 表头筛选项发生改变事件
447
455
  * @param param
448
456
  * @returns
449
457
  */
450
- event_filterChange?: (param,param2) => void;
451
- /**
452
- * 合并行或列
453
- * @param param0
454
- * @returns
455
- */
458
+ event_filterChange?: (param, param2) => void;
459
+ /**
460
+ * 合并行或列
461
+ * @param param0
462
+ * @returns
463
+ */
456
464
 
457
465
  event_rowspanMethod?: ({ row, _rowIndex, column, visibleData }) => void
466
+ /**
467
+ * 页码改变前事件
468
+ * @returns
469
+ */
470
+ event_pageChangeBefore?: () => boolean;
458
471
  }
459
472
 
460
473
  /**
@@ -730,6 +743,38 @@ export declare class GridInstance extends BaseInstance {
730
743
  * 校验数据
731
744
  */
732
745
  validate(): Promise<boolean>;
746
+
747
+ /**
748
+ * 设置表头筛选条件
749
+ * @param field
750
+ * @param options
751
+ */
752
+ setFilter(field, options): void
753
+
754
+ /**
755
+ * 根据表头筛选数据获取拼接好的查询条件
756
+ * @param filterParam
757
+ */
758
+ getHeaderFilter(filterParam): void
759
+
760
+ /**
761
+ * 加载表头筛选数据
762
+ * @param _queryWrapper
763
+ */
764
+ loadDataByHeaderFilter(_queryWrapper: QueryWrapper): void;
765
+ }
766
+ /**
767
+ * 正在执行方法中遮罩配置
768
+ */
769
+ export interface doMethodLoadingType {
770
+ /**
771
+ * 是否显示正在执行遮罩
772
+ */
773
+ show?: boolean;
774
+ /**
775
+ * 正在执行遮罩文本内容
776
+ */
777
+ text?: string
733
778
  }
734
779
 
735
780
  import type { DefineComponent } from 'vue';
@@ -739,4 +784,8 @@ export declare const Grid: DefineComponent<{
739
784
  * Gird 配置项
740
785
  */
741
786
  option?: GridOptions;
787
+ /**
788
+ * 正在执行方法中遮罩配置
789
+ */
790
+ doMethodLoading?: doMethodLoadingType;
742
791
  }>
@@ -0,0 +1,5 @@
1
+ import type { DefineComponent } from 'vue';
2
+
3
+ export declare const FilePreview: DefineComponent<{
4
+
5
+ }>
package/types/index.d.ts CHANGED
@@ -11,5 +11,6 @@ export * from "./SearchCom"
11
11
  export * from "./Toolbar"
12
12
  export * from "./HtmlJson"
13
13
  export * from "./DocxTemplat"
14
+ export * from "./NvModal"
14
15
 
15
16
  export const install: (app: App, options?: any) => void;
package/vite.config.ts CHANGED
@@ -36,13 +36,6 @@ export default defineConfig({
36
36
  "@vue-office/docx",
37
37
  "vuedraggable",
38
38
  "sortablejs",
39
- "ace-builds",
40
- "axios",
41
- "bin-editor-next",
42
- "docx",
43
- "vue-demi",
44
- "vue-draggable-next"
45
-
46
39
  ],
47
40
  output: {
48
41
  globals: {