beer-assembly-biz 1.1.3-alpha.12 → 1.1.3-alpha.13

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/UploadModals.js CHANGED
@@ -38,6 +38,9 @@ export class UploadModals {
38
38
  const fileExtension = file.name.split('.')
39
39
  ?.pop()
40
40
  ?.toLowerCase() ?? 'none';
41
+ if (it === 'DOCUMENT' && ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'pdf', 'txt'].indexOf(fileExtension) > -1) {
42
+ return true;
43
+ }
41
44
  return it === 'VIDEO' && ['wmv', 'avi', '3gp', 'mov', 'mp4', 'flv', 'rmvb', 'mkv', 'm4v', 'x-flv'].indexOf(fileExtension) > -1;
42
45
  });
43
46
  if (type === undefined) {
@@ -48,6 +51,9 @@ export class UploadModals {
48
51
  case 'IMAGE':
49
52
  size = 10 * 1024 * 1024;
50
53
  break;
54
+ case 'DOCUMENT':
55
+ size = 30 * 1024 * 1024;
56
+ break;
51
57
  case 'VIDEO':
52
58
  size = 300 * 1024 * 1024;
53
59
  break;
@@ -104,6 +104,7 @@ export const AppLayout = (props) => {
104
104
  refreshPath()
105
105
  .then();
106
106
  }, [menus, props.path]);
107
+ // 更新属性触发: 菜单
107
108
  // 更新属性触发: 请求用户信息
108
109
  useEffect(() => {
109
110
  props.requestUser()
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "beer-assembly-biz",
3
3
  "private": false,
4
- "version": "1.1.3-alpha.12",
4
+ "version": "1.1.3-alpha.13",
5
5
  "scripts": {
6
6
  "pub-w": "tsc && copy package.json .\\dist\\package.json && npm publish ./dist",
7
7
  "copy": "cp -a src/rich/AIEditor.css dist/rich/AIEditor.css && cp -a src/icon dist/icon && cp -a src/images dist/images",