Skip to content

Commit

Permalink
style: translate comments to English
Browse files Browse the repository at this point in the history
  • Loading branch information
wanyu.chen committed May 29, 2019
1 parent 1af7b71 commit b7d2029
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/cascader-panel/src/cascader-panel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const { keys: KeyCode } = AriaUtils;
const DefaultProps = {
expandTrigger: 'click', // or hover
multiple: false,
checkStrictly: false, // 是否严格的遵循父子不互相关联
emitPath: true, // 是否抛出由该节点所在的各级菜单的值所组成的数组
checkStrictly: false, // whether all nodes can be selected
emitPath: true, // wether to emit an array of all levels value in which node is located
lazy: false,
lazyLoad: noop,
value: 'value',
Expand Down
4 changes: 2 additions & 2 deletions packages/cascader-panel/src/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default class Node {

this.children.forEach(child => {
if (child) {
// 自底向上
// bottom up
child.broadcast(event, ...args);
child[handlerName] && child[handlerName](...args);
}
Expand Down Expand Up @@ -156,7 +156,7 @@ export default class Node {
if (this.config.checkStrictly) {
this.checked = checked;
} else {
// 自底向上 为了统一半选状态的计算方式
// bottom up to unify the calculation of the indeterminate state
this.broadcast('check', checked);
this.setCheckState(checked);
this.emit('check');
Expand Down

0 comments on commit b7d2029

Please sign in to comment.