@newview/ui 1.2.0 → 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 +4 -0
- package/dist/newview-ui.js +10 -6
- 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
|
|
@@ -58849,7 +58853,6 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
|
|
|
58849
58853
|
return;
|
|
58850
58854
|
}
|
|
58851
58855
|
for (const item2 of toolbars) {
|
|
58852
|
-
item2.isShow = this.getIsShowButton(item2) && this.otherCommon.btnIsShowForOp(item2.name);
|
|
58853
58856
|
switch (item2.name) {
|
|
58854
58857
|
case "add":
|
|
58855
58858
|
if (this.utilities.isNull(item2.onclick)) {
|
|
@@ -58897,7 +58900,6 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
|
|
|
58897
58900
|
}
|
|
58898
58901
|
break;
|
|
58899
58902
|
case "exportexcel":
|
|
58900
|
-
item2.isShow = this.getIsShowButton(item2) && this.otherCommon.btnIsShowForOp("export");
|
|
58901
58903
|
if (this.utilities.isNull(item2.onclick)) {
|
|
58902
58904
|
item2.onclick = () => {
|
|
58903
58905
|
this.doExportExcel();
|
|
@@ -241448,7 +241450,6 @@ class GridInstance extends BaseInstance {
|
|
|
241448
241450
|
return;
|
|
241449
241451
|
}
|
|
241450
241452
|
for (const item2 of toolbars) {
|
|
241451
|
-
item2.isShow = this.getIsShowButton(item2) && this.otherCommon.btnIsShowForOp(item2.name);
|
|
241452
241453
|
switch (item2.name) {
|
|
241453
241454
|
case "add":
|
|
241454
241455
|
if (this.utilities.isNull(item2.onclick)) {
|
|
@@ -241496,7 +241497,6 @@ class GridInstance extends BaseInstance {
|
|
|
241496
241497
|
}
|
|
241497
241498
|
break;
|
|
241498
241499
|
case "exportexcel":
|
|
241499
|
-
item2.isShow = this.getIsShowButton(item2) && this.otherCommon.btnIsShowForOp("export");
|
|
241500
241500
|
if (this.utilities.isNull(item2.onclick)) {
|
|
241501
241501
|
item2.onclick = () => {
|
|
241502
241502
|
this.doExportExcel();
|
|
@@ -243948,7 +243948,11 @@ class ToolbarInstance extends BaseInstance {
|
|
|
243948
243948
|
this.setShowOptions();
|
|
243949
243949
|
}
|
|
243950
243950
|
}
|
|
243951
|
-
|
|
243951
|
+
let code = item2.name;
|
|
243952
|
+
if (code == "exportexcel") {
|
|
243953
|
+
code = "export";
|
|
243954
|
+
}
|
|
243955
|
+
return isShow && this.otherCommon.btnIsShowForOp(code);
|
|
243952
243956
|
});
|
|
243953
243957
|
/**
|
|
243954
243958
|
* 获取Icon
|