zmdms-webui 2.4.9 → 2.5.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.
Files changed (57) hide show
  1. package/dist/es/_virtual/Draggable.js +3 -0
  2. package/dist/es/_virtual/DraggableCore.js +3 -0
  3. package/dist/es/_virtual/cjs.js +3 -0
  4. package/dist/es/_virtual/clsx.js +3 -0
  5. package/dist/es/_virtual/domFns.js +3 -0
  6. package/dist/es/_virtual/getPrefix.js +3 -0
  7. package/dist/es/_virtual/index2.js +2 -2
  8. package/dist/es/_virtual/index4.js +3 -0
  9. package/dist/es/_virtual/index5.js +3 -0
  10. package/dist/es/_virtual/log.js +3 -0
  11. package/dist/es/_virtual/positionFns.js +3 -0
  12. package/dist/es/_virtual/react-is.development2.js +3 -0
  13. package/dist/es/_virtual/react-is.production.min2.js +3 -0
  14. package/dist/es/_virtual/shims.js +3 -0
  15. package/dist/es/applayoutsider/appLayoutSider.d.ts +4 -0
  16. package/dist/es/applayoutsider/appLayoutSider.js +2 -2
  17. package/dist/es/applayoutsider/menu/index.js +2 -2
  18. package/dist/es/canvastable/canvasTable.js +22 -3
  19. package/dist/es/canvastable/hooks/useScroll.js +62 -11
  20. package/dist/es/canvastable/utils/formatHelpers.js +1 -1
  21. package/dist/es/canvastable/utils/tableCalculations.js +18 -10
  22. package/dist/es/chatroom/chat-room.js +19 -0
  23. package/dist/es/chatroom/index.css +1 -0
  24. package/dist/es/chatroom/index.js +5 -0
  25. package/dist/es/modal/interface.d.ts +4 -0
  26. package/dist/es/modal/modal.js +15 -9
  27. package/dist/es/modal/useDraggable.js +51 -0
  28. package/dist/es/node_modules/immutability-helper/index.js +1 -1
  29. package/dist/es/node_modules/object-assign/index.js +99 -0
  30. package/dist/es/node_modules/prop-types/checkPropTypes.js +115 -0
  31. package/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +74 -0
  32. package/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +625 -0
  33. package/dist/es/node_modules/prop-types/index.js +28 -0
  34. package/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +21 -0
  35. package/dist/es/node_modules/prop-types/lib/has.js +11 -0
  36. package/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +190 -0
  37. package/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +26 -0
  38. package/dist/es/node_modules/prop-types/node_modules/react-is/index.js +19 -0
  39. package/dist/es/node_modules/rc-util/es/Dom/findDOMNode.js +2 -2
  40. package/dist/es/node_modules/react-draggable/build/cjs/Draggable.js +412 -0
  41. package/dist/es/node_modules/react-draggable/build/cjs/DraggableCore.js +453 -0
  42. package/dist/es/node_modules/react-draggable/build/cjs/cjs.js +21 -0
  43. package/dist/es/node_modules/react-draggable/build/cjs/utils/domFns.js +237 -0
  44. package/dist/es/node_modules/react-draggable/build/cjs/utils/getPrefix.js +52 -0
  45. package/dist/es/node_modules/react-draggable/build/cjs/utils/log.js +9 -0
  46. package/dist/es/node_modules/react-draggable/build/cjs/utils/positionFns.js +155 -0
  47. package/dist/es/node_modules/react-draggable/build/cjs/utils/shims.js +33 -0
  48. package/dist/es/node_modules/react-draggable/node_modules/clsx/dist/clsx.js +7 -0
  49. package/dist/es/node_modules/react-is/cjs/react-is.development.js +1 -1
  50. package/dist/es/node_modules/react-is/cjs/react-is.production.min.js +1 -1
  51. package/dist/es/node_modules/react-is/index.js +1 -1
  52. package/dist/index.dark.css +1 -1
  53. package/dist/index.default.css +1 -1
  54. package/dist/less/components/ChatRoom/style/index.less +147 -0
  55. package/dist/less/components/ChatRoom/style/style.less +2 -0
  56. package/dist/less/styles/index.less +2 -0
  57. package/package.json +2 -1
