xframelib 0.6.9 → 0.7.2

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 CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  基于 VUE3+Hprose+Typescript 的前端框架
4
4
 
5
+ - v0.7.2 解决v0.7.0的deepMerge方法存在复制对象的BUG。
6
+ - v0.7.0 修改requestPost无法使用FormData参数;修改deepMerge方法;修改isObjectX方法;更新rollup-plugin-scss应用版本。
5
7
  - v0.6.9 默认引入loglevel,为Global增加Logger()方法,使用例如:Global.Logger().warn('123')。
6
8
  - v0.6.8 解决Axios 0.x升级为1.x后,序列化时带来的AxiosError: options must be an object错误
7
9
  - v0.6.7 解决ExitLogin时报415错误;SysEvents.AxiosRequestErrorEvent、SysEvents.WebAPIErrorEvent、SysEvents.HproseServiceErrorEvent改为默认为后台记录,不主动弹框提示,需要提示使用Global.EventBus自主监听事件;升级依赖库版本;
@@ -0,0 +1,305 @@
1
+ .vcp__header {
2
+ display: flex;
3
+ padding: 12px;
4
+ pointer-events: none;
5
+ }
6
+ .vcp--expandable .vcp__header {
7
+ pointer-events: auto;
8
+ cursor: pointer;
9
+ }
10
+ .vcp__header-title {
11
+ display: flex;
12
+ align-items: center;
13
+ flex: 1;
14
+ }
15
+ .vcp__header-icon {
16
+ display: flex;
17
+ align-items: center;
18
+ transition: transform 0.3s cubic-bezier(0.5, 0.25, 0, 1);
19
+ }
20
+ .vcp--expanded .vcp__header-icon {
21
+ transform-origin: center;
22
+ transform: rotate(180deg);
23
+ }
24
+ .vcp__header-icon > span {
25
+ display: flex;
26
+ height: 24px;
27
+ width: 24px;
28
+ }
29
+ .vcp__header-icon ::v-deep(svg) {
30
+ height: 100%;
31
+ width: 100%;
32
+ }
33
+ .vcp__body {
34
+ overflow: hidden;
35
+ transition: all 0.3s cubic-bezier(0.5, 0.25, 0, 1);
36
+ }
37
+ .vcp__body-content {
38
+ padding: 12px;
39
+ }
40
+
41
+ .slide-enter-from,
42
+ .slide-leave-to {
43
+ opacity: 0.25;
44
+ }
45
+
46
+ .splitpanes {
47
+ display: flex;
48
+ width: 100%;
49
+ height: 100%;
50
+ }
51
+ .splitpanes--vertical {
52
+ flex-direction: row;
53
+ }
54
+ .splitpanes--horizontal {
55
+ flex-direction: column;
56
+ }
57
+ .splitpanes--dragging * {
58
+ user-select: none;
59
+ }
60
+ .splitpanes__pane {
61
+ width: 100%;
62
+ height: 100%;
63
+ overflow: hidden;
64
+ }
65
+ .splitpanes--vertical .splitpanes__pane {
66
+ transition: width 0.2s ease-out;
67
+ }
68
+ .splitpanes--horizontal .splitpanes__pane {
69
+ transition: height 0.2s ease-out;
70
+ }
71
+ .splitpanes--dragging .splitpanes__pane {
72
+ transition: none;
73
+ }
74
+ .splitpanes__splitter {
75
+ touch-action: none;
76
+ }
77
+ .splitpanes--vertical > .splitpanes__splitter {
78
+ min-width: 1px;
79
+ cursor: col-resize;
80
+ }
81
+ .splitpanes--horizontal > .splitpanes__splitter {
82
+ min-height: 1px;
83
+ cursor: row-resize;
84
+ }
85
+
86
+ .splitpanes.default-theme .splitpanes__pane {
87
+ background-color: #f2f2f2;
88
+ }
89
+ .splitpanes.default-theme .splitpanes__splitter {
90
+ background-color: #fff;
91
+ box-sizing: border-box;
92
+ position: relative;
93
+ flex-shrink: 0;
94
+ }
95
+ .splitpanes.default-theme .splitpanes__splitter:before, .splitpanes.default-theme .splitpanes__splitter:after {
96
+ content: "";
97
+ position: absolute;
98
+ top: 50%;
99
+ left: 50%;
100
+ background-color: rgba(0, 0, 0, 0.15);
101
+ transition: background-color 0.3s;
102
+ }
103
+ .splitpanes.default-theme .splitpanes__splitter:hover:before, .splitpanes.default-theme .splitpanes__splitter:hover:after {
104
+ background-color: rgba(0, 0, 0, 0.25);
105
+ }
106
+ .splitpanes.default-theme .splitpanes__splitter:first-child {
107
+ cursor: auto;
108
+ }
109
+
110
+ .default-theme.splitpanes .splitpanes .splitpanes__splitter {
111
+ z-index: 1;
112
+ }
113
+ .default-theme.splitpanes--vertical > .splitpanes__splitter,
114
+ .default-theme .splitpanes--vertical > .splitpanes__splitter {
115
+ width: 7px;
116
+ border-left: 1px solid #eee;
117
+ margin-left: -1px;
118
+ }
119
+ .default-theme.splitpanes--vertical > .splitpanes__splitter:before, .default-theme.splitpanes--vertical > .splitpanes__splitter:after,
120
+ .default-theme .splitpanes--vertical > .splitpanes__splitter:before,
121
+ .default-theme .splitpanes--vertical > .splitpanes__splitter:after {
122
+ transform: translateY(-50%);
123
+ width: 1px;
124
+ height: 30px;
125
+ }
126
+ .default-theme.splitpanes--vertical > .splitpanes__splitter:before,
127
+ .default-theme .splitpanes--vertical > .splitpanes__splitter:before {
128
+ margin-left: -2px;
129
+ }
130
+ .default-theme.splitpanes--vertical > .splitpanes__splitter:after,
131
+ .default-theme .splitpanes--vertical > .splitpanes__splitter:after {
132
+ margin-left: 1px;
133
+ }
134
+ .default-theme.splitpanes--horizontal > .splitpanes__splitter,
135
+ .default-theme .splitpanes--horizontal > .splitpanes__splitter {
136
+ height: 7px;
137
+ border-top: 1px solid #eee;
138
+ margin-top: -1px;
139
+ }
140
+ .default-theme.splitpanes--horizontal > .splitpanes__splitter:before, .default-theme.splitpanes--horizontal > .splitpanes__splitter:after,
141
+ .default-theme .splitpanes--horizontal > .splitpanes__splitter:before,
142
+ .default-theme .splitpanes--horizontal > .splitpanes__splitter:after {
143
+ transform: translateX(-50%);
144
+ width: 30px;
145
+ height: 1px;
146
+ }
147
+ .default-theme.splitpanes--horizontal > .splitpanes__splitter:before,
148
+ .default-theme .splitpanes--horizontal > .splitpanes__splitter:before {
149
+ margin-top: -2px;
150
+ }
151
+ .default-theme.splitpanes--horizontal > .splitpanes__splitter:after,
152
+ .default-theme .splitpanes--horizontal > .splitpanes__splitter:after {
153
+ margin-top: 1px;
154
+ }
155
+
156
+ .vcpg {
157
+ border: 1px solid var(--border-color);
158
+ border-radius: 4px;
159
+ width: 100%;
160
+ }
161
+ .vcpg ::v-deep(.vcp) * {
162
+ box-sizing: border-box;
163
+ }
164
+ .vcpg ::v-deep(.vcp) .vcp__header {
165
+ background-color: var(--bg-color-header);
166
+ height: 30px;
167
+ border-bottom: 2px solid #c6bebd;
168
+ transition: background-color 0.3s ease;
169
+ }
170
+ .vcpg ::v-deep(.vcp) .vcp__header .vcp__header:hover {
171
+ background-color: var(--bg-color-header-hover);
172
+ }
173
+ .vcpg ::v-deep(.vcp) .vcp__header .vcp__header:active {
174
+ background-color: var(--bg-color-header-active);
175
+ }
176
+ .vcpg ::v-deep(.vcp) .vcp:not(:first-of-type) .vcp__header {
177
+ border-top: 2px solid var(--border-color);
178
+ }
179
+ .vcpg ::v-deep(.vcp) .vcp__header-title {
180
+ font-weight: 500;
181
+ }
182
+ .vcpg ::v-deep(.vcp) .vcp__body {
183
+ border-top: 1px solid var(--border-color);
184
+ background-color: var(--bg-color-body);
185
+ }
186
+
187
+ .window {
188
+ display: flex;
189
+ flex-flow: column;
190
+ position: absolute;
191
+ border-radius: 4pt 4pt 0 0;
192
+ }
193
+
194
+ .titlebar {
195
+ display: flex;
196
+ flex-flow: row nowrap;
197
+ border-radius: 4pt 4pt 0 0;
198
+ font-family: sans-serif;
199
+ padding: 0.5em;
200
+ flex: 0 0 auto;
201
+ }
202
+
203
+ .title {
204
+ flex-grow: 1;
205
+ white-space: nowrap;
206
+ overflow: hidden;
207
+ text-overflow: ellipsis;
208
+ }
209
+
210
+ .content {
211
+ flex-grow: 1;
212
+ padding: 0.5em;
213
+ }
214
+
215
+ .draggable-handle {
216
+ cursor: move;
217
+ }
218
+
219
+ .fade-enter,
220
+ .fade-leave-to {
221
+ opacity: 0;
222
+ transform: scale(0.9);
223
+ }
224
+
225
+ .fade-enter-active,
226
+ .fade-leave-active {
227
+ transition: 0.2s;
228
+ }
229
+
230
+ .layoutContainer {
231
+ width: 100%;
232
+ height: 100%;
233
+ padding: 0;
234
+ margin: 0;
235
+ --layout-top-height: 70px;
236
+ --layout-left-width: 200px;
237
+ --layout-right-width: 200px;
238
+ --layout-bottom-height: 60px;
239
+ --layout-centerback-backcolor: #020202;
240
+ --layout-top-zindex: 100;
241
+ --layout-bottom-zindex: 100;
242
+ --layout-center-zindex: 90;
243
+ --layout-left-zindex: 100;
244
+ --layout-right-zindex: 100;
245
+ }
246
+
247
+ .topContainer {
248
+ position: absolute;
249
+ top: 0px;
250
+ left: 0px;
251
+ width: 100%;
252
+ height: var(--layout-top-height);
253
+ z-index: var(--layout-top-zindex);
254
+ pointer-events: none;
255
+ }
256
+
257
+ .bottomContainer {
258
+ position: absolute;
259
+ bottom: 0px;
260
+ left: 0px;
261
+ width: 100%;
262
+ height: var(--layout-bottom-height);
263
+ z-index: var(--layout-bottom-zindex);
264
+ pointer-events: none;
265
+ }
266
+
267
+ .leftContainer {
268
+ position: absolute;
269
+ top: 0px;
270
+ left: 0px;
271
+ width: var(--layout-left-width);
272
+ z-index: var(--layout-left-zindex);
273
+ height: 100%;
274
+ pointer-events: none;
275
+ }
276
+
277
+ .rightContainer {
278
+ position: absolute;
279
+ top: 0px;
280
+ right: 0px;
281
+ width: var(--layout-right-width);
282
+ z-index: var(--layout-right-zindex);
283
+ height: 100%;
284
+ pointer-events: none;
285
+ }
286
+
287
+ .centerdiv {
288
+ position: absolute;
289
+ top: 0px;
290
+ left: 0px;
291
+ bottom: 0px;
292
+ width: 100%;
293
+ background-color: transparent;
294
+ overflow: hidden;
295
+ pointer-events: none;
296
+ }
297
+
298
+ .btn {
299
+ background-color: transparent;
300
+ border: none;
301
+ font-size: medium;
302
+ margin: 0;
303
+ padding: 0 0.25em;
304
+ border-radius: 4pt;
305
+ }