@newview/ui 1.1.99 → 1.2.1
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 +9 -0
- package/dist/newview-ui.js +52 -8
- package/dist/newview-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/newview-ui.js
CHANGED
|
@@ -32470,7 +32470,11 @@ let ToolbarInstance$1 = class ToolbarInstance2 extends BaseInstance {
|
|
|
32470
32470
|
this.setShowOptions();
|
|
32471
32471
|
}
|
|
32472
32472
|
}
|
|
32473
|
-
|
|
32473
|
+
let code = item2.name;
|
|
32474
|
+
if (code == "exportexcel") {
|
|
32475
|
+
code = "export";
|
|
32476
|
+
}
|
|
32477
|
+
return isShow && this.otherCommon.btnIsShowForOp(code);
|
|
32474
32478
|
});
|
|
32475
32479
|
/**
|
|
32476
32480
|
* 获取Icon
|
|
@@ -32739,13 +32743,23 @@ let GridColumnInstance$1 = class GridColumnInstance2 extends BaseInstance {
|
|
|
32739
32743
|
return !this.utilities.isNull(column.rowButtons) && column.rowButtons.length > 0;
|
|
32740
32744
|
});
|
|
32741
32745
|
__publicField2(this, "getIsShowRowButton", (btn, row) => {
|
|
32746
|
+
let isshow = true;
|
|
32742
32747
|
if (this.utilities.isNull(btn.isShow)) {
|
|
32743
|
-
|
|
32748
|
+
isshow = true;
|
|
32749
|
+
} else {
|
|
32750
|
+
if (typeof btn.isShow == "boolean") {
|
|
32751
|
+
isshow = btn.isShow;
|
|
32752
|
+
} else {
|
|
32753
|
+
isshow = btn.isShow(row);
|
|
32754
|
+
}
|
|
32744
32755
|
}
|
|
32745
|
-
|
|
32746
|
-
|
|
32756
|
+
let code = btn.name;
|
|
32757
|
+
if (btn.text == "编辑") {
|
|
32758
|
+
code = "edit";
|
|
32759
|
+
} else if (btn.text == "删除" || btn.text == "移除" || btn.text == "清除") {
|
|
32760
|
+
code = "delete";
|
|
32747
32761
|
}
|
|
32748
|
-
return
|
|
32762
|
+
return isshow && this.otherCommon.btnIsShowForOp(code);
|
|
32749
32763
|
});
|
|
32750
32764
|
/**
|
|
32751
32765
|
* 获取行按钮
|
|
@@ -57993,7 +58007,7 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
|
|
|
57993
58007
|
super();
|
|
57994
58008
|
__publicField2(this, "props");
|
|
57995
58009
|
__publicField2(this, "ctx");
|
|
57996
|
-
// API实例化
|
|
58010
|
+
// API实例化
|
|
57997
58011
|
// 全局属性
|
|
57998
58012
|
__publicField2(this, "xTable", ref());
|
|
57999
58013
|
//#region 查询面板
|
|
@@ -58904,6 +58918,19 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
|
|
|
58904
58918
|
}
|
|
58905
58919
|
}
|
|
58906
58920
|
});
|
|
58921
|
+
__publicField2(this, "getIsShowButton", (btn) => {
|
|
58922
|
+
let isshow = true;
|
|
58923
|
+
if (this.utilities.isNull(btn.isShow)) {
|
|
58924
|
+
isshow = true;
|
|
58925
|
+
} else {
|
|
58926
|
+
if (typeof btn.isShow == "boolean") {
|
|
58927
|
+
isshow = btn.isShow;
|
|
58928
|
+
} else {
|
|
58929
|
+
isshow = btn.isShow();
|
|
58930
|
+
}
|
|
58931
|
+
}
|
|
58932
|
+
return isshow;
|
|
58933
|
+
});
|
|
58907
58934
|
/**
|
|
58908
58935
|
* 获取添加的数据
|
|
58909
58936
|
* @param row
|
|
@@ -240577,7 +240604,7 @@ class GridInstance extends BaseInstance {
|
|
|
240577
240604
|
super();
|
|
240578
240605
|
__publicField2(this, "props");
|
|
240579
240606
|
__publicField2(this, "ctx");
|
|
240580
|
-
// API实例化
|
|
240607
|
+
// API实例化
|
|
240581
240608
|
// 全局属性
|
|
240582
240609
|
__publicField2(this, "xTable", ref());
|
|
240583
240610
|
//#region 查询面板
|
|
@@ -241488,6 +241515,19 @@ class GridInstance extends BaseInstance {
|
|
|
241488
241515
|
}
|
|
241489
241516
|
}
|
|
241490
241517
|
});
|
|
241518
|
+
__publicField2(this, "getIsShowButton", (btn) => {
|
|
241519
|
+
let isshow = true;
|
|
241520
|
+
if (this.utilities.isNull(btn.isShow)) {
|
|
241521
|
+
isshow = true;
|
|
241522
|
+
} else {
|
|
241523
|
+
if (typeof btn.isShow == "boolean") {
|
|
241524
|
+
isshow = btn.isShow;
|
|
241525
|
+
} else {
|
|
241526
|
+
isshow = btn.isShow();
|
|
241527
|
+
}
|
|
241528
|
+
}
|
|
241529
|
+
return isshow;
|
|
241530
|
+
});
|
|
241491
241531
|
/**
|
|
241492
241532
|
* 获取添加的数据
|
|
241493
241533
|
* @param row
|
|
@@ -243908,7 +243948,11 @@ class ToolbarInstance extends BaseInstance {
|
|
|
243908
243948
|
this.setShowOptions();
|
|
243909
243949
|
}
|
|
243910
243950
|
}
|
|
243911
|
-
|
|
243951
|
+
let code = item2.name;
|
|
243952
|
+
if (code == "exportexcel") {
|
|
243953
|
+
code = "export";
|
|
243954
|
+
}
|
|
243955
|
+
return isShow && this.otherCommon.btnIsShowForOp(code);
|
|
243912
243956
|
});
|
|
243913
243957
|
/**
|
|
243914
243958
|
* 获取Icon
|