@pisell/materials 2.2.2 → 2.2.4

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.
Files changed (133) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +13 -13
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +12 -12
  11. package/es/components/MultipleContainersSortList/index.d.ts +5 -5
  12. package/es/components/MultipleContainersSortList/index.js +10 -10
  13. package/es/components/Pagination/index.d.ts +1 -1
  14. package/es/components/filter/components/FilterItem/index.js +5 -2
  15. package/es/components/filter/components/QuickFilter/index.js +2 -1
  16. package/es/components/filter/types.d.ts +1 -0
  17. package/es/components/sort/index.js +3 -1
  18. package/es/components/sort/index.less +3 -0
  19. package/es/components/sort/types.d.ts +1 -0
  20. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +7 -0
  21. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.js +143 -0
  22. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.less +29 -0
  23. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +7 -0
  24. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.js +87 -0
  25. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +8 -0
  26. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.js +41 -0
  27. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.less +5 -0
  28. package/es/components/table/Actions/component/ExportImport/components/ImportLog/Detail.d.ts +4 -0
  29. package/es/components/table/Actions/component/ExportImport/components/ImportLog/Detail.js +97 -0
  30. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +7 -0
  31. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.js +137 -0
  32. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.less +48 -0
  33. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +10 -0
  34. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.js +149 -0
  35. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.less +97 -0
  36. package/es/components/table/Actions/component/ExportImport/index.d.ts +8 -0
  37. package/es/components/table/Actions/component/ExportImport/index.js +236 -0
  38. package/es/components/table/Actions/component/ExportImport/index.less +194 -0
  39. package/es/components/table/Actions/component/ExportImport/utils/date.d.ts +8 -0
  40. package/es/components/table/Actions/component/ExportImport/utils/date.js +19 -0
  41. package/es/components/table/Actions/component/ExportImport/utils/download.d.ts +3 -0
  42. package/es/components/table/Actions/component/ExportImport/utils/download.js +39 -0
  43. package/es/components/table/Actions/component/ExportImport/utils/file.d.ts +7 -0
  44. package/es/components/table/Actions/component/ExportImport/utils/file.js +21 -0
  45. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +2 -2
  46. package/es/components/table/Actions/component/Group/PopoverContent.js +11 -7
  47. package/es/components/table/Actions/index.d.ts +3 -2
  48. package/es/components/table/Actions/index.js +12 -8
  49. package/es/components/table/BasicTable/index.js +11 -1
  50. package/es/components/table/Table/index.js +6 -0
  51. package/es/components/table/Table/utils.d.ts +1 -1
  52. package/es/components/table/hooks/useTableSetting.d.ts +2 -1
  53. package/es/components/table/hooks/useTableSetting.js +2 -1
  54. package/es/components/table/index.js +15 -13
  55. package/es/components/table/model.d.ts +2 -0
  56. package/es/components/table/model.js +15 -1
  57. package/es/components/table/serve.d.ts +11 -0
  58. package/es/components/table/serve.js +38 -0
  59. package/es/components/table/status.d.ts +19 -0
  60. package/es/components/table/status.js +26 -0
  61. package/es/components/table/types.d.ts +21 -0
  62. package/es/components/table/utils.d.ts +15 -0
  63. package/es/components/table/utils.js +26 -0
  64. package/es/components/virtual-keyboard/Time/index.js +1 -1
  65. package/es/locales/en-US.d.ts +46 -0
  66. package/es/locales/en-US.js +59 -1
  67. package/es/locales/zh-CN.d.ts +46 -0
  68. package/es/locales/zh-CN.js +59 -1
  69. package/es/locales/zh-TW.d.ts +46 -0
  70. package/es/locales/zh-TW.js +59 -1
  71. package/lib/components/MultipleContainersSortList/index.d.ts +5 -5
  72. package/lib/components/MultipleContainersSortList/index.js +16 -11
  73. package/lib/components/Pagination/index.d.ts +1 -1
  74. package/lib/components/filter/components/FilterItem/index.js +11 -2
  75. package/lib/components/filter/components/QuickFilter/index.js +2 -1
  76. package/lib/components/filter/types.d.ts +1 -0
  77. package/lib/components/sort/index.js +4 -9
  78. package/lib/components/sort/index.less +3 -0
  79. package/lib/components/sort/types.d.ts +1 -0
  80. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +7 -0
  81. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.js +150 -0
  82. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.less +29 -0
  83. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +7 -0
  84. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.js +78 -0
  85. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +8 -0
  86. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.js +60 -0
  87. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.less +5 -0
  88. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/Detail.d.ts +4 -0
  89. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/Detail.js +117 -0
  90. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +7 -0
  91. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.js +141 -0
  92. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.less +48 -0
  93. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +10 -0
  94. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.js +124 -0
  95. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.less +97 -0
  96. package/lib/components/table/Actions/component/ExportImport/index.d.ts +8 -0
  97. package/lib/components/table/Actions/component/ExportImport/index.js +213 -0
  98. package/lib/components/table/Actions/component/ExportImport/index.less +194 -0
  99. package/lib/components/table/Actions/component/ExportImport/utils/date.d.ts +8 -0
  100. package/lib/components/table/Actions/component/ExportImport/utils/date.js +49 -0
  101. package/lib/components/table/Actions/component/ExportImport/utils/download.d.ts +3 -0
  102. package/lib/components/table/Actions/component/ExportImport/utils/download.js +62 -0
  103. package/lib/components/table/Actions/component/ExportImport/utils/file.d.ts +7 -0
  104. package/lib/components/table/Actions/component/ExportImport/utils/file.js +55 -0
  105. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +2 -2
  106. package/lib/components/table/Actions/component/Group/PopoverContent.js +2 -1
  107. package/lib/components/table/Actions/index.d.ts +3 -2
  108. package/lib/components/table/Actions/index.js +11 -7
  109. package/lib/components/table/BasicTable/index.js +9 -0
  110. package/lib/components/table/Table/index.js +6 -0
  111. package/lib/components/table/Table/utils.d.ts +1 -1
  112. package/lib/components/table/hooks/useTableSetting.d.ts +2 -1
  113. package/lib/components/table/hooks/useTableSetting.js +2 -1
  114. package/lib/components/table/index.js +14 -12
  115. package/lib/components/table/model.d.ts +2 -0
  116. package/lib/components/table/model.js +11 -1
  117. package/lib/components/table/serve.d.ts +11 -0
  118. package/lib/components/table/serve.js +41 -0
  119. package/lib/components/table/status.d.ts +19 -0
  120. package/lib/components/table/status.js +55 -0
  121. package/lib/components/table/types.d.ts +21 -0
  122. package/lib/components/table/utils.d.ts +15 -0
  123. package/lib/components/table/utils.js +40 -0
  124. package/lib/components/virtual-keyboard/Time/index.js +1 -1
  125. package/lib/locales/en-US.d.ts +46 -0
  126. package/lib/locales/en-US.js +51 -1
  127. package/lib/locales/zh-CN.d.ts +46 -0
  128. package/lib/locales/zh-CN.js +51 -1
  129. package/lib/locales/zh-TW.d.ts +46 -0
  130. package/lib/locales/zh-TW.js +51 -1
  131. package/lowcode/table/meta.ts +117 -1
  132. package/lowcode/table/snippets.ts +14 -0
  133. package/package.json +3 -3
