@dt-frames/ui 1.0.46 → 1.0.48

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.
@@ -7,7 +7,7 @@
7
7
  "EDIT": "Edit ",
8
8
  "EMPTY": "No Selected Data Yet!",
9
9
  "MULTIFY_DELETE_CONFIRM": "Confirm Batch Delete",
10
- "CONFIRM_MULTIFY_DELETE": "Confirm to Batch Delete Selected Data?",
10
+ "CONFIRM_MULTIFY_DELETE": "Confirm to Batch Delete of {length} Selected Data?",
11
11
  "ADVANCED": "Retract",
12
12
  "EXPAND": "Expand",
13
13
  "SELECT_ICON": "Select Icon ",
@@ -23,7 +23,7 @@
23
23
  "FULLSCREEN": "Full Screen",
24
24
  "SAVE": "Save",
25
25
  "CLOSE": "Close",
26
- "ADD_SUCCESS": "Successfully Added!",
26
+ "ADD_SUCCESS": "Successfully Added!",
27
27
  "UPDATE_SUCCESS": "Successfully Updated Data!",
28
28
  "MULTIFY": "Batch",
29
29
  "DELETE_SUCCESS": "Successfully Deleted!",
@@ -7,7 +7,7 @@
7
7
  "EDIT": "编辑",
8
8
  "EMPTY": "暂无选中的数据!",
9
9
  "MULTIFY_DELETE_CONFIRM": "批量删除确认",
10
- "CONFIRM_MULTIFY_DELETE": "确认要批量删除选中的数据?",
10
+ "CONFIRM_MULTIFY_DELETE": "确认要批量删除选中的{length}条数据?",
11
11
  "ADVANCED": "收起",
12
12
  "EXPAND": "展开",
13
13
  "SELECT_ICON": "选择字体图标",
package/es/index.js CHANGED
@@ -6910,7 +6910,11 @@ function useDownload(exportUrl, exportName) {
6910
6910
  total.push(rowData);
6911
6911
  return total;
6912
6912
  }, []);
6913
- export2Excel([extraData, titles].concat(content), exportName2);
6913
+ let excelHeader = [titles];
6914
+ if (extraData && extraData.length > 0) {
6915
+ excelHeader = [...extraData, titles];
6916
+ }
6917
+ export2Excel(excelHeader.concat(content), exportName2);
6914
6918
  }
6915
6919
  function export2Excel(data = [], exportName2 = "") {
6916
6920
  const worksheet = xlsx.utils.aoa_to_sheet(data);
@@ -7286,7 +7290,9 @@ function useCurd(curdOpt) {
7286
7290
  if (curd && curd.onDeletes && isFunction(curd.onDeletes)) {
7287
7291
  confirm({
7288
7292
  title: t("MULTIFY_DELETE_CONFIRM"),
7289
- content: t("CONFIRM_MULTIFY_DELETE"),
7293
+ content: t("CONFIRM_MULTIFY_DELETE", {
7294
+ length: ids.length
7295
+ }),
7290
7296
  iconType: "warning",
7291
7297
  onOk() {
7292
7298
  curd.onDeletes(ids);
@@ -5,6 +5,7 @@
5
5
  @error-color: #ED6F6F;
6
6
  @header-bg-color: #fff;
7
7
  @header-bg-dark-color: #3c4252;
8
+ // #001529
8
9
 
9
10
  @header-height: 48px;
10
11
  @layout-header-fixed-z-index: 10;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-frames/ui",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "keywords": [
5
5
  "ui",
6
6
  "dt-ui"