@@ -0,0 +1,147 @@
1
+ .ztxk-chat-room--container {
2
+ display: flex;
3
+ flex-direction: row;
4
+ box-sizing: border-box;
5
+ &.ztxk-chat-room--container--bordered {
6
+ border: 1px solid #e5e5e5;
7
+ padding: 10px;
8
+ }
9
+ .ztxk-chat-room--left {
10
+ width: 300px;
11
+ height: 100%;
12
+ background: #fff;
13
+ box-sizing: border-box;
14
+ display: flex;
15
+ flex-direction: column;
16
+ .ztxk-chat-room--title {
17
+ height: 50px;
18
+ display: flex;
19
+ align-items: center;
20
+ justify-content: center;
21
+ line-height: 22px;
22
+ padding: 0 10px;
23
+ box-sizing: border-box;
24
+ }
25
+
26
+ .ztxk-chat-room--search {
27
+ padding: 10px 4px;
28
+ box-sizing: border-box;
29
+ .ant-input-search {
30
+ input {
31
+ background-color: #f0f0f0;
32
+ border-radius: 10px 0 0 10px;
33
+ border: none;
34
+ &:focus {
35
+ box-shadow: none;
36
+ }
37
+ }
38
+ .ant-input-group-addon {
39
+ border-radius: 0 10px 10px 0;
40
+ button {
41
+ background-color: #f0f0f0;
42
+ border-radius: 0 10px 10px 0;
43
+ border: none;
44
+ box-shadow: none;
45
+ }
46
+ }
47
+ }
48
+ }
49
+
50
+ .ztxk-chat-room--list {
51
+ flex: 1;
52
+ overflow-y: auto;
53
+ overflow-x: hidden;
54
+ .ztxk-chat-room--list__item {
55
+ box-sizing: border-box;
56
+ height: 60px;
57
+ cursor: pointer;
58
+ display: flex;
59
+ align-items: center;
60
+ &:hover {
61
+ background-color: #d9d9d9;
62
+ }
63
+ &.active {
64
+ background-color: #c0e2ff !important;
65
+ }
66
+ .ztxk-chat-room--item__name {
67
+ background-color: #69f;
68
+ color: #fff;
69
+ width: 48px;
70
+ height: 58px;
71
+ border-radius: 5px;
72
+ text-align: center;
73
+ padding: 5px;
74
+ word-wrap: break-word;
75
+ word-break: break-all;
76
+ transform: scale(0.8);
77
+ display: flex;
78
+ flex-shrink: 0;
79
+ > span {
80
+ font-size: 12px;
81
+ line-height: 18px;
82
+ text-align: center;
83
+ }
84
+ }
85
+
86
+ .ztxk-chat-room--item__text {
87
+ box-sizing: border-box;
88
+ flex: 1;
89
+ font-size: 12px;
90
+ height: 48px;
91
+ display: flex;
92
+ flex-direction: column;
93
+ justify-content: space-between;
94
+ .ztxk-chat-room--item__text--top {
95
+ display: flex;
96
+ align-items: center;
97
+ justify-content: space-between;
98
+ width: 160px;
99
+ .ztxk-chat-room--item__text--room {
100
+ width: 120px;
101
+ display: block;
102
+ font-size: 12px;
103
+ font-weight: bolder;
104
+ overflow: hidden;
105
+ white-space: nowrap;
106
+ text-overflow: ellipsis;
107
+ }
108
+ }
109
+ .ztxk-chat-room--item__text--bottom {
110
+ text-overflow: ellipsis;
111
+ overflow: hidden;
112
+ white-space: nowrap;
113
+ color: #a2a2a2;
114
+ font-size: 12px;
115
+ width: 160px;
116
+ a {
117
+ color: #1890ff;
118
+ }
119
+ }
120
+ }
121
+
122
+ .ztxk-chat-room--item__other {
123
+ width: 80px;
124
+ text-align: right;
125
+ font-size: 12px;
126
+ height: 48px;
127
+ display: flex;
128
+ flex-direction: column;
129
+ justify-content: space-between;
130
+ .ztxk-chat-room--item__other--name,
131
+ .ztxk-chat-room--item__other--time {
132
+ color: #a2a2a2;
133
+ font-size: 12px;
134
+ text-overflow: ellipsis;
135
+ overflow: hidden;
136
+ white-space: nowrap;
137
+ padding-right: 5px;
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
143
+
144
+ .ztxk-chat-room--right {
145
+ flex: 1;
146
+ }
147
+ }
@@ -0,0 +1,2 @@
1
+ @import "../../../styles/default.less";
2
+ @import "./index.less";
@@ -67,6 +67,8 @@
67
67
 
68
68
  @import "../components/CanvasTable/style/index.less";
69
69
 
70
+ @import "../components/ChatRoom/style/index.less";
71
+
70
72
  // 显示换行符
71
73
  .ant-tooltip-inner {
72
74
  white-space: pre-wrap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmdms-webui",
3
- "version": "2.4.9",
3
+ "version": "2.5.1",
4
4
  "private": false,
5
5
  "main": "dist/index.es.js",
6
6
  "module": "dist/index.es.js",
@@ -148,6 +148,7 @@
148
148
  "react-contexify": "^6.0.0",
149
149
  "react-dnd": "^16.0.1",
150
150
  "react-dnd-html5-backend": "^16.0.1",
151
+ "react-draggable": "^4.5.0",
151
152
  "screenfull": "^6.0.2",
152
153
  "virtuallist-antd": "^0.8.0-beta.1",
153
154
  "xlsx": "^0.18.5",