@@ -73,5 +73,55 @@ var zh_CN_default = {
73
73
  "batch-editor-quick-edit": "快速编辑",
74
74
  "batch-editor-what-price": "什么价格",
75
75
  "batch-editor-quick-edit-title": (product, num) => `您已选择 ${product} 等${num}件商品`,
76
- "batch-editor-quick-edit-title-2": (product) => `您已选择 ${product}`
76
+ "batch-editor-quick-edit-title-2": (product) => `您已选择 ${product}`,
77
+ // 导出
78
+ "table-action-export-import-export-success": "导出成功!",
79
+ "table-action-export-import-button": "导出",
80
+ "table-action-export-import-export-range": "导出范围",
81
+ "table-action-export-import-current-page": "当前页面",
82
+ "table-action-export-import-all-records": "所有记录",
83
+ "table-action-export-import-selected-records": "所选记录",
84
+ "table-action-export-import-selected": "已选",
85
+ "table-action-export-import-item": (length) => `${length} 条`,
86
+ "table-action-export-import-product": "导出商品",
87
+ // 导入
88
+ "table-action-export-import-table-text-input-title": "单击或拖动文件到该区域进行上传",
89
+ "table-action-export-import-table-text-input-describe": "支持单个上传。严禁上传公司数据或其他band文件。",
90
+ "table-action-export-import-table-error-file": "仅支持上传.csv,.xls,.xlsx格式的文件!",
91
+ "table-action-export-import-import-success": "导入成功!",
92
+ "table-action-export-import-import-phone": "手机相同的是否覆盖",
93
+ "table-action-export-import-table-success-download": "下载成功",
94
+ "table-action-export-import-table-textimport-product": "导入商品",
95
+ "table-action-export-import-table-text-product-template": "导入模板",
96
+ "table-action-export-import-table-text-click-download": "点击下载",
97
+ "table-action-export-import-table-text-edit-file": "替换文件",
98
+ "table-action-export-import-button-import": "导入",
99
+ "table-action-export-import-cancel": "取消",
100
+ "table-action-export-import-file-completed": "已完成",
101
+ "table-action-export-import-file-processing": "处理中",
102
+ "table-action-export-import-file-pending": "待处理",
103
+ "table-action-export-import-file-refresh": "刷新",
104
+ "table-action-export-import-export-title": "导出文件",
105
+ "table-action-export-import-file-hint": "仅显示最近的10次导出记录",
106
+ "table-action-export-import-file-name": "导出文件",
107
+ "table-action-export-import-file-content": "导出内容",
108
+ "table-action-export-import-file-content-all": "所有",
109
+ "table-action-export-import-file-content-part": "所选",
110
+ "table-action-export-import-file-status": "状态",
111
+ "table-action-export-import-file-account": "操作人",
112
+ "table-action-export-import-file-created": "操作时间",
113
+ "table-action-export-import-file-record": (length) => `${length} 条记录`,
114
+ // 导入日志
115
+ "table-action-export-import-import-title": "导入日志",
116
+ "table-action-export-import-log-hint": "仅显示最近的10次导入记录",
117
+ "table-action-export-import-log-name": "导入文件",
118
+ "table-action-export-import-log-result": "导入结果",
119
+ "table-action-export-import-log-ok": (num) => `成功 ${num} 条`,
120
+ "table-action-export-import-log-err": (num) => `, 失败 ${num} 条`,
121
+ "table-action-export-import-log-check": `查看原因`,
122
+ // 导入详情
123
+ "table-action-export-import-log-detail-title": "导入详情",
124
+ "table-action-export-import-log-err-log": "失败日志",
125
+ "table-action-export-import-log-copy": "复制",
126
+ "table-action-export-import-table-success-copy": "复制成功"
77
127
  };
@@ -50,5 +50,51 @@ declare const _default: {
50
50
  'batch-editor-quick-edit': string;
51
51
  'batch-editor-quick-edit-title': (product: string, num: string) => string;
52
52
  'batch-editor-quick-edit-title-2': (product: string) => string;
53
+ 'table-action-export-import-export-success': string;
54
+ 'table-action-export-import-button': string;
55
+ 'table-action-export-import-export-range': string;
56
+ 'table-action-export-import-current-page': string;
57
+ 'table-action-export-import-all-records': string;
58
+ 'table-action-export-import-selected-records': string;
59
+ 'table-action-export-import-selected': string;
60
+ 'table-action-export-import-item': (length: number) => string;
61
+ 'table-action-export-import-product': string;
62
+ 'table-action-export-import-table-text-input-title': string;
63
+ 'table-action-export-import-table-text-input-describe': string;
64
+ 'table-action-export-import-table-error-file': string;
65
+ 'table-action-export-import-import-success': string;
66
+ 'table-action-export-import-import-phone': string;
67
+ 'table-action-export-import-table-success-download': string;
68
+ 'table-action-export-import-table-textimport-product': string;
69
+ 'table-action-export-import-table-text-product-template': string;
70
+ 'table-action-export-import-table-text-click-download': string;
71
+ 'table-action-export-import-table-text-edit-file': string;
72
+ 'table-action-export-import-button-import': string;
73
+ 'table-action-export-import-cancel': string;
74
+ 'table-action-export-import-file-completed': string;
75
+ 'table-action-export-import-file-processing': string;
76
+ 'table-action-export-import-file-pending': string;
77
+ 'table-action-export-import-file-refresh': string;
78
+ 'table-action-export-import-export-title': string;
79
+ 'table-action-export-import-file-hint': string;
80
+ 'table-action-export-import-file-name': string;
81
+ 'table-action-export-import-file-content': string;
82
+ 'table-action-export-import-file-content-all': string;
83
+ 'table-action-export-import-file-content-part': string;
84
+ 'table-action-export-import-file-status': string;
85
+ 'table-action-export-import-file-account': string;
86
+ 'table-action-export-import-file-created': string;
87
+ 'table-action-export-import-file-record': (length: number) => string;
88
+ 'table-action-export-import-import-title': string;
89
+ 'table-action-export-import-log-hint': string;
90
+ 'table-action-export-import-log-name': string;
91
+ 'table-action-export-import-log-result': string;
92
+ 'table-action-export-import-log-ok': (num: number) => string;
93
+ 'table-action-export-import-log-err': (num: number) => string;
94
+ 'table-action-export-import-log-check': string;
95
+ 'table-action-export-import-log-detail-title': string;
96
+ 'table-action-export-import-log-err-log': string;
97
+ 'table-action-export-import-log-copy': string;
98
+ 'table-action-export-import-table-success-copy': string;
53
99
  };
