Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
ef6bcd56
Commit
ef6bcd56
authored
Jul 08, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
体验优化
parent
d81b8019
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
11 deletions
+16
-11
zh-cn.js
lang/zh-cn/zh-cn.js
+2
-2
dragtree.js
src/module/dragtree.js
+1
-0
expand.js
src/module/expand.js
+12
-6
snow.js
src/theme/snow.js
+1
-3
No files found.
lang/zh-cn/zh-cn.js
View file @
ef6bcd56
...
...
@@ -35,8 +35,8 @@ KityMinder.LANG['zh-cn'] = {
'image'
:
'插入图片'
,
'hyperlink'
:
'插入链接'
,
'unhyperlink'
:
'删除链接'
,
'expandnode'
:
'展开
节点
'
,
'collapsenode'
:
'收起节点'
,
'expandnode'
:
'展开
到叶子
'
,
'collapsenode'
:
'收起
到一级
节点'
,
'template'
:
'模板'
,
'theme'
:
'皮肤'
},
...
...
src/module/dragtree.js
View file @
ef6bcd56
...
...
@@ -38,6 +38,7 @@ var DropHinter = kity.createClass('DropHinter', {
target
.
getStyle
(
'drop-hint-color'
)
||
'yellow'
,
target
.
getStyle
(
'drop-hint-width'
)
||
2
);
this
.
bringTop
();
}
}
});
...
...
src/module/expand.js
View file @
ef6bcd56
...
...
@@ -117,8 +117,7 @@ KityMinder.registerModule('Expand', function() {
var
ExpandNodeCommand
=
kity
.
createClass
(
'ExpandNodeCommand'
,
{
base
:
Command
,
execute
:
function
(
km
)
{
var
nodes
=
km
.
getSelectedNodes
();
if
(
!
nodes
.
length
)
nodes
.
push
(
km
.
getRoot
());
var
nodes
=
km
.
getRoot
().
getChildren
();
nodes
.
forEach
(
function
(
node
)
{
node
.
expand
(
EXPAND_POLICY
.
DEEP_TO_LEAF
);
});
...
...
@@ -218,10 +217,6 @@ KityMinder.registerModule('Expand', function() {
}
});
return
{
addShortcutKeys
:
{
'ExpandNode'
:
'ctrl+/'
,
//expand
'CollapseNode'
:
'ctrl+.'
//collapse
},
commands
:
{
'ExpandNode'
:
ExpandNodeCommand
,
'CollapseNode'
:
CollapseNodeCommand
...
...
@@ -241,6 +236,17 @@ KityMinder.registerModule('Expand', function() {
var
visible
=
!
node
.
parent
||
node
.
parent
.
isExpanded
();
node
.
getRenderContainer
().
setVisible
(
visible
);
if
(
!
visible
)
e
.
stopPropagation
();
},
'beforekeydown'
:
function
(
e
)
{
if
(
e
.
originEvent
.
keyCode
==
keymap
[
'/'
])
{
var
expanded
=
this
.
getSelectedNode
().
isExpanded
();
this
.
getSelectedNodes
().
forEach
(
function
(
node
)
{
if
(
expanded
)
node
.
collapse
();
else
node
.
expand
();
});
e
.
preventDefault
();
e
.
stopPropagationImmediately
();
}
}
},
renderers
:
{
...
...
src/theme/snow.js
View file @
ef6bcd56
...
...
@@ -41,9 +41,7 @@ KityMinder.registerTheme('snow', {
'marquee-stroke'
:
'white'
,
'drop-hint-color'
:
'yellow'
,
'sub-drop-hint-width'
:
2
,
'main-drop-hint-width'
:
4
,
'root-drop-hint-width'
:
4
,
'drop-hint-width'
:
4
,
'order-hint-area-color'
:
'rgba(0, 255, 0, .5)'
,
'order-hint-path-color'
:
'#0f0'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment