element-assits 0.0.52 → 0.0.53
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 +1 -1
- package/lib/index.js +10 -13
- package/lib/style.scss +59 -59
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/index.js
CHANGED
|
@@ -2072,34 +2072,31 @@ class Xx {
|
|
|
2072
2072
|
constructor(n, i) {
|
|
2073
2073
|
this.o = new Array(n.length).fill(0), this.isTrigger = !1, this.callback = i;
|
|
2074
2074
|
}
|
|
2075
|
-
add({ $index: n }, i) {
|
|
2076
|
-
this.isTrigger || (this.o[n] = i.map((
|
|
2077
|
-
const
|
|
2078
|
-
return Math.max(
|
|
2079
|
-
}).reduce((
|
|
2075
|
+
add({ $index: n }, i, o) {
|
|
2076
|
+
this.isTrigger || (this.o[n] = i.map((u) => {
|
|
2077
|
+
const d = Rt(u, "componentInstance.$el");
|
|
2078
|
+
return Math.max((d && d.offsetWidth || 0) + 10, 50);
|
|
2079
|
+
}).reduce((u, d) => u + d, 0) + 20 + (o ? 50 : 0), this.o.every(Boolean) && (this.isTrigger = !0, this.callback(Math.max(...this.o))));
|
|
2080
2080
|
}
|
|
2081
2081
|
}
|
|
2082
2082
|
function $u(r = 3) {
|
|
2083
2083
|
const n = this;
|
|
2084
2084
|
let i, o;
|
|
2085
2085
|
try {
|
|
2086
|
-
|
|
2087
|
-
if (i = u.some((d) => d.tag), !(r > 0))
|
|
2088
|
-
throw new Error();
|
|
2089
|
-
if (r === u.length)
|
|
2086
|
+
if (i = Cu.bind(this)({ row: {}, column: {} }).some((d) => d.tag), !(r > 0))
|
|
2090
2087
|
throw new Error();
|
|
2091
2088
|
o = {
|
|
2092
2089
|
props: { scope: { type: Object, default: void 0 } },
|
|
2093
2090
|
data() {
|
|
2094
|
-
const d = Cu.bind(n)(this.scope).filter((
|
|
2091
|
+
const d = Cu.bind(n)(this.scope).filter((S) => S.tag), g = d.length > r ? r - 1 : r, m = d.slice(0, g), b = d.slice(g);
|
|
2095
2092
|
return {
|
|
2096
|
-
children:
|
|
2097
|
-
moreChildren:
|
|
2093
|
+
children: m,
|
|
2094
|
+
moreChildren: b
|
|
2098
2095
|
};
|
|
2099
2096
|
},
|
|
2100
2097
|
mounted() {
|
|
2101
2098
|
var d;
|
|
2102
|
-
(d = n.fitOpt) == null || d.add(this.scope, this.children);
|
|
2099
|
+
(d = n.fitOpt) == null || d.add(this.scope, this.children, this.moreChildren.length);
|
|
2103
2100
|
},
|
|
2104
2101
|
render(d) {
|
|
2105
2102
|
return d("div", [
|
package/lib/style.scss
CHANGED
|
@@ -280,57 +280,6 @@ td {
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
.ea-split-container {
|
|
284
|
-
display: flex;
|
|
285
|
-
&.is-down {
|
|
286
|
-
user-select: none;
|
|
287
|
-
}
|
|
288
|
-
.sc-left {
|
|
289
|
-
flex-grow: 1;
|
|
290
|
-
flex-shrink: 1;
|
|
291
|
-
}
|
|
292
|
-
.sc-right {
|
|
293
|
-
flex-grow: 1;
|
|
294
|
-
flex-shrink: 1;
|
|
295
|
-
}
|
|
296
|
-
.sc-center {
|
|
297
|
-
flex-grow: 0;
|
|
298
|
-
flex-shrink: 0;
|
|
299
|
-
position: relative;
|
|
300
|
-
}
|
|
301
|
-
.sc-bamboo {
|
|
302
|
-
width: 8px;
|
|
303
|
-
height: 100%;
|
|
304
|
-
border: 1px solid #DCDEE2;
|
|
305
|
-
border-top: none;
|
|
306
|
-
border-bottom: none;
|
|
307
|
-
background-color: #F8F8F9;
|
|
308
|
-
cursor: col-resize;
|
|
309
|
-
user-select: none;
|
|
310
|
-
display: flex;
|
|
311
|
-
flex-direction: column;
|
|
312
|
-
justify-content: center;
|
|
313
|
-
align-items: center;
|
|
314
|
-
margin: 0 16px;
|
|
315
|
-
.sc-texture {
|
|
316
|
-
width: 4px;
|
|
317
|
-
height: 1px;
|
|
318
|
-
background: rgba(23, 35, 61, .25);
|
|
319
|
-
margin-top: 3px;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
.sc-on-bamboo {
|
|
323
|
-
position: absolute;
|
|
324
|
-
top: 50%;
|
|
325
|
-
left: 50%;
|
|
326
|
-
transform: translate(-50%, -50%);
|
|
327
|
-
background-color: #FFF;
|
|
328
|
-
display: flex;
|
|
329
|
-
justify-content: center;
|
|
330
|
-
align-items: center;
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
|
|
334
283
|
.ea-tree {
|
|
335
284
|
.ea-tree-real {
|
|
336
285
|
.el-tree-node > .el-tree-node__content{
|
|
@@ -343,12 +292,8 @@ td {
|
|
|
343
292
|
}
|
|
344
293
|
}
|
|
345
294
|
|
|
346
|
-
.ea-
|
|
347
|
-
|
|
348
|
-
color: $--color-secondary-text;
|
|
349
|
-
text-align: center;
|
|
350
|
-
font-size: inherit;
|
|
351
|
-
}
|
|
295
|
+
.ea-number .el-input__inner {
|
|
296
|
+
text-align: left;
|
|
352
297
|
}
|
|
353
298
|
|
|
354
299
|
.ea-desc {
|
|
@@ -395,8 +340,63 @@ td {
|
|
|
395
340
|
}
|
|
396
341
|
}
|
|
397
342
|
|
|
398
|
-
.ea-
|
|
399
|
-
|
|
343
|
+
.ea-split-container {
|
|
344
|
+
display: flex;
|
|
345
|
+
&.is-down {
|
|
346
|
+
user-select: none;
|
|
347
|
+
}
|
|
348
|
+
.sc-left {
|
|
349
|
+
flex-grow: 1;
|
|
350
|
+
flex-shrink: 1;
|
|
351
|
+
}
|
|
352
|
+
.sc-right {
|
|
353
|
+
flex-grow: 1;
|
|
354
|
+
flex-shrink: 1;
|
|
355
|
+
}
|
|
356
|
+
.sc-center {
|
|
357
|
+
flex-grow: 0;
|
|
358
|
+
flex-shrink: 0;
|
|
359
|
+
position: relative;
|
|
360
|
+
}
|
|
361
|
+
.sc-bamboo {
|
|
362
|
+
width: 8px;
|
|
363
|
+
height: 100%;
|
|
364
|
+
border: 1px solid #DCDEE2;
|
|
365
|
+
border-top: none;
|
|
366
|
+
border-bottom: none;
|
|
367
|
+
background-color: #F8F8F9;
|
|
368
|
+
cursor: col-resize;
|
|
369
|
+
user-select: none;
|
|
370
|
+
display: flex;
|
|
371
|
+
flex-direction: column;
|
|
372
|
+
justify-content: center;
|
|
373
|
+
align-items: center;
|
|
374
|
+
margin: 0 16px;
|
|
375
|
+
.sc-texture {
|
|
376
|
+
width: 4px;
|
|
377
|
+
height: 1px;
|
|
378
|
+
background: rgba(23, 35, 61, .25);
|
|
379
|
+
margin-top: 3px;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
.sc-on-bamboo {
|
|
383
|
+
position: absolute;
|
|
384
|
+
top: 50%;
|
|
385
|
+
left: 50%;
|
|
386
|
+
transform: translate(-50%, -50%);
|
|
387
|
+
background-color: #FFF;
|
|
388
|
+
display: flex;
|
|
389
|
+
justify-content: center;
|
|
390
|
+
align-items: center;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.ea-list {
|
|
395
|
+
.loading-text {
|
|
396
|
+
color: $--color-secondary-text;
|
|
397
|
+
text-align: center;
|
|
398
|
+
font-size: inherit;
|
|
399
|
+
}
|
|
400
400
|
}
|
|
401
401
|
|
|
402
402
|
.file-upload-dialog {
|