54
100
  export default _default;
@@ -73,5 +73,55 @@ var zh_TW_default = {
73
73
  "batch-editor-what-price": "什麼價格",
74
74
  "batch-editor-quick-edit": "快速編輯",
75
75
  "batch-editor-quick-edit-title": (product, num) => `您已選擇 ${product} 等${num}件產品`,
76
- "batch-editor-quick-edit-title-2": (product) => `您已選擇 ${product}`
76
+ "batch-editor-quick-edit-title-2": (product) => `您已選擇 ${product}`,
77
+ // 导出
78
+ "table-action-export-import-export-success": "導出成功!",
79
+ "table-action-export-import-button": "匯出",
80
+ "table-action-export-import-export-range": "導出範圍",
81
+ "table-action-export-import-current-page": "當前頁面",
82
+ "table-action-export-import-all-records": "所有記錄",
83
+ "table-action-export-import-selected-records": "所選記錄",
84
+ "table-action-export-import-selected": "已選",
85
+ "table-action-export-import-item": (length) => `${length} 條`,
86
+ "table-action-export-import-product": "導出商品",
87
+ // 导入
88
+ "table-action-export-import-table-text-input-title": "單擊或拖動文件到該區域進行上傳",
89
+ "table-action-export-import-table-text-input-describe": "支持單個上傳。嚴禁上傳公司數據或其他band文件。",
90
+ "table-action-export-import-table-error-file": "僅支持上傳.csv,.xls,.xlsx格式的文件!",
91
+ "table-action-export-import-import-success": "導入成功!",
92
+ "table-action-export-import-import-phone": "手機相同的是否覆蓋",
93
+ "table-action-export-import-table-success-download": "下載成功",
94
+ "table-action-export-import-table-textimport-product": "導入商品",
95
+ "table-action-export-import-table-text-product-template": "導入模板",
96
+ "table-action-export-import-table-text-click-download": "點擊下載",
97
+ "table-action-export-import-table-text-edit-file": "替換文件",
98
+ "table-action-export-import-button-import": "導入",
99
+ "table-action-export-import-cancel": "取消",
100
+ "table-action-export-import-file-completed": "已完成",
101
+ "table-action-export-import-file-processing": "處理中",
102
+ "table-action-export-import-file-pending": "待處理",
103
+ "table-action-export-import-file-refresh": "刷新",
104
+ "table-action-export-import-export-title": "導出文件",
105
+ "table-action-export-import-file-hint": "僅顯示最近的10次導出記錄",
106
+ "table-action-export-import-file-name": "導出文件",
107
+ "table-action-export-import-file-content": "導出內容",
108
+ "table-action-export-import-file-content-all": "所有",
109
+ "table-action-export-import-file-content-part": "所選",
110
+ "table-action-export-import-file-status": "狀態",
111
+ "table-action-export-import-file-account": "操作人",
112
+ "table-action-export-import-file-created": "操作時間",
113
+ "table-action-export-import-file-record": (length) => `${length} 條記錄`,
114
+ // 导入日志
115
+ "table-action-export-import-import-title": "導入日誌",
116
+ "table-action-export-import-log-hint": "僅顯示最近的10次導入記錄",
117
+ "table-action-export-import-log-name": "導入文件",
118
+ "table-action-export-import-log-result": "導入結果",
119
+ "table-action-export-import-log-ok": (num) => `成功 ${num} 條`,
120
+ "table-action-export-import-log-err": (num) => `, 失败 ${num} 條`,
121
+ "table-action-export-import-log-check": `查看原因`,
122
+ // 导入详情
123
+ "table-action-export-import-log-detail-title": "導入詳情",
124
+ "table-action-export-import-log-err-log": "失敗日誌",
125
+ "table-action-export-import-log-copy": "復製",
126
+ "table-action-export-import-table-success-copy": "復製成功"
77
127
  };
