8000 update less · Create-Peace/light-vue-tree@759e5f9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 759e5f9

Browse files
committed
update less
1 parent b2bf2ac commit 759e5f9

File tree

3 files changed

+181
-193
lines changed

3 files changed

+181
-193
lines changed

examples/src/App.vue

Lines changed: 2 additions & 188 deletions
Original file line numberDiff line numberDiff line change
@@ -258,91 +258,14 @@ export default {
258258
259259
}
260260
261-
.icon {
262-
display: inline-block;
263-
padding: 2px;
264-
font-size: 12px;
265-
// background: #eee;
266-
cursor: pointer;
267-
margin-right: 4px;
268-
}
269261
270-
.motion-common() {
271-
animation-duration: .3s;
272-
animation-fill-mode: both;
273-
}
274262
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-
}
284263
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-
}
303264
304-
.move-motion(transition-drop, shTransitionDrop);
305265
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-
}
327266
328267
329268
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);
346269
.el-tree__drop-indicator {
347270
position: absolute;
348271
left: 0;
@@ -353,117 +276,8 @@ export default {
353276
354277
355278
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-
}
369279
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+
468282
469283
</style>

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
6-
"serve": "vue-cli-service serve",
76
"lint": "eslint --fix src --ext .js --ext .vue",
87
"dev": "rollup --config ./scripts/rollup.development.js --watch",
98
"build": "npm run lint && rollup --config ./scripts/rollup.production.js",
109
"dev:docs": "cd examples && npm run dev",
1110
"build:docs": "cd examples && npm run build && cp ../dist/index.js ../docs"
1211
},
12+
"files": [
13+
"dist"
14+
],
1315
"dependencies": {
1416
"core-js": "^3.6.5",
1517
"less-loader": "^6.0.0",
@@ -48,7 +50,9 @@
4850
"vue",
4951
"tree",
5052
"big-data",
51-
"big-list"
53+
"big-tree",
54+
"virtual-tree",
55+
"vue-virtual-tree"
5256
],
5357
"eslintConfig": {
5458
"root": true,

0 commit comments

Comments
 (0)
0