@@ -258,91 +258,14 @@ export default {
258
258
259
259
}
260
260
261
- .icon {
262
- display : inline-block ;
263
- padding : 2px ;
264
- font-size : 12px ;
265
- // background: #eee;
266
- cursor : pointer ;
267
- margin-right : 4px ;
268
- }
269
261
270
- .motion-common () {
271
- animation-duration : .3s ;
272
- animation-fill-mode : both ;
273
- }
274
262
275
- .move-motion (@className , @keyframeName ) {
276
- .make-motion (@className , @keyframeName );
277
- .@{className} -enter-active {
278
- animation-timing-function : ease-in-out ;
279
- }
280
- .@{className} -leave-active {
281
- animation-timing-function : ease-in-out ;
282
- }
283
- }
284
263
285
- .make-motion (@className , @keyframeName ) {
286
- .@{className} -enter-active {
287
- .motion-common ();
288
- animation-play-state : paused ;
289
- }
290
- .@{className} -leave-active {
291
- .motion-common ();
292
- animation-play-state : paused ;
293
- }
294
- .@{className} -enter-active {
295
- animation-name : ~ " @{keyframeName} In" ;
296
- animation-play-state : running ;
297
- }
298
- .@{className} -leave-active {
299
- animation-name : ~ " @{keyframeName} Out" ;
300
- animation-play-state : running ;
301
- }
302
- }
303
264
304
- .move-motion (transition- drop, shTransitionDrop);
305
265
306
- @keyframes shTransitionDropIn {
307
- 0% {
308
- opacity : 0 ;
309
- transform : scaleY (0.8 );
310
- }
311
- 100% {
312
- opacity : 1 ;
313
- transform : scaleY (1 );
314
- }
315
- }
316
-
317
- @keyframes shTransitionDropOut {
318
- 0% {
319
- opacity : 1 ;
320
- transform : scaleY (1 );
321
- }
322
- 100% {
323
- opacity : 0 ;
324
- transform : scaleY (0.8 );
325
- }
326
- }
327
266
328
267
329
268
330
- .rotate-motion (@className , @deg ) {
331
- .transform {
332
- transform-origin : center ;
333
- transition : @transition-time ;
334
- }
335
- .@{className} -enter {
336
- transform : rotate (@deg);
337
- .transform ;
338
- }
339
- .@{className} -leave {
340
- transform : rotate (0deg );
341
- .transform ;
342
- }
343
- }
344
- .rotate-motion (rotate90, 90deg );
345
- .rotate-motion (rotate180, 180deg );
346
269
.el-tree__drop-indicator {
347
270
position : absolute ;
348
271
left : 0 ;
@@ -353,117 +276,8 @@ export default {
353
276
354
277
355
278
356
- .tree {
357
- position : relative ;
358
- .tree-node {
359
- padding : 4px 0 ;
360
- .tree-node-name {
361
- display : inline-block ;
362
- }
363
- }
364
- .is-drop-inner > .tree-node-content > .tree-node-name {
365
- background-color : #409eff ;
366
- color : #fff ;
367
- }
368
- }
369
279
370
- .vue-tree {
371
- user-select : none ;
372
- position : relative ;
373
- .drop-indicator {
374
- position : absolute ;
375
- left : 0 ;
376
- right : 0 ;
377
- height : 1px ;
378
- background-color : @primary-color ;
379
- }
380
- .child-node {
381
- padding-left : 22px ;
382
- line-height : 28px ;
383
- cursor : pointer ;
384
- .node-content {
385
- width : 100% ;
386
- position : relative ;
387
- display : flex ;
388
- padding-left : 22px ;
389
- .icon {
390
- position : absolute ;
391
- display : inline-block ;
392
- left : 0px ;
393
- &-expand {
394
- color : @normal-color ;
395
- }
396
- &-unexpand {
397
- color : @unimportance-color ;
398
- }
399
- }
400
- .inner-wrap {
401
- padding-left : 2px ;
402
- display : flex ;
403
- align-items : center ;
404
- border-radius : @border-radius-small ;
405
- border : 1px solid transparent ;
406
- }
407
- .drop-wrap {
408
- border-color : @primary-color ;
409
- }
410
- .drop-inner {
411
- border-bottom : 1px solid @primary-color ;
412
- }
413
- }
414
- .active-li {
415
- .inner-wrap {
416
- background : @background-color-base ;
417
- }
418
- }
419
- .inset {
420
- cursor : move ;
421
- }
422
- .disabled {
423
- cursor : no-drop ;
424
- }
425
- }
426
- .add-node {
427
- cursor : pointer ;
428
- }
429
- .is-drop-inner > .node-content > .inner-wrap > .node-name {
430
- background-color : @primary-color ;
431
- color : #fff ;
432
- }
433
- }
434
- .vue-checkbox {
435
- position : relative ;
436
- width : 13px ;
437
- height : 13px ;
438
- &-input {
439
- position : absolute ;
440
- width : 100% ;
441
- height : 100% ;
442
- top : 0 ;
443
- left : 0 ;
444
- z-index : 3 ;
445
- background : transparent
446
- }
447
- &-indeterminate {
448
- box-sizing : border-box ;
449
- position : absolute ;
450
- width : 100% ;
451
- height : 100% ;
452
- left : 0 ;
453
- top : 0 ;
454
- background : #0075ff ;
455
- z-index : 4 ;
456
- border-radius : 3px ;
457
- & :after {
458
- position : absolute ;
459
- content : ' ' ;
460
- width : 100% ;
461
- height : 2px ;
462
- background : #fff ;;
463
- top : 50% ;
464
- left : 0 ;
465
- }
466
- }
467
- }
280
+
281
+
468
282
469
283
</style >
0 commit comments