@@ -1518,6 +1518,16 @@ export default {
1518
1518
  setter: "BoolSetter",
1519
1519
  defaultValue: false,
1520
1520
  },
1521
+ {
1522
+ name: "isHidden",
1523
+ title: {
1524
+ label: "是否隐藏",
1525
+ tip: "开启时,当前项展示, 关闭时,当前项隐藏",
1526
+ },
1527
+ propType: "bool",
1528
+ setter: "BoolSetter",
1529
+ defaultValue: false,
1530
+ },
1521
1531
  {
1522
1532
  name: "columnKey",
1523
1533
  title: {
@@ -1586,6 +1596,7 @@ export default {
1586
1596
  name: "",
1587
1597
  columnKey: "",
1588
1598
  isCustom: false,
1599
+ isHidden: false
1589
1600
  },
1590
1601
  },
1591
1602
  },
@@ -1690,7 +1701,7 @@ export default {
1690
1701
  componentName: "SelectSetter",
1691
1702
  mode: "single",
1692
1703
  props: (target) => {
1693
- console.log(target.parent.parent.parent,this,'target.parent.parent.parent\n' +
1704
+ console.log(target.parent.parent.parent, this, 'target.parent.parent.parent\n' +
1694
1705
  ' .getPropValue("columns")')
1695
1706
  const fieldsKey = target.parent.parent.parent
1696
1707
  .getPropValue("filter.list")
@@ -1810,6 +1821,16 @@ export default {
1810
1821
  setter: "BoolSetter",
1811
1822
  defaultValue: false,
1812
1823
  },
1824
+ {
1825
+ name: "isHidden",
1826
+ title: {
1827
+ label: "是否隐藏",
1828
+ tip: "开启时,当前项展示, 关闭时,当前项隐藏",
1829
+ },
1830
+ propType: "bool",
1831
+ setter: "BoolSetter",
1832
+ defaultValue: false,
1833
+ },
1813
1834
  {
1814
1835
  name: "other",
1815
1836
  title: {
@@ -1828,6 +1849,7 @@ export default {
1828
1849
  key: "name",
1829
1850
  columnKey: "",
1830
1851
  isCustom: false,
1852
+ isHidden: false
1831
1853
  },
1832
1854
  },
1833
1855
  },
@@ -1986,6 +2008,16 @@ export default {
1986
2008
  return target.parent.getPropValue("isCustom");
1987
2009
  },
1988
2010
  },
2011
+ {
2012
+ name: "isHidden",
2013
+ title: {
2014
+ label: "是否隐藏",
2015
+ tip: "开启时,当前项展示, 关闭时,当前项隐藏",
2016
+ },
2017
+ propType: "bool",
2018
+ setter: "BoolSetter",
2019
+ defaultValue: false,
2020
+ },
1989
2021
  {
1990
2022
  name: "type",
1991
2023
  title: { label: "字段类型", tip: "所排序的字段类型" },
@@ -2021,6 +2053,7 @@ export default {
2021
2053
  type: "date",
2022
2054
  columnKey: "",
2023
2055
  isCustom: false,
2056
+ isHidden: false
2024
2057
  },
2025
2058
  },
2026
2059
  },
@@ -2028,6 +2061,69 @@ export default {
2028
2061
  },
2029
2062
  ],
2030
2063
  },
2064
+ {
2065
+ title: { label: "导入导出", tip: "表单的导入导出" },
2066
+ display: "block",
2067
+ type: "group",
2068
+ items: [
2069
+ {
2070
+ name: "exportImport.show",
2071
+ title: { label: "开启导入导出", tip: "开启表单的导入导出" },
2072
+ propType: "bool",
2073
+ setter: "BoolSetter",
2074
+ defaultValue: false,
2075
+ },
2076
+ {
2077
+ name: "exportImport.formId",
2078
+ title: { label: "表单ID", tip: "表单ID" },
2079
+ propType: "string",
2080
+ setter: "StringSetter",
2081
+ condition: {
2082
+ type: "JSFunction",
2083
+ value: 'target => !!target.getProps().getPropValue("exportImport.show")',
2084
+ },
2085
+ },
2086
+ {
2087
+ name: "exportImport.formCode",
2088
+ title: { label: "表单Code", tip: "表单Code|表单的唯一标识" },
2089
+ propType: "string",
2090
+ setter: "StringSetter",
2091
+ condition: {
2092
+ type: "JSFunction",
2093
+ value: 'target => !!target.getProps().getPropValue("exportImport.show")',
2094
+ },
2095
+ },
2096
+ {
2097
+ name: "exportImport.title",
2098
+ title: { label: "标题", tip: "打开弹窗的标题" },
2099
+ propType: "string",
2100
+ setter: "PisellI18nSetter",
2101
+ condition: {
2102
+ type: "JSFunction",
2103
+ value: 'target => !!target.getProps().getPropValue("exportImport.show")',
2104
+ },
2105
+ },
2106
+ {
2107
+ name: "exportImport.templateFileUrl",
2108
+ title: { label: "导入模版链接", tip: "导入模版链接" },
2109
+ propType: "string",
2110
+ setter: "StringSetter",
2111
+ condition: {
2112
+ type: "JSFunction",
2113
+ value: 'target => !!target.getProps().getPropValue("exportImport.show")',
2114
+ },
2115
+ },
2116
+ {
2117
+ name: "exportImport.selectLists",
2118
+ title: { label: "当前所选项", tip: "当前所选择的需要导出的哪些数据" },
2119
+ setter: "ObjectSetter",
2120
+ condition: {
2121
+ type: "JSFunction",
2122
+ value: 'target => !!target.getProps().getPropValue("exportImport.show")',
2123
+ },
2124
+ },
2125
+ ],
2126
+ },
2031
2127
  {
2032
2128
  name: "buttons",
2033
2129
  title: { label: "标题按钮组", tip: "标题右侧按钮项" },
@@ -2193,6 +2289,26 @@ export default {
2193
2289
  template:
2194
2290
  "onExpandableExpand(expanded,record){\n// 点击展开图标时触发\nconsole.log('onRowSelectionChange', expanded, record);}",
2195
2291
  },
2292
+ {
2293
+ name: "onExportChange",
2294
+ template:
2295
+ "onExportChange(expanded,record){\n// 点击展开图标时触发\nconsole.log('onExport', expanded, record);}",
2296
+ },
2297
+ {
2298
+ name: "onImportChange",
2299
+ template:
2300
+ "onImportChange(expanded,record){\n// 点击展开图标时触发\nconsole.log('onExport', expanded, record);}",
2301
+ },
2302
+ {
2303
+ name: "onExportFileChange",
2304
+ template:
2305
+ "onExportFileChange(expanded,record){\n// 点击展开图标时触发\nconsole.log('onExport', expanded, record);}",
2306
+ },
2307
+ {
2308
+ name: "onImportLogChange",
2309
+ template:
2310
+ "onImportLogChange(expanded,record){\n// 点击展开图标时触发\nconsole.log('onExport', expanded, record);}",
2311
+ },
2196
2312
  ],
2197
2313
  },
2198
2314
  },
@@ -82,6 +82,14 @@ export default [
82
82
  content: {},
83
83
  footer: {},
84
84
  },
85
+ exportImport: {
86
+ show: false,
87
+ formId: "",
88
+ formCode: "",
89
+ selectLists: [],
90
+ templateFileUrl: "",
91
+ title: "",
92
+ },
85
93
  },
86
94
  },
87
95
  },
@@ -322,12 +330,14 @@ export default [
322
330
  type: "string",
323
331
  columnKey: "name",
324
332
  isCustom: false,
333
+ isHidden: false
325
334
  },
326
335
  {
327
336
  label: "标题",
328
337
  type: "number",
329
338
  columnKey: "age",
330
339
  isCustom: false,
340
+ isHidden: false
331
341
  },
332
342
  ],
333
343
  },
@@ -340,12 +350,14 @@ export default [
340
350
  name: "",
341
351
  columnKey: "name",
342
352
  isCustom: false,
353
+ isHidden: false
343
354
  },
344
355
  {
345
356
  label: "标题",
346
357
  name: "",
347
358
  columnKey: "age",
348
359
  isCustom: false,
360
+ isHidden: false
349
361
  },
350
362
  ],
351
363
  },
@@ -363,6 +375,7 @@ export default [
363
375
  isCustom: false,
364
376
  sort: true,
365
377
  localFilter: true,
378
+ isHidden: false
366
379
  },
367
380
  {
368
381
  label: "标题",
@@ -372,6 +385,7 @@ export default [
372
385
  isCustom: false,
373
386
  sort: true,
374
387
  localFilter: true,
388
+ isHidden: false
375
389
  },
376
390
  ],
377
391
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -62,8 +62,8 @@
62
62
  "react-virtualized-auto-sizer": "^1.0.20",
63
63
  "crypto-js": "^4.2.0",
64
64
  "@pisell/utils": "1.0.25",
65
- "@pisell/date-picker": "1.0.74",
66
- "@pisell/icon": "0.0.8"
65
+ "@pisell/icon": "0.0.8",
66
+ "@pisell/date-picker": "1.0.74"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "react": "^18.